/* ============================================================
   COLOURS & FONTS — change these to restyle the whole site
   ============================================================ */
:root {
  --navy:     #14213D;   /* deep navy: text, frames */
  --navy-2:   #1D2E52;
  --gold:     #C9A227;   /* deco gold */
  --gold-2:   #E0BE4A;
  --lemon:    #F6E3A1;   /* pastel yellow */
  --cream:    #F7F1E1;   /* page background */
  --cream-2:  #EFE5CC;
  --white:    #FFFDF7;
  --green:    #1F4D3A;   /* deep green band */
  --sea:      #2E6E8E;   /* the water */
  --whatsapp: #1E7F52;

  --display: 'Limelight', 'Poiret One', Georgia, serif;
  --script:  'Great Vibes', 'Snell Roundhand', cursive;
  --deco:    'Poiret One', 'Limelight', Georgia, serif;
  --body:    'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1040px;
  --topbar-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--navy);
  background: var(--cream);
}

img, svg { display: block; max-width: 100%; }
a { color: var(--navy); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.1; }
h3 { font-family: var(--deco); font-size: 1.5rem; font-weight: 700; letter-spacing: .04em; }
h3 small { display: block; font-family: var(--body); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; margin-top: .3em; opacity: .8; font-weight: 700; }
strong { font-weight: 700; }
small { font-size: .875em; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin: 0 auto; }
.wrap-narrow { max-width: 640px; }

