:root {
  --bg: #0e0f12;
  --bg-soft: #151720;
  --text: #f6f6f6;
  --muted: #b9bfd1;
  --primary: #ffd7e0; /* soft blush */
  --accent: #a7ffeb;  /* mint glow */
  --gold: #e7c888;
  /* Section glow base (bluish) as RGB for easy alpha tweaks */
  --section-glow-rgb: 96, 140, 255;
  /* Hint UA widgets to prefer dark styling where supported */
  color-scheme: dark;
  --form-max: 520px;
  /* Shared timing for invite modal fade animations */
  --invite-fade-ms: 1100ms;
}

* { box-sizing: border-box; }
html, body { height:100%; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
html { scroll-behavior: smooth; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  z-index: 5;
  backdrop-filter: blur(8px);
  background: linear-gradient(to bottom, rgba(14,15,18,.65), rgba(14,15,18,.2), rgba(14,15,18,0));
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header .logo {
  font-family: "Playfair Display", Georgia, serif;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  letter-spacing: .18em;
  font-size: 16px;
  color: var(--gold);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  padding: 4px 14px 4px 8px; /* room for pill shape */
  border-radius: 999px; /* oval */
  background: linear-gradient(135deg, rgba(231,200,136,.12), rgba(231,200,136,.04));
  border: 1px solid rgba(231,200,136,.38);
  box-shadow: 0 2px 8px -2px rgba(231,200,136,.35), inset 0 0 0 1px rgba(231,200,136,.25);
  transition: background .35s ease, box-shadow .35s ease, transform .35s ease, letter-spacing .35s ease;
}
.site-header .logo::after { content: none; }
.site-header .logo img.logo-img {
  height: 44px;
  width: auto;
  display: block;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0; /* remove circle */
  background: none;
  box-shadow: none;
  object-fit: contain;
  object-position: center;
  transition: transform .35s ease;
}
.site-header .logo:hover img.logo-img,
.site-header .logo:focus-visible img.logo-img { transform: translateY(-1px); }
.site-header .logo:hover,
.site-header .logo:focus-visible {
  letter-spacing: .24em;
  background: linear-gradient(135deg, rgba(231,200,136,.22), rgba(231,200,136,.08));
  box-shadow: 0 6px 22px -6px rgba(231,200,136,.45), inset 0 0 0 1px rgba(231,200,136,.55);
  transform: translateY(-2px);
}
.site-header .logo:active img.logo-img { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .site-header .logo { transition: none; }
  .site-header .logo img.logo-img { transition: none; }
}
.site-header nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 18px;
  opacity: .85;
}
.site-header nav a:hover { opacity: 1; }
.site-header nav a[aria-current="page"] {
  opacity: .45;
  cursor: default;
  pointer-events: none;
  font-weight: 600;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
}
/* Beach photo as the deepest layer; glows sit above via .hero-bg */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(180deg, rgba(10,12,16,.55), rgba(10,12,16,.75)),
    url("../images/beach.jpg"); /* Put your beach photo here */
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  /* Hint: remove the gradient above if your photo is already dark enough */
}
.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg::before {
  background: radial-gradient(650px 350px at 30% 30%, rgba(255, 215, 224, .24), transparent 60%),
              radial-gradient(600px 300px at 70% 20%, rgba(167, 255, 235, .30), transparent 60%);
  filter: blur(10px);
}
.hero-bg::after {
  background: repeating-radial-gradient(circle at 50% -10%, rgba(255,255,255,.02), rgba(255,255,255,0) 160px);
  mask: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,.6) 40%, rgba(0,0,0,0));
}
.hero-content {
  margin: 0 auto;
  padding: 120px 24px 60px;
  text-align: center;
  max-width: 920px;
}
/* Welcome split layout */
.welcome-split {display:flex;align-items:center;gap:48px;justify-content:space-between;flex-wrap:wrap;}
.welcome-text {flex:1 1 460px;min-width:300px;}
.welcome-logo {flex:0 0 320px;display:flex;align-items:center;justify-content:center;}
.welcome-logo-img {max-width:320px;width:100%;height:auto;filter:drop-shadow(0 12px 28px rgba(0,0,0,.55)) brightness(.97);transition:transform .6s ease, filter .6s ease;}
/* Click-only state: logo stays transformed while active */
.welcome-logo-img.logo-active {
  transform: rotate(-2deg) scale(1.05);
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.6)) brightness(1);
}
@media (prefers-reduced-motion: reduce){
  .welcome-logo-img.logo-active { transform: none; }
}
.welcome-logo {position:relative;}
/* Speech bubble: always centered above the logo */
/* .welcome-bubble lowered closer to logo */
.welcome-bubble {position:absolute;bottom:100%;left:50%;z-index:2;width:clamp(140px,50%,220px);aspect-ratio:1/1;opacity:0;pointer-events:none;transform:translate(-50%, 24px) scale(.9) rotate(3deg);transition:opacity .35s ease, transform .45s cubic-bezier(.16,.64,.34,1);filter:drop-shadow(0 8px 24px rgba(0,0,0,.45)) brightness(1.05);}
.welcome-bubble.show {opacity:1;pointer-events:auto;transform:translate(-50%, 24px) scale(1) rotate(0deg);}
@media (prefers-reduced-motion: reduce){
  .welcome-bubble{transition:opacity .25s ease;} 
  .welcome-bubble.show{transform:translate(-50%, 24px) scale(1) rotate(0);} 
}
@media (max-width:960px){
  .welcome-split {gap:32px;}
  .welcome-logo {flex:1 1 100%;}
  .welcome-logo-img {max-width:260px;margin:4px auto 0;}
}
@media (max-width:640px){
  .welcome-split {flex-direction:column;gap:20px;}
  .welcome-logo-img {max-width:210px;margin:0 auto;}
  .welcome-text {flex:1 1 auto;}
}
@media (max-width:440px){
  .welcome-split {gap:14px;}
  .welcome-logo-img {max-width:190px;}
}
.hero .names {
  display: inline-block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(36px, 7vw, 74px);
  font-weight: 600;
  letter-spacing: .02em;
}
.hero .amp {
  color: var(--gold);
  font-weight: 600;
}
.hero .tagline {
  display: block;
  margin-top: 8px;
  font-weight: 300;
  font-size: clamp(18px, 3vw, 26px); /* slightly larger */
  color: var(--muted);
}
.date-location { color: var(--muted); font-size: clamp(16px, 2.4vw, 24px); font-weight: 500; letter-spacing: .03em; margin-top: 10px; }
.date-location .date { color: var(--gold); font-weight: 600; }

