/* ==========================================================================
   Eva & Oliver, Wedding Website
   Design system: sage/cream botanical theme.
   Change the palette for the whole site by editing the variables below.
   ========================================================================== */

:root {
  --color-bg: #f8f6ee;         /* cream */
  --color-bg-panel: #fffdf7;   /* slightly lighter panel behind text */
  --color-line: #7c8a5e;       /* sage green line/accent */
  --color-line-soft: #a9b48c;  /* softer sage for dividers */
  --color-text: #33362a;       /* warm charcoal */
  --color-text-muted: #5b5f4d;
  --color-gold: #a98f63;       /* muted gold accent */
  --color-white: #ffffff;
  --font-display: "Playfair Display", "Times New Roman", serif;
  --font-body: "EB Garamond", "Times New Roman", Georgia, serif;
  --max-width: 980px;
}

/* Alternate palette for gated pages, same structure with a dustier rose tone.
   Kept in place so a password-protected page can be added back later. */
.theme-rose {
  --color-line: #a67a72;
  --color-line-soft: #c9a89f;
  --color-gold: #a98f63;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: url("../images/pattern-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  line-height: 1.7;
  font-size: 1.05rem;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

h1 { font-size: 3rem; margin: 0.2em 0; }
h2 { font-size: 2rem; margin-top: 0; }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

a { color: var(--color-gold); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 246, 238, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-line-soft);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-nav .brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--color-text);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.site-nav a.nav-link {
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.site-nav a.nav-link:hover,
.site-nav a.nav-link.active {
  border-color: var(--color-gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-line-soft);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 1rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav ul {
    display: none;
    flex-direction: column;
    gap: 14px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-panel);
    padding: 18px 24px;
    border-bottom: 1px solid var(--color-line-soft);
  }
  .site-nav ul.open { display: flex; }
}

/* ---------- Hero ---------- */
/* ==========================================================================
   Soft cream "glow" panel.
   ONE element wraps a whole run of content so there are never two overlapping
   glows creating a visible seam. Edges are feathered on all four sides using
   two intersecting gradient masks, so there are no hard lines anywhere.
   ========================================================================== */
.glow {
  position: relative;
}

.glow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(1600px, 150%);
  height: 100%;
  /* A single soft ellipse. Because the fade lives in the gradient itself
     (rather than in a CSS mask) it dissolves identically on all four sides
     in every browser, with no visible edge at the left or right. */
  background: radial-gradient(
    ellipse 48% 58% at 50% 50%,
    rgba(250, 248, 240, 0.94) 0%,
    rgba(250, 248, 240, 0.92) 52%,
    rgba(250, 248, 240, 0.74) 70%,
    rgba(250, 248, 240, 0.42) 83%,
    rgba(250, 248, 240, 0.16) 92%,
    rgba(250, 248, 240, 0) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* Organic, soft-edged wash for sub-page headers. Uses a radial ellipse so it
   reads as a gentle halo behind the title rather than a rectangular band. */
.glow-soft {
  position: relative;
}

.glow-soft::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1250px, 128%);
  height: 150%;
  background: radial-gradient(
    ellipse 40% 46% at 50% 50%,
    rgba(250, 248, 240, 0.94) 0%,
    rgba(250, 248, 240, 0.90) 40%,
    rgba(250, 248, 240, 0.62) 62%,
    rgba(250, 248, 240, 0.28) 80%,
    rgba(250, 248, 240, 0.08) 91%,
    rgba(250, 248, 240, 0) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.glow-soft > * {
  position: relative;
  z-index: 1;
}

/* Everything inside a .glow sits above the wash */
.glow > * {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  text-align: center;
  padding: 100px 24px 40px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
}

/* Kicker with hairline rules either side */
.hero .kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-line);
  margin-bottom: 18px;
}

.hero .kicker::before,
.hero .kicker::after {
  content: "";
  height: 1px;
  width: clamp(28px, 8vw, 72px);
  background: linear-gradient(to right, transparent, var(--color-line-soft), transparent);
}

.hero h1 {
  font-size: clamp(2.8rem, 7.5vw, 5rem);
  line-height: 1.05;
  margin: 0;
  color: var(--color-text);
}

.hero .amp {
  color: var(--color-gold);
  font-style: italic;
  font-weight: 500;
  padding: 0 0.08em;
}

.hero .date-line {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  margin-top: 20px;
}

.hero .date-line .sep {
  color: var(--color-line-soft);
  padding: 0 8px;
}

/* Small decorative sprig under the names */
.flourish {
  display: block;
  margin: 22px auto 0;
  width: 168px;
  height: auto;
  opacity: 0.85;
}

.page-header .flourish { margin: 20px auto 0; width: 150px; }

@media (max-width: 620px) {
  .hero { padding: 70px 20px 50px; }
  .hero .kicker { letter-spacing: 0.24em; font-size: 0.74rem; gap: 12px; }
  .hero .date-line { letter-spacing: 0.1em; font-size: 0.85rem; }
}

.divider {
  width: 70px;
  height: 1px;
  background: var(--color-line-soft);
  margin: 26px auto;
}

