/* ============ VARIABLES ============ */
:root {
  --cream: #F5F0E8;
  --beige: #E8DCC8;
  --sky-blue: #87CEEB;
  --deep-blue: #2E5984;
  --pink: #E8A0BF;
  --blush: #F2D1D1;
  --olive: #6B7F3B;
  --dark: #2C2C2C;
  --white: #FFFFFF;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Helvetica Neue', sans-serif;
}

/* ============ RESET ============ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background-color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ============ UTILITIES ============ */
.section {
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 5vw, 3rem);
  max-width: 900px;
  margin: 0 auto;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  text-align: center;
  margin-bottom: 2rem;
  color: var(--deep-blue);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn--primary {
  background-color: var(--deep-blue);
  color: var(--white);
}

.btn--primary:hover {
  background-color: #1d4060;
}

/* ============ FADE IN ANIMATIONS ============ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  background: url('../assets/img/hero-tlv.jpg') center bottom/cover no-repeat;
  position: relative;
}

.hero__overlay {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    180deg,
    rgba(245, 240, 232, 0.92) 0%,
    rgba(245, 240, 232, 0.75) 50%,
    rgba(245, 240, 232, 0.45) 100%
  );
  padding: 2rem;
}

.hero__content {
  text-align: center;
  max-width: 700px;
}

.hero__welcome {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--pink);
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--deep-blue);
  margin-bottom: 0.5rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero__date {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--deep-blue);
  margin-bottom: 2.5rem;
}

/* ============ COUNTDOWN ============ */
.countdown {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto 2.5rem;
}

.countdown__block {
  background: var(--white);
  border-radius: 12px;
  padding: 1rem 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.countdown__number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--deep-blue);
  line-height: 1.2;
}

.countdown__label {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #888;
}

/* ============ VIDEO SECTION ============ */
.video-section {
  background-color: var(--white);
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.video-section .section__title {
  padding: 0 1rem;
}

.video-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
}

.video-wrapper video {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ============ PROGRAMME ============ */
.programme-section {
  background-color: var(--cream);
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 5vw, 2rem);
  max-width: 100%;
}

.programme-section .section__title {
  margin-bottom: 2.5rem;
}

/* Day tabs grid */
.days-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  max-width: 750px;
  margin: 0 auto 1.5rem;
}

.day-tab {
  background: var(--white);
  border: 2px solid var(--beige);
  border-radius: 12px;
  padding: 1rem 0.5rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s ease;
  font-family: var(--font-body);
}

.day-tab:hover {
  border-color: var(--deep-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.day-tab.active {
  background: var(--deep-blue);
  border-color: var(--deep-blue);
  color: var(--white);
}

.day-tab__day {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.day-tab__name {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.7;
}

.day-tab.active .day-tab__name {
  opacity: 0.9;
}

/* Panels */
.day-panel {
  display: none;
  max-width: 750px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  animation: panelIn 0.3s ease;
}

.day-panel.active {
  display: block;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.day-panel__free {
  text-align: center;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.1rem;
  color: #666;
  padding: 1rem 0;
}

/* Horizontal timeline inside panel */
.day-timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding-top: 0.5rem;
}

.day-timeline__line {
  position: absolute;
  top: calc(0.5rem + 2.1rem);
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--beige), var(--deep-blue), var(--beige));
}

.day-timeline__step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.day-timeline__time {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--deep-blue);
  margin-bottom: 0.4rem;
}

.day-timeline__dot {
  width: 12px;
  height: 12px;
  background: var(--deep-blue);
  border: 2px solid var(--white);
  border-radius: 50%;
  margin: 0 auto 0.5rem;
  box-shadow: 0 0 0 2px var(--deep-blue);
}

.day-timeline__label {
  display: block;
  font-size: 0.8rem;
  color: #555;
  line-height: 1.3;
  padding: 0 0.2rem;
}

/* Mobile */
@media (max-width: 767px) {
  .days-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .day-panel {
    padding: 1.5rem 1rem;
  }

  .day-timeline__time {
    font-size: 0.85rem;
  }

  .day-timeline__label {
    font-size: 0.7rem;
  }
}

/* ============ RSVP ============ */
.rsvp-section {
  background-color: var(--blush);
}

.rsvp__intro {
  text-align: center;
  font-size: 1rem;
  color: #555;
  margin-bottom: 2rem;
}

.rsvp-form {
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--dark);
}

.form-group input[type="text"],
.form-group input[type="number"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--beige);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s;
  background: var(--cream);
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus {
  outline: none;
  border-color: var(--deep-blue);
}

.radio-group {
  display: flex;
  gap: 1rem;
  margin-top: 0.4rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-weight: 400;
  font-size: 0.95rem;
}

.radio-label input[type="radio"] {
  accent-color: var(--deep-blue);
  width: 18px;
  height: 18px;
}

.form-group.hidden {
  display: none;
}

.btn--submit {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

.btn--submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.rsvp-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
}

.rsvp-message.success {
  background: #e6f4ea;
  color: #1a7431;
}

.rsvp-message.error {
  background: #fce8e8;
  color: #c0392b;
}

/* ============ FOOTER ============ */
.footer {
  background: url('../assets/img/footer-tlv.jpg') center/cover no-repeat;
  position: relative;
}

.footer__overlay {
  background: rgba(30, 20, 50, 0.8);
  padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 5vw, 3rem);
  text-align: center;
  color: var(--cream);
}

.footer__love {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  max-width: 500px;
  margin: 0 auto 1rem;
  line-height: 1.5;
}

.footer__hebrew {
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.footer__signature {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 2px;
  opacity: 0.6;
}

/* ============ RESPONSIVE >= 768px ============ */
@media (min-width: 768px) {
  .countdown {
    grid-template-columns: repeat(4, 1fr);
    max-width: 500px;
  }

}
