/* =============================================
   Adri & Ben Wedding - Style Sheet
   Color Palette:
   - Burgundy/Wine:  #5E1A2E
   - Sage Green:     #8B9A6B
   - Light Sage:     #B3BF9A
   - Dusty Rose:     #B89A9A
   - Dark Brown:     #5A4030
   - Cream BG:       #EEEDE7
   - Dark Text:      #2C2420
   ============================================= */

:root {
  --burgundy: #5E1A2E;
  --sage: #8B9A6B;
  --sage-light: #B3BF9A;
  --dusty-rose: #B89A9A;
  --brown: #5A4030;
  --cream: #EEEDE7;
  --dark: #2C2420;
  --white: #FAF9F6;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', 'Helvetica Neue', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background-color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ LANGUAGE SWITCHER ============ */
.lang-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  gap: 4px;
  background: rgba(44, 36, 32, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 4px;
}

.lang-btn {
  padding: 6px 14px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--cream);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.lang-btn.active {
  background: var(--burgundy);
  color: var(--cream);
}

.lang-btn:hover:not(.active) {
  background: rgba(238, 237, 231, 0.15);
}

/* ============ NAVIGATION ============ */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  padding: 20px 0;
  transition: all 0.4s ease;
}

.main-nav.scrolled {
  background: rgba(44, 36, 32, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-link {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  position: relative;
  padding: 4px 0;
  transition: opacity 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--sage-light);
  transition: width 0.3s ease;
}

.nav-link:hover::after { width: 100%; }
.nav-link:hover { opacity: 0.9; }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
  width: 32px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--cream);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

@media (max-width: 768px) {
  .mobile-menu-toggle { display: flex; }

  .main-nav {
    transform: translateX(-100%);
    width: 280px;
    height: 100vh;
    background: rgba(44, 36, 32, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 80px 24px 40px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .main-nav.open { transform: translateX(0); }
  .main-nav.scrolled { padding: 80px 24px 40px; }

  .nav-inner {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .nav-link { font-size: 0.9rem; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  overflow: hidden;
  background: var(--dark);
}

.hero-video-side {
  width: 50%;
  height: 100%;
  flex-shrink: 0;
  overflow: hidden;
}

.hero-video-side video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cream);
  padding: 40px;
  margin: auto;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
  }

  .hero-video-side {
    width: 100%;
    height: 55%;
  }

  .hero-video-side video {
    object-fit: cover;
    object-position: center center;
  }

  .hero-content {
    width: 100%;
    height: 45%;
    padding: 80px 24px 16px;
  }
}

.hero-pre {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 1s ease 0.3s forwards;
}

.hero-names {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 1;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 1s ease 0.6s forwards;
}

.name-amp {
  font-style: italic;
  margin: 0 16px;
  font-size: 0.6em;
  vertical-align: middle;
  color: var(--sage-light);
}

.hero-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeUp 1s ease 0.9s forwards;
}

.hero-date p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.date-line {
  width: 60px;
  height: 1px;
  background: var(--sage-light);
}

.hero-location {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1s ease 1.1s forwards;
}

.wedding-countdown {
  margin-top: 28px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage-light);
  opacity: 0;
  animation: fadeUp 1s ease 1.3s forwards;
}

.wedding-countdown span:first-child {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.scroll-indicator {
  margin-top: 32px;
  opacity: 0;
  animation: fadeUp 1s ease 1.5s forwards;
}

@media (max-width: 768px) {
  .scroll-indicator {
    margin-top: 0;
    margin-bottom: 20px;
  }
}

.scroll-dot {
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { cy: 10; }
  50% { cy: 24; }
}

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

/* ============ COUNTDOWN ============ */
.countdown-section {
  padding: 80px 0;
  background: var(--burgundy);
  text-align: center;
  color: var(--cream);
}

.countdown-label-text {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.8;
}

.countdown-date-display {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 40px;
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.countdown-item { text-align: center; }

.countdown-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  line-height: 1;
  min-width: 70px;
}

.countdown-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 8px;
  opacity: 0.7;
}

