/* FAQ Section Styles */
.faq-category {
  margin-bottom: 48px;
}
.faq-category:last-child {
  margin-bottom: 0;
}
.faq-category-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 20px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border-radius: 12px;
  background: var(--card-light);
  box-shadow: 0 1px 8px rgba(26,77,92,.04);
  border: 1px solid var(--line);
  padding: 0;
  transition: box-shadow var(--motion-med) var(--ease-standard), border-color var(--motion-med) var(--ease-standard);
  overflow: hidden;
}
.faq-item[open] {
  box-shadow: 0 2px 16px rgba(12,124,158,.08);
  border-color: var(--line-strong);
}
.faq-item summary {
  font-family: var(--sans);
  font-size: 1.05em;
  font-weight: 500;
  color: var(--heading);
  padding: 18px 24px;
  cursor: pointer;
  outline: none;
  list-style: none;
  position: relative;
  transition: color var(--motion-fast) var(--ease-standard);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:hover {
  color: var(--primary);
}
.faq-item summary:after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4em;
  color: var(--muted);
  font-weight: 300;
  transition: color var(--motion-fast) var(--ease-standard);
}
.faq-item[open] summary:after {
  content: "−";
  color: var(--primary);
}
.faq-answer{
  padding: 0 24px 20px 24px;
  color: var(--text);
  font-size: var(--p-size);
  line-height: 1.7;
}
.faq-item .faq-answer p,
.faq-item .faq-answer li,
.faq-item .faq-answer a{
  color: var(--text);
  font-size: var(--p-size);
  line-height: 1.7;
}
.faq-item .faq-answer a{
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.faq-item .faq-answer a:hover{
  text-decoration: underline;
}
.faq-answer p{
  margin: 0 0 10px 0;
}
.faq-answer p:last-child{
  margin-bottom: 0;
}
.faq-answer ul{
  margin: 8px 0 12px 18px;
  padding: 0;
}
.faq-answer ul:last-child{
  margin-bottom: 0;
}
.faq-answer li{
  margin: 6px 0;
}
.faq-answer-note{
  color: inherit;
}
@media (max-width: 720px) {
  .faq-category {
    margin-bottom: 36px;
  }
  .faq-category-title {
    font-size: 13px;
    margin-bottom: 16px;
  }
  .faq-list {
    gap: 10px;
  }
  .faq-item summary {
    padding: 16px 18px;
    font-size: 1em;
  }
  .faq-item summary:after {
    right: 18px;
    font-size: 1.3em;
  }
  .faq-answer{
    padding: 0 18px 16px 18px;
    font-size: var(--p-size);
  }
  .faq-answer ul{
    margin-left: 16px;
  }
}
/* Gallery hero image */
.gallery-hero-img {
  width: 100%;
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
}
.gallery-hero-img .hero-thumb {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 2.1/1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(26,77,92,.13);
  border: 2.5px solid var(--accent-coral);
  padding: 0;
  background: color-mix(in srgb, var(--accent-coral) 12%, var(--bg) 88%);
  transition: box-shadow 0.2s, border 0.2s;
}
.gallery-hero-img .hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-hero-img .hero-thumb:hover {
  box-shadow: 0 12px 40px rgba(232,146,124,0.18);
  border: 2.5px solid var(--primary);
}
@media (max-width: 720px) {
  .gallery-hero-img .hero-thumb {
    max-width: 100%;
    border-radius: 14px;
    aspect-ratio: 1.2/1;
  }
}
/* Timeline editorial framing and visual hierarchy */
.timeline-framing {
  font-family: var(--serif);
  color: var(--primary);
  font-size: 1.18em;
  font-weight: 600;
  margin-bottom: 0.5em;
}
.timeline-item.wedding-dominant .timeline-card {
  border: 2.5px solid var(--accent-coral);
  background: linear-gradient(
    120deg,
    color-mix(in srgb, var(--accent-coral) 12%, var(--bg) 88%) 60%,
    var(--card-light) 100%
  );
  box-shadow: 0 8px 32px rgba(232,146,124,0.13);
  transform: scale(1.04);
  z-index: 2;
}
.timeline-item.wedding-dominant .timeline-icon {
  font-size: 2.2em;
  color: var(--accent-coral);
}
.timeline-item.wedding-dominant h3 {
  color: var(--accent-coral);
  font-size: 1.35em;
  font-weight: 700;
}
.timeline-item.faded {
  opacity: 0.6;
  filter: grayscale(0.25);
}
:root{
  /* Elegant Caribbean Wedding Palette */
  --bg: #FAF8F3;           /* Soft ivory - clean & bright */
  --bg2: #F0EBE3;          /* Warm cream for depth */
  --card: #E8DFD0;         /* Sandy beige cards */
  --card-light: #F3EDE3;   /* Light cream variant */

  --primary: #0C7C9E;      /* Caribbean Turquoise - vibrant ocean */
  --primary-dark: #0A6380; /* Deep tropical water */

  --heading: #1A4D5C;      /* Deep teal - elegant & tropical */
  --text: #1F1F1F;         /* Rich charcoal - improved contrast */
  --muted: #4A4A4A;        /* Medium gray - improved contrast */
  --faint: #707070;        /* Light gray - improved contrast */

  --line: rgba(26,77,92,.12);  /* Subtle teal-tinted borders */
  --line-strong: rgba(26,77,92,.22);

  /* Caribbean accent colors - use sparingly */
  --accent-coral: #E8927C;     /* Sunset coral */
  --accent-gold: #D4AF37;      /* Tropical gold */
  --accent-palm: #4A7C59;      /* Palm green */
  --accent-stop: #D32F2F;      /* Stop-sign red */

  --serif: "Cormorant Garamond", ui-serif, Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --radius: 16px;
  --shadow: 0 8px 32px rgba(26,77,92,.12);
  --shadow-strong: 0 16px 48px rgba(26,77,92,.18);
  --container: 1080px;

  /* Responsive sizing (keeps mobile + desktop visually consistent) */
  --gutter: clamp(18px, 4vw, 22px);
  --section-pad-y: clamp(60px, 7vw, 80px);
  --h2-size: clamp(32px, 6vw, 48px);
  --p-size: clamp(15px, 1.2vw, 16px);
  --kicker-size: clamp(11px, 1vw, 12px);
  --brand-size: clamp(18px, 3.2vw, 24px);

  /* Anchor offset under sticky header (header height is set in Base.astro) */
  --scroll-offset: calc(var(--header-height, 84px) + 8px);

  /* Motion system (cohesive across sections + interactions) */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-emphasized: cubic-bezier(.2,.9,.2,1);
  --motion-fast: 180ms;
  --motion-med: 260ms;
  --motion-slow: 360ms;

  /* Hand-ink stationery system */
  --ink-color: var(--heading);
  --ink-opacity: 0.72;
  --ink-stroke: 2px;
}

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

img, svg, video, canvas{
  max-width: 100%;
  height: auto;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Prevent animated accents (e.g., hand-drawn dividers) from creating horizontal overflow
   which can cause mobile browsers to "shrink" the layout. */
html, body{ overflow-x: clip; }
@supports not (overflow: clip){
  html, body{ overflow-x: hidden; }
}

/* Keep anchor jumps from tucking under the sticky header */
html{ scroll-padding-top: var(--scroll-offset); }
section[id]{ scroll-margin-top: var(--scroll-offset); }
body{
  margin:0;
  color:var(--text);
  font-family:var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  /* Caribbean-inspired gradient overlays */
  background-image:
    radial-gradient(ellipse 1000px 700px at 15% 10%, rgba(12,124,158,.06), transparent 70%),
    radial-gradient(ellipse 900px 600px at 85% 90%, rgba(232,146,124,.05), transparent 70%),
    radial-gradient(ellipse 600px 400px at 50% 50%, rgba(212,175,55,.02), transparent 60%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; text-underline-offset: 4px; }

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

.skip{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;height:1px;
  overflow:hidden;
}
.skip:focus{
  left:18px; top:18px;
  width:auto;height:auto;
  background:rgba(0,0,0,.7);
  border:1px solid var(--line);
  padding:10px 12px;
  border-radius:12px;
  z-index:9999;
}

.visually-hidden{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0, 0, 0, 0);
  white-space:nowrap;
  border:0;
}

.section{
  padding: var(--section-pad-y) 0;
}
.section-flourish{
  text-align: center;
  color:var(--primary);
  font-size: 20px;
  margin-bottom: 32px;
  opacity: 0.4;
}

/* Consistent section heading layout (kicker + h2 + hand underline) */
.section-head{
  text-align: center;
  margin: 0 auto 28px;
}
.section-head-meta{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.section-head .kicker{ display:block; }
.section-head-meta .kicker{ margin: 0; }
.section-head .hand-underline-svg{ margin: 0 auto; }
.section-head p{ margin-left:auto; margin-right:auto; }

.section h2{
  font-family:var(--serif);
  font-weight:600;
  letter-spacing:.8px;
  font-size: var(--h2-size);
  margin:0 0 32px;
  color:var(--heading);
  display: block;
}
.section p{
  color:var(--muted);
  line-height:1.75;
  margin:0 0 16px 0;
  font-size: var(--p-size);
}

.kicker{
  color:var(--primary);
  text-transform:uppercase;
  letter-spacing:.28em;
  font-size: var(--kicker-size);
  font-weight:700;
  margin:0 0 12px 0;
  display: inline-block;
}

.new-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(232,146,124,.28);
  background: linear-gradient(
    135deg,
    rgba(232,146,124,.12) 0%,
    rgba(212,175,55,.18) 100%
  );
  color: var(--heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(232,146,124,.14);
}
.new-chip-nav{
  padding: 4px 8px;
  font-size: 9px;
  letter-spacing: .14em;
  box-shadow: none;
}
.new-chip-inline{
  padding: 5px 9px;
  font-size: 9px;
}

.card{
  border:1px solid var(--line);
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  position: relative;
  overflow: hidden;
}
.card::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--accent-coral), var(--accent-gold));
  opacity: 0.6;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:14px 28px;
  border-radius:999px;
  border:1.5px solid var(--line-strong);
  background:rgba(255,255,255,.85);
  color:var(--heading);
  font-weight:600;
  font-size:15px;
  text-decoration:none;
  cursor:pointer;
  transition:
    transform var(--motion-med) var(--ease-standard),
    box-shadow var(--motion-med) var(--ease-standard),
    border-color var(--motion-med) var(--ease-standard),
    background-color var(--motion-med) var(--ease-standard),
    color var(--motion-med) var(--ease-standard),
    filter var(--motion-med) var(--ease-standard);
  letter-spacing: 0.3px;
}
.btn:hover{
  text-decoration:none;
  border-color:var(--primary);
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,77,92,.2);
}
.btn.primary{
  border-color:var(--primary);
  background:var(--primary);
  color: white;
  box-shadow: 0 4px 16px rgba(12,124,158,.25);
}
.btn.primary:hover{
  background:var(--primary-dark);
  border-color:var(--primary-dark);
  box-shadow: 0 8px 24px rgba(12,124,158,.35);
  transform: translateY(-2px);
}
.btn.btn-warm{
  border-color: rgba(26,77,92,.18);
  background: var(--accent-gold);
  color: var(--heading);
  box-shadow: 0 10px 28px rgba(212,175,55,.22);
}
.btn.btn-warm:hover{
  background: var(--accent-gold);
  border-color: rgba(26,77,92,.24);
  box-shadow: 0 14px 36px rgba(212,175,55,.28);
  filter: brightness(0.96);
}
.btn.secondary{
  background:transparent;
  border-color:rgba(26,77,92,.25);
  color:var(--heading);
  font-weight: 600;
}
.btn.secondary:hover{
  background:rgba(255,255,255,.6);
  border-color:var(--heading);
  color:var(--heading);
}
.btn-block{
  width: 100%;
  justify-content: center;
}

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  overflow: visible;
  backdrop-filter: blur(12px);
  background-color: transparent;
  border-bottom:1px solid transparent;
  transition:
    box-shadow var(--motion-slow) var(--ease-standard),
    border-color var(--motion-slow) var(--ease-standard);
}
.site-header.scrolled{
  background-color:rgba(250,248,243);
  border-bottom:1px solid var(--line);
  box-shadow: 0 2px 16px rgba(26,77,92,.1);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 0;
}
.brand{
  font-family:var(--serif);
  font-size: var(--brand-size);
  margin-left: 14px;
  letter-spacing: .14em;
  text-decoration:none;
  color:var(--heading);
  font-weight:600;
}
.brand:hover{
  color: var(--primary);
  text-decoration: none;
}
.brand:focus-visible{
  outline: 2px solid var(--accent-gold);
  outline-offset: 4px;
  border-radius: 10px;
}
.nav{
  display:flex;
  align-items:center;
  gap:24px;
}
.nav a{
  color:var(--text);
  text-decoration:none;
  font-size:14px;
  font-weight:500;
  transition: color 0.2s ease;
}
.nav .nav-link-with-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
}
.nav-link-label{
  line-height: 1;
}
.nav a:hover{ color:var(--primary); text-decoration:none; }
.nav .nav-cta{
  color: white;
  border:1px solid var(--primary);
  background:var(--primary);
  padding:10px 16px;
  border-radius:999px;
}
.nav .nav-cta:hover{
  background:var(--primary-dark);
  border-color:var(--primary-dark);
}