/* ---------- Countdown ---------- */
.countdown {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 36px 0;
  flex-wrap: wrap;
}

.countdown .unit {
  min-width: 84px;
}

.countdown .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--color-line);
  display: block;
}

.countdown .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

/* ---------- Panels / cards ---------- */
.panel {
  background: var(--color-bg-panel);
  border: 1px solid var(--color-line-soft);
  border-radius: 6px;
  padding: 32px 36px;
  margin-bottom: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

section.page-section {
  padding: 50px 24px;
}

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

@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ---------- Timeline (schedule page) ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--color-line-soft);
}

.timeline li {
  position: relative;
  padding: 0 0 22px 28px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--color-bg-panel);
  border: 2px solid var(--color-gold);
  border-radius: 50%;
}

.timeline .time {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-line);
  display: block;
}

/* ---------- Accommodation cards ---------- */
.stay-group h3 {
  border-bottom: 1px solid var(--color-line-soft);
  padding-bottom: 6px;
  margin-bottom: 18px;
}

.stay-card {
  padding: 20px 0;
  border-bottom: 1px solid rgba(169, 180, 140, 0.4);
}
.stay-card:last-child { border-bottom: none; padding-bottom: 4px; }

.stay-card h4 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.22rem;
  color: var(--color-text);
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.stay-card .drive {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
}

.stay-card p { margin: 0 0 6px; font-size: 1rem; line-height: 1.6; }

.stay-card .contact {
  font-size: 0.94rem;
  color: var(--color-text-muted);
}

.stay-card .contact a { color: var(--color-gold); }

.tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(124,138,94,0.12);
  color: var(--color-line);
  border-radius: 3px;
  padding: 2px 8px;
  margin-left: 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--color-line);
  border-radius: 3px;
  color: var(--color-text);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover { background: var(--color-line); color: var(--color-white); }

.btn.primary {
  background: var(--color-line);
  color: var(--color-white);
}
.btn.primary:hover { background: var(--color-text); }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid rgba(169, 180, 140, 0.45);
}
.faq-item:last-child { border-bottom: none; }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.3rem;
  padding: 20px 40px 20px 0;
  position: relative;
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }

/* Custom + / - indicator */
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-gold);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { content: "\2013"; }

.faq-item summary:hover { color: var(--color-line); }
.faq-item[open] summary { color: var(--color-line); }

.faq-item p {
  padding: 0 40px 22px 0;
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.72;
  max-width: 66ch;
}

/* ---------- Password gate ---------- */
.gate {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.gate-box {
  max-width: 380px;
  text-align: center;
}

.gate-box input {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border: 1px solid var(--color-line-soft);
  border-radius: 4px;
  margin: 18px 0;
  text-align: center;
  background: var(--color-bg-panel);
}

.gate-error {
  color: #a0453a;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.gated-content { display: none; }

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 40px 24px 60px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.notice {
  background: rgba(169,143,99,0.12);
  border: 1px solid var(--color-gold);
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.coming-soon {
  font-style: italic;
  color: var(--color-text-muted);
}

/* ---------- Embedded RSVP form ---------- */
/* Add class="rsvp-embed" to the Google Form iframe you paste into rsvp.html
   so it fills the card and stays usable on phones. */
.rsvp-embed {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 1250px;
  border: 0;
  margin: 0 auto;
  background: transparent;
}

@media (max-width: 620px) {
  .rsvp-embed { min-height: 1600px; }
}

/* ---------- "The Day" feature section (Welcome page) ---------- */
/* No glow of its own: it lives inside the single page-wide .glow wrapper. */
.feature-section {
  position: relative;
  padding: 10px 24px 80px;
}

.feature-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--color-line);
  margin-bottom: 10px;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: "";
  height: 1px;
  width: clamp(24px, 6vw, 56px);
  background: linear-gradient(to right, transparent, var(--color-line-soft), transparent);
}

.feature-inner h2 {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  margin: 0 0 14px;
}

.feature-lede {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 62ch;
  margin: 0 auto 34px;
  color: var(--color-text);
}

/* Two elegant venue detail blocks side by side */
.venue-duo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
  margin: 34px 0 38px;
  text-align: center;
}

.venue-duo .vd-rule {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(to bottom, transparent, var(--color-line-soft), transparent);
}

.venue-duo .vd-eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--color-gold);
  margin-bottom: 8px;
}

.venue-duo .vd-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--color-text);
  display: block;
  margin-bottom: 4px;
}

.venue-duo .vd-time {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

@media (max-width: 720px) {
  .venue-duo {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .venue-duo .vd-rule {
    width: 60px;
    height: 1px;
    align-self: center;
    justify-self: center;
    background: linear-gradient(to right, transparent, var(--color-line-soft), transparent);
  }
}

.feature-closing {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--color-line);
  margin: 30px 0 6px;
}

/* ---------- Shared page header (sub-pages) ---------- */
.page-header {
  text-align: center;
  padding: 76px 24px 44px;
  max-width: 820px;
  margin: 0 auto;
}

.page-header h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.08;
  margin: 0;
}

.page-header .page-lede {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--color-text);
  max-width: 60ch;
  margin: 18px auto 0;
}

