/* ==========================================================================
   Kayla & Alex Toor — Wedding Website
   Sage green, dusty blue, ivory, forest/emerald. Quiet and sincere.
   ========================================================================== */

/* ==========================================================================
   Color palette — kept intentionally small and reused everywhere:
   --forest       the one dark green. All headings, body copy, primary
                  buttons, links, and the dark section background.
   --sage         the one medium sage. Bold surfaces (pay-cards, accents).
   --sage-deep    a darker sage, used only for small-caps labels/eyebrows.
   --sage-tint    pale sage. Light card/surface backgrounds.
   --dusty-blue        the one medium dusty blue. Bold surfaces (pay-cards, accents).
   --dusty-blue-deep   a deeper blue, used only for hover/active states + links.
   --blue-tint         pale dusty blue. Light card/surface backgrounds.
   --ivory        the neutral page canvas. Used minimally, never as a "card".
   --white        reserved for text sitting on dark or saturated backgrounds.
   ========================================================================== */
:root {
  --forest: #1d3b24;
  --forest-deep: var(--forest);
  --sage: #a3a67e;
  --sage-deep: #767a52;
  --sage-tint: #e6e9d7;
  --dusty-blue: #93a8c4;
  --dusty-blue-deep: #5f7a9c;
  --blue-tint: #dfe8ef;
  --ivory: #f6f2e7;
  --ivory-deep: #ece4d2;
  --white: #ffffff;
  --ink: var(--forest);
  --ink-soft: #4c5c47;
  --shadow: 0 8px 24px rgba(29, 59, 36, 0.08);
  --radius: 14px;
  --serif: 'Fraunces', 'Playfair Display', Georgia, serif;
  --sans: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  --script: 'Pinyon Script', cursive;
  --sidebar-w: 250px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--dusty-blue-deep); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--forest-deep); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.15; font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--page-accent, var(--sage-deep));
  display: block;
  margin-bottom: .8em;
}

.container { max-width: 1000px; margin: 0 auto; padding: 0 28px; }
section { padding: 60px 0; }

/* ---------- Layout shell: sidebar + main ---------- */
.site-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--ivory-deep);
  border-right: 1px solid #ddd3ba;
  color: var(--ink);
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar .brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--forest-deep);
  line-height: 1.2;
  margin-bottom: 4px;
}
.sidebar .brand-sub {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 40px;
  display: block;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-links a {
  color: var(--ink);
  font-size: .92rem;
  font-weight: 400;
  letter-spacing: .01em;
  padding: 9px 2px;
  display: block;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--forest); }
.nav-links a.active { color: var(--forest-deep); font-weight: 700; border-bottom-color: var(--sage); }

.sidebar-footer {
  font-size: .78rem;
  color: var(--ink-soft);
  line-height: 1.6;
  border-top: 1px solid #ddd3ba;
  padding-top: 18px;
}
.sidebar-footer a { color: var(--ink-soft); text-decoration: underline; }