.nav-toggle{
  display:none;
  width:48px;
  height:48px;
  border:none;
  background:transparent;
  cursor:pointer;
  position: relative;
  transition: opacity var(--motion-fast) var(--ease-standard);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px;
}
.nav-toggle:hover{
  opacity: 0.7;
}
.nav-toggle:active{
  opacity: 0.5;
}
.nav-toggle-line{
  display:block;
  width: 24px;
  height:2px;
  background:var(--heading);
  transition: transform var(--motion-med) var(--ease-standard), opacity var(--motion-med) var(--ease-standard);
  border-radius: 1px;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:first-child{
  transform: translateY(3.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2){
  transform: translateY(-3.5px) rotate(-45deg);
}
.nav-toggle-indicator{
  position: absolute;
  top: 6px;
  right: 4px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1.5px solid rgba(250,248,243,.96);
  background: var(--accent-coral);
  box-shadow: 0 0 0 3px rgba(232,146,124,.16);
  pointer-events: none;
  transition:
    opacity var(--motion-fast) var(--ease-standard),
    transform var(--motion-fast) var(--ease-standard);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-indicator{
  opacity: 0;
  transform: scale(0.5);
}

.nav-drawer{
  border-top:1px solid var(--line);
  background: var(--bg);
  box-shadow: 0 12px 36px rgba(26,77,92,.18);
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 60;
  max-height: calc(100dvh - var(--header-height, 84px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition:
    transform var(--motion-med) var(--ease-standard),
    opacity var(--motion-med) var(--ease-standard);
}

@supports not (height: 100dvh){
  .nav-drawer{ max-height: calc(100vh - var(--header-height, 84px)); }
}
.nav-drawer[data-open="true"]{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-drawer-inner{
  display:flex;
  flex-direction:column;
  gap:0;
  padding: 0;
}
.nav-drawer a{
  color:var(--text);
  font-size:16px;
  font-weight:400;
  line-height: 1;
  text-decoration:none;
  transition: background 0.2s ease;
  padding: 20px 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav-drawer .nav-link-with-badge{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.nav-drawer .nav-link-label{
  line-height: inherit;
}
.nav-drawer a:last-child{
  border-bottom: none;
}
.nav-drawer a:hover{
  background: rgba(0,0,0,.04);
}
.nav-drawer a:active{
  background: rgba(0,0,0,.08);
}
.nav-drawer .nav-cta{
  color:var(--primary);
  font-weight: 500;
}
.nav-drawer .nav-cta:hover{
  background: rgba(12,124,158,.08);
}

/* ========================================
   Mobile Cinematic Hero (Image + Action Bar)
   ======================================== */

/* Hide the desktop hero on mobile to keep one pattern */
.d-hero{
  display: none;
}

.m-hero{
  display: block;
}

.m-hero-image{
  position: relative;
  height: clamp(320px, 48vh, 520px);
  max-height: 520px;
  overflow: hidden;
  background: var(--bg2);
}

.m-hero-image img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Bias upward to reduce sky/ceiling and keep the couple visible */
  object-position: 50% 62%;
}

/* Subtle bottom scrim to transition into content */
.m-hero-image::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.18) 55%, var(--bg) 100%);
  pointer-events: none;
}

/* In-image caption overlay (mobile only) */
.m-hero-caption{
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: auto;
  z-index: 3;
}

.m-hero-caption-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 18px 0;
  display: flex;
  justify-content: flex-start;
}

.m-hero-caption-panel{
  width: min(92vw, 460px);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(26,77,92,.12);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(26,77,92,.10);
  padding: 14px 16px 14px;
}

.m-hero-caption-panel .kicker{
  margin: 0 0 8px 0;
}

.m-hero-actionbar{
  position: static;
  background: var(--bg);
  border-bottom: 1px solid rgba(26,77,92,.08);
}

.m-hero-actionbar-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 18px 10px;
  display: flex;
  gap: 12px;
  justify-content: center;
}


.m-hero-actionbar .btn{
  padding: 12px 18px;
  font-size: 14px;
}

/* Mobile-only floating RSVP button (landing page only, when present) */
.m-rsvp-fab{
  position: fixed;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  padding: 14px 20px;
  min-height: 44px;
  min-width: 44px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}
.m-rsvp-fab[hidden],
.m-rsvp-fab[aria-hidden="true"]{
  display: none !important;
}
.m-rsvp-fab:focus-visible{
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}
.m-rsvp-fab:active{
  transform: translateY(1px);
}
@media (hover: none){
  .m-rsvp-fab:hover{ transform: none; }
}
@media (min-width: 721px){
  .m-rsvp-fab{ display: none !important; }
}

.countdown.section,
.section.countdown{
  padding: 18px 0 10px;
}
.countdown-excite{
  text-align: center;
  margin: 18px 0 0;
  font-size: 1.1em;
  color: var(--primary);
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: .4px;
}

/* ========================================
   Hand-ink motif system (reusable)
   ======================================== */

.hand-ink{
  color: var(--ink-color);
  --hand-opacity: var(--ink-opacity);
  --hand-stroke-width: var(--ink-stroke);
}

.hand-stroke{
  fill: none;
  stroke: currentColor;
  stroke-width: var(--hand-stroke-width);
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: var(--hand-opacity);
  vector-effect: non-scaling-stroke;
}

/* Divider: used only between major sections */
.hand-divider{
  position: relative;
  background: var(--bg);
  padding: 32px 0;
  overflow: hidden;
}

/* Simple married-couple footer separator */
.hand-couple-divider{
  position: relative;
  background: var(--bg);
  padding: 22px 0 46px;
  overflow: hidden;
}

.hand-couple-divider.hand-ink{
  color: var(--primary);
  --hand-opacity: 0.82;
  --hand-stroke-width: calc(var(--ink-stroke) + 0.4px);
}

.hand-couple-svg{
  display: block;
  width: min(560px, 92vw);
  height: auto;
  margin: 0 auto;
}

.hand-couple-heart{
  opacity: 0.5;
}

.hand-couple-divider[data-animate="true"].is-inview .hand-couple{
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: hand-draw 1.45s cubic-bezier(.2,.9,.2,1) forwards;
}

.hand-couple-divider[data-animate="true"].is-inview .hand-couple-heart{
  animation-delay: 240ms;
}

/* Divider gets a slightly brighter “water ink” treatment */
.hand-divider.hand-ink{
  color: var(--primary);
  --hand-opacity: 0.86;
  --hand-stroke-width: calc(var(--ink-stroke) + 0.6px);
}

.hand-divider::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform, opacity;
  background:
    radial-gradient(
      ellipse 820px 140px at 52% 50%,
      color-mix(in srgb, var(--primary) 7%, transparent),
      transparent 72%
    ),
    radial-gradient(
      ellipse 700px 140px at 35% 55%,
      color-mix(in srgb, var(--accent-coral) 4%, transparent),
      transparent 76%
    );
}

.hand-divider::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--primary) 10%, transparent) 46%,
    color-mix(in srgb, var(--accent-coral) 8%, transparent) 52%,
    transparent 100%
  );
  transform: translateX(-60%);
  will-change: transform;
}