/* Countdown */
.countdown {
  display: inline-grid;
  grid-template-columns: repeat(4, minmax(70px, 1fr));
  gap: 12px;
  margin: 22px auto 0;
}
.countdown div {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 14px 10px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), 0 10px 30px rgba(0,0,0,.30);
}
.countdown span {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(24px, 4vw, 36px);
}
.countdown small { color: var(--muted); }

/* CTA */
.cta {
  display: inline-block;
  margin-top: 28px;
  background: linear-gradient(135deg, var(--gold), #f6e7c9);
  color: #1b1206;
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(231,200,136,.35);
  transition: transform .15s ease, box-shadow .2s ease;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 16px 34px rgba(231,200,136,.45); }
.cta:active { transform: translateY(0); }
/* Disabled CTA (invite-only gating) */
.cta[disabled],
.cta[aria-disabled="true"] {
  background: linear-gradient(135deg, #555, #444);
  color: #bbb !important;
  box-shadow: none;
  cursor: not-allowed;
  opacity: .55;
  filter: grayscale(25%);
  transform: none !important;
}
.cta[disabled]:hover,
.cta[aria-disabled="true"]:hover { box-shadow: none; }

/* Scroll indicator */
.scroll-indicator { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); opacity: .7; text-decoration: none; padding: 12px 14px; border-radius: 999px; }
.scroll-indicator:hover { opacity: 1; }
.scroll-indicator span { display: inline-block; width: 3px; height: 54px; background: linear-gradient(to bottom, rgba(255,255,255,.75), rgba(255,255,255,0)); animation: scroll 1.8s infinite; border-radius: 3px; }
@keyframes scroll { 0%{ transform: translateY(0);} 70%{ transform: translateY(8px);} 100%{ transform: translateY(0);} }

/* Sections */
.section {
  padding: 84px 24px;
  opacity: .0;
  transform: translateY(12px);
  transition: opacity .6s ease, transform .6s ease;
  /* Left-side glow per section */
  background: radial-gradient(ellipse farthest-corner at 0% 50%,
              rgba(var(--section-glow-rgb), .10) 0%,
              rgba(var(--section-glow-rgb), .04) 40%,
              rgba(var(--section-glow-rgb), 0) 100%);
}
.section.in { opacity: 1; transform: translateY(0); }
.section.alt {
  /* Layer the left glow over the existing subtle vertical sheen */
  background: 
    radial-gradient(ellipse farthest-corner at 100% 50%,
      rgba(var(--section-glow-rgb), .10) 0%,
      rgba(var(--section-glow-rgb), .04) 40%,
      rgba(var(--section-glow-rgb), 0) 100%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.0));
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.container { max-width: 960px; margin: 0 auto; }
.section h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(24px, 4vw, 34px);
  margin: 0 0 12px 0;
}
.section p { color: var(--muted); }