/* ---------- Buttons: rectangular, tracked, deco ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 22px;
  font: 700 .85rem/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  border: 2px solid var(--navy); border-radius: 2px; cursor: pointer;
  color: var(--navy); background: var(--white);
  box-shadow: 4px 4px 0 var(--gold);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover, .btn:focus-visible { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--gold); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--gold); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-primary { background: var(--navy); color: var(--lemon); }
.btn-big { font-size: .95rem; padding: 14px 28px; }
.btn-ghost { background: transparent; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; border-color: var(--whatsapp); }
.btn-whatsapp::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 2a8 8 0 1 1-4.1 14.9l-.3-.2-3 .8.8-2.9-.2-.3A8 8 0 0 1 12 4zm-3.3 4.2c-.2 0-.5 0-.7.3-.3.3-1 1-1 2.4s1 2.8 1.2 3c.1.2 2 3.2 5 4.4 2.5 1 3 .8 3.5.7.5 0 1.7-.7 2-1.4.2-.7.2-1.2.1-1.4l-.5-.3-2-1c-.3-.1-.5-.1-.7.2l-1 1.2c-.2.2-.3.2-.6.1-.3-.2-1.2-.5-2.3-1.5-.9-.8-1.5-1.7-1.6-2-.2-.3 0-.4.1-.6l.4-.5.3-.5c.1-.2 0-.4 0-.5l-.9-2.2c-.2-.5-.4-.5-.6-.5h-.7z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 2a8 8 0 1 1-4.1 14.9l-.3-.2-3 .8.8-2.9-.2-.3A8 8 0 0 1 12 4zm-3.3 4.2c-.2 0-.5 0-.7.3-.3.3-1 1-1 2.4s1 2.8 1.2 3c.1.2 2 3.2 5 4.4 2.5 1 3 .8 3.5.7.5 0 1.7-.7 2-1.4.2-.7.2-1.2.1-1.4l-.5-.3-2-1c-.3-.1-.5-.1-.7.2l-1 1.2c-.2.2-.3.2-.6.1-.3-.2-1.2-.5-2.3-1.5-.9-.8-1.5-1.7-1.6-2-.2-.3 0-.4.1-.6l.4-.5.3-.5c.1-.2 0-.4 0-.5l-.9-2.2c-.2-.5-.4-.5-.6-.5h-.7z'/%3E%3C/svg%3E") center / contain no-repeat; }
.wa-group { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: var(--topbar-h); padding: 0 16px;
  background: var(--cream); border-bottom: 2px solid var(--navy);
  box-shadow: 0 3px 0 var(--cream), 0 4px 0 var(--gold);
}
.brand { font-family: var(--display); font-size: 1.2rem; color: var(--navy); text-decoration: none; letter-spacing: .08em; white-space: nowrap; }
.brand .amp { color: var(--gold); }
.topnav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a { flex: none; padding: 8px 10px; font-size: .78rem; font-weight: 700; color: var(--navy); text-decoration: none; letter-spacing: .14em; text-transform: uppercase; border-bottom: 2px solid transparent; }
.topnav a:hover, .topnav a:focus-visible { border-bottom-color: var(--gold); }
.topnav .nav-rsvp { background: var(--navy); color: var(--lemon); border-radius: 2px; margin-left: 6px; }
@media (max-width: 799px) { .topnav .nav-rsvp { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 36px 0 44px; }
.sunburst { position: absolute; inset: 0 0 auto 0; height: 100vh; z-index: 0; pointer-events: none; }
.sunburst svg { width: 100%; height: 100%; }
.sunburst .rays path { fill: var(--gold); opacity: .16; }
.hero > :not(.sunburst) { position: relative; z-index: 1; }

/* The deco frame: square corners, navy outer line, double gold inner rule, stepped corners */
.deco-frame {
  position: relative;
  width: min(100% - 32px, 640px); margin: 0 auto;
  background: var(--white);
  border: 2px solid var(--navy);
  padding: 10px;
  box-shadow: 0 18px 40px rgba(20, 33, 61, .14), 8px 8px 0 var(--navy);
}
.deco-inner {
  border: 1px solid var(--gold);
  outline: 1px solid var(--gold); outline-offset: 4px;
  padding: 28px 18px 30px; text-align: center;
}
@media (min-width: 560px) { .deco-inner { padding: 34px 34px 36px; } }
.corner { position: absolute; width: 22px; height: 22px; border: 2px solid var(--navy); pointer-events: none; }
.corner.tl { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.corner.tr { top: -2px; right: -2px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: -2px; left: -2px; border-right: 0; border-top: 0; }
.corner.br { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }
.corner::after { content: ""; position: absolute; width: 8px; height: 8px; background: var(--gold); }
.corner.tl::after { top: 4px; left: 4px; }
.corner.tr::after { top: 4px; right: 4px; }
.corner.bl::after { bottom: 4px; left: 4px; }
.corner.br::after { bottom: 4px; right: 4px; }

.fan { width: 140px; margin: -6px auto 14px; }

.stamp {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 0 0 6px; color: var(--gold);
  font: 700 .78rem/1 var(--body); letter-spacing: .34em; text-transform: uppercase;
}
.stamp span { color: var(--navy); padding-left: .34em; white-space: nowrap; }
@media (max-width: 420px) { .stamp { letter-spacing: .24em; gap: 6px; } }
.flourish { width: clamp(40px, 14vw, 88px); height: 22px; flex: none; }
.flourish.flip { transform: scaleX(-1); }

.hero-title { margin: 0 0 4px; line-height: 1; }
.hero-title .name { display: block; font-family: var(--script); font-weight: 400; font-size: clamp(3.4rem, 15vw, 5.6rem); line-height: 1; color: var(--navy); }
.hero-title .amp-line { display: block; font-family: var(--display); font-size: clamp(1.5rem, 6vw, 2.2rem); line-height: 1; color: var(--gold); margin: 2px 0 6px; }
.hero-kicker { font-family: var(--deco); font-weight: 700; font-size: 1.15rem; letter-spacing: .3em; text-transform: uppercase; margin: 10px 0 8px; }
.hero-sub { font-size: 1.05rem; margin: 0 0 18px; }
.hero-sub em { color: var(--green); font-style: italic; }

.rule-deco { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.rule-deco span { flex: 1; height: 1px; background: var(--gold); box-shadow: 0 3px 0 var(--gold); }
.rule-deco i { width: 8px; height: 8px; background: var(--navy); transform: rotate(45deg); }

.details { display: grid; gap: 14px; margin: 0; padding: 14px 0; }
.details dt { font: 700 .68rem/1 var(--body); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 5px; }
.details dd { margin: 0; font-family: var(--deco); font-weight: 700; font-size: 1.3rem; line-height: 1.15; letter-spacing: .03em; }
.details dd small { font-family: var(--body); font-weight: 400; font-size: .82rem; letter-spacing: .06em; }

.countdown { margin: 14px 0 22px; }
.countdown-label { display: block; font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; }
.countdown-nums { display: flex; justify-content: center; gap: 10px; }
.countdown-nums span { display: flex; flex-direction: column; align-items: center; min-width: 74px; padding: 9px 6px 7px; background: var(--navy); color: var(--lemon); border: 1px solid var(--gold); outline: 1px solid var(--gold); outline-offset: 2px; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; }
.countdown-nums b { font-family: var(--display); font-size: 1.7rem; line-height: 1; margin-bottom: 5px; font-weight: 400; color: var(--white); }

.hero-copy { margin-top: 40px; max-width: 700px; }
.lead { font-size: 1.15rem; text-align: center; }
.callouts { display: grid; gap: 14px; margin: 28px 0; }
@media (min-width: 640px) { .callouts { grid-template-columns: 1fr 1fr; } }
.callout { padding: 20px 20px; border: 2px solid var(--navy); outline: 1px solid var(--gold); outline-offset: -6px; }
.callout h3 { font-size: 1.25rem; }
.callout p { margin: 0; }
.callout-gold { background: var(--lemon); }
.callout-navy { background: var(--navy); color: var(--cream); }
.callout-navy h3 { color: var(--lemon); }
.callout-navy strong { color: var(--gold-2); }

.house-note { background: var(--white); border: 1px solid var(--gold); outline: 1px solid var(--gold); outline-offset: 3px; padding: 20px 22px; margin: 0 0 26px; }
.house-note p:last-child { margin-bottom: 0; }
.help-note { text-align: center; padding: 4px 8px 0; margin: 0 0 26px; }
.help-note h3 { font-size: 1.25rem; }
.help-note p { margin: 0; }
.cost-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 12px; border-top: 1px solid var(--gold); font-weight: 500; }
.cost-label { font: 700 .68rem/1 var(--body); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }

.cal-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 28px; }
.cal-row .btn { font-size: .78rem; min-height: 44px; }