.hand-divider-svg{
  display: block;
  width: 100%;
  height: 36px;
  position: relative;
  z-index: 1;
}

.hand-wave-secondary{
  stroke: color-mix(in srgb, var(--primary) 65%, var(--accent-coral) 35%);
  opacity: 0.34;
}

.hand-wave-highlight{
  stroke: color-mix(in srgb, var(--primary) 25%, var(--bg) 75%);
  opacity: 0.28;
  stroke-width: max(1px, calc(var(--hand-stroke-width) - 0.9px));
}

/* Calm, modern motion: draw → settle → gentle sea-bob */
.hand-divider.is-inview .hand-divider-svg{
  animation:
    hand-settle 700ms cubic-bezier(.2,.9,.2,1) 0ms both,
    hand-sea-bob 6.5s ease-in-out 820ms infinite;
}

.hand-divider.is-inview::before{
  animation: hand-wash-drift 12s ease-in-out 0ms infinite;
}

.hand-divider.is-inview::after{
  animation: hand-sheen 9.5s ease-in-out 1.1s infinite;
}

@keyframes hand-settle{
  0%{ transform: translateY(0.5px) scaleY(0.985); opacity: 0.96; }
  55%{ transform: translateY(-0.6px) scaleY(1.01); opacity: 1; }
  100%{ transform: translateY(0) scaleY(1); opacity: 1; }
}

