/* =========================================================
   Helena & Jack — Hiltelow wedding site
   Palette: cream / orange / foliage green. Mobile-first.
   ========================================================= */

:root {
  --cream:        #FAF4E8;  /* base background */
  --cream-deep:   #F3EAD6;  /* alternating section background */
  --ink:          #2C3A2A;  /* near-black green, body text */
  --green:        #3C5A3A;  /* foliage green, headings */
  --green-soft:   #6E8256;  /* olive, secondary */
  --orange:       #E0713C;  /* primary accent */
  --orange-deep:  #C85A28;  /* hover / darker accent */
  --line:         #DCD3BE;  /* hairlines */
  --shadow:       0 10px 30px rgba(44, 58, 42, 0.08);
  --radius:       18px;
  --header-h:     60px;
  --content-w:      900px;  /* readable width of the text column */
  --section-pad-x:   22px;  /* side padding; widened at the 720px breakpoint */
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  line-height: 1.1;
  color: var(--green);
  margin: 0;
}

a { color: var(--orange-deep); }

/* Account for the sticky header when jumping to a section */
section[id] { scroll-margin-top: var(--header-h); }

/* ---------------------------------- HEADER / NAV ---------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(250, 244, 232, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: "Libre Baskerville", serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--green);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 1.05rem;
  line-height: 1;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.5;
  filter: grayscale(60%);
  transition: opacity 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.lang-btn:hover { opacity: 0.85; }
.lang-btn.is-active {
  opacity: 1;
  filter: none;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: absolute;
  top: var(--header-h);
  right: 0;
  left: 0;
  display: none;
  flex-direction: column;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 8px 20px 16px;
  box-shadow: var(--shadow);
}
.nav.open { display: flex; }
.nav a {
  padding: 12px 4px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.nav a:last-child { border-bottom: 0; }
.nav a:hover { color: var(--orange-deep); }

/* ---------------------------------- HERO ---------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 22px 80px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, #FCF8EF 0%, var(--cream) 55%, var(--cream-deep) 100%);
}
.hero-foliage {
  position: absolute;
  inset: 0;
  background: url("assets/leaf-pattern.svg") center bottom / 520px auto repeat-x;
  opacity: 0.5;
  pointer-events: none;
  mask-image: linear-gradient(to top, #000 0%, transparent 60%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 60%);
}
.hero-inner { position: relative; z-index: 1; max-width: 640px; }
.hero-eyebrow {
  font-family: "Libre Baskerville", serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--green-soft);
  margin: 0 0 6px;
}
.hero-title {
  font-size: clamp(3.6rem, 22vw, 8rem);
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 0.95;
}
.hero-sub {
  font-family: "Libre Baskerville", serif;
  font-style: italic;
  font-size: clamp(1.3rem, 6vw, 2rem);
  color: var(--green);
  margin: 8px 0 0;
}
.hero-meta {
  margin: 22px 0 28px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 1.4rem;
  color: var(--green-soft);
  text-decoration: none;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------------------------------- BUTTONS / LINKS ---------------------------------- */
.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.1s ease;
}
.btn:hover { background: var(--orange-deep); }
.btn:active { transform: translateY(1px); }
.btn[aria-disabled="true"] { background: var(--green-soft); cursor: default; }
.btn .soon { font-weight: 400; opacity: 0.85; }

.link-arrow {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; }

/* ---------------------------------- SECTIONS ----------------------------------
   Two section flavours must line up with each other:
     .section      — the box itself is centred, so its max-width has to INCLUDE
                     its own side padding for the text inside to land at the
                     same x as...
     .section.alt  — full-bleed background, with the children centred inside
                     the padding instead.
   Both are driven off --content-w below so they can't drift apart again. */
.section {
  padding: 64px var(--section-pad-x);
  max-width: calc(var(--content-w) + var(--section-pad-x) * 2);
  margin: 0 auto;
}
.section.alt {
  max-width: none;
  background: var(--cream-deep);
}
.section.alt > * { max-width: var(--content-w); margin-left: auto; margin-right: auto; }

.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.section-head h2 { font-size: clamp(2rem, 8vw, 2.8rem); }
.leaf { font-size: 1.6rem; }

.section-intro { color: var(--green-soft); margin: 4px 0 28px; }
.sub-head {
  font-size: 1.4rem;
  color: var(--orange-deep);
  margin: 34px 0 14px;
}

/* ---------------------------------- CARDS ---------------------------------- */
.cards { display: grid; gap: 16px; }
.cards.two { grid-template-columns: 1fr; }

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.section.alt .card { background: #FCF8EF; }
.card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.card h4 { font-size: 1.15rem; color: var(--orange-deep); margin-bottom: 6px; font-weight: 600; }
.card .big { font-family: "Libre Baskerville", serif; font-size: 1.15rem; color: var(--ink); margin: 0 0 8px; }
.muted { color: var(--green-soft); margin: 0; }
.muted em { color: var(--green-soft); opacity: 0.8; }

/* ---------------------------------- CALLOUT ---------------------------------- */
.callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 20px 22px;
  background: #FDEBD9;
  border: 1px solid #F2C9A6;
  border-radius: var(--radius);
}
.callout-icon { font-size: 1.6rem; line-height: 1.2; }
.callout p { margin: 0; color: var(--ink); }
.callout strong { color: var(--orange-deep); }
.callout a { color: var(--orange-deep); font-weight: 600; }