.whatsapp-cta { text-align: center; }
.whatsapp-cta p { margin-bottom: 12px; font-weight: 500; }
.more-soon { text-align: center; margin-top: 28px; font-style: italic; opacity: .8; }

/* ---------- Bands & section titles ---------- */
.band { padding: 56px 0 64px; }
.band-navy { background: var(--navy); color: var(--cream); }
.band-navy a { color: var(--lemon); }
.band-cream { background: var(--cream); }
.band-green { background: var(--green); color: var(--cream); }
.band-green a { color: var(--lemon); }

.section-title { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 7vw, 2.8rem); letter-spacing: .08em; text-align: center; margin: 0 0 34px; display: flex; align-items: center; gap: 14px; }
.section-title::before, .section-title::after { content: ""; flex: 1; height: 1px; background: var(--gold); box-shadow: 0 4px 0 var(--gold); }
.section-title span { flex: none; position: relative; padding: 0 22px; }
.section-title span::before, .section-title span::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; background: var(--gold); transform: translateY(-50%) rotate(45deg); }
.section-title span::before { left: 0; }
.section-title span::after { right: 0; }

/* ---------- Cards (The Week) ---------- */
.cards { display: grid; gap: 16px; }
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: var(--cream); color: var(--navy); border: 2px solid var(--gold); outline: 1px solid var(--gold); outline-offset: 4px; padding: 24px 22px 20px; }
.card p:last-child { margin-bottom: 0; }
.card-gold { background: var(--lemon); }
.card-icon { width: 52px; height: 52px; margin-bottom: 10px; }