/* Gallery */
.gallery { display: grid; gap: 28px; }
.gallery h3 { margin: 8px 0 10px; font-weight: 600; color: var(--muted); text-align: center; }
.carousel { overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.02); }
.carousel .track { display: flex; width: max-content; will-change: transform; }
.carousel .group { display: flex; gap: 12px; padding: 10px; }
.carousel img { display: block; height: 160px; width: auto; object-fit: cover; border-radius: 10px; }
/* show click affordance, covers cloned images too */
.gallery img { cursor: zoom-in; }
@media (min-width: 720px) { .carousel img { height: 200px; } }

/* Quick links grid */
.link-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 18px;
}
.feature-link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 18px 22px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  text-decoration: none;
  background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  overflow: hidden;
  color: #fff;
  transition: border-color .3s ease, transform .35s cubic-bezier(.4,.8,.2,1), box-shadow .35s ease, background .35s ease;
}
.feature-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(231,200,136,.25), transparent 65%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.feature-link .icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(231,200,136,.10);
  color: #e7c888;
  box-shadow: 0 4px 14px -4px rgba(231,200,136,.35), inset 0 0 0 1px rgba(231,200,136,.35);
  transition: background .35s ease, transform .35s cubic-bezier(.4,.8,.2,1), box-shadow .35s ease;
}
.feature-link .title { font-weight: 600; font-size: 1.05rem; letter-spacing: .5px; }
.feature-link .desc { font-size: .9rem; color: var(--muted); line-height: 1.35; }
.feature-link:hover, .feature-link:focus-visible {
  border-color: rgba(231,200,136,.55);
  box-shadow: 0 10px 28px -8px rgba(231,200,136,.30), 0 0 0 1px rgba(231,200,136,.35);
  transform: translateY(-4px);
  background: linear-gradient(155deg, rgba(231,200,136,.14), rgba(60,50,30,.25) 55%, rgba(25,25,25,.6));
}
.feature-link:hover::before, .feature-link:focus-visible::before { opacity: 1; }
.feature-link:hover .icon, .feature-link:focus-visible .icon {
  background: rgba(231,200,136,.22);
  transform: scale(1.12) rotate(-3deg);
  box-shadow: 0 8px 26px -6px rgba(231,200,136,.45), inset 0 0 0 1px rgba(231,200,136,.65);
}
@media (prefers-reduced-motion: reduce) {
  .feature-link, .feature-link .icon { transition: none; }
  .feature-link:hover .icon { transform: none; }
}

/* Invite modal overlay */
.invite-modal { position: fixed; inset: 0; display: none; z-index: 50; }
.invite-modal[aria-hidden="false"] { display: block; }
.invite-modal.fading { pointer-events: none; }
.invite-backdrop { position: absolute; inset: 0; background-color: rgba(0,0,0,.80); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(4px); transition: background-color var(--invite-fade-ms) ease, backdrop-filter var(--invite-fade-ms) ease, -webkit-backdrop-filter var(--invite-fade-ms) ease; will-change: background-color, backdrop-filter; }
.invite-dialog { position: relative; min-height: 100%; display: grid; place-items: center; }
.confetti-canvas { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.invite-card { position: relative; z-index: 1; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 26px 22px; width: min(680px, 92vw); text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.35); transition: opacity var(--invite-fade-ms) ease, transform var(--invite-fade-ms) ease; }
.invite-modal.fading .invite-backdrop { background-color: rgba(0,0,0,0); backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px); }
.invite-modal.fading .invite-card { opacity: 0; transform: translateY(6px); }
.invite-card h2 { font-family: "Playfair Display", Georgia, serif; font-size: clamp(28px, 6vw, 48px); margin: 0 0 8px; }
.invite-card .invite-name { font-family: "Playfair Display", Georgia, serif; font-size: clamp(30px, 6vw, 50px); margin: 0 0 4px; }
.invite-card .invite-title { color: var(--muted); margin: 6px 0 12px; font-size: clamp(34px, 6.5vw, 56px); font-family: "Playfair Display", Georgia, serif; }