@media (max-width: 620px) {
  .page-header { padding: 52px 20px 34px; }
}

/* Content wrapper for sub-pages */
.page-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 70px;
}

/* Softer, more modern card */
.card {
  background: var(--color-bg-panel);
  border: 1px solid rgba(169, 180, 140, 0.55);
  border-radius: 10px;
  padding: 34px 38px;
  margin-bottom: 26px;
  box-shadow: 0 2px 14px rgba(51, 54, 42, 0.05);
}

.card > h3:first-child,
.card > .card-title:first-child { margin-top: 0; }

.card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-text);
  margin: 0 0 6px;
}

.card-sub {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  margin: 0 0 20px;
}

@media (max-width: 620px) {
  .card { padding: 26px 22px; }
}

/* ---------- Photo placeholders ---------- */
/* Drop your own image inside a .photo-frame (see the guide for how) and the
   placeholder text disappears behind it automatically. */
.photo-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(45deg, rgba(124,138,94,0.07), rgba(124,138,94,0.07) 10px, transparent 10px, transparent 20px);
  border: 1px dashed var(--color-line-soft);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  padding: 20px;
  overflow: hidden;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

/* Once a real photo is dropped in, drop the placeholder chrome entirely so
   no dashed border / striped background shows around the image. */
.photo-frame:has(img),
.photo-frame.has-photo {
  padding: 0;
  border: none;
  background: none;
  box-shadow: 0 2px 10px rgba(51, 54, 42, 0.10);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 28px 0;
}

.photo-grid.single {
  grid-template-columns: 1fr;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.photo-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

/* For upright (portrait) photos so they aren't harshly cropped */
.photo-grid.portrait {
  max-width: 380px;
}

.photo-grid.portrait .photo-frame {
  aspect-ratio: 3 / 4;
}

@media (max-width: 720px) {
  .photo-grid, .photo-grid.three { grid-template-columns: 1fr; }
}

/* ---------- "Punchy" schedule styling ---------- */
.punchy-heading {
  font-size: clamp(2.6rem, 6vw, 4rem);
  text-align: center;
  margin-bottom: 6px;
}

.punchy-sub {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.timeline-big {
  border-left: 3px solid var(--color-line-soft);
}

.timeline-big li {
  padding-bottom: 34px;
  padding-left: 34px;
}

.timeline-big li::before {
  width: 16px;
  height: 16px;
  left: -9px;
  border-width: 3px;
}

.timeline-big .time {
  font-size: 1.7rem;
  line-height: 1.2;
}

.timeline-big .desc {
  font-size: 1.15rem;
}

.venue-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-line);
  margin-bottom: 4px;
}

/* ---------- Schedule page: venue cards ---------- */
.venue-card {
  background: var(--color-bg-panel);
  border: 1px solid var(--color-line-soft);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 34px;
  box-shadow: 0 2px 10px rgba(51, 54, 42, 0.06);
}

.venue-banner {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.venue-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gradient scrim so the venue label stays readable on any photo */
.venue-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(30,32,24,0) 35%, rgba(30,32,24,0.62) 100%);
}

.venue-banner .venue-label {
  position: absolute;
  left: 28px;
  bottom: 20px;
  right: 28px;
  z-index: 2;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.venue-banner .venue-label .eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  opacity: 0.9;
  margin-bottom: 4px;
}

.venue-banner .venue-label .name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.2;
}

.venue-body {
  padding: 28px 32px 8px;
}

@media (max-width: 720px) {
  .venue-banner { height: 210px; }
  .venue-body { padding: 22px 20px 6px; }
  .venue-banner .venue-label { left: 18px; right: 18px; }
}

/* Two-column time / description rows */
.sched-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sched-list li {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid rgba(169, 180, 140, 0.45);
}

.sched-list li:last-child { border-bottom: none; }

.sched-list .time {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-line);
  white-space: nowrap;
}

.sched-list .desc {
  font-size: 1.1rem;
}

.sched-list .note {
  display: block;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: 6px;
  max-width: 62ch;
}

.sched-list .note + .note { margin-top: 9px; }

.sched-list .note a {
  color: var(--color-gold);
  font-style: normal;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .sched-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .sched-list .time { font-size: 1.2rem; }
}

/* Times alternate sage / gold strictly down the list, so the pattern is
   always even and predictable. (Driven by position, not by hand-picked rows.) */
.sched-list li:nth-child(odd)  .time { color: var(--color-line); }
.sched-list li:nth-child(even) .time { color: var(--color-gold); }

/* Arrival strip that sits INSIDE a venue card, on the card's own background */
.arrival-strip {
  background: rgba(169, 143, 99, 0.13);
  border-left: 3px solid var(--color-gold);
  border-radius: 4px;
  padding: 12px 18px;
  margin: 0 0 20px;
  font-size: 1rem;
}

.arrival-strip strong { color: var(--color-text); }

.day-two-card {
  background: var(--color-bg-panel);
  border: 1px dashed var(--color-line-soft);
  border-radius: 8px;
  padding: 34px 32px;
  text-align: center;
  margin-bottom: 28px;
}

.day-two-card h3 { margin-top: 0; }