.countdown-sep {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  opacity: 0.5;
  margin-top: -20px;
}

.btn-primary {
  display: inline-block;
  padding: 16px 48px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--burgundy);
  background: var(--cream);
  border-radius: 0;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--sage-light);
  color: var(--dark);
  transform: translateY(-2px);
}

/* ============ OUR STORY ============ */
.story-section {
  padding: 120px 0;
  background: var(--cream);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  text-align: center;
  margin-bottom: 60px;
  color: var(--dark);
  letter-spacing: 0.02em;
}

.section-title.light { color: var(--cream); }

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.story-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.story-img {
  overflow: hidden;
  border-radius: 4px;
}

.story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.story-img:hover img { transform: scale(1.05); }

.story-img-1 { height: 420px; }
.story-img-2 { height: 420px; margin-top: 40px; }

.story-text p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--brown);
}

.story-tagline {
  margin-top: 32px;
  font-family: var(--font-display);
  font-size: 1.6rem !important;
  font-weight: 400 !important;
  font-style: italic;
  color: var(--sage) !important;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .story-tagline {
    font-size: 1.1rem !important;
  }
}

@media (max-width: 768px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .story-images {
    grid-template-columns: 1fr 1fr;
  }

  .story-img-1, .story-img-2 { height: 280px; }
  .story-img-2 { margin-top: 0; }
}

/* ============ GALLERY STRIP ============ */
.gallery-strip {
  overflow: hidden;
  background: var(--dark);
  padding: 4px 0;
}

.gallery-scroll {
  display: flex;
  gap: 4px;
  width: max-content;
}

.gallery-item {
  flex-shrink: 0;
  width: 300px;
  height: 380px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.08); }

@keyframes galleryScrollExact {
  0% { transform: translateX(0); }
  100% { transform: translateX(var(--scroll-width)); }
}

@media (max-width: 768px) {
  .gallery-item { width: 220px; height: 280px; }
}

/* ============ CEREMONY ============ */
.ceremony-section {
  padding: 120px 0;
  background: var(--dark);
  color: var(--cream);
}

.ceremony-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.ceremony-card {
  text-align: center;
  padding: 48px 32px;
  background: rgba(238, 237, 231, 0.06);
  border: 1px solid rgba(238, 237, 231, 0.1);
  border-radius: 4px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.ceremony-card:hover {
  transform: translateY(-4px);
  background: rgba(238, 237, 231, 0.1);
}

.card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-svg {
  width: 60px;
  height: 60px;
  color: var(--cream);
  opacity: 0.85;
}

.ceremony-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.ceremony-card p {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.8;
  opacity: 0.85;
  margin-bottom: 24px;
}

.color-palette-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.palette-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(238, 237, 231, 0.3);
  transition: transform 0.3s ease;
}

.palette-dot {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.palette-dot:hover {
  transform: scale(1.25);
  box-shadow: 0 0 12px rgba(238, 237, 231, 0.4);
}

.palette-hint {
  display: block;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--cream);
  opacity: 0.5;
  margin-top: 16px;
  font-style: italic;
}

/* Color Modal */
.color-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(44, 36, 32, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

.color-modal.active {
  display: flex;
}

.color-modal-content {
  position: relative;
  text-align: center;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.color-modal-close {
  position: absolute;
  top: -40px;
  right: -10px;
  font-size: 2rem;
  color: var(--cream);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.3s;
}

.color-modal-close:hover { opacity: 0.7; }

.color-modal-swatch {
  width: 220px;
  height: 220px;
  border-radius: 8px;
  border: 3px solid rgba(238, 237, 231, 0.3);
  margin: 0 auto 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.color-modal-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.05em;
}

.btn-map {
  display: inline-block;
  padding: 10px 28px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  border: 1px solid rgba(238, 237, 231, 0.4);
  transition: all 0.3s ease;
}

.btn-map:hover {
  background: var(--cream);
  color: var(--dark);
}

@media (max-width: 768px) {
  .ceremony-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ceremony-card { padding: 36px 24px; }
}

/* ============ VENUE PHOTO DIVIDER ============ */
.venue-photo {
  width: 100%;
  height: 40vh;
  overflow: hidden;
  position: relative;
  margin: 0;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 1s ease, transform 1s ease;
}

.venue-photo.visible {
  opacity: 1;
  transform: scale(1);
}

.venue-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.35) saturate(0.7) hue-rotate(-10deg) brightness(0.95);
}