/* ---------- Getting there ---------- */
.route-hero { display: flex; gap: 18px; align-items: flex-start; background: var(--white); border: 2px solid var(--navy); outline: 1px solid var(--gold); outline-offset: -6px; padding: 24px; box-shadow: 6px 6px 0 var(--gold); margin-bottom: 30px; }
.route-badge { flex: none; width: 60px; height: 60px; }
.route-hero h3 { margin-bottom: 2px; }
.route-hero p:last-child { margin-bottom: 0; }
.code { display: inline-block; font: 700 .62em/1 var(--body); letter-spacing: .16em; padding: 4px 7px; border: 1px solid currentColor; vertical-align: middle; margin-left: 6px; }
.tag { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.sub-heading { font-size: 1.3rem; margin-bottom: 10px; }
.routes { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.routes li { padding: 14px 16px; background: var(--white); border: 1px solid var(--gold); border-left: 6px solid var(--navy); }
.routes strong { display: block; margin-bottom: 2px; }
.note-box { background: var(--lemon); border: 2px solid var(--navy); outline: 1px solid var(--gold); outline-offset: -6px; padding: 20px 22px; }
.note-box p:last-child { margin-bottom: 0; }
@media (max-width: 480px) { .route-hero { flex-direction: column; } }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--cream); color: var(--navy); border: 1px solid var(--gold); outline: 1px solid var(--gold); outline-offset: 3px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; font-family: var(--deco); font-size: 1.2rem; font-weight: 700; position: relative; letter-spacing: .03em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 1px solid var(--navy); display: grid; place-items: center; font-family: var(--body); font-weight: 700; }
.faq details[open] summary::after { content: "–"; background: var(--navy); color: var(--lemon); }
.faq summary:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.faq-body { padding: 0 18px 18px; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body .wa-group { justify-content: flex-start; margin-top: 10px; }

/* ---------- RSVP form ---------- */
.rsvp-intro { text-align: center; margin-bottom: 26px; }
.rsvp-form { background: var(--white); border: 2px solid var(--navy); outline: 1px solid var(--gold); outline-offset: -7px; padding: 26px 20px 28px; box-shadow: 8px 8px 0 var(--gold); }
@media (min-width: 560px) { .rsvp-form { padding: 32px 32px 34px; } }
fieldset { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
legend, .label, .field > label { display: block; font-weight: 700; margin-bottom: 8px; }
legend { font-family: var(--deco); font-size: 1.35rem; letter-spacing: .04em; margin-bottom: 14px; }
.req, .opt { font-weight: 400; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin-left: 6px; }
.req { color: var(--green); opacity: 1; font-weight: 700; }

.choice-set { display: grid; gap: 10px; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--navy); outline: 1px solid transparent; outline-offset: 3px; background: var(--cream); cursor: pointer; transition: background .12s, outline-color .12s, transform .12s; min-height: 68px; }
.choice-icon { flex: none; width: 44px; height: 44px; color: var(--navy); }
.choice-text b { display: block; line-height: 1.25; }
.choice-text small { display: block; margin-top: 3px; opacity: .8; }
.choice-card:hover { background: var(--cream-2); outline-color: var(--gold); }
.choice input:focus-visible + .choice-card { outline: 3px solid var(--gold); outline-offset: 3px; }
.choice input:checked + .choice-card { background: var(--navy); color: var(--cream); outline-color: var(--gold); }
.choice input:checked + .choice-card .choice-icon { color: var(--gold-2); }

.fields { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--gold); display: grid; gap: 18px; }
.field { display: grid; gap: 0; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field textarea {
  width: 100%; font: 400 1.05rem/1.4 var(--body); color: var(--navy);
  padding: 12px 14px; min-height: 50px; background: var(--cream); border: 1px solid var(--navy); border-radius: 2px;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: #a33; background: #fff3f0; }
.hint { display: block; margin-top: 6px; font-size: .85rem; opacity: .8; }
.nights-detail { margin-top: 10px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; }
.pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pills span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--navy); border-radius: 2px; background: var(--cream); font-weight: 500; cursor: pointer; }
.pills input:checked + span { background: var(--navy); color: var(--lemon); }
.pills input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; }
.form-error { background: #fff3f0; border: 1px solid #a33; color: #7a1f1f; padding: 10px 14px; margin: 0; font-weight: 500; }
#submit-btn { width: 100%; }
#submit-btn[disabled] { opacity: .6; cursor: wait; }
.fine-print { font-size: .85rem; text-align: center; opacity: .8; margin: 0; }

.thanks { text-align: center; background: var(--white); border: 2px solid var(--navy); outline: 1px solid var(--gold); outline-offset: -7px; padding: 30px 22px; box-shadow: 8px 8px 0 var(--gold); }
.thanks:focus { outline: none; }
.thanks-art { width: 150px; margin: 0 auto 12px; }
.thanks h3 { font-family: var(--script); font-weight: 400; font-size: 3rem; letter-spacing: 0; }
.thanks-house { background: var(--lemon); padding: 10px 14px; font-size: .95rem; }

/* ---------- Footer: the water ---------- */
.footer { background: var(--navy); color: var(--cream); text-align: center; padding: 0 16px 106px; } /* extra room for the sticky RSVP bar on phones */
@media (min-width: 800px) { .footer { padding-bottom: 30px; } }
.footer-waves { margin: 0 -16px 22px; }
.footer-waves svg { width: 100%; height: 44px; background: var(--cream); }
.footer p { margin: 0 0 6px; }
.footer-names { font-family: var(--script); font-size: 2.2rem; line-height: 1.1; margin-bottom: 2px; }
.footer-names .amp { font-family: var(--display); font-size: .55em; color: var(--gold); vertical-align: middle; }
.footer-small { font-size: .9rem; opacity: .85; }
.footer a { color: var(--lemon); }

/* ---------- Sticky RSVP bar (phones) ---------- */
.sticky-rsvp { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(247, 241, 225, .97); border-top: 2px solid var(--navy); transition: transform .25s ease; }
.sticky-rsvp .btn { width: 100%; }
.sticky-rsvp.is-hidden { transform: translateY(110%); }
@media (min-width: 800px) { .sticky-rsvp { display: none; } }

/* Anchor offset so section titles clear the sticky top bar */
section[id] { scroll-margin-top: calc(var(--topbar-h) + 8px); }

/* ============================================================
   GALLERY PAGE
   ============================================================ */
.topnav a[aria-current="page"] { border-bottom-color: var(--gold); }

.gallery-intro { position: relative; text-align: center; padding: 44px 0 40px; overflow: hidden; }
.gallery-title { font-family: var(--script); font-weight: 400; font-size: clamp(4rem, 18vw, 6.5rem); line-height: 1; margin: 0 0 10px; }
.gallery-lead { max-width: 520px; margin: 0 auto; font-size: 1.05rem; }
.gallery-hint { margin: 10px 0 0; font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }

.gal-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; color: inherit; }
.gal-open:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.gal-open img { display: block; width: 100%; height: auto; }

