@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Almarai:wght@300;400;700&display=swap');

/* =============================
   CSS Variables
   ============================= */
:root {
  --cream: #faf0e6;
  --cream-alt: #f9efe5;
  --sage: #b4b894;
  --dark-brown: #492f1d;
  --dark-green: #31372a;
  --sage-dark: #262b1f;
  --max-width: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Almarai', sans-serif;
  background-color: var(--cream);
  color: var(--dark-brown);
  font-size: 16px;
  line-height: 1.7;
}

a { color: var(--dark-brown); }

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

/* =============================
   Navigation
   ============================= */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background-color: var(--cream);
  border-bottom: 1px solid rgba(73, 47, 29, 0.12);
  padding: 0 40px;
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-brown);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3px;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav-title a {
  text-decoration: none;
  color: var(--dark-brown);
  font-family: 'Libre Baskerville', serif;
  font-size: 20px;
  font-weight: 400;
  white-space: nowrap;
}

.nav-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.btn-rsvp {
  background-color: var(--dark-green);
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 8px;
  text-decoration: none !important;
  font-size: 13px;
  letter-spacing: 0.5px;
  font-weight: 700;
  transition: opacity 0.2s;
}

.btn-rsvp:hover { opacity: 0.85; }

/* Mobile nav */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: var(--dark-brown);
  padding: 4px;
}

/* =============================
   Language Switcher
   ============================= */
.lang-switcher {
  position: relative;
  margin-right: 8px;
}

.lang-trigger {
  background: none;
  border: 1px solid rgba(73, 47, 29, 0.25);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-family: 'Almarai', sans-serif;
  font-size: 13px;
  color: var(--dark-brown);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s, background-color 0.2s;
  white-space: nowrap;
  height: 34px;
}

.lang-trigger:hover {
  border-color: var(--dark-brown);
  background-color: rgba(73, 47, 29, 0.05);
}

.lang-chevron {
  transition: transform 0.2s;
}

.lang-switcher.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--cream);
  border: 1px solid rgba(73, 47, 29, 0.15);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
  overflow: hidden;
  min-width: 120px;
  z-index: 300;
}

.lang-switcher.open .lang-dropdown {
  display: block;
}

.lang-dropdown button {
  width: 100%;
  background: none;
  border: none;
  padding: 11px 16px;
  text-align: left;
  font-family: 'Almarai', sans-serif;
  font-size: 14px;
  color: var(--dark-brown);
  cursor: pointer;
  transition: background-color 0.15s;
}

.lang-dropdown button:hover {
  background-color: rgba(73, 47, 29, 0.06);
}

.lang-dropdown button.lang-active {
  font-weight: 700;
}

/* =============================
   Page Title Banner
   ============================= */
.page-banner {
  background-color: var(--cream);
  text-align: center;
  padding: 48px 24px 36px;
  border-bottom: 1px solid rgba(73, 47, 29, 0.08);
}

.page-banner h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: 42px;
  font-weight: 400;
  color: var(--dark-brown);
}

/* =============================
   Hero (Homepage)
   ============================= */
.hero {
  background-color: var(--cream);
  text-align: center;
  padding: 36px 24px 20px;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-date {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(18px, 2.5vw, 24px);
  letter-spacing: 3px;
  color: var(--dark-brown);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-date::before,
.hero-date::after {
  content: '—';
  opacity: 0.6;
}

.hero-title {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(54px, 8vw, 90px);
  color: var(--dark-brown);
  margin-bottom: 18px;
  font-weight: 400;
  line-height: 1.1;
}

.hero-subtitle {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--dark-brown);
}

/* =============================
   Full-width image
   ============================= */
.img-fullwidth {
  width: 100%;
  display: block;
}

/* =============================
   Section colours
   ============================= */
.section-cream {
  background-color: var(--cream);
  padding: 70px 24px;
}

.section-sage {
  background-color: var(--sage);
  padding: 70px 24px;
  color: var(--sage-dark);
}

.section-sage h2,
.section-sage h3,
.section-sage .section-label { color: var(--sage-dark); }

.section-sage a { color: var(--sage-dark); }
.section-sage a.btn-large { color: #fff; }
.section-sage a.btn-large:hover { color: var(--dark-green); }

/* =============================
   Container
   ============================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* =============================
   Two-column layout
   ============================= */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* =============================
   Circular image
   ============================= */
.img-circle {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
}

/* =============================
   Typography helpers
   ============================= */
h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 20px;
}

h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  margin-bottom: 12px;
}