@keyframes hand-sea-bob{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-1.5px); }
}

@keyframes hand-wash-drift{
  0%, 100%{ transform: translate3d(0, 0, 0); opacity: 1; }
  50%{ transform: translate3d(10px, -2px, 0); opacity: 0.95; }
}

@keyframes hand-sheen{
  0%{ transform: translateX(-60%); }
  50%{ transform: translateX(60%); }
  100%{ transform: translateX(-60%); }
}

/* Scroll-triggered draw-on (staggered for a more “water” feel) */
.hand-divider[data-animate="true"].is-inview .hand-wave{
  stroke-dasharray: 640;
  stroke-dashoffset: 640;
  animation: hand-draw 1.15s cubic-bezier(.2,.9,.2,1) forwards;
}

.hand-divider[data-animate="true"].is-inview .hand-wave-secondary{
  stroke-dasharray: 560;
  stroke-dashoffset: 560;
  animation: hand-draw 1.25s cubic-bezier(.2,.9,.2,1) 120ms forwards;
}

.hand-divider[data-animate="true"].is-inview .hand-wave-highlight{
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: hand-draw 1.2s cubic-bezier(.2,.9,.2,1) 220ms forwards;
}

@keyframes hand-draw{
  to{ stroke-dashoffset: 0; }
}

@keyframes hand-draw-short{
  from{ stroke-dasharray: 260; stroke-dashoffset: 260; }
  to{ stroke-dasharray: 260; stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce){
  .hand-divider[data-animate="true"].is-inview .hand-stroke,
  .hand-underline.is-inview .hand-stroke,
  .hand-flourish.is-inview .hand-stroke{
    animation: none;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }

  .hand-divider.is-inview .hand-divider-svg{
    animation: none;
  }

  .hand-divider.is-inview::before,
  .hand-divider.is-inview::after{
    animation: none;
  }
}

/* Underline accent for key headings */
.hand-underline{
  margin: 10px 0 18px;
}

.hand-underline.is-inview .hand-stroke{
  animation: hand-draw-short .9s ease forwards;
}

.hand-underline-svg{
  display: block;
  width: min(220px, 60vw);
  height: 16px;
}

/* Optional tiny flourish (use sparingly) */
.hand-flourish{
  display: inline-flex;
  vertical-align: middle;
}

.hand-flourish-svg{
  width: 52px;
  height: 20px;
}

/* Subtle “ink response” on hover for pointer devices */
@media (hover:hover) and (pointer:fine){
  .hand-divider:hover .hand-wave-secondary{ opacity: 0.30; }
  .hand-divider:hover .hand-wave-highlight{ opacity: 0.34; }

  .hand-underline:hover .hand-underline-svg{ transform: translateY(-1px); }
  .hand-flourish:hover .hand-flourish-svg{ transform: rotate(-1deg); }

  .hand-divider-svg,
  .hand-underline-svg,
  .hand-flourish-svg{
    transition: transform 180ms ease;
  }
}

.m-hero-title{
  font-family: var(--serif);
  font-size: clamp(32px, 7.6vw, 40px);
  line-height: 1.03;
  margin: 0 0 8px;
  color: var(--heading);
  font-weight: 700;
}

.m-hero-subtitle{
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
}

/* ========================================
   Hero Section - Mobile-First
   ======================================== */

/* Base Hero Container */
.hero{
  position: relative;
  isolation: isolate;
}

/* Mobile-First: Inline Stack Pattern */
.hero-layout{
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Mobile: Image Zone (Constrained) */
.hero-image{
  position: relative;
  height: min(55vh, 500px);
  max-height: 500px;
  overflow: hidden;
  background: var(--bg2);
}

.hero-image img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Mobile: Bias upward so the couple stays centered and visible */
  object-position: 50% 38%;
}

/* Mobile: Content Zone (Inline, no overlap) */
.hero-content{
  position: relative;
  padding: 18px 18px 32px;
  background: var(--bg);
  z-index: 2;
}

.hero-card{
  width: min(96vw, 520px);
  background: white;
  padding: 18px 20px 18px;
  border-radius: 16px;
  border: 1px solid rgba(26,77,92,.10);
  box-shadow: 0 6px 18px rgba(26,77,92,.05);
  margin: 0 auto;
}

.hero-title{
  font-family: var(--serif);
  font-size: clamp(32px, 8vw, 40px);
  line-height: 1.05;
  margin: 0 0 10px;
  letter-spacing: 0.2px;
  color: var(--heading);
  font-weight: 700;
}

.hero-subtitle{
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  margin: 0 0 14px;
  font-weight: 500;
  color: var(--muted);
}

.hero-actions{
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  align-items: center;
}

.hero-actions .btn{
  padding: 11px 15px;
  font-size: 14px;
  letter-spacing: 0.15px;
}

/* ========================================
   Desktop Breakpoint (900px+)
   ======================================== */

@media (min-width: 900px){
  .m-hero,
  .m-hero-actionbar{
    display: none;
  }

  .d-hero{
    display: block;
  }

  /* Desktop hero: more modern, editorial proportions */
  .d-hero .hero-layout{
    min-height: clamp(640px, 86vh, 860px);
  }

  .d-hero .hero-content{
    padding: 88px clamp(48px, 5vw, 72px);
  }

  .d-hero .hero-image{
    border-left: 1px solid var(--line);
  }

  .d-hero .hero-image img{
    object-position: 60% 68%;
  }

  .d-hero .hero-title{
    letter-spacing: 0.1px;
    line-height: 1.02;
  }

  .d-hero .hero-actions{
    gap: 14px;
  }

  /* Desktop: Side-by-side grid layout */
  .hero-layout{
    display: grid;
    grid-template-columns: minmax(420px, 1fr) 1.3fr;
    grid-template-rows: 1fr;
    min-height: 90vh;
    flex-direction: unset;
  }

  /* Desktop: Content zone (left column) */
  .hero-content{
    display: flex;
    align-items: center;
    padding: 80px clamp(40px, 5vw, 60px);
    background: var(--bg);
    z-index: auto;
    grid-column: 1;
    grid-row: 1;
  }

  /* Desktop: Remove bottom-sheet styling */
  .hero-card{
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    border: none;
    box-shadow: none;
    margin: 0;
    max-width: 500px;
  }

  /* Desktop: Image zone (right column, full height) */
  .hero-image{
    height: auto;
    max-height: none;
    order: 0;
    grid-column: 2;
    grid-row: 1;
  }

  .hero-image img{
    /* Desktop: Show couple in lower-right */
    object-position: 65% 70%;
  }

  /* Desktop: Typography scaling */
  .hero-title{
    font-size: clamp(44px, 5vw, 56px);
    margin: 0 0 16px;
  }

  .hero-subtitle{
    font-size: 18px;
    margin: 0 0 28px;
  }

  .hero-actions{
    gap: 12px;
  }
}

.badge-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}
.badge{
  padding:9px 14px;
  border-radius:999px;
  border:1px solid rgba(12,124,158,.2);
  background: linear-gradient(135deg,
    rgba(12,124,158,.08) 0%,
    rgba(12,124,158,.12) 100%);
  color:var(--text);
  font-size:12px;
  font-weight:500;
  transition: transform var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard);
}
.badge:hover{
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(12,124,158,.15);
}
.badge strong{ color:var(--heading); font-weight:700; }

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:20px;
}