/* Our house: deco arches */
.arches { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 16px; }
@media (min-width: 860px) { .arches { grid-template-columns: repeat(4, 1fr); gap: 28px 22px; } }
.arch { margin: 0; text-align: center; }
.arch-frame {
  display: block; position: relative; aspect-ratio: 3 / 4;
  border-radius: 999px 999px 0 0; overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 5px var(--navy), 0 0 0 6px var(--gold);
}
.arch-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gal-open:hover .arch-frame img { transform: scale(1.04); }
.arch figcaption { margin-top: 16px; font-size: .92rem; line-height: 1.45; color: var(--cream); }
.arch figcaption::before { content: ""; display: block; width: 8px; height: 8px; margin: 0 auto 10px; background: var(--gold); transform: rotate(45deg); }

/* Perast: mosaic */
.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
@media (min-width: 860px) { .mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 22px; } }
.tile { display: flex; flex-direction: column; margin: 0; background: var(--white); border: 1px solid var(--gold); padding: 7px 7px 10px; }
.tile .gal-open { overflow: hidden; aspect-ratio: 1 / 1; }
.tile .gal-open img { width: 100%; height: 100%; object-fit: cover; }
.tile img { transition: transform .5s ease; }
.tile .gal-open:hover img { transform: scale(1.03); }
.tile figcaption { padding: 10px 4px 0; font-size: .86rem; line-height: 1.4; border-top: 1px solid var(--gold); margin-top: 8px; }
@media (min-width: 560px) { .tile figcaption { font-size: .92rem; } }