.nav-toggle {
  display: none;
  background: var(--ivory-deep);
  color: var(--forest-deep);
  border: none;
  border-bottom: 1px solid #ddd3ba;
  font-size: 1rem;
  font-family: var(--serif);
  padding: 16px 24px;
  cursor: pointer;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.main-content { flex: 1; min-width: 0; }

@media (max-width: 900px) {
  .site-shell { flex-direction: column; }
  .sidebar {
    position: sticky;
    height: auto;
    width: 100%;
    padding: 0;
    flex-direction: column;
  }
  .nav-toggle { display: flex; }
  .sidebar-inner {
    display: none;
    padding: 20px 26px 30px;
  }
  .sidebar-inner.open { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  cursor: pointer;
  border: 1.5px solid var(--forest);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-block { display: block; width: 100%; text-align: center; }

/* Buttons are all-caps on the home page only (not payment cards, which use h4) */
body[data-page="home"] .btn { text-transform: uppercase; }

/* Idle: light green. Hover: dusty blue. Active/click: deep green. */
.btn-primary { background: var(--sage); border-color: var(--sage); color: var(--forest); }
.btn-primary:hover { background: var(--dusty-blue-deep); border-color: var(--dusty-blue-deep); color: var(--white); }
.btn-primary:active { background: var(--forest); border-color: var(--forest); color: var(--white); }

.btn-outline { background: transparent; color: var(--forest); }
.btn-outline:hover { background: var(--dusty-blue-deep); border-color: var(--dusty-blue-deep); color: var(--white); }
.btn-outline:active { background: var(--forest); border-color: var(--forest); color: var(--white); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-row.center { justify-content: center; }

/* ---------- Cards / panels ---------- */
.card { background: var(--sage-tint); border: 1px solid var(--ivory-deep); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.section-title { margin-bottom: 36px; max-width: 620px; }
.section-title p { color: var(--ink-soft); }

.placeholder-note {
  background: var(--white);
  border: 1px dashed var(--dusty-blue);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: .84rem;
  color: var(--dusty-blue-deep);
  margin: 16px 0;
}
.placeholder-note strong { color: var(--forest-deep); }

/* ---------- Leafy corner frame around the home page photo(s) ---------- */
.big-photo-row { display: flex; gap: 36px; justify-content: center; flex-wrap: wrap; }
.big-photo-frame { position: relative; max-width: 420px; flex: 1 1 320px; margin: 0 auto; }
.corner-flourish {
  position: absolute; width: 130px; height: 130px; pointer-events: none;
  overflow: visible;
}
.corner-flourish .cf-vine { fill: none; stroke: var(--sage-deep); stroke-width: 1.4; stroke-linecap: round; }
.corner-flourish .cf-leaves { fill: var(--sage); }
.corner-flourish .cf-berries { fill: var(--forest); }
.corner-flourish .cf-petals { fill: var(--dusty-blue-deep); }
.corner-flourish .cf-center { fill: var(--forest); }

.corner-flourish.tl { top: -18px; left: -18px; }
.corner-flourish.tr { top: -18px; right: -18px; transform: scaleX(-1); }
.corner-flourish.bl { bottom: -18px; left: -18px; transform: scaleY(-1); }
.corner-flourish.br { bottom: -18px; right: -18px; transform: scale(-1, -1); }

@media (max-width: 600px) {
  .corner-flourish { width: 84px; height: 84px; }
  .corner-flourish.tl, .corner-flourish.tr { top: -12px; }
  .corner-flourish.bl, .corner-flourish.br { bottom: -12px; }
  .corner-flourish.tl, .corner-flourish.bl { left: -12px; }
  .corner-flourish.tr, .corner-flourish.br { right: -12px; }
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 44px; border-bottom: 1px solid var(--ivory-deep); }
.hero .date { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; margin-top: 8px; color: var(--forest); }
.hero p.lead { max-width: 580px; font-size: 1.05rem; margin-top: 16px; color: var(--ink-soft); }

/* ---------- Timeline (Our Story) ---------- */
.timeline { list-style: none; position: relative; max-width: 720px; margin: 0 auto; padding-left: 40px; border-left: 2px solid var(--ivory-deep); }
.timeline-item { position: relative; padding: 0 0 30px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -46px; top: 9px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--sage); border: 3px solid var(--ivory);
  box-shadow: var(--shadow);
}
.timeline-item:nth-child(even)::before { background: var(--dusty-blue); }
.timeline-item .tdate {
  display: inline-block; font-family: var(--sans); font-weight: 700;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; margin-bottom: 12px;
  background: var(--sage-tint); color: var(--sage-deep);
}
.timeline-item:nth-child(even) .tdate { background: var(--blue-tint); color: var(--dusty-blue-deep); }
.timeline-item .card { margin-top: 2px; }
.timeline-item:nth-child(odd) .card { border-top: 4px solid var(--sage-tint); }
.timeline-item:nth-child(even) .card { border-top: 4px solid var(--blue-tint); }
.timeline-item .card h3 { margin-bottom: .5em; }
.timeline-item .card p { margin: 0 0 1em; }
.timeline-item .card p:last-of-type { margin-bottom: 0; }
.timeline-item .placeholder-note { margin: 14px 0; }

/* Collapsible timeline cards (native <details>/<summary>, no JS needed) */
.timeline-item .card summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.timeline-item .card summary::-webkit-details-marker { display: none; }
.timeline-item .card summary h3 { margin-bottom: 0; }
.timeline-item .card summary::after {
  content: '';
  flex-shrink: 0;
  width: 9px; height: 9px;
  border-right: 2px solid var(--sage-deep);
  border-bottom: 2px solid var(--sage-deep);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.timeline-item .card[open] summary::after { transform: rotate(-135deg); }
.timeline-item:nth-child(even) .card summary::after { border-color: var(--dusty-blue-deep); }
.timeline-item .card summary:hover h3 { color: var(--dusty-blue-deep); }
.timeline-item .card summary:focus-visible { outline: 2px solid var(--dusty-blue); outline-offset: 4px; }
.timeline-item .card[open] summary { margin-bottom: 4px; }

/* Multiple Instagram embeds sitting side by side within one story entry */
.ig-embed-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; }
.ig-embed-row .ig-embed-wrap { flex: 1 1 260px; margin-top: 0; max-width: 100%; }

.story-arrow { color: var(--sage-deep); font-weight: 700; }

/* Small leafy divider under a hero title */
.story-divider { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 20px 0 0; }
body[data-page="story"] .story-divider { margin-left: auto; margin-right: auto; }
.story-divider .sd-line { width: 60px; height: 1px; background: var(--ivory-deep); }
.story-divider svg { width: 20px; height: 20px; fill: var(--sage-deep); flex-shrink: 0; }

/* ---------- Galleries ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-top: 6px; }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.gallery-grid figure {
  margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--blue-tint);
  display: flex; align-items: center; justify-content: center;
  color: var(--sage-deep); font-family: var(--serif); font-size: .9rem; text-align: center;
  box-shadow: var(--shadow);
}
.gallery-grid figure:not(:has(img)) { aspect-ratio: 4/5; }
.gallery-grid figure img { width: 100%; height: auto; display: block; cursor: zoom-in; transition: opacity .15s ease; }
.gallery-grid figure img:hover { opacity: .88; }

/* ---------- Lightbox ---------- */
.lightbox-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(20, 26, 20, .92); align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 88vh; width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox-close {
  position: absolute; top: 20px; right: 28px; background: none; border: none;
  color: var(--white); font-size: 2.2rem; line-height: 1; cursor: pointer; padding: 6px 10px;
}
.lightbox-close:hover { opacity: .8; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); border: none; border-radius: 50%;
  color: var(--white); font-size: 2.4rem; line-height: 1; cursor: pointer;
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,.22); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
@media (max-width: 600px) {
  .lightbox-nav { width: 42px; height: 42px; font-size: 1.9rem; }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
}

.photographer-box {
  display: flex; gap: 22px; align-items: center;
  background: var(--sage-tint); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px; margin-bottom: 40px; flex-wrap: wrap;
}
.photographer-box .avatar {
  width: 80px; height: 80px; border-radius: 50%; background: var(--blue-tint);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  color: var(--sage-deep); font-family: var(--serif); font-size: .85rem;
}

/* ---------- Big hero photo (home page) ---------- */
.big-photo {
  aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden;
  background: var(--blue-tint); border: 1px solid var(--dusty-blue);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); font-family: var(--serif); font-size: 1.05rem; text-align: center;
}
.big-photo.placeholder { padding: 20px; }
.big-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }

/* ---------- Forms ---------- */
form.stack { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: .82rem; letter-spacing: .01em; color: var(--forest-deep); }
.field .hint { font-size: .78rem; color: var(--ink-soft); }

input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  font-family: var(--sans); font-size: 1rem; padding: 11px 14px;
  border: 1.5px solid var(--ivory-deep); border-radius: 8px; background: var(--white); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--dusty-blue); border-color: var(--dusty-blue); }