.details {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start; /* don't stretch siblings to the tallest tile */
}
.details li {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 14px;
  flex: 1 1 220px; /* min 220px, share remaining space equally */
}
.details strong { display: block; }
.details span { color: var(--muted); }

/* Restore numbering specifically for the Rules ordered list */
#rules ol.details {
  list-style: decimal;
  padding-left: 1.4rem; /* space for numbers */
  display: block; /* override flex so numbers align vertically */
  gap: 0; /* reset gap */
}
#rules ol.details li {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0 0 10px;
  margin: 0;
  flex: none;
}
#rules ol.details li strong { font-weight: 600; }

/* Subheadings for Events groups */
.subhead {
  margin: 8px 0 10px;
  font-weight: 600;
  color: var(--muted);
}

/* Inline badge for important callouts (e.g., "NO PHONES") */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(231,200,136,.14);
  border: 1px solid rgba(231,200,136,.35);
  color: #e7c888;
  font-weight: 700;
  letter-spacing: .02em;
  vertical-align: baseline;
}

/* Ensure override wins over `.details span` color */
.details span.no-phones { color: #c43636; font-weight: 700; }

/* Expandable tiles with arrow indicator */
#details .details li, #faq .details li, #dress-code .details li {
  position: relative;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
/* Remove arrow indicator; use pulse/glow instead */
#details .details li::after, #faq .details li::after, #dress-code .details li::after { content: none; }

/* Subtle pulse/glow to indicate expandability */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: inset 0 0 0 1px rgba(231,200,136, .06), 0 0 0 rgba(231,200,136, 0);
  }
  50% {
    box-shadow: inset 0 0 0 1px rgba(231,200,136, .16), 0 6px 18px rgba(231,200,136, .08);
  }
}
#details .details li, #faq .details li, #dress-code .details li {
  animation: pulseGlow 4.2s ease-in-out infinite;
}
#details .details li.open, #faq .details li.open, #dress-code .details li.open { animation: none; }
#details .details li:hover, #faq .details li:hover, #dress-code .details li:hover { border-color: rgba(231,200,136,.25); box-shadow: inset 0 0 0 1px rgba(231,200,136,.18), 0 8px 22px rgba(231,200,136,.12); }
@media (prefers-reduced-motion: reduce) {
  #details .details li, #faq .details li, #dress-code .details li { animation: none; }
}

/* Collapsible content animation for optional extra details */
#details .details li .more, #faq .details li .more, #dress-code .details li .more {
  display: block;
  overflow: hidden;
  max-height: 0;
  transition: max-height .25s ease;
  margin-top: 8px; /* space between time/location and details */
}
/* expansion height is controlled inline via JS for per-item control */

/* Ensure the time/location line sits on its own line above .more */
#details .details li > span:first-of-type, #faq .details li > span:first-of-type, #dress-code .details li > span:first-of-type {
  display: block;
}

/* Focus-visible outline for accessibility */
#details .details li:focus-visible, #faq .details li:focus-visible {
  outline: 3px solid rgba(231,200,136,.35);
  outline-offset: 2px;
}

/* FAQ: stack vertically, no card boxes */
#details .details { display:grid; gap:18px; grid-template-columns:1fr; margin:0; padding:0; list-style:none; }
/* Single item should span entire row */
#details .details > li:only-child { grid-column:1 / -1; }
@media (min-width:560px){
  #details .details { grid-template-columns:repeat(2,1fr); }
}
@media (min-width:1024px){
  #details .details { grid-template-columns:repeat(4,1fr); }
}
/* Ensure items stretch full height in grid for consistent card heights */
#details .details li { display:flex; flex-direction:column; }
#details .details li { position:relative; }
#details .details li .toggle-indicator { position:absolute; top:10px; right:12px; font-size:18px; line-height:1; opacity:.55; transition:transform .35s ease, opacity .3s ease; }
#details .details li.open .toggle-indicator { transform:rotate(45deg); opacity:1; }
#details .details li .more { flex:0 0 auto; }
#faq .details { display: block; }
#faq .details li {
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 10px 0;
  animation: none;
}
#faq .details li:hover { box-shadow: none; }

/* Subtle underline on FAQ (unordered list) question hover */
#faq ul.details li strong {
  display: inline-block;
  transition: text-decoration-color .15s ease;
  text-decoration: none;
}