.gallery-cta { text-align: center; margin-top: 30px; }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 20, 38, .96); color: var(--cream); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(12, 20, 38, .96); }
.lb-figure { margin: 0; max-width: min(92vw, 1100px); text-align: center; }
.lb-figure img { max-width: 100%; max-height: 78vh; width: auto; height: auto; margin: 0 auto; border: 1px solid var(--gold); outline: 1px solid var(--gold); outline-offset: 4px; }
.lb-figure figcaption { margin-top: 18px; font-size: 1rem; max-width: 560px; margin-left: auto; margin-right: auto; padding: 0 12px; }
.lb-count { position: absolute; top: 14px; left: 18px; margin: 0; font-size: .72rem; letter-spacing: .24em; color: var(--gold); }
.lb-close, .lb-nav { position: absolute; background: none; border: 1px solid var(--gold); color: var(--lemon); cursor: pointer; display: grid; place-items: center; font-family: var(--body); }
.lb-close { top: 10px; right: 12px; width: 44px; height: 44px; font-size: 1.8rem; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 44px; height: 60px; font-size: 2rem; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-close:hover, .lb-nav:hover, .lb-close:focus-visible, .lb-nav:focus-visible { background: var(--gold); color: var(--navy); outline: none; }
@media (max-width: 600px) { .lb-nav { top: auto; bottom: 16px; transform: none; } .lb-figure img { max-height: 66vh; } }

/* Link from the home page */
.see-photos { display: inline-block; margin-top: 14px; font: 700 .75rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 4px; }
.see-photos:hover { color: var(--green); }

/* Fit all menu items on small phones */
@media (max-width: 480px) {
  .topbar { padding: 0 10px; gap: 6px; }
  .brand { font-size: 1rem; }
  .topnav a { padding: 8px 5px; font-size: .66rem; letter-spacing: .06em; }
}

/* Even, same-size button pairs (WhatsApp and add-to-calendar) */
.wa-group, .cal-row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  margin-left: auto; margin-right: auto;
}
.wa-group { max-width: 380px; }
.cal-row { max-width: 560px; }
.wa-group .btn, .cal-row .btn { width: 100%; height: 100%; text-align: center; }
.faq-body .wa-group { margin-left: 0; }

/* Small clickable photo previews linking to the gallery */
.house-note, .note-box { display: flow-root; }
.preview-photo { float: right; width: 116px; margin: 0 0 10px 16px; text-decoration: none; color: var(--navy); text-align: center; }
@media (min-width: 560px) { .preview-photo { width: 150px; margin-left: 22px; } }
.preview-frame { display: block; aspect-ratio: 1 / 1; overflow: hidden; border: 2px solid var(--gold); box-shadow: 0 0 0 3px var(--white), 0 0 0 4px var(--navy); }
.preview-arch .preview-frame { aspect-ratio: 3 / 4; border-radius: 999px 999px 0 0; }
.note-box .preview-frame { box-shadow: 0 0 0 3px var(--lemon), 0 0 0 4px var(--navy); }
.preview-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.preview-photo:hover .preview-frame img, .preview-photo:focus-visible .preview-frame img { transform: scale(1.06); }
.preview-photo:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; }
.preview-label { display: block; margin-top: 10px; font: 700 .62rem/1.2 var(--body); letter-spacing: .18em; text-transform: uppercase; }
.preview-label::after { content: " \2192"; }

/* Where / When / The big day: one per line, with a little breathing room */
.details { gap: 18px; max-width: 420px; margin-left: auto; margin-right: auto; }
.details > div + div { padding-top: 18px; border-top: 1px dotted rgba(201, 162, 39, .6); }

/* ============================================================
   TOP OF PAGE: cover card, photo band, details card
   ============================================================ */
.hero-cover {
  min-height: calc(100vh - var(--topbar-h));
  min-height: calc(100svh - var(--topbar-h));
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 28px 0 24px;
}
.hero-cover .sunburst { height: 100%; }
.hero-cover .deco-frame { width: min(100% - 32px, 600px); }
.hero-cover .deco-inner { padding-top: 36px; padding-bottom: 40px; }
@media (min-width: 560px) { .hero-cover .deco-inner { padding: 48px 40px 52px; } }
.hero-cover .hero-sub { margin-bottom: 0; }

.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 22px; color: var(--navy); text-decoration: none; font: 700 .66rem/1 var(--body); letter-spacing: .26em; text-transform: uppercase; }
.scroll-cue svg { width: 26px; height: 26px; color: var(--gold); animation: cue-bob 2.2s ease-in-out infinite; }
@keyframes cue-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue svg { animation: none; } }