h4 {
  font-family: 'Libre Baskerville', serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

p { margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }

.text-italic {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
}

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

.section-label {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400;
  color: var(--dark-brown);
  text-align: center;
  margin-bottom: 48px;
}

/* =============================
   When & Where grid (homepage)
   ============================= */
.www-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.www-grid .col-when { grid-column: 1; }
.www-grid .col-church { grid-column: 2; }
.www-grid .col-reception { grid-column: 3; }

.www-grid .col-where-header {
  grid-column: 2 / 4;
  text-align: center;
}

.col-where-mobile { display: none; }

.www-grid h3 { margin-bottom: 10px; }

.www-grid-detail {
  margin-top: 0;
  border-top: 1px solid rgba(73, 47, 29, 0.12);
  padding-top: 20px;
}

.www-grid-detail h4 {
  font-family: 'Libre Baskerville', serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 10px;
}

.maps-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =============================
   CTA section
   ============================= */
.cta-section {
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 24px;
}

.btn-large {
  display: inline-block;
  background-color: var(--dark-green);
  color: #fff;
  padding: 15px 64px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 700;
  transition: background-color 0.2s, color 0.2s;
}

.btn-large:hover { background-color: #fff; color: var(--dark-green); opacity: 1; }

/* =============================
   Info block (homepage sections)
   ============================= */
.info-block {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.info-block h2 { margin-bottom: 16px; }

/* =============================
   When & Where page
   ============================= */
.when-when-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
}

.when-header {
  grid-column: 1 / -1;
  margin-bottom: 28px;
  text-align: center;
}

.when-col-church {
  grid-column: 1;
  grid-row: 2;
}

.when-col-reception {
  grid-column: 2;
  grid-row: 2;
}

.when-where-content {
  max-width: 680px;
}

.when-where-content h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 8px;
}

.when-where-content h3 {
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 8px;
}

.venue-card {
  padding: 32px;
  background: rgba(255,255,255,0.35);
  border-radius: 12px;
  margin-bottom: 24px;
}

.venue-card h3 { margin-top: 0; margin-bottom: 10px; }

/* =============================
   Our Story page - About Us
   ============================= */
.bio-col h3 {
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  margin-bottom: 12px;
  font-family: 'Libre Baskerville', serif;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: rgba(73, 47, 29, 0.2);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 0;
  margin-bottom: 60px;
  align-items: center;
}

.timeline-item:nth-child(odd) .timeline-text { grid-column: 3; }
.timeline-item:nth-child(odd) .timeline-img { grid-column: 1; grid-row: 1; }
.timeline-item:nth-child(even) .timeline-text { grid-column: 1; text-align: right; }
.timeline-item:nth-child(even) .timeline-img { grid-column: 3; grid-row: 1; }

.timeline-dot {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 1;
}

.timeline-dot-circle {
  width: 14px;
  height: 14px;
  background-color: var(--dark-brown);
  border-radius: 50%;
  flex-shrink: 0;
}

.timeline-date {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  writing-mode: horizontal-tb;
  white-space: nowrap;
  color: var(--dark-brown);
  opacity: 0.7;
}

.timeline-img img {
  width: 100%;
  max-width: 380px;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
}

.timeline-item:nth-child(odd) .timeline-img img { margin-left: 0; }
.timeline-item:nth-child(even) .timeline-img img { margin-left: auto; }

.timeline-text {
  padding: 0 24px;
}

.timeline-text p {
  font-size: 15px;
}

/* =============================
   Guide / Travel page sections
   ============================= */
.guide-section {
  max-width: 800px;
  margin: 0 auto 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(73, 47, 29, 0.12);
}

.guide-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.guide-section h3 {
  font-size: 26px;
  font-style: italic;
  margin-bottom: 14px;
}

/* =============================
   FAQ accordion
   ============================= */
.faq-container {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(73, 47, 29, 0.15);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  font-family: 'Almarai', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-brown);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.faq-icon {
  font-size: 20px;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.25s;
  line-height: 1;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

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

.faq-item.open .faq-answer {
  max-height: 600px;
  padding-bottom: 20px;
}

.faq-answer p { font-size: 15px; line-height: 1.7; }

/* =============================
   RSVP page
   ============================= */
.rsvp-center {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 80px 24px;
}

.rsvp-center h2 { margin-bottom: 20px; }
.rsvp-center p { margin-bottom: 32px; font-size: 17px; }

/* =============================
   Footer
   ============================= */
footer {
  background-color: var(--cream);
  border-top: 1px solid rgba(73, 47, 29, 0.1);
  text-align: center;
  padding: 36px 24px;
}

footer .footer-name {
  font-family: 'Libre Baskerville', serif;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 8px;
}

footer a {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =============================
   Divider
   ============================= */
.divider {
  width: 60px;
  height: 1px;
  background-color: var(--dark-brown);
  margin: 24px auto;
  opacity: 0.3;
}

/* =============================
   Responsive
   ============================= */
@media (max-width: 900px) {
  header {
    grid-template-columns: auto auto;
    padding: 0 20px;
    gap: 12px;
  }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 20px 24px 28px;
    gap: 14px;
    border-bottom: 1px solid rgba(73,47,29,0.12);
    z-index: 199;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .nav-title { grid-column: 1; }
  .nav-right { grid-column: 2; }
  .mobile-menu-toggle { display: block; }

  .nav-right { gap: 12px; }

  .two-col {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .two-col.reverse { direction: ltr; }

  .www-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .www-grid .col-when,
  .www-grid .col-church,
  .www-grid .col-reception,
  .www-grid .col-where-header { grid-column: 1; }

  .when-when-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .when-header { text-align: center; }

  .when-col-church {
    grid-column: 1;
    grid-row: auto;
  }

  .when-col-reception {
    grid-column: 1;
    grid-row: auto;
  }

  .when-where-content h3 {
    margin-top: 28px;
  }

  .col-where-desktop { display: none; }
  .col-where-mobile {
    display: block;
    border-top: 1px solid rgba(73, 47, 29, 0.12);
    padding-top: 20px;
    margin-top: 8px;
  }

  .timeline::before { left: 24px; }

  .timeline-item {
    grid-template-columns: 48px 1fr;
    gap: 0;
  }

  .timeline-item:nth-child(odd) .timeline-text,
  .timeline-item:nth-child(even) .timeline-text {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    padding: 0 0 0 16px;
  }

  .timeline-item:nth-child(odd) .timeline-img,
  .timeline-item:nth-child(even) .timeline-img {
    grid-column: 2;
    grid-row: 2;
    padding-left: 16px;
    margin-top: 16px;
  }

  .timeline-item:nth-child(even) .timeline-img img {
    margin-left: 0;
  }

  .timeline-dot {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
    padding-top: 4px;
  }

  .timeline-date { display: none; }

  .section-cream,
  .section-sage { padding: 48px 24px; }

  .hero { padding: 48px 24px 36px; min-height: auto; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 44px; }
  .page-banner h1 { font-size: 32px; }
  h2 { font-size: 26px; }
}