/* Dress Code Tabs (file cabinet style) */
#dress-code .dress-tabs { margin-top:1rem; position:relative; }
#dress-code .dress-tabs .tab-list { display:flex; gap:6px; flex-wrap:nowrap; width:100%; align-items:stretch; }
#dress-code .dress-tabs [role="tab"] {
  position:relative;
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.14);
  border-bottom:1px solid rgba(255,255,255,.08);
  border-radius:8px 8px 0 0;
  padding:8px 14px 9px;
  font:600 13px/1.1 "Poppins",system-ui,Arial;
  letter-spacing:.06em;
  text-transform:uppercase;
  cursor:pointer;
  color:var(--muted);
  box-shadow:0 4px 14px -4px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.05);
  transition:background .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease;
}
#dress-code .dress-tabs [role="tab"][aria-selected="true"] {
  background:linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.04));
  color:var(--text);
  box-shadow:0 6px 22px -6px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,255,255,.06);
  z-index:3;
}
#dress-code .dress-tabs [role="tab"]:hover { color:#fff; }
#dress-code .dress-tabs [role="tab"]:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }

#dress-code .dress-tabs .dress-panels { position:relative; margin-top:0; padding-top:0; height:auto; transition:height .45s cubic-bezier(.16,.64,.34,1); }
#dress-code .dress-tabs .dress-panel {
  position:absolute;
  top:0; left:0; right:0;
  background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.14);
  border-radius:0 12px 12px 12px;
  padding:20px 22px 22px;
  box-shadow:0 14px 40px -10px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.05);
  opacity:0;
  transform:translateY(4px) scale(.985);
  transition:opacity .35s ease, transform .45s cubic-bezier(.16,.64,.34,1);
  pointer-events:none;
  z-index:0;
}
#dress-code .dress-tabs .dress-panel.active {
  opacity:1;
  transform:translateY(0) scale(1);
  pointer-events:auto;
  z-index:2;
}
@media (prefers-reduced-motion: reduce){
  #dress-code .dress-tabs .dress-panel { transition:none; }
}
#dress-code .dress-tabs .panel-title { margin:0 0 .75rem; font-size:1.05rem; font-weight:600; letter-spacing:.02em; }
#dress-code .dress-tabs .panel-title .panel-sub { display:block; font-size:.72rem; font-weight:600; letter-spacing:.15em; text-transform:uppercase; opacity:.65; margin-top:.4rem; }
#dress-code .dress-tabs p { margin:.4rem 0 .8rem; line-height:1.5; font-size:.86rem; }
#dress-code .dress-tabs .dress-emphasis { color:#a72222; font-weight:600; }

/* Attire gallery inside dress panels */
#dress-code .attire-gallery { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:14px; margin:8px 0 4px; }
#dress-code .attire-gallery figure { margin:0; position:relative; overflow:hidden; border-radius:10px; background:#111; box-shadow:0 8px 22px -8px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.06); }
#dress-code .attire-gallery img { width:100%; height:100%; display:block; object-fit:cover; aspect-ratio:3/4; filter:brightness(.94) saturate(1.05); transition:transform .5s ease, filter .4s ease; }
#dress-code .attire-gallery figure:hover img { transform:scale(1.06); filter:brightness(1) saturate(1.1); }
@media (max-width:640px){
  #dress-code .attire-gallery { grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:10px; }
}

/* Stack height management: reserve space equal to tallest panel to avoid layout shift */
/* height is dynamically set via JS to active panel height */
@media (max-width:640px){
  #dress-code .dress-tabs [role="tab"] { font-size:11px; padding:6px 8px 7px; letter-spacing:.08em; }
  #dress-code .dress-tabs .dress-panel { padding:16px 16px 18px; }
  /* dynamic height on mobile as well */
}
#faq ul.details li:hover strong {
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.35);
  text-underline-offset: 3px;
}

/* Numbered House Rules using outside markers on one line */
#faq ol.details {
  list-style: decimal;
  list-style-position: outside;
  padding-left: 1.25em;
}
#faq ol.details li { padding-left: 0; }
/* Ensure rule titles don’t force a newline after the number */
#faq ol.details li strong { display: inline; }

/* Booking: stack vertically, no card boxes */
#booking .details { display: block; }
#booking .details li {
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 12px 0;
}
#booking .details li + li {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.06); /* subtle divider between sections */
}
#booking .details li strong { display: block; margin-bottom: 6px; }
#booking .details li span { display: block; }
#booking .details li span + span { margin-top: 4px; }