.photo-band { position: relative; height: clamp(220px, 42vw, 520px); overflow: hidden; border-top: 2px solid var(--navy); border-bottom: 2px solid var(--navy); box-shadow: 0 4px 0 var(--gold), 0 -4px 0 var(--gold); margin: 4px 0; }
.photo-band picture, .photo-band img { display: block; width: 100%; height: 100%; }
.photo-band img { object-fit: cover; object-position: 50% 60%; }

.details-section { padding: 48px 0 44px; }
.details-card .deco-inner { padding-top: 30px; }
.details-title { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 7vw, 2.3rem); letter-spacing: .08em; margin: 0 0 10px; }
.details-section .hero-copy { margin-top: 40px; }
.photo-band { scroll-margin-top: var(--topbar-h); }
.theme-line { font-family: var(--deco); font-weight: 700; font-size: 1.2rem; line-height: 1.3; letter-spacing: .02em; padding: 12px 0 0; border-top: 1px solid var(--gold); }

/* Keep names on one line in the WhatsApp buttons */
.wa-group .btn { white-space: nowrap; padding-left: 12px; padding-right: 12px; }

/* ============================================================
   ENVELOPE INTRO ("Tap to open")
   ============================================================ */
html.env-lock, html.env-lock body { overflow: hidden; }
.envelope-intro {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background:
    repeating-conic-gradient(from 0deg at 50% 45%, rgba(201,162,39,.14) 0deg 6deg, transparent 6deg 22.5deg),
    var(--navy);
  transition: opacity .7s ease, visibility .7s;
  cursor: pointer;
}
.envelope-intro.is-gone { opacity: 0; visibility: hidden; }
.env-stage { display: flex; flex-direction: column; align-items: center; gap: 26px; width: 100%; padding: 0 20px; }

.env {
  position: relative; display: block; width: min(86vw, 440px); aspect-ratio: 400 / 280;
  padding: 0; border: 0; background: none; cursor: pointer;
  perspective: 1400px; transition: transform .7s ease;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.35));
}
.env:focus-visible { outline: 3px solid var(--gold); outline-offset: 10px; }
.envelope-intro.is-opening .env { outline: none; }
.envelope-intro.is-gone .env { transform: scale(1.06); }

.env-back { position: absolute; inset: 0; z-index: 0; background: #E9DDBF; border: 1px solid var(--gold); }
.env-front { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; }

.env-letter {
  position: absolute; left: 6%; width: 88%; top: 5%; height: 90%; z-index: 2;
  background: var(--white); border: 1px solid var(--gold); outline: 1px solid var(--gold); outline-offset: -6px;
  transition: transform .9s cubic-bezier(.2,.8,.25,1);
}
.env-letter-inner { display: flex; flex-direction: column; align-items: center; padding-top: 7%; text-align: center; color: var(--navy); }
.env-letter-kicker { font: 700 clamp(.5rem, 2vw, .66rem)/1 var(--body); letter-spacing: .3em; text-transform: uppercase; }
.env-letter-names { font-family: var(--script); font-size: clamp(1.7rem, 8.5vw, 2.7rem); line-height: 1.05; margin-top: 4%; }
.env-letter-names i { font-style: normal; font-family: var(--display); color: var(--gold); font-size: .5em; margin: 0 .3em; vertical-align: middle; }
.env-letter-place { font: 700 clamp(.46rem, 1.8vw, .6rem)/1 var(--body); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-top: 4%; }

.env-flap {
  position: absolute; left: 0; top: 0; width: 100%; height: 60.7%; z-index: 4;
  transform-origin: 50% 0; transform: rotateX(0deg);
  transition: transform .75s cubic-bezier(.4,.1,.3,1);
}
.env-flap svg { display: block; width: 100%; height: 100%; }
.env-seal {
  position: absolute; left: 50%; top: 60.7%; width: 23%; aspect-ratio: 1; z-index: 5;
  transform: translate(-50%, -58%); transition: transform .35s ease, opacity .35s ease;
}
.env-seal svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 5px rgba(0,0,0,.3)); }
.env:hover .env-seal { transform: translate(-50%, -58%) scale(1.05); }

