/* =========================================================
   SIMPLE TRADITIONAL WEDDING RSVP DESIGN SYSTEM
   Limited warm neutral + sage palette, pure sans-serif
   ========================================================= */
:root {
  --bg: #faf8f5;
  --bg-tinted: #f3efe9;
  --surface: #ffffff;
  --border: #e5e0d8;
  --border-strong: #d4cdc2;
  --text: #22201e;
  --muted: #6c675f;
  --accent: #4f6354;
  --accent-hover: #3d4e42;
  --accent-soft: #eef2ef;
  --error: #a64b42;
  --font-display: "Jost", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 10px;
  --shadow-sm: 0 2px 10px rgba(34, 32, 30, 0.04);
  --shadow-md: 0 12px 32px rgba(34, 32, 30, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* =========================================================
   TYPOGRAPHY & SHARED SURFACES
   ========================================================= */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.kicker {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.8rem;
}

.amp {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--accent);
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.45rem);
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: var(--text);
  margin: 0 0 0.9rem;
}

.section-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 0 1.75rem;
}

.muted,
.note-muted {
  color: var(--muted);
}

.note-muted {
  font-size: 0.9rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.pill-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.95rem;
}

/* Buttons */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 1.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  border: 1px solid var(--accent);
  color: #ffffff;
  background-color: var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.full-width {
  width: 100%;
}

/* =========================================================
   PASSCODE LOCK SCREEN
   ========================================================= */
.lock-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: var(--bg);
}

.lock-card {
  width: 100%;
  max-width: 440px;
  padding: 3.25rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.lock-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.65rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin: 0.35rem 0 0.5rem;
  color: var(--text);
}

.lock-date {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2.25rem;
}

.passcode-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.passcode-form input {
  text-align: center;
}

.error-msg {
  color: var(--error);
  font-size: 0.88rem;
  font-weight: 500;
  min-height: 1.3rem;
  margin: 0.9rem 0 0;
}

/* =========================================================
   HEADER & NAVIGATION
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: var(--text);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-rsvp-pill {
  color: #ffffff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  background-color: var(--accent);
  border: 1px solid var(--accent);
  transition: background-color 0.2s ease, border-color 0.2s ease !important;
}

.nav-rsvp-pill:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--text);
  display: block;
}

/* =========================================================
   1. HERO SECTION
   ========================================================= */
.hero-section {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 4.5rem 0 5.5rem;
  background-color: var(--bg);
}

.hero-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 0.35rem 0 1.5rem;
}

.hero-amp {
  display: block;
  font-size: 0.52em;
  line-height: 1.35;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 200px;
  margin: 0 auto 1.75rem;
}

.hero-divider::before,
.hero-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--border-strong);
}

.hero-divider span {
  width: 6px;
  height: 6px;
  margin: 0 0.85rem;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}

.hero-lead {
  color: var(--muted);
  max-width: 520px;
  font-size: 1.06rem;
  margin: 0 0 2.5rem;
}

/* Clean Minimal Countdown Strip */
.countdown-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  max-width: 460px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
}

.count-cell {
  padding: 1rem 0.5rem;
  border-right: 1px solid var(--border);
}

.count-cell:last-child {
  border-right: none;
}

.count-cell span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.count-cell small {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* =========================================================
   EDITORIAL SECTIONS
   ========================================================= */
.section-block {
  padding: 5.5rem 0;
}

.section-border-top {
  border-top: 1px solid var(--border);
}

.section-tinted {
  background-color: var(--bg-tinted);
}

.editorial-split {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 3.5rem;
  align-items: start;
}

.split-sticky {
  position: sticky;
  top: 104px;
}

/* 2. Timeline List */
.timeline-list {
  border-top: 1px solid var(--border);
}

.timeline-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.timeline-time {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.2rem;
}

.timeline-body h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  margin: 0 0 0.3rem;
  color: var(--text);
}

.timeline-body p {
  margin: 0;
  color: var(--muted);
}

/* 3. Location & Travel */
.section-header-inline {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 1.5rem;
}

.feature-venue {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 3px solid var(--accent);
}

.feature-venue h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  margin: 0 0 0.6rem;
}

.venue-address {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 1rem;
}

.travel-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.travel-item {
  padding: 1.45rem 1.75rem;
}

.travel-item h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  margin: 0 0 0.3rem;
}

.travel-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* 4. Places to Stay */
.stay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.stay-card {
  padding: 1.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.stay-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.stay-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 0.3rem;
}

.stay-addr {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 0.7rem;
}

/* 5. Details */
.details-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.accent-card {
  padding: 2rem;
  border-left: 3px solid var(--accent);
}

.accent-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0 0 0.6rem;
}

.accent-card p {
  margin: 0;
  color: var(--muted);
}

.detail-row {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.detail-row h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 0.3rem;
}

.detail-row p {
  margin: 0;
}

/* 6. Presents */
.presents-banner {
  padding: 3.5rem 2.5rem;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.presents-copy {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
}

/* 7. FAQs (Minimal Hairline Accordion) */
.faq-list {
  border-top: 1px solid var(--border-strong);
}

.faq-item {
  border-bottom: 1px solid var(--border-strong);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 500;
  text-align: left;
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-plus {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.2s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  color: var(--muted);
}

.faq-item.open .faq-answer {
  max-height: 240px;
  padding-bottom: 1.4rem;
}

.faq-answer p {
  margin: 0;
}

/* 8. RSVP FORM */
.rsvp-container {
  max-width: 640px;
}

.rsvp-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.rsvp-header .section-sub {
  margin: 0 auto;
}

.rsvp-form {
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-field {
  margin-bottom: 1.6rem;
  border: none;
  padding: 0;
}

.form-field label,
.form-field legend {
  display: block;
  font-weight: 500;
  font-size: 0.94rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.req {
  color: var(--accent);
}

input[type="text"],
input[type="password"],
textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: #9b958c;
}

input:focus,
textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 99, 84, 0.14);
}

.field-hint {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.segmented-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.segment-option {
  cursor: pointer;
  position: relative;
}

.segment-option input {
  position: absolute;
  opacity: 0;
}

.segment-card {
  display: block;
  padding: 1rem 1.15rem;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.segment-card:hover {
  border-color: var(--accent);
}

.segment-card strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.segment-card small {
  color: var(--muted);
  font-size: 0.82rem;
}

.segment-option input:focus-visible + .segment-card {
  box-shadow: 0 0 0 3px rgba(79, 99, 84, 0.2);
}

.segment-option input:checked + .segment-card {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent);
}

.rsvp-status {
  margin-top: 1.25rem;
  text-align: center;
  font-weight: 500;
}

.rsvp-status.success {
  color: var(--accent);
}

.rsvp-status.error {
  color: var(--error);
}

/* =========================================================
   FOOTER & RESPONSIVE
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  background-color: var(--bg-tinted);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-display);
}

.footer-names {
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  color: var(--text);
}

.footer-meta {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 860px) {
  .editorial-split,
  .location-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .split-sticky {
    position: static;
  }
}

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

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    gap: 1.15rem;
  }

  .nav-links.open {
    display: flex;
  }

  .segmented-grid {
    grid-template-columns: 1fr;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .rsvp-form {
    padding: 1.75rem 1.35rem;
  }

  .section-block {
    padding: 4rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* =========================================================
   CMS MULTILINE TEXT & OPTIONAL HERO PHOTO
   ========================================================= */
.section-sub,
.venue-address {
  white-space: pre-line;
}

.hero-photo-wrap {
  width: 184px;
  height: 184px;
  margin: 0 auto 1.75rem;
  border-radius: 50%;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
