/* ============================================================
   ZARA & CHRIS — WEDDING WEBSITE
   Design tokens sampled from the styling & floral proposal
   moodboard and the Palazzo Salato reception venue photography.
   ============================================================ */

:root {
  /* ---- Base palette ---- */
  --rose-dust:       #CFA0AC;
  --red-claret:      #A93242;
  --wine-deep:       #5A1B2E;
  --plum-black:      #3A0F1A;
  --olive-reception: #4B5842;
  --cream-paper:     #F3E9E1;
  --cream-paper-2:   #EDE0D6;
  --linen-white:     #FBF6F1;
  --ink:             #241A16;
  --ink-soft:        #5C4E47;

  /* ---- Semantic aliases ---- */
  --color-bg:            var(--cream-paper);
  --color-surface:       var(--linen-white);
  --color-text:          var(--ink);
  --color-text-muted:    var(--ink-soft);
  --color-primary:       var(--wine-deep);
  --color-primary-hover: var(--plum-black);
  --color-primary-text:  var(--cream-paper);
  --color-accent:        var(--red-claret);
  --color-border:        #DCC9BE;
  --color-focus-ring:    var(--red-claret);

  /* ---- Fonts ---- */
  --font-display: 'Cormorant', 'Times New Roman', serif;
  --font-script:  'Beau Rivage', cursive;
  --font-body:    'Jost', 'Century Gothic', sans-serif;

  --text-body-md: 400 1rem/1.6 var(--font-body);
}

* { box-sizing: border-box; }

/* Author display rules (e.g. .rsvp-form's flex) otherwise beat the UA [hidden] rule. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--cream-paper);
  color: var(--ink);
  font: var(--text-body-md);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--wine-deep); }
a:hover { color: var(--plum-black); }

input::placeholder,
textarea::placeholder { color: #B3A49B; font-family: var(--font-body); }

img { max-width: 100%; }

/* ---- Shared type utilities ---- */
.eyebrow {
  font-family: var(--font-body); font-weight: 500; font-size: 15px;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--wine-deep);
}
.eyebrow-sm {
  font-family: var(--font-body); font-weight: 500; font-size: 13px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); margin-top: 8px;
}
.prose { font: var(--text-body-md); color: var(--ink-soft); text-wrap: pretty; }

.rule {
  width: min(560px, 80vw); height: 1px; background: var(--color-border); margin: 0 auto;
}

.visually-hidden {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px 48px;
  background: rgba(243, 233, 225, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 58px; display: block; }
.nav-links { display: flex; gap: 32px; flex-wrap: wrap; }
.nav-links a {
  font-family: var(--font-body); font-weight: 500; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  color: var(--ink);
}
.nav-links a:hover { color: var(--wine-deep); }

@media (max-width: 900px) {
  .nav { flex-direction: column; gap: 16px; padding: 16px 20px; }
  .nav-links { gap: 18px; justify-content: center; }
  .nav-logo img { height: 44px; }
  html { scroll-padding-top: 150px; }
}

/* ============ HERO ============ */
.hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 110px 24px 90px;
}
.hero-names { width: min(320px, 70vw); display: block; }
.hero-illustration { width: min(440px, 80vw); display: block; margin-top: 40px; }
.hero-date { margin-top: 44px; }
.hero-venues {
  font-family: var(--font-body); font-weight: 400; font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); margin-top: 12px;
}

/* ============ SECTIONS ============ */
.section {
  padding: 90px 24px;
  display: flex; flex-direction: column; align-items: center;
}
.section--last { padding-bottom: 110px; }
.section h2 {
  font-family: var(--font-body); font-weight: 500; font-size: 1.35rem;
  letter-spacing: 0.3em; text-transform: uppercase; line-height: 1.2;
  color: var(--wine-deep); margin: 0 0 12px;
}
.section-rule { width: 120px; height: 1px; background: var(--wine-deep); margin-bottom: 64px; }
.section-rule--tight { margin-bottom: 24px; }

/* ============ ON THE DAY ============ */
.day-stack {
  display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center;
}
.day-times {
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: center;
}
.day-divider { width: 1px; height: 56px; background: var(--color-border); }
.day-note { max-width: 440px; margin-bottom: 28px; }
.dress-note { margin-top: 28px; max-width: 440px; margin-left: auto; margin-right: auto; }

/* ============ VENUE & MAP ============ */
.venue-grid {
  display: grid; grid-template-columns: 1fr 1px 1fr; gap: 0 56px;
  width: min(1080px, 100%); align-items: start;
}
.venue-col {
  display: flex; flex-direction: column; gap: 14px; text-align: center; padding: 8px 0;
}
.venue-name {
  font-family: var(--font-body); font-weight: 500; font-size: 15px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink);
}
.venue-address { font: var(--text-body-md); color: var(--ink-soft); line-height: 1.7; min-height: 84px; }
.venue-col iframe {
  width: 100%; height: 280px; border: 1px solid var(--color-border);
  filter: sepia(0.18) saturate(0.85); margin-top: 10px;
}
.venue-divider-v { background: var(--color-border); align-self: stretch; }
.link-caps {
  font-family: var(--font-body); font-weight: 500; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
}

@media (max-width: 800px) {
  .venue-grid { grid-template-columns: 1fr; gap: 48px; }
  .venue-divider-v { display: none; }
  .venue-address { min-height: 0; }
}