.env-hint {
  margin: 0; color: var(--lemon); font: 700 .72rem/1 var(--body); letter-spacing: .34em; text-transform: uppercase;
  animation: env-pulse 2.2s ease-in-out infinite; transition: opacity .3s;
}
@keyframes env-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* The opening sequence */
.envelope-intro.is-opening .env-seal { transform: translate(-50%, -58%) scale(1.25); opacity: 0; }
.envelope-intro.is-opening .env-hint { opacity: 0; animation: none; }
.envelope-intro.flap-open .env-flap { transform: rotateX(180deg); }
.envelope-intro.flap-behind .env-flap { z-index: 1; }
.envelope-intro.letter-out .env-letter { transform: translateY(-62%); }

@media (prefers-reduced-motion: reduce) {
  .env-hint { animation: none; opacity: 1; }
}

/* Envelope intro: the card unfolds to show the photo */
.env-letter { display: flex; flex-direction: column; transition: transform .9s cubic-bezier(.2,.8,.25,1), top .8s ease, height .8s ease; }
.env-letter-inner { flex: 1 1 auto; min-height: 0; }
.env-letter-photo {
  display: block; width: 74%; margin: 6% auto 0; max-height: 0; opacity: 0; overflow: hidden;
  border-radius: 999px 999px 0 0; border: 1px solid var(--gold); box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--gold);
  transition: max-height .8s ease, opacity .6s ease .25s;
}
.env-letter-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 30% 28%; transform: scale(1.24); transform-origin: 18% 30%; }
.env-front, .env-back, .env-flap { transition: opacity .6s ease; }
.env-flap { transition: transform .75s cubic-bezier(.4,.1,.3,1), opacity .6s ease; }

.envelope-intro.letter-present .env-front,
.envelope-intro.letter-present .env-back,
.envelope-intro.letter-present .env-flap { opacity: 0; }
.envelope-intro.letter-present .env-letter { z-index: 6; top: -46%; height: 186%; transform: none; box-shadow: 0 20px 40px rgba(0,0,0,.35); padding-bottom: 9%; }
.envelope-intro.letter-present .env-letter-photo { flex: 0 0 auto; aspect-ratio: 4 / 5; max-height: 1000px; opacity: 1; margin-top: 5%; margin-bottom: auto; }
.envelope-intro.letter-present .env-letter-inner { flex: 0 0 auto; }


/* Envelope: pulse around the seal, and a peek of the photo as the card rises */
.env-seal::before {
  content: ""; position: absolute; inset: -6%; border-radius: 50%; border: 2px solid var(--gold);
  animation: seal-pulse 2.2s ease-out infinite; pointer-events: none;
}
@keyframes seal-pulse { 0% { transform: scale(.95); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .env-seal::before { animation: none; opacity: 0; } }

.env-letter { overflow: hidden; }
.env-letter-photo { transition: max-height .8s ease, opacity .6s ease .15s, width .8s ease, margin .8s ease; }
.envelope-intro.letter-out .env-letter-photo { flex: 0 0 auto; width: 30%; aspect-ratio: 4 / 5; max-height: 1000px; opacity: 1; margin-top: 4%; }
.envelope-intro.letter-out .env-letter { transform: translateY(-78%); }
.envelope-intro.letter-present .env-letter { transform: none; }
.envelope-intro.letter-present .env-letter-photo { width: 74%; margin-top: 5%; }

/* Fun thank-you headline */
.thanks .thanks-title { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 8vw, 2.4rem); line-height: 1.1; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); margin: 4px 0 12px; }
.thanks-message { font-family: var(--deco); font-weight: 700; font-size: 1.25rem; line-height: 1.35; margin: 0 auto 12px; max-width: 420px; }
.thanks-small { font-size: .92rem; opacity: .8; }

/* Leave room for the sticky menu when gliding to the Name(s) box */
.rsvp-form .field { scroll-margin-top: calc(var(--topbar-h) + 20px); }

/* Adults and Kids: always side by side, same size, boxes lined up */
.field-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: end; }
.hint-under-pair { margin-top: -8px; }

.cal-label { text-align: center; margin: 0 0 12px; font: 700 .72rem/1 var(--body); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }

/* Links list inside an FAQ answer */
.faq-links { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.faq-links li { padding-left: 18px; position: relative; }
.faq-links li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.faq-links a { color: var(--navy); font-weight: 700; text-decoration-color: var(--gold); text-underline-offset: 3px; }