.venue-photo + section {
  padding-top: 40px !important;
}

/* ============ SCHEDULE ============ */
.schedule-section {
  padding: 40px 0 100px;
  background: var(--cream);
}

.schedule-with-bg {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.schedule-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.schedule-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.35) saturate(0.7) hue-rotate(-10deg) brightness(0.95);
}

.schedule-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 36, 32, 0.78);
}

.schedule-with-bg .container {
  position: relative;
  z-index: 1;
}

.timeline {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.timeline-line {
  position: absolute;
  left: 130px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(179, 191, 154, 0.4);
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-time {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--sage-light);
  width: 110px;
  text-align: right;
  flex-shrink: 0;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sage);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 1px var(--sage);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--cream);
}

@media (max-width: 768px) {
  .timeline-line { left: 90px; }
  .timeline-time { width: 72px; font-size: 1rem; }
  .timeline-item { gap: 20px; padding: 24px 0; }
}

/* ============ FAQ ============ */
.faq-section {
  padding: 120px 0;
  background: var(--dark);
  color: var(--cream);
}

.faq-section .section-title { color: var(--cream); }

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(238, 237, 231, 0.3);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  text-align: left;
  color: var(--cream);
  transition: opacity 0.3s;
}

.faq-question:hover { opacity: 0.8; }

.faq-number {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  opacity: 0.5;
  flex-shrink: 0;
  width: 36px;
}

.faq-question > span:nth-child(2) {
  flex: 1;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
}

.faq-toggle {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}

.faq-toggle span {
  position: absolute;
  background: var(--cream);
  transition: transform 0.3s ease;
}

.faq-toggle span:first-child {
  width: 16px;
  height: 1.5px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-toggle span:last-child {
  width: 1.5px;
  height: 16px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-question[aria-expanded="true"] .faq-toggle span:last-child {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer p {
  padding: 0 0 24px 56px;
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--cream);
  opacity: 0.85;
}

/* ============ RSVP ============ */
.rsvp-section {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
  background: var(--cream);
}

.rsvp-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--dark);
}

.rsvp-section .section-title { color: var(--dark); }

.rsvp-subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  opacity: 0.9;
}

.rsvp-mini-countdown {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 40px;
  letter-spacing: 0.05em;
}

.rsvp-mini-countdown span {
  font-weight: 300;
}

.dot-sep {
  margin: 0 12px;
  opacity: 0.5;
}

.btn-rsvp {
  display: inline-block;
  padding: 18px 64px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--dark);
  border: none;
  transition: all 0.3s ease;
}

.btn-rsvp:hover {
  background: var(--brown);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* ============ FOOTER ============ */
.footer {
  padding: 60px 0;
  text-align: center;
  background: var(--dark);
  color: var(--cream);
}

.footer-names {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 8px;
}

.footer-date {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  margin-bottom: 16px;
  opacity: 0.6;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  color: var(--sage-light);
  opacity: 0.8;
}

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

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

/* ============ RESPONSIVE ============ */
@media (max-width: 480px) {
  .hero-names { font-size: 3rem; }
  .name-amp { margin: 0 8px; }
  .countdown-number { font-size: 2rem; min-width: 50px; }
  .countdown-sep { font-size: 1.5rem; }
  .section-title { font-size: 1.8rem; margin-bottom: 40px; }
  .story-section, .ceremony-section, .schedule-section, .faq-section { padding: 80px 0; }
  .rsvp-section { padding: 100px 0; }
  .gallery-item { width: 180px; height: 240px; }
  .btn-rsvp { padding: 16px 40px; }
}