/* ---------------------------------- ACCOMMODATION ---------------------------------- */
.stay-options { display: grid; gap: 18px; }

.stay-option {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  /* Grid items default to min-width:auto, which would stop the card shrinking
     below the full width of its thumbnail strip and push the page sideways on
     a phone. Allowing it to shrink is what lets the strip scroll instead. */
  min-width: 0;
}
.section.alt .stay-option { background: #FCF8EF; }

.stay-option-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
  margin-bottom: 8px;
}
.stay-option-head h3 { font-size: 1.3rem; }

.stay-cost {
  flex-shrink: 0;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--orange-deep);
  background: #FDEBD9;
  border: 1px solid #F2C9A6;
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}

/* Extra actionable line under an option's description (e.g. how to book) */
.stay-note {
  margin: 10px 0 0;
  color: var(--ink);
}
.stay-note a {
  color: var(--orange-deep);
  font-weight: 600;
}

/* Horizontally scrollable strip of square thumbnails */
.stay-gallery {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-bottom: 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.stay-gallery::-webkit-scrollbar { height: 6px; }
.stay-gallery::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}

.stay-thumb {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.stay-thumb:hover,
.stay-thumb:focus-visible {
  transform: translateY(-2px);
  border-color: var(--orange);
  outline: none;
}
.stay-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stay-hint {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--green-soft);
  opacity: 0.85;
}

/* ---------------------------------- LIGHTBOX ---------------------------------- */
body.no-scroll { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  background: rgba(28, 38, 26, 0.92);
}
.lightbox[hidden] { display: none; }

.lightbox-figure {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  background: var(--cream);
}
.lightbox-caption {
  color: #EDE7D6;
  font-size: 0.88rem;
  text-align: center;
  max-width: 60ch;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 44px;
  height: 44px;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--cream);
  background: rgba(0, 0, 0, 0.35);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(0, 0, 0, 0.6); }

.lightbox-nav {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--cream);
  background: rgba(0, 0, 0, 0.35);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox-nav:hover { background: rgba(0, 0, 0, 0.6); }
.lightbox-nav[hidden] { display: none; }

/* On small screens float the arrows over the photo edges to save width */
@media (max-width: 560px) {
  .lightbox { padding: 12px; }
  .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
}

/* ---------------------------------- TIMELINE / SCHEDULE ---------------------------------- */
.timeline { display: grid; gap: 30px; }
.day-title {
  font-size: 1.6rem;
  color: var(--orange-deep);
  border-bottom: 2px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.day-title span {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--green-soft);
  font-weight: 400;
}
.agenda { list-style: none; margin: 0; padding: 0; }
.agenda li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.agenda li:last-child { border-bottom: 0; }
.agenda .time { font-weight: 600; color: var(--green); }
.agenda .event { color: var(--ink); }

/* ---------------------------------- REGISTRY ---------------------------------- */
.registry-block { padding: 8px 0; }
.registry-block .btn { margin-top: 8px; }

/* ---------------------------------- FAQ ---------------------------------- */
.faq-list { display: grid; gap: 12px; }
details {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 20px;
  box-shadow: var(--shadow);
}
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  color: var(--green);
  list-style: none;
  position: relative;
  padding-right: 28px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--orange);
  line-height: 1;
}
details[open] summary::after { content: "\2013"; }
details p { margin: 0 0 18px; color: var(--green-soft); }
details a { color: var(--orange-deep); }

/* ---------------------------------- FOOTER ---------------------------------- */
.site-footer {
  text-align: center;
  padding: 54px 22px 60px;
  background: var(--green);
  color: #EDE7D6;
}
.footer-names {
  font-family: "Libre Baskerville", serif;
  font-size: 1.8rem;
  color: #FCF8EF;
  margin: 0 0 4px;
}
.footer-meta { margin: 0 0 18px; color: #C9D3BB; letter-spacing: 0.02em; }
.footer-top { color: #F2C9A6; text-decoration: none; font-weight: 600; }
.footer-top:hover { text-decoration: underline; }

/* ---------------------------------- DESKTOP / TABLET ---------------------------------- */
@media (min-width: 720px) {
  .site-header { padding: 0 32px; }
  .nav-toggle { display: none; }
  .nav {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 26px;
    background: none;
    border: 0;
    padding: 0;
    box-shadow: none;
  }
  .nav a { border: 0; padding: 0; }
  .cards.two { grid-template-columns: 1fr 1fr; }
  .agenda li { grid-template-columns: 110px 1fr; }
  /* Wider side padding on bigger screens. Updating the variable keeps
     .section's max-width in step, so both flavours stay aligned. */
  :root { --section-pad-x: 32px; }
  .section { padding: 84px var(--section-pad-x); }
  .section.alt { padding: 84px var(--section-pad-x); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue { animation: none; }
}