/* ============ RSVP ============ */
.rsvp-intro { font: var(--text-body-md); color: var(--ink-soft); margin-bottom: 56px; text-align: center; }
.rsvp-form { width: min(560px, 100%); display: flex; flex-direction: column; gap: 36px; }
.field { display: block; }
.field-label {
  display: block; font-family: var(--font-body); font-weight: 500; font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px;
}
.field-label .req { color: var(--red-claret); }
.field-input, .field-textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: transparent; border: none; border-bottom: 1px solid var(--wine-deep);
  padding: 10px 2px; outline: none; border-radius: 0;
}
.field-input:focus, .field-textarea:focus { border-bottom-color: var(--color-focus-ring); }
.field-textarea { resize: vertical; }

.attend-label {
  display: block; font-family: var(--font-body); font-weight: 500; font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px;
}
.attend-chips { display: flex; gap: 14px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-body); font-weight: 500; font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; padding: 13px 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--wine-deep);
  background: transparent; color: var(--wine-deep);
  transition: background 0.2s, color 0.2s;
}
.chip.is-selected { background: var(--wine-deep); color: var(--cream-paper); }
/* After submitting, the choice stays legible but is no longer interactive. */
.chip:disabled { cursor: default; opacity: 1; }
.chip:disabled:not(.is-selected) { opacity: 0.45; }
.field-input:read-only, .field-textarea:read-only { color: var(--ink-soft); border-bottom-color: var(--color-border); }

.rsvp-actions { display: flex; justify-content: center; margin-top: 8px; }
.btn-primary {
  min-width: 200px; height: 52px; padding: 0 40px;
  font-family: var(--font-body); font-weight: 500; font-size: 13px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream-paper); background: var(--wine-deep);
  border: 1px solid var(--wine-deep); border-radius: 999px;
  cursor: pointer; transition: background 0.2s, color 0.2s;
}
.btn-primary:hover { background: var(--plum-black); border-color: var(--plum-black); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }

.rsvp-thanks { padding: 24px 0; width: min(560px, 100%); text-align: center; }
.rsvp-thanks img { width: 64px; display: block; margin: 0 auto 24px; }
.rsvp-thanks .thanks-line { font-family: var(--font-script); font-size: 2.4rem; color: var(--wine-deep); }
.rsvp-thanks .thanks-body { font: var(--text-body-md); color: var(--ink-soft); margin-top: 16px; text-wrap: pretty; }
.rsvp-error { font: var(--text-body-md); color: var(--red-claret); text-align: center; margin: 0; }

/* ============ ACCORDION (parking + FAQ) ============ */
.accordion { display: flex; flex-direction: column; width: min(720px, 100%); }
.accordion-item { border-bottom: 1px solid var(--color-border); }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 8px; background: transparent; border: none; cursor: pointer; text-align: left;
}
.accordion--faq .accordion-trigger { padding: 26px 8px; }
.accordion-trigger .label {
  font-family: var(--font-body); font-weight: 500; font-size: 14px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
}
.accordion-trigger .glyph {
  font-family: var(--font-body); font-weight: 400; font-size: 22px; line-height: 1;
  color: var(--wine-deep); flex-shrink: 0;
}
.accordion-panel { overflow: hidden; max-height: 0; transition: max-height 320ms cubic-bezier(0.4, 0, 0.2, 1); }
.accordion-item.is-open .accordion-panel { max-height: 800px; }
.accordion-panel-inner {
  padding: 0 8px 26px; max-width: 640px; display: flex; flex-direction: column; gap: 14px;
}
.accordion--faq .accordion-panel-inner { padding: 0 8px 30px; max-width: 620px; }
.bullet { display: flex; gap: 12px; font: var(--text-body-md); color: var(--ink-soft); text-wrap: pretty; }
.bullet .dot { color: var(--wine-deep); flex-shrink: 0; }
.bullet strong, .accordion-panel-inner strong { font-weight: 500; color: var(--ink); }

/* ============ TRAVEL & STAY ============ */
.travel-intro {
  width: min(720px, 100%); display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px;
}
.travel-outro { width: min(720px, 100%); }
.stay-divider { width: min(560px, 80%); height: 1px; background: var(--color-border); margin: 56px 0; }
.stay-heading { width: min(720px, 100%); margin-bottom: 16px; }
.stay-intro { width: min(720px, 100%); margin-bottom: 28px; }
.hotel-list { display: flex; flex-direction: column; width: min(720px, 100%); }
.hotel-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 22px 8px; border-bottom: 1px solid var(--color-border); flex-wrap: wrap;
}
.hotel-row .hotel-name {
  font-family: var(--font-body); font-weight: 500; font-size: 15px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); text-decoration: none;
}
.hotel-row .hotel-name:hover { color: var(--wine-deep); }

/* ============ FAQ ILLUSTRATION ============ */
.faq-illustration { width: min(360px, 70vw); margin-top: 90px; display: block; }

/* ============ FOOTER ============ */
.footer {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  padding: 70px 24px 90px; border-top: 1px solid var(--color-border); text-align: center;
}
.footer img { width: 56px; display: block; }
.footer-date {
  font-family: var(--font-body); font-weight: 500; font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .accordion-panel, .chip, .btn-primary { transition: none; }
}