textarea { min-height: 100px; resize: vertical; }

.radio-row { display: flex; gap: 22px; flex-wrap: wrap; }
.radio-row label { font-weight: 500; display: flex; align-items: center; gap: 8px; }

.form-msg { padding: 13px 16px; border-radius: 8px; font-size: .88rem; display: none; }
.form-msg.success { background: var(--sage-tint); color: var(--forest); display: block; }
.form-msg.error { background: #f7e8e4; color: #7a3a23; display: block; }

/* ---------- Contribution / payment link cards ---------- */
.pay-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin: 6px 0 0; }
@media (max-width: 760px) { .pay-options { grid-template-columns: repeat(2, 1fr); } }
.pay-card {
  background: var(--dusty-blue); border: 1.5px solid transparent; border-radius: var(--radius);
  padding: 20px 14px; text-align: center; display: flex; align-items: center; justify-content: center;
  min-height: 68px; transition: filter .15s ease, transform .15s ease;
}
.pay-card:nth-child(even) { background: var(--sage); }
.pay-card:hover { filter: brightness(.94); transform: translateY(-1px); }
.pay-card h4 { margin: 0; font-family: var(--serif); font-size: 1.05rem; color: var(--forest); font-weight: 700; }

/* ---------- Registry / honeymoon fund items ---------- */
.fund-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .fund-grid { grid-template-columns: 1fr; } }
.fund-item { background: var(--sage-tint); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.fund-item .price { color: var(--dusty-blue-deep); font-family: var(--serif); font-size: 1.15rem; margin: 4px 0 10px; }
.fund-item .port-tag {
  display: inline-block; font-family: var(--sans); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--sage-deep); font-weight: 700; margin-bottom: 6px;
}