.timeline{
  list-style:none;
  padding:0;
  margin:24px 0 0;
  display:grid;
  gap:24px;
  position: relative;
}
/* Connecting vertical line */
.timeline::before{
  content: '';
  position: absolute;
  left: 70px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: linear-gradient(to bottom,
    var(--primary) 0%,
    var(--accent-coral) 50%,
    var(--accent-gold) 100%);
  opacity: 0.2;
  border-radius: 2px;
}
.timeline-item{
  display:grid;
  grid-template-columns: 140px 1fr;
  gap:20px;
  align-items:start;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s var(--ease-standard) forwards;
  animation-delay: var(--timeline-delay, 0s);
}
@keyframes fadeInUp{
  to{
    opacity: 1;
    transform: translateY(0);
  }
}
.timeline-date{
  color: color-mix(in srgb, var(--primary) 55%, var(--bg) 45%);
  font-size:13px;
  letter-spacing:.12em;
  text-transform:uppercase;
  padding-top:22px;
  font-weight:600;
  position: relative;
  z-index: 1;
}
.timeline-card{
  padding:0;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background: linear-gradient(135deg,
    rgba(255,255,255,.95) 0%,
    rgba(248,244,238,.95) 100%);
  transition:
    transform var(--motion-slow) var(--ease-standard),
    box-shadow var(--motion-slow) var(--ease-standard),
    border-color var(--motion-slow) var(--ease-standard);
  position: relative;
  display: flex;
  gap: 18px;
  overflow: hidden;
}
.timeline-card::before{
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(to bottom, var(--primary), var(--accent-coral));
  opacity: 0;
  transition: opacity 0.35s ease;
}
.timeline-card:hover{
  box-shadow: 0 12px 32px rgba(26,77,92,.18);
  transform: translateX(8px) translateY(-4px);
  border-color: rgba(12,124,158,.35);
  background: linear-gradient(135deg,
    rgba(255,255,255,1) 0%,
    rgba(248,244,238,1) 100%);
}
.timeline-card:hover::before{
  opacity: 1;
}
.timeline-icon{
  font-size: 48px;
  padding: 24px 0 24px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.75;
  filter: grayscale(0.15) saturate(0.85);
  transition: transform var(--motion-slow) var(--ease-standard), filter var(--motion-slow) var(--ease-standard), opacity var(--motion-slow) var(--ease-standard);
}
.timeline-card:hover .timeline-icon{
  opacity: 1;
  filter: grayscale(0) saturate(1);
  transform: scale(1.15) rotate(5deg);
}
/* Emphasize Wedding Day */
.timeline-item.wedding-dominant .timeline-card{
  background: linear-gradient(135deg,
    rgba(255,255,255,1) 0%,
    rgba(248,244,238,1) 100%);
  border-color: rgba(12,124,158,.2);
}
.timeline-item.wedding-dominant .timeline-content h3{
  font-weight:800;
  color: color-mix(in srgb, var(--heading) 85%, var(--primary-dark) 15%);
}
.timeline-item.wedding-dominant .timeline-icon{
  opacity: 1;
  filter: none;
}
.timeline-content{
  padding: 24px 24px 24px 0;
  flex: 1;
}
.timeline-content h3{
  margin:0 0 8px;
  font-size:20px;
  font-weight:700;
  color:var(--heading);
  letter-spacing: 0.3px;
  font-family: var(--serif);
}
.timeline-content p{
  margin:0;
  color:var(--muted);
  line-height:1.65;
  font-size: 15px;
}

.grid{
  display:grid;
  gap:20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
  margin-top: 40px;
}
.thumb{
  padding:0;
  border:0;
  border-radius:12px;
  overflow:hidden;
  cursor:pointer;
  background:transparent;
  transition: transform var(--motion-med) var(--ease-standard), box-shadow var(--motion-med) var(--ease-standard);
  position: relative;
}
/* Staggered heights for masonry effect */
.thumb:nth-child(3n+1){
  grid-row: span 1;
}
.thumb:nth-child(3n+2){
  grid-row: span 2;
}
.thumb:nth-child(3n){
  grid-row: span 1;
}
/* Occasionally let one image span wider */
.thumb:nth-child(5),
.thumb:nth-child(8){
  grid-column: span 2;
}
.thumb:hover{
  box-shadow: 0 8px 24px rgba(26,77,92,.15);
  transform: translateY(-3px);
  z-index: 2;
}
.thumb img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition: transform 400ms var(--ease-standard);
}
.thumb:hover img{ transform:scale(1.04); }

.lightbox{
  position:fixed;
  inset:0;
  background:rgba(250,248,243,.97);
  backdrop-filter: blur(16px);
  place-items:center;
  padding:24px;
  z-index:100;
  display:none;
}
.lightbox:not([hidden]){
  display:grid;
}
.lightbox img{
  max-width:min(980px, 92vw);
  max-height:86vh;
  border-radius:16px;
  border:1px solid var(--line);
  box-shadow: 0 20px 60px rgba(47,74,92,.2);
}
.lb-close{
  position:fixed;
  top:20px; right:20px;
  width:48px; height:48px;
  border-radius:50%;
  border:1px solid var(--line);
  background:var(--card);
  color:var(--heading);
  font-size:28px;
  cursor:pointer;
  transition: transform var(--motion-med) var(--ease-standard), background-color var(--motion-med) var(--ease-standard);
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
}
.lb-close:hover{
  background:var(--card-light);
  transform: rotate(90deg);
}