/* Form */
.rsvp-form { display: grid; grid-template-columns: 1fr; gap: 14px; max-width: var(--form-max); }
.rsvp-form label { display: grid; gap: 6px; font-size: 14px; }
.rsvp-form input, .rsvp-form select, .rsvp-form textarea { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); color: var(--text); border-radius: 10px; padding: 10px 12px; }
.rsvp-form textarea { min-height: 96px; resize: vertical; line-height: 1.4; }
.rsvp-form input::placeholder { color: #8a8f9c; }
.rsvp-form .form-note { color: var(--muted); margin: 6px 0 0; font-size: 12px; }

/* Alerts */
.alert { margin: 8px 0 16px; padding: 12px 14px; border-radius: 10px; border: 1px solid transparent; }
.alert.success { background: rgba(88, 214, 141, .12); border-color: rgba(88, 214, 141, .35); color: #aaf0c6; }
.alert.error { background: rgba(255, 99, 99, .12); border-color: rgba(255, 99, 99, .35); color: #ffb3b3; }
/* Match alerts to form width and alignment */
#rsvp .alert { max-width: var(--form-max); text-align: left; }

/* Better dark dropdown styling */
.rsvp-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(255,255,255,.06);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23e7c888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}
.rsvp-form select:hover { border-color: rgba(255,255,255,.20); }
.rsvp-form select:focus { outline: none; border-color: rgba(255,255,255,.35); box-shadow: 0 0 0 3px rgba(231,200,136,.22); }
.rsvp-form select:invalid { color: #8a8f9c; }
.rsvp-form select option { background-color: #0e0f12; color: var(--text); }
.rsvp-form select option[disabled] { color: #8a8f9c; }
/* Hide legacy arrow in old IE/Edge */
.rsvp-form select::-ms-expand { display: none; }
.rsvp-deadline{margin:.25rem 0 1rem;font-size:.8rem;letter-spacing:.5px;text-transform:uppercase;opacity:.7;color:var(--muted);} 
.rsvp-deadline time{color:var(--gold);font-weight:600;}

/* Simple reveal animations */
.fade-up { opacity: 0; transform: translateY(10px); animation: fadeUp .8s ease forwards; animation-delay: var(--delay, 0s); }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ========== Booking Page Specific Styles (migrated from inline) ========== */
.rooms {display:flex;flex-direction:column;gap:1.5rem;margin:2rem 0;}
.room{background:rgba(255,255,255,.05);border-radius:18px;backdrop-filter:blur(5px);border:1px solid rgba(255,255,255,.08);position:relative;cursor:pointer;outline:none;padding:1rem 1.25rem 1.1rem;}
.room{transition:background .35s ease, border-color .35s ease, box-shadow .4s ease;}
.room[aria-expanded="true"]{background:linear-gradient(135deg, rgba(167,255,235,.18), rgba(255,215,224,.14));border-color:rgba(167,255,235,.55);box-shadow:0 6px 28px -6px rgba(167,255,235,.35), 0 2px 10px -2px rgba(255,215,224,.25);} 
.room[aria-expanded="true"] .room-thumb{filter:brightness(1);background:rgba(167,255,235,.12);} 
.room[aria-expanded="true"] h3{color:var(--accent);} 
.room:focus-visible{box-shadow:0 0 0 3px rgba(167,255,235,.45);}  
.room-head{display:flex;align-items:stretch;gap:18px;}
.room-thumb{width:300px;height:auto;max-height:240px;object-fit:contain;border-radius:14px;flex-shrink:0;filter:brightness(.92);background:rgba(255,255,255,.04);padding:4px;}  
@media (max-width:640px){.room-head{flex-direction:column;}.room-thumb{width:100%;height:240px;}}
.room h3{margin:.15rem 0 4px;font-size:1.08rem;}
.rate{font-size:.85rem;opacity:.75;margin:0 0 6px;}
.room p{font-size:.78rem;line-height:1.35;margin:0 0 4px;}
.room small{font-size:.65rem;letter-spacing:.05em;}
.room .toggle-indicator{position:absolute;top:10px;right:12px;font-size:20px;line-height:1;opacity:.55;transition:transform .35s ease, opacity .3s ease;}
.room[aria-expanded="true"] .toggle-indicator{transform:rotate(45deg);opacity:1;}
.room-hint{font-size:.58rem;letter-spacing:.12em;text-transform:uppercase;opacity:.5;margin-top:6px;}
.room-extra{overflow:hidden;max-height:0;opacity:0;transition:max-height .55s ease, opacity .4s ease;}
.room[aria-expanded="true"] .room-extra{opacity:1;}
.room-extra-inner{padding-top:.6rem;border-top:1px dashed rgba(255,255,255,.15);margin-top:.6rem;}
.room-extra ul{margin:.25rem 0 .6rem;padding-left:1.05rem;font-size:.7rem;line-height:1.4;opacity:.85;}
/* Mini carousel */
.mini-carousel{position:relative;margin:.25rem 0 .4rem;padding:0 34px;overflow:hidden;}
.mini-carousel .mc-track{display:flex;gap:10px;padding:6px 4px;overflow-x:auto;-webkit-overflow-scrolling:touch;cursor:grab;-ms-overflow-style:none;scrollbar-width:none;scroll-snap-type:none;}
.mini-carousel .mc-track:active{cursor:grabbing;}
.mini-carousel .mc-track::-webkit-scrollbar{display:none;}
.mini-carousel img{width:300px;height:auto;max-height:240px;border-radius:14px;flex:0 0 auto;scroll-snap-align:start;object-fit:contain;background:rgba(255,255,255,.04);filter:brightness(.9);transition:filter .3s ease, transform .3s ease;user-select:none;-webkit-user-drag:none;padding:4px;cursor:zoom-in;}
.mini-carousel img:hover{filter:brightness(1);transform:scale(1.03);}  
.mini-carousel button{position:absolute;top:50%;transform:translateY(-50%);background:rgba(0,0,0,.4);border:1px solid rgba(255,255,255,.25);color:#fff;width:30px;height:46px;border-radius:10px;cursor:pointer;backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;font-size:20px;line-height:1;}
.mini-carousel button:hover{background:rgba(0,0,0,.6);} 
.mini-carousel .mc-prev{left:0;}
.mini-carousel .mc-next{right:0;}
.booking-form{max-width:520px;margin:0;display:grid;gap:1rem;}
  .booking-form label{display:grid;gap:.35rem;font-size:.8rem;font-weight:500;letter-spacing:.5px;text-transform:uppercase;position:relative;padding-bottom:1.15rem;} /* padding reserves space for capacity hint */
  .booking-form .inline-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;align-items:start;}
  .booking-form .inline-fields > label{min-width:0;}
  .booking-form .inline-fields input,
  .booking-form .inline-fields select{width:100%;}
  @media (max-width:560px){.booking-form .inline-fields{grid-template-columns:1fr;}}
  .booking-form input, .booking-form select, .booking-form textarea{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.2);border-radius:8px;padding:.7rem .8rem;font:inherit;color:var(--text);}
  .booking-form .capacity-hint{position:absolute;bottom:.25rem;left:.55rem;font-size:.58rem!important;opacity:.6;pointer-events:none;letter-spacing:.05em;}
  .booking-form select{appearance:none;-webkit-appearance:none;-moz-appearance:none;line-height:1.2; background-color:rgba(255,255,255,.08); background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23e7c888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat:no-repeat; background-position:right 12px center; padding-right:40px;}
  .booking-form select:hover { border-color: rgba(255,255,255,.35); }
  .booking-form select:focus { outline:none; border-color: rgba(255,255,255,.45); box-shadow:0 0 0 3px rgba(231,200,136,.22); }
  .booking-form select:invalid{color:#8a8f9c;}
  .booking-form select option{background:#0e0f12;color:var(--text);} 
  .booking-form select option[disabled]{color:#8a8f9c;}
  .booking-form select::-ms-expand{display:none;}
  .booking-form textarea{min-height:110px;resize:vertical;}
  .status{margin:1rem 0;padding:.75rem 1rem;border-radius:8px;font-size:.85rem;}
  .status.success{background:rgba(56,142,60,.15);border:1px solid rgba(56,142,60,.4);}
  .status.error{background:rgba(211,47,47,.15);border:1px solid rgba(211,47,47,.4);}
  .back-link{display:inline-block;margin-top:2rem;font-size:.85rem;opacity:.8;}
  .back-link:hover{opacity:1;}
.form-intro{color:var(--muted);max-width:640px;margin:0 0 2rem;}
.currency-toggle{display:inline-flex;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:999px;padding:4px;gap:0;position:relative;overflow:hidden;cursor:pointer;}
/* Sliding highlight pill */
.currency-toggle .cur-slider{position:absolute;top:4px;left:4px;width:calc(50% - 4px);height:calc(100% - 8px);background:linear-gradient(135deg, rgba(167,255,235,.35), rgba(255,215,224,.35));border-radius:999px;transition:transform .42s cubic-bezier(.4,.8,.25,1);will-change:transform;}
.currency-toggle[data-cur="USD"] .cur-slider{transform:translateX(100%);} /* exact half shift */
/* Buttons */
.currency-toggle .cur{position:relative;z-index:1;background:transparent;border:none;color:var(--muted);font:inherit;font-size:.65rem;letter-spacing:.15em;text-transform:uppercase;padding:6px 14px;border-radius:999px;cursor:pointer;transition:color .3s ease;font-weight:500;}
.currency-toggle .cur.active{color:#fff;font-weight:600;}
.currency-toggle .cur:focus-visible{outline:2px solid var(--gold);outline-offset:2px;}
/* Lightbox */
.img-lightbox-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.82);backdrop-filter:blur(6px);display:none;align-items:center;justify-content:center;z-index:9999;opacity:0;transition:opacity .3s ease;pointer-events:none;}
.img-lightbox-backdrop.in{display:flex;opacity:1;pointer-events:auto;}
.img-lightbox-stage{position:relative;width:100%;max-width:100vw;max-height:88vh;display:flex;align-items:center;justify-content:center;padding:0 140px;box-sizing:border-box;}
.img-lightbox-stage img{max-width:calc(100vw - 280px);max-height:88vh;border-radius:14px;box-shadow:0 8px 40px rgba(0,0,0,.55);object-fit:contain;background:#111;padding:4px;pointer-events:auto;}
.img-lightbox-close, .img-lightbox-prev, .img-lightbox-next{position:fixed;z-index:10000;top:50%;transform:translateY(-50%);background:rgba(0,0,0,.5);color:#fff;border:1px solid rgba(255,255,255,.3);width:54px;height:72px;border-radius:18px;display:flex;align-items:center;justify-content:center;font-size:34px;cursor:pointer;backdrop-filter:blur(4px);transition:background .2s ease;}
.img-lightbox-close:hover, .img-lightbox-prev:hover, .img-lightbox-next:hover{background:rgba(0,0,0,.7);}  
.img-lightbox-prev{left:38px;}
.img-lightbox-next{right:38px;}
.img-lightbox-prev::before, .img-lightbox-next::before{content:"";position:absolute;inset:-12px;}
@media (max-width:900px){
  .img-lightbox-stage{padding:0 80px;}
  .img-lightbox-stage img{max-width:calc(100vw - 160px);} 
  .img-lightbox-prev{left:12px;}
  .img-lightbox-next{right:12px;}
  .img-lightbox-close{top:14px;right:14px;transform:none;}
}
.img-lightbox-close{top:18px;right:18px;transform:none;width:46px;height:46px;font-size:26px;border-radius:50%;}
.img-lightbox-caption{position:absolute;left:0;right:0;bottom:-3.2rem;text-align:center;font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;opacity:.75;}
@media (max-width:700px){.img-lightbox-caption{display:none;}}

/* Footer */
.site-footer { padding: 36px 24px; border-top: 1px solid rgba(255,255,255,.06); color: var(--muted); text-align: center; }

/* Responsive tweaks */
@media (max-width: 520px) {
  .site-header nav a { margin-left: 12px; }
  /* Place RSVP below; keep countdown boxes from stretching (match full-screen feel) */
  .countdown {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(70px, max-content));
    width: max-content;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-content .cta { display: block; width: max-content; margin: 16px auto 0; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 70; display: none; }
.lightbox[aria-hidden="false"] { display: block; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.85); backdrop-filter: blur(2px); opacity: 0; transition: opacity .25s ease; }
.lightbox[aria-hidden="false"] .lightbox-backdrop { opacity: 1; }
.lightbox-dialog { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; }
.lightbox-dialog img { max-width: min(92vw, 1400px); max-height: 82vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.45); opacity: 0; transform: scale(.98); transition: opacity .25s ease, transform .25s ease; }
.lightbox[aria-hidden="false"] .lightbox-dialog img { opacity: 1; transform: scale(1); }
.lightbox-close { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: var(--text); border-radius: 999px; width: 36px; height: 36px; font-size: 22px; line-height: 32px; text-align: center; cursor: pointer; }