/* ---------- Shared guest book messages ---------- */
.shared-message-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .shared-message-grid { grid-template-columns: 1fr; } }
.shared-message {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 24px;
}
.shared-message-text {
  font-family: var(--serif); font-style: italic; color: var(--ink-soft);
  font-size: .98rem; margin: 0 0 10px;
}
.shared-message-name {
  font-family: var(--sans); font-weight: 700; font-size: .8rem;
  letter-spacing: .04em; color: var(--sage-deep); margin: 0;
}

/* ---------- Contact card ---------- */
.vcard-box {
  background: var(--blue-tint); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 40px; text-align: center; max-width: 460px; margin: 0 auto;
}
.vcard-box .name { font-family: var(--serif); font-size: 1.7rem; }
.vcard-box dl { text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 22px 0; font-size: .95rem; }
.vcard-box dt { color: var(--dusty-blue-deep); font-weight: 700; }

footer {
  text-align: center; padding: 44px 24px; color: var(--ink-soft); font-size: .84rem;
  border-top: 1px solid var(--ivory-deep); margin-top: 20px;
}
footer .brand-mini { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--forest-deep); display: block; margin-bottom: 6px; }
footer .footer-tagline { display: block; margin-top: 14px; }

/* ---------- Timeline photos: the real photo + real caption, in our own
   styling (no Instagram widget/branding). A link back to the original post
   is always kept. ---------- */
.story-photo { margin-top: 16px; max-width: 100%; }
.story-photo .photo-box {
  aspect-ratio: 4/5; border-radius: var(--radius); background: var(--blue-tint);
  border: 1px solid var(--ivory-deep); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  color: var(--sage-deep); font-family: var(--serif); font-size: .82rem; text-align: center;
  padding: 18px;
}
.story-photo img {
  display: block; width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--ivory-deep);
}
.story-photo figcaption { margin: 10px 0 0; }
.story-photo .photo-caption {
  font-family: var(--serif); font-style: italic; color: var(--ink-soft);
  font-size: .95rem; margin: 0 0 6px;
}
.ig-fallback-link {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--dusty-blue-deep); margin-top: 6px;
}
.source-tag {
  display: block; font-size: .74rem; color: var(--ink-soft); margin-top: 4px; font-style: italic;
}

.caption-kicker {
  font-family: var(--sans); font-weight: 700; font-style: normal;
  color: var(--sage-deep); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  margin: 20px 0 8px;
}
.timeline-item:nth-child(even) .caption-kicker { color: var(--dusty-blue-deep); }

.story-photo-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 16px; }
.story-photo-row .story-photo { margin-top: 0; flex: 1 1 280px; max-width: 100%; }

/* Scrollable photo carousel, for cards with many photos from one post */
.story-carousel {
  display: flex; gap: 16px; margin-top: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 12px; -webkit-overflow-scrolling: touch;
}
.story-carousel .story-photo {
  margin-top: 0; flex: 0 0 240px; scroll-snap-align: start;
}
.story-carousel .story-photo img { aspect-ratio: 4/5; object-fit: cover; }
.story-carousel::-webkit-scrollbar { height: 6px; }
.story-carousel::-webkit-scrollbar-track { background: var(--ivory-deep); border-radius: 3px; }
.story-carousel::-webkit-scrollbar-thumb { background: var(--sage-deep); border-radius: 3px; }
.timeline-item:nth-child(even) .story-carousel::-webkit-scrollbar-thumb { background: var(--dusty-blue-deep); }
.carousel-hint {
  font-size: .74rem; color: var(--ink-soft); font-style: italic; margin: -6px 0 0;
}

/* ---------- Script accent (used occasionally, not for body copy) ---------- */
.script-accent {
  font-family: var(--script);
  font-weight: 400;
  color: var(--forest);
}
h1 .script-accent { font-size: 1.4em; line-height: 1; }