/* RSVP Section */
.rsvp-header{
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
}
.rsvp-intro{
  color:var(--text);
  font-size: 18px;
  line-height: 1.7;
  margin: 16px auto 0;
  max-width: 55ch;
}
.rsvp-reassurance{
  color:var(--muted);
  font-size: 15px;
  margin: 10px auto 0;
  font-style: italic;
}
.rsvp-form-card{
  max-width: 680px;
  margin: 0 auto;
  padding: 48px;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg,
    rgba(255,255,255,1) 0%,
    rgba(250,248,243,.98) 100%);
  box-shadow: 0 24px 72px rgba(26,77,92,.14);
  position: relative;
  overflow: hidden;
}

html.rsvp-viewport-locked,
body.rsvp-viewport-locked{
  overflow: hidden;
}
.rsvp-form-card::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--accent-coral), var(--accent-gold));
}
.rsvp-form{
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.rsvp-wizard{
  gap: 18px;
}
.wizard-top{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.wizard-steptext{
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.wizard-bar{
  height: 3px;
  border-radius: 999px;
  background: rgba(26,77,92,.10);
  overflow: hidden;
}
.wizard-bar-fill{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent-gold), var(--accent-coral));
  transition: width 240ms ease;
}
.wizard-steps{
  position: relative;
  min-height: 260px;
}
.wizard-step{
  display:none;
}
.wizard-step.is-active{
  display:block;
  animation: wizardIn 220ms ease both;
}
@keyframes wizardIn{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}
.wizard-prompt{
  font-family: var(--serif);
  color: var(--heading);
  font-size: clamp(22px, 3.2vw, 30px);
  line-height: 1.15;
  margin: 4px 0 18px 0;
  font-weight: 600;
}
.wizard-hint{
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}
.wizard-summary{
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 18px 0;
  line-height: 1.7;
}

.wizard-fieldset{
  border: 0;
  padding: 0;
  margin: 0;
}

.option-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.option-tile{
  position: relative;
  display:flex;
  flex-direction:column;
  gap: 6px;
  padding: 18px 18px;
  border-radius: 18px;
  border: 1.5px solid rgba(26,77,92,.12);
  background: white;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.option-tile:hover{
  transform: translateY(-1px);
  border-color: rgba(26,77,92,.22);
  box-shadow: 0 10px 30px rgba(26,77,92,.10);
}
.option-tile.is-selected{
  border-color: var(--primary);
  box-shadow: 0 14px 40px rgba(12,124,158,.18);
}
.option-tile input{
  position:absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.option-title{
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.1;
  color: var(--heading);
  font-weight: 700;
}
.option-sub{
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.tile-list{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.guest-attendance-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1.5px solid rgba(26,77,92,.12);
  background: white;
}
.guest-attendance-name{
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
}
.guest-attendance-options{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.attendance-pill{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(26,77,92,.12);
  background: white;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, outline-color 180ms ease;
  user-select: none;
}
.attendance-pill:hover{
  transform: translateY(-1px);
  border-color: rgba(26,77,92,.22);
  box-shadow: 0 10px 28px rgba(26,77,92,.09);
}
.attendance-pill input{
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.attendance-mark{
  font-weight: 900;
  opacity: 0.35;
  color: var(--faint);
}
.attendance-pill.is-selected .attendance-mark{
  opacity: 1;
}
.attendance-text{
  color: var(--heading);
  font-size: 14px;
  font-weight: 700;
}
.attendance-pill.attendance-yes.is-selected{
  border-color: var(--accent-palm);
  outline: 2px solid var(--accent-palm);
  outline-offset: 1px;
}
.attendance-pill.attendance-no.is-selected{
  border-color: var(--accent-stop);
  outline: 2px solid var(--accent-stop);
  outline-offset: 1px;
}
.attendance-pill.attendance-yes.is-selected .attendance-text,
.attendance-pill.attendance-yes.is-selected .attendance-mark{
  color: var(--accent-palm);
}
.attendance-pill.attendance-no.is-selected .attendance-text,
.attendance-pill.attendance-no.is-selected .attendance-mark{
  color: var(--accent-stop);
}
.check-tile{
  position: relative;
  display:flex;
  gap: 12px;
  align-items:flex-start;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1.5px solid rgba(26,77,92,.12);
  background: white;
  cursor:pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.check-tile:hover{
  border-color: rgba(26,77,92,.22);
  box-shadow: 0 10px 28px rgba(26,77,92,.09);
}
.check-tile.is-selected{
  border-color: var(--primary);
  box-shadow: 0 12px 36px rgba(12,124,158,.16);
}
.check-tile input{
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.check-text{
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}
.rsvp-wizard input,
.rsvp-wizard select,
.rsvp-wizard textarea{
  padding: 18px 20px;
  border-radius: 18px;
  border-color: rgba(26,77,92,.10);
}
.rsvp-wizard input:focus,
.rsvp-wizard select:focus,
.rsvp-wizard textarea:focus{
  box-shadow: 0 0 0 5px rgba(12,124,158,.10);
}
.wizard-error{
  min-height: 18px;
  margin: 8px 0 0 0;
  color: var(--accent-coral);
  font-size: 13px;
  font-weight: 600;
}
.has-error{
  border-color: var(--accent-coral) !important;
  background: var(--card-light) !important;
}
.wizard-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  margin-top: 4px;
}
.wizard-actions .btn{
  padding: 14px 22px;
}
.wizard-next{
  margin-left: auto;
}
.wizard-back{
  background: transparent;
}
@media (max-width: 720px){
  .rsvp-form-card{ padding: 28px 18px; border-radius: 20px; }
  .rsvp-form-card.is-viewport{
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
    border: 0;
    padding: calc(18px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom)) 16px;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-shadow: none;
    z-index: 1000;
  }
  .rsvp-form-card.is-viewport .wizard-actions{
    position: sticky;
    bottom: 0;
    padding-top: 14px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    background: linear-gradient(to top,
      rgba(250,248,243,.98) 0%,
      rgba(250,248,243,.90) 65%,
      rgba(250,248,243,0) 100%);
  }
  .wizard-steps{ min-height: 290px; }
  .wizard-actions{ flex-direction: column-reverse; align-items: stretch; }
  .wizard-actions .btn{ width: 100%; }
  .wizard-back{ opacity: 0.92; }
  .option-grid{ grid-template-columns: 1fr; }
  .check-tile input{ width: 20px; height: 20px; }
  .guest-attendance-row{ align-items: center; }
  .guest-attendance-name{ padding-top: 0; }
}
.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.field-label{
  color:var(--heading);
  font-size:14px;
  font-weight:600;
  letter-spacing: 0.3px;
}
.field-optional{
  color:var(--muted);
  font-weight:400;
  font-size: 13px;
}
input, select, textarea{
  width:100%;
  padding:15px 18px;
  border-radius:14px;
  border:1.5px solid var(--line);
  background: white;
  color:var(--text);
  outline:none;
  font-family:var(--sans);
  font-size:15px;
  transition:
    border-color var(--motion-med) var(--ease-standard),
    box-shadow var(--motion-med) var(--ease-standard),
    background-color var(--motion-med) var(--ease-standard);
}

/* Keep choice inputs compact (override global input styling) */
input[type="checkbox"],
input[type="radio"]{
  width:auto;
  padding:0;
  border-radius: 6px;
  accent-color: var(--primary);
  transform: none;
  box-shadow: none;
}
input[type="radio"]{
  border-radius: 999px;
}
input::placeholder, textarea::placeholder{
  color:var(--faint);
}
input:hover, select:hover, textarea:hover{
  border-color:var(--line-strong);
}
input:focus, select:focus, textarea:focus{
  border-color:var(--primary);
  box-shadow: 0 0 0 4px rgba(12,124,158,.08);
  background: white;
}
textarea{
  resize:vertical;
  min-height:100px;
  line-height: 1.6;
}

.choice-group{
  display:flex;
  flex-direction:column;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: white;
}
.choice{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}
.choice input{
  margin-top: 2px;
}
.btn-submit{
  margin-top: 16px;
  padding: 18px 40px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.6px;
  box-shadow: 0 10px 28px rgba(12,124,158,.35);
  width: 100%;
}
.btn-submit:hover{
  box-shadow: 0 14px 36px rgba(12,124,158,.45);
}
.hidden{ display:none; }


.site-footer{
  border-top:1px solid var(--line-strong);
  padding:60px 0 48px;
  background: linear-gradient(to bottom,
    var(--bg2) 0%,
    color-mix(in srgb, var(--bg2) 70%, var(--card) 30%) 100%);
}
.footer-message{
  text-align: center;
  font-family: var(--serif);
  font-size: 20px;
  color:var(--heading);
  margin: 0 0 36px;
  font-weight: 500;
  line-height: 1.5;
  font-style: italic;
}

.footer-contact{
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 0 0 32px;
}
.footer-contact-label{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.footer-contact-actions{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-contact-link{
  color: var(--heading);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.footer-contact-link:hover{
  color: var(--primary);
}
.footer-contact-link:focus-visible{
  outline: 2px solid color-mix(in srgb, var(--primary) 55%, transparent);
  outline-offset: 3px;
  border-radius: 6px;
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.footer-mark{
  font-family:var(--serif);
  font-weight:600;
  letter-spacing:.5px;
  color:var(--heading);
  font-size:17px;
}
.footer-sub{
  color:var(--muted);
  font-size:14px;
  margin-top:6px;
}
.footer-links{
  display:flex;
  gap:20px;
  color:var(--text);
  font-weight:500;
}
.footer-links a{
  text-decoration:none;
  transition: color 0.2s ease;
  font-size: 14px;
}
.footer-links a:hover{
  color:var(--primary);
  text-decoration:none;
}

/* Section Background Variations */
.section-wrapper{
  position: relative;
  overflow: hidden;
}

.timeline-wrapper{
  background: linear-gradient(to bottom,
    var(--bg) 0%,
    var(--bg2) 56%,
    var(--bg) 100%);
  position: relative;
}
.timeline-wrapper::after{
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(12,124,158,.04) 0%, transparent 70%);
  pointer-events: none;
}

.gallery-wrapper{
  background: linear-gradient(to bottom,
    var(--bg) 0%,
    var(--bg2) 56%,
    var(--bg) 100%);
  position: relative;
}
.gallery-wrapper::before{
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232,146,124,.05) 0%, transparent 70%);
  pointer-events: none;
}

.travel-section{
  background:
    radial-gradient(ellipse 800px 600px at 80% 20%, rgba(12,124,158,.04), transparent 70%),
    radial-gradient(ellipse 700px 500px at 20% 80%, rgba(212,175,55,.03), transparent 70%),
    linear-gradient(to bottom, var(--bg) 0%, var(--bg2) 56%, var(--bg) 100%);
  position: relative;
}
.travel-card{
  padding: 28px;
  background: linear-gradient(135deg,
    rgba(255,255,255,.95) 0%,
    rgba(250,248,243,.92) 100%);
}
.travel-subcard{
  padding: 20px;
  box-shadow: none;
  background: rgba(255,255,255,.6);
  border-color: rgba(26,77,92,.15);
}

.travel-key{
  margin: 10px 0 0 0;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.75);
}
.travel-key ul{
  margin: 0 0 10px 18px;
  padding: 0;
}
.travel-key li{
  margin: 6px 0;
}
.travel-key-link a{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.attire-section{
  background:
    radial-gradient(ellipse 820px 620px at 18% 22%, rgba(232,146,124,.05), transparent 70%),
    radial-gradient(ellipse 760px 540px at 84% 76%, rgba(12,124,158,.04), transparent 70%),
    linear-gradient(to bottom, var(--bg) 0%, var(--bg2) 56%, var(--bg) 100%);
  position: relative;
}
.attire-card{
  padding: 28px;
  background: linear-gradient(135deg,
    rgba(255,255,255,.95) 0%,
    rgba(250,248,243,.92) 100%);
}
.attire-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 18px;
}
.attire-key{
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.78);
}
.attire-key-title{
  font-size: 1.08em;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 10px 0;
}
.attire-key ul{
  margin: 0 0 0 18px;
  padding: 0;
}
.attire-key li{
  margin: 8px 0;
}
.attire-subcard{
  padding: 20px;
  box-shadow: none;
  background: rgba(255,255,255,.6);
  border-color: rgba(26,77,92,.15);
}
.attire-note{
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 3px solid rgba(12,124,158,.45);
  border-radius: 14px;
  background: rgba(255,255,255,.58);
  color: var(--muted);
  line-height: 1.7;
}

.rsvp-wrapper{
  background: linear-gradient(to bottom,
    var(--bg) 0%,
    var(--bg2) 56%,
    var(--bg) 100%);
  position: relative;
}

/* FAQ section: match the same calm background rhythm */
#faq.section{
  background: linear-gradient(to bottom,
    var(--bg) 0%,
    var(--bg2) 56%,
    var(--bg) 100%);
}
.rsvp-wrapper::before{
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(12,124,158,.03) 0%, transparent 70%);
  pointer-events: none;
}

/* Floating Decorative Elements */
.floating-decorator{
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
}

@keyframes float{
  0%, 100%{ transform: translateY(0) rotate(-15deg); }
  50%{ transform: translateY(-20px) rotate(-15deg); }
}

@keyframes planeFly{
  0%, 100%{ transform: rotate(-45deg) translate(0, 0); }
  50%{ transform: rotate(-45deg) translate(5px, -5px); }
}

/* Spiraling airplane trail */
.plane-trail{
  top: 10%;
  right: -5%;
  width: 600px;
  height: 800px;
  background-image:
    linear-gradient(135deg, transparent 48%, var(--primary) 48%, var(--primary) 50%, transparent 50%),
    linear-gradient(135deg, transparent 48%, var(--primary) 48%, var(--primary) 50%, transparent 50%);
  background-size: 40px 40px, 40px 40px;
  background-position: 0 0, 20px 20px;
  background-repeat: repeat;
  mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 400"><path d="M 20 0 Q 80 100 40 200 Q 0 300 60 400" fill="none" stroke="white" stroke-width="60" opacity="0.3"/></svg>');
  mask-size: contain;
  mask-repeat: no-repeat;
  animation: float 8s ease-in-out infinite;
}

.plane-trail::after{
  content: '✈';
  position: absolute;
  top: 5%;
  right: 15%;
  font-size: 36px;
  color: var(--primary);
  animation: planeFly 4s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(12,124,158,.3));
}

/* Palm leaf decorations */
.palm-leaf{
  width: 200px;
  height: 300px;
  opacity: 0.08;
}

.palm-leaf.left{
  top: 35%;
  left: -3%;
  background:
    radial-gradient(ellipse 80px 150px at 50% 50%, var(--accent-palm) 0%, transparent 70%),
    radial-gradient(ellipse 60px 120px at 60% 40%, var(--accent-palm) 0%, transparent 60%),
    radial-gradient(ellipse 60px 120px at 40% 60%, var(--accent-palm) 0%, transparent 60%);
  transform: rotate(-25deg);
}

.palm-leaf.right{
  bottom: 15%;
  right: -2%;
  background:
    radial-gradient(ellipse 80px 150px at 50% 50%, var(--accent-palm) 0%, transparent 70%),
    radial-gradient(ellipse 60px 120px at 60% 40%, var(--accent-palm) 0%, transparent 60%),
    radial-gradient(ellipse 60px 120px at 40% 60%, var(--accent-palm) 0%, transparent 60%);
  transform: rotate(35deg) scaleX(-1);
}

/* Wave pattern */
.wave-pattern{
  bottom: 20%;
  left: -10%;
  width: 800px;
  height: 200px;
  opacity: 0.06;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 50px,
      var(--primary) 50px,
      var(--primary) 52px
    );
  mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 200"><path d="M0,100 Q150,50 300,100 T600,100 T900,100 T1200,100" fill="none" stroke="white" stroke-width="80"/></svg>');
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}

@media (max-width: 900px){
  .grid{
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    grid-auto-rows: 160px;
    gap: 16px;
  }
  .thumb:nth-child(5),
  .thumb:nth-child(8){
    grid-column: span 1;
  }

  .floating-decorator{
    opacity: 0.1;
  }
  .plane-trail{
    width: 400px;
    height: 600px;
  }
}

@media (max-width: 720px){
  :root{ --scroll-offset: 0px; }

  /* Keep mobile flow calm; hide floating decor between sections */
  .floating-decorator{ display:none; }

  .hand-divider{
    padding: 24px 0;
  }

  .hand-divider-svg{
    height: 28px;
  }

  .hand-underline{
    margin: 8px 0 14px;
  }

  .hand-underline-svg{
    height: 14px;
  }

  /* Ensure all tap targets are at least 44x44px */
  .btn{
    min-height: 44px;
    padding: 12px 24px;
  }
  .nav{ display:none; }
  .nav-toggle{
    display:flex;
    min-width: 44px;
    min-height: 44px;
    margin-right: 12px;
  }
  .nav-toggle-indicator{
    top: 5px;
    right: 5px;
  }
  .site-header{
    position: relative;
    top: auto;
    backdrop-filter: blur(16px);
    background-color:rgba(250,248,243,.98);
    border-bottom:1px solid var(--line);
  }
  .header-inner{
    padding: 12px 0;
  }
  .brand{
    line-height: 1;
  }
  .section-head-meta{
    gap: 8px;
    margin-bottom: 10px;
  }
  .new-chip{
    font-size: 9px;
    letter-spacing: .16em;
  }
  .new-chip-nav{
    padding: 4px 7px;
    font-size: 8px;
  }
  .section h2{
    margin-bottom: 24px;
  }
  .timeline::before{
    display: none;
  }
  .timeline{
    gap: 16px;
  }
  .timeline-item{
    grid-template-columns: 1fr;
    gap: 8px;
    opacity: 1;
    transform: none;
    animation: none;
  }
  .timeline-date{
    padding-top:0;
    padding-left: 0;
    font-size: 11px;
    margin-bottom: 4px;
  }
  .timeline-card{
    gap: 12px;
  }
  .timeline-icon{
    font-size: 32px;
    padding: 16px 0 16px 16px;
  }
  .timeline-content{
    padding: 16px 16px 16px 0;
  }
  .timeline-content h3{
    font-size: 17px;
    margin-bottom: 6px;
  }
  .timeline-content p{
    font-size: 14px;
    line-height: 1.5;
  }
  .grid{
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
    gap: 12px;
    margin-top: 24px;
  }
  /* Reset staggered heights on mobile for consistency */
  .thumb:nth-child(3n+1),
  .thumb:nth-child(3n+2),
  .thumb:nth-child(3n){
    grid-row: span 1;
  }
  .thumb:nth-child(5),
  .thumb:nth-child(8){
    grid-column: span 1;
  }
  .thumb{
    border-radius: 8px;
  }
  /* Reduce hover effects on mobile */
  .thumb:hover{
    transform: none;
  }
  .thumb:active{
    transform: scale(0.98);
  }

  .section h2::after{
    width: 50px;
    bottom: -8px;
  }

  .form-row{
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .rsvp-form-card{
    padding: 28px 20px;
  }
  .rsvp-intro{
    font-size: 15px;
  }
  .rsvp-reassurance{
    font-size: 14px;
  }
  .rsvp-form{
    gap: 20px;
  }
  /* Larger touch targets - 16px font prevents iOS zoom */
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea{
    padding: 16px 18px;
    font-size: 16px;
    border-radius: 12px;
    -webkit-appearance: none;
    appearance: none;
  }
  /* Ensure choice inputs render natively on mobile (iOS Safari) */
  input[type="checkbox"],
  input[type="radio"]{
    -webkit-appearance: auto;
    appearance: auto;
  }
  select{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%231A4D5C' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
  }
  .field-label{
    font-size: 13px;
  }
  .btn-submit{
    padding: 18px 32px;
    font-size: 16px;
    margin-top: 12px;
  }

  .split{
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .travel-card{
    padding: 20px;
  }
  .travel-card p{
    font-size: 15px !important;
  }
  .travel-subcard{
    padding: 16px;
  }
  .travel-subcard p{
    font-size: 14px !important;
  }
  .attire-card{
    padding: 20px;
  }
  .attire-card p{
    font-size: 15px !important;
  }
  .attire-grid{
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .attire-key{
    padding: 16px;
  }
  .attire-subcard{
    padding: 16px;
  }
  .attire-subcard p{
    font-size: 14px !important;
  }
  .attire-note{
    padding: 14px 16px;
  }

  .site-footer{
    padding: 40px 0 32px;
    margin-top: 0;
  }
  .footer-message{
    font-size: 17px;
    margin-bottom: 24px;
    line-height: 1.4;
  }
  .footer-inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-mark{
    font-size: 16px;
  }
  .footer-sub{
    font-size: 13px;
    margin-top: 4px;
  }
  .footer-links{
    gap: 16px;
  }
  .footer-links a{
    font-size: 13px;
  }
}