/* ---------- Colored section backgrounds ---------- */
.section-tint-sage { background: var(--sage-tint); }
.section-tint-blue { background: var(--blue-tint); }
.section-color-blue { background: var(--dusty-blue); }
.section-color-sage { background: var(--sage); }

.section-dark {
  background: var(--forest-deep);
  color: var(--ivory);
}
.section-dark .eyebrow { color: var(--sage); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--ivory); }
.section-dark .section-title p, .section-dark p { color: var(--ivory-deep); }
.section-dark .placeholder-note {
  background: rgba(255, 255, 255, .06); border-color: var(--sage); color: var(--ivory-deep);
}
.section-dark .placeholder-note strong { color: var(--ivory); }
.section-dark .btn-outline { color: var(--ivory); border-color: var(--ivory); }
.section-dark .btn-outline:hover { background: var(--dusty-blue-deep); border-color: var(--dusty-blue-deep); color: var(--white); }
.section-dark .btn-outline:active { background: var(--forest); border-color: var(--ivory); color: var(--ivory); }
.section-dark .btn-primary { background: var(--ivory); border-color: var(--ivory); color: var(--forest); }
.section-dark .btn-primary:hover { background: var(--dusty-blue-deep); border-color: var(--dusty-blue-deep); color: var(--white); }
.section-dark .btn-primary:active { background: var(--forest); border-color: var(--ivory); color: var(--ivory); }
.section-dark .hint { color: var(--sage-tint); opacity: .8; }

/* Payment card labels stay deep green even inside .section-dark (higher
   specificity than the .section-dark h4 rule above, so it wins). */
.section-dark .pay-card h4 { color: var(--forest); }

/* "Up next" narrative copy reads better in ivory against the bold blue panel */
.section-color-blue .section-title p { color: var(--ivory); }

.card-accent-sage { border-top: none; }
.card-accent-blue { border-top: none; }

/* ---------- Home page: centered hero ---------- */
body[data-page="home"] .hero { text-align: center; }
body[data-page="home"] .hero .lead { margin-left: auto; margin-right: auto; }
body[data-page="home"] .hero .btn-row { justify-content: center; }

/* ---------- Our Story page: centered hero ---------- */
body[data-page="story"] .hero { text-align: center; }
body[data-page="story"] .hero .lead { margin-left: auto; margin-right: auto; }

/* ---------- Mini gallery previews (home page teaser cards) ---------- */
.mini-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.mini-gallery figure {
  margin: 0; aspect-ratio: 4/5; border-radius: 8px; background: var(--blue-tint);
  border: 1px solid var(--ivory-deep); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: .72rem; color: var(--sage-deep); text-align: center;
}
.mini-gallery figure img { width: 100%; height: 100%; object-fit: cover; }
.card-accent-blue .mini-gallery figure { background: var(--sage-tint); }

/* ---------- Per-page accent (subtle, not loud) ---------- */
body[data-page="home"]        { --page-accent: var(--forest); }
body[data-page="story"]       { --page-accent: var(--dusty-blue-deep); }
body[data-page="engagement"]  { --page-accent: var(--sage-deep); }
body[data-page="wedding"]     { --page-accent: var(--sage-deep); }
body[data-page="guestbook"]   { --page-accent: var(--dusty-blue-deep); }
body[data-page="registry"]    { --page-accent: var(--forest); }
body[data-page="contact"]     { --page-accent: var(--dusty-blue-deep); }

/* ---------- Full-page submission success overlay ---------- */
.success-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  background: var(--forest);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease;
}
.success-overlay.open { opacity: 1; visibility: visible; }
.success-overlay-inner { max-width: 480px; }
.success-overlay .eyebrow { color: var(--sage); font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; }
.success-overlay h2 { font-family: var(--serif); font-size: 2.1rem; color: var(--ivory); margin: 0 0 16px; }
.success-overlay-message { font-family: var(--sans); font-size: 1.05rem; color: var(--ivory-deep); margin: 0 0 32px; }
.success-overlay .btn-primary { background: var(--ivory); border-color: var(--ivory); color: var(--forest); }
.success-overlay .btn-primary:hover { background: var(--dusty-blue-deep); border-color: var(--dusty-blue-deep); color: var(--white); }
@media (max-width: 600px) {
  .success-overlay h2 { font-size: 1.6rem; }
}
