/* ==================================================================
   BARTABANDHA INVITATION — PUBLIC WEBSITE STYLES
   Theme: Royal Nepali Traditional
   ------------------------------------------------------------------
   Written "mobile-first": the basic rules are for phones, and
   @media (min-width: ...) blocks add changes for bigger screens.

   CONTENTS
    1.  Theme colours & settings (CSS variables)
    2.  Reset & base
    3.  Language switching (English / नेपाली)
    4.  Reusable pieces (container, buttons, dividers, corners, cards)
    5.  Header & navigation
    6.  Section 1  – Hero / cover
    7.  Section 2  – Invitation message
    8.  Section 3  – Ceremony details
    9.  Section 4  – Family
    10. Section 5  – Dress code
    11. Section 6  – Schedule
    12. Section 7  – Location
    13. Section 8  – RSVP
    14. Section 9  – Closing
    15. Footer
    16. Floating buttons, toasts, petals
    17. Animations
    18. Larger screens (tablet / desktop)
    19. Reduced motion & animations switched off
   ================================================================== */


/* ------------------------------------------------------------------
   1. THEME COLOURS & SETTINGS
   Change a colour here and it changes everywhere.
   (Phase 8: the admin "Design" page overrides the first four.)
   ------------------------------------------------------------------ */
:root {
  --primary:      #641B24;   /* Deep maroon  */
  --secondary:    #8B1E2D;   /* Royal red    */
  --accent:       #C9A24A;   /* Antique gold */
  --accent-light: #E5C77A;   /* Light gold   */
  --bg:           #FFF8E9;   /* Warm cream   */
  --bg-alt:       #F9F2E4;   /* Ivory        */
  --text:         #33251D;   /* Dark text    */

  --text-soft:    #6B5444;
  --white:        #FFFFFF;
  --puja-yellow:  #E9B526;
  --puja-red:     #B3202C;
  --success:      #3E7B3A;
  --error:        #B3261E;

  --font-display: 'Playfair Display', 'Noto Serif Devanagari', Georgia, serif;
  --font-body:    'Lato', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-deva:    'Noto Serif Devanagari', 'Noto Sans Devanagari', serif;

  --radius:       14px;
  --radius-lg:    22px;
  --shadow-sm:    0 2px 8px rgba(100, 27, 36, .08);
  --shadow:       0 10px 30px rgba(100, 27, 36, .12);
  --shadow-lg:    0 20px 50px rgba(100, 27, 36, .18);
  --header-h:     64px;
  --ease:         cubic-bezier(.22, .8, .24, 1);

  color-scheme: light;
}


/* ------------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px); /* so headings are not hidden under the header */
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { display: block; max-width: 100%; }
.om-ring, .hero-mandala, .bg-mandala { max-width: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--secondary); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* Nepali text needs a little more line height */
:lang(ne), :lang(sa) { line-height: 1.85; }

/* The hidden SVG ornament library */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Keyboard focus ring */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 1000;
  background: var(--primary); color: var(--accent-light);
  padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* While the cover is closed the rest of the page is hidden and cannot scroll.
   Only applies when JavaScript works (html.js), so the page is never stuck. */
.js body.is-locked { overflow: hidden; }
.js body.is-locked main > section:not(.hero),
.js body.is-locked .site-footer,
.js body.is-locked .main-nav,
.js body.is-locked .nav-toggle,
.js body.is-locked .to-top-btn { display: none; }


/* ------------------------------------------------------------------
   3. LANGUAGE SWITCHING
   <html data-lang="en"> hides Nepali texts, data-lang="ne" hides English.
   ------------------------------------------------------------------ */
[data-lang="en"] .tr[lang="ne"],
[data-lang="ne"] .tr[lang="en"] { display: none !important; }

/* Nepali mode: use Devanagari fonts first for nicer shaping */
[data-lang="ne"] body { font-family: 'Noto Sans Devanagari', var(--font-body); }

/* Letter-spacing breaks the joined letters of Devanagari, so never use it on Nepali text */
.tr[lang="ne"], [lang="sa"] { letter-spacing: 0 !important; }


/* ------------------------------------------------------------------
   4. REUSABLE PIECES
   ------------------------------------------------------------------ */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 820px; }

.section { position: relative; padding: 72px 0; overflow: hidden; }
.section:nth-of-type(even) { background: var(--bg-alt); }

/* Section heading block */
.section-head { text-align: center; margin-bottom: 36px; position: relative; z-index: 1; }
.eyebrow {
  font-size: .78rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 8px;
}
[data-lang="ne"] .eyebrow { letter-spacing: .06em; font-size: .9rem; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 6vw, 2.6rem);
  line-height: 1.25; color: var(--primary); font-weight: 600;
}
.section-sub { margin-top: 12px; color: var(--text-soft); }

/* Gold ornamental divider */
.divider { width: min(240px, 70%); height: 24px; margin: 16px auto; color: var(--accent); }
.divider--light { color: var(--accent-light); }

/* Ornamental corners (one SVG mirrored four ways) */
.corner {
  position: absolute; width: 48px; height: 48px;
  color: var(--accent); pointer-events: none; z-index: 1;
}
.corner--tl { top: 8px; left: 8px; }
.corner--tr { top: 8px; right: 8px; transform: scaleX(-1); }
.corner--bl { bottom: 8px; left: 8px; transform: scaleY(-1); }
.corner--br { bottom: 8px; right: 8px; transform: scale(-1, -1); }

/* Large faint background mandalas */
.bg-mandala {
  position: absolute; width: 520px; height: 520px;
  color: var(--accent); opacity: .09; pointer-events: none;
}
.bg-mandala--right  { top: -140px; right: -240px; }
.bg-mandala--left   { bottom: -160px; left: -260px; }
.bg-mandala--center { top: 50%; left: 50%; width: 760px; height: 760px; margin: -380px 0 0 -380px; opacity: .08; color: var(--accent-light); }

/* A cream card with a double gold border */
.ornate-card {
  position: relative;
  background:
    radial-gradient(ellipse at top, rgba(229, 199, 122, .18), transparent 60%),
    var(--white);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 6px var(--white), inset 0 0 0 7px var(--accent-light), var(--shadow);
  padding: 56px 22px 44px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 28px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s;
  -webkit-tap-highlight-color: transparent;
}
[data-lang="ne"] .btn { letter-spacing: .02em; font-size: 1rem; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  color: var(--primary);
  background: linear-gradient(135deg, var(--accent-light), var(--accent) 55%, #B08A35);
  box-shadow: 0 6px 18px rgba(201, 162, 74, .45), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-gold:hover { box-shadow: 0 10px 26px rgba(201, 162, 74, .55), inset 0 1px 0 rgba(255, 255, 255, .5); }

.btn-maroon {
  color: var(--accent-light);
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(100, 27, 36, .3);
}
.btn-outline { color: var(--primary); border-color: var(--accent); background: transparent; }
.btn-outline:hover { background: rgba(201, 162, 74, .12); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.btn-link {
  background: none; border: 0; padding: 6px 0;
  color: var(--secondary); text-decoration: underline; text-underline-offset: 3px; font-weight: 700;
}


/* ------------------------------------------------------------------
   5. HEADER & NAVIGATION
   ------------------------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background-color .35s, box-shadow .35s, backdrop-filter .35s;
}
.site-header.is-scrolled,
.site-header.nav-open {
  background: var(--primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .18);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.header-inner {
  height: 100%; max-width: 1240px; margin: 0 auto; padding: 0 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}

.brand {
  display: flex; align-items: center; gap: 8px; text-decoration: none;
  color: var(--primary); font-family: var(--font-display); font-weight: 600;
  min-width: 0;
}
.brand-om {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary); color: var(--accent-light);
  border: 1.5px solid var(--accent);
  font-family: var(--font-deva); font-size: 1.25rem; line-height: 1;
}
.brand-text { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Before opening, the brand text is hidden on small phones to leave room for the language switch */
.brand-text { display: none; }
/* On the cover (page not scrolled) the brand text would sit on the garland, so hide it there */
.site-header:not(.is-scrolled):not(.nav-open) .brand-text { display: none !important; }
.is-scrolled .brand, .nav-open .brand { color: var(--accent-light); }

.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

/* Language switch: two pill buttons */
.lang-switch {
  display: flex; padding: 3px; border-radius: 999px;
  background: rgba(255, 248, 233, .9); border: 1px solid var(--accent);
  box-shadow: var(--shadow-sm);
}
.lang-btn {
  border: 0; background: transparent; border-radius: 999px;
  min-height: 36px; padding: 4px 12px;
  font-size: .82rem; font-weight: 700; color: var(--primary);
  transition: background-color .25s, color .25s;
}
.lang-btn[lang="ne"] { font-family: 'Noto Sans Devanagari', sans-serif; font-size: .9rem; }
.lang-btn[aria-pressed="true"] { background: var(--primary); color: var(--accent-light); }

.nav-toggle {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--accent); background: var(--primary); color: var(--accent-light);
  font-size: 1.1rem; display: grid; place-items: center;
}

/* Mobile menu: a panel that drops down under the header */
.main-nav {
  position: fixed; top: var(--header-h); left: 0; right: 0;
  background: var(--primary);
  border-top: 1px solid rgba(201, 162, 74, .4);
  max-height: 0; overflow: hidden;
  transition: max-height .4s var(--ease);
}
.nav-open .main-nav { max-height: 80vh; overflow-y: auto; }
.main-nav ul { padding: 8px 16px 20px; }
.main-nav a {
  display: block; padding: 14px 8px;
  color: var(--accent-light); text-decoration: none; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; font-size: .9rem;
  border-bottom: 1px solid rgba(201, 162, 74, .18);
}
[data-lang="ne"] .main-nav a { letter-spacing: 0; font-size: 1rem; }
.main-nav a.is-active { color: var(--white); }
.main-nav a.nav-cta { color: var(--accent); }


/* ------------------------------------------------------------------
   6. SECTION 1 — HERO / COVER
   ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: stretch;
  padding: calc(var(--header-h) + 6px) 12px 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(229, 199, 122, .35), transparent 55%),
    radial-gradient(circle at 0 100%, rgba(139, 30, 45, .08), transparent 40%),
    radial-gradient(circle at 100% 0, rgba(139, 30, 45, .08), transparent 40%),
    var(--bg);
}

/* Hanging marigold garland (toran) — drawn as a repeating SVG image */
.toran {
  position: absolute; top: 0; left: 0; right: 0; height: 58px; z-index: 2;
  pointer-events: none;
  background-repeat: repeat-x; background-size: 120px 58px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 58'%3E%3Cpath d='M0 6 Q60 46 120 6' fill='none' stroke='%235E7A2E' stroke-width='1.4'/%3E%3Cpath d='M60 26 V48' stroke='%23C9A24A' stroke-width='1'/%3E%3Cg stroke='%23B35A08' stroke-width='1' stroke-dasharray='2 1.4'%3E%3Ccircle cx='0' cy='6' r='6' fill='%23F2B01E'/%3E%3Ccircle cx='120' cy='6' r='6' fill='%23F2B01E'/%3E%3Ccircle cx='12' cy='13' r='5' fill='%23E07B12'/%3E%3Ccircle cx='30' cy='21' r='5.2' fill='%23F2B01E'/%3E%3Ccircle cx='48' cy='25' r='5.2' fill='%23E07B12'/%3E%3Ccircle cx='72' cy='25' r='5.2' fill='%23E07B12'/%3E%3Ccircle cx='90' cy='21' r='5.2' fill='%23F2B01E'/%3E%3Ccircle cx='108' cy='13' r='5' fill='%23E07B12'/%3E%3Ccircle cx='60' cy='27' r='5.6' fill='%23F2B01E'/%3E%3Ccircle cx='60' cy='42' r='4.4' fill='%23E07B12'/%3E%3C/g%3E%3Cpath d='M60 47 C56 51 56 55 60 58 C64 55 64 51 60 47Z' fill='%23C9A24A'/%3E%3Cpath d='M39 24 C41 30 45 31 47 30 C46 27 43 24 39 24Z M81 24 C79 30 75 31 73 30 C74 27 77 24 81 24Z' fill='%235E7A2E'/%3E%3C/svg%3E");
}

.hero-mandala {
  position: absolute; top: 50%; left: 50%;
  width: min(140vw, 920px); height: min(140vw, 920px);
  transform: translate(-50%, -50%);
  color: var(--accent); opacity: .12; pointer-events: none;
  animation: spin 160s linear infinite;
}

/* The gold double frame around the cover */
.hero-frame {
  position: relative; z-index: 1; flex: 1;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  box-shadow: inset 0 0 0 5px var(--bg), inset 0 0 0 6px var(--accent-light);
  padding: 58px 18px 64px;
}
.hero-frame .corner { width: 70px; height: 70px; }

.hero-content {
  position: relative; z-index: 2;
  max-width: 680px; width: 100%;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}

/* Om medallion */
.om-medallion {
  position: relative; width: 104px; height: 104px; margin-bottom: 22px;
  display: grid; place-items: center;
}
.om-ring {
  position: absolute; inset: -28px; width: calc(100% + 56px); height: calc(100% + 56px);
  color: var(--accent); opacity: .7;
  animation: spin-plain 60s linear infinite reverse;
}
.om-symbol {
  position: relative;
  width: 100%; height: 100%; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, var(--secondary), var(--primary) 70%);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 5px rgba(229, 199, 122, .35), 0 10px 30px rgba(100, 27, 36, .35);
  color: var(--accent-light);
  font-family: var(--font-deva); font-size: 3.4rem; line-height: 1;
  padding-bottom: 6px;
}

.ganesh-line {
  font-family: var(--font-deva); font-weight: 600;
  color: var(--secondary); font-size: clamp(1.1rem, 4.6vw, 1.4rem);
  letter-spacing: .04em;
}
.hero-blessing {
  margin-top: 6px; color: var(--text-soft);
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(.98rem, 3.8vw, 1.15rem);
}
[data-lang="ne"] .hero-blessing { font-style: normal; }

.hero-title { margin: 4px 0 10px; font-weight: 400; }
.hero-title > span { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-intro {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1rem, 4vw, 1.2rem); color: var(--text); line-height: 1.6;
  max-width: 520px;
}
.hero-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 9.5vw, 4rem); line-height: 1.1;
  letter-spacing: .06em; text-transform: uppercase;
  background: linear-gradient(180deg, var(--secondary), var(--primary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 4px 0;
}
.hero-title-small {
  font-family: var(--font-deva); font-weight: 600;
  font-size: clamp(1.35rem, 6vw, 2rem); color: var(--primary);
}
.hero-title-big {
  font-family: var(--font-deva); font-weight: 700;
  font-size: clamp(3rem, 15vw, 5.4rem); line-height: 1.2;
  background: linear-gradient(180deg, var(--secondary), var(--primary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-date {
  display: inline-block; margin: 4px 0 28px;
  padding: 6px 20px; border-radius: 999px;
  border: 1px solid var(--accent); background: rgba(255, 255, 255, .6);
  color: var(--primary); font-weight: 700; letter-spacing: .12em; font-size: .88rem;
  text-transform: uppercase;
}
[data-lang="ne"] .hero-date { letter-spacing: .02em; font-size: 1rem; }

/* Personal invitation link: the invited guest's name on the cover */
.hero-guest {
  position: relative; width: min(100%, 440px); margin: -10px auto 24px; padding: 14px 18px 12px;
  border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent);
  background: linear-gradient(90deg, transparent, rgba(229, 199, 122, .22), transparent);
}
.hero-guest::before, .hero-guest::after {      /* small gold diamonds at both ends of the lines */
  content: ""; position: absolute; left: 50%; width: 9px; height: 9px; margin-left: -4.5px;
  background: var(--accent); transform: rotate(45deg);
}
.hero-guest::before { top: -5px; }
.hero-guest::after  { bottom: -5px; }
.hero-guest-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--accent);
}
.hero-guest-name {
  margin: 4px 0 2px; font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: clamp(1.35rem, 6vw, 1.85rem); line-height: 1.3; color: var(--secondary);
}
[data-lang="ne"] .hero-guest-name { font-family: var(--font-deva); font-style: normal; font-size: clamp(1.3rem, 5.6vw, 1.7rem); }
.hero-guest-note { font-size: .88rem; color: var(--text-soft); line-height: 1.5; }
[data-lang="ne"] .hero-guest-label { font-size: .95rem; }
/* Short phone screens: keep "Open Invitation" visible without scrolling */
@media (max-height: 740px) {
  .hero-guest { margin-bottom: 16px; padding: 10px 14px 8px; }
  .hero-guest-note { display: none; }
}

/* OPEN INVITATION button — maroon with a moving gold shimmer */
.btn-open {
  position: relative; overflow: hidden;
  color: var(--accent-light);
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(201, 162, 74, .25), 0 12px 30px rgba(100, 27, 36, .35);
  padding: 14px 34px; min-height: 56px;
}
.btn-open::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 238, 190, .45), transparent);
  transform: skewX(-20deg);
  animation: shimmer 3.2s 2s ease-in-out infinite;
}

/* Scroll indicator: only shown after the invitation is opened */
.scroll-indicator {
  display: none;
  flex-direction: column; align-items: center; gap: 6px;
  margin-top: 8px; color: var(--primary); text-decoration: none;
  font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; font-weight: 700;
}
body.is-open .scroll-indicator { display: flex; animation: fade-in 1s .4s both; }
body.is-open .btn-open { display: none; }
.scroll-mouse {
  width: 24px; height: 38px; border: 2px solid var(--accent); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-mouse span {
  width: 4px; height: 8px; border-radius: 2px; background: var(--secondary);
  animation: scroll-dot 1.6s ease-in-out infinite;
}

/* Opening moment: Om glows, frame flashes gold */
body.is-opening .om-symbol { animation: om-glow 1s ease-out; }
body.is-opening .hero-frame { animation: frame-flash 1s ease-out; }
body.is-opening .btn-open { animation: btn-out .6s var(--ease) forwards; }


/* ------------------------------------------------------------------
   7. SECTION 2 — INVITATION MESSAGE
   ------------------------------------------------------------------ */
.message-card { text-align: center; }
.message-card .section-head { margin-bottom: 18px; }
.kalash { width: 74px; height: 92px; margin: -12px auto 14px; color: var(--accent); }
.message-text p {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3.8vw, 1.2rem); line-height: 1.9; color: var(--text);
}
.message-text p + p { margin-top: 16px; }
.message-text strong { color: var(--primary); font-weight: 700; }
[data-lang="ne"] .message-text p { font-family: var(--font-deva); font-size: clamp(1.05rem, 4vw, 1.18rem); line-height: 2; }


/* ------------------------------------------------------------------
   8. SECTION 3 — CEREMONY DETAILS
   ------------------------------------------------------------------ */
.event-card {
  background: var(--white);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden; text-align: center;
  padding-bottom: 32px;
}
.event-card-top {
  position: relative;
  background:
    radial-gradient(circle at 50% 0, rgba(229, 199, 122, .25), transparent 60%),
    linear-gradient(135deg, var(--secondary), var(--primary));
  color: var(--accent-light);
  padding: 30px 16px 34px;
  border-bottom: 3px double var(--accent);
}
.event-label { font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; opacity: .9; }
[data-lang="ne"] .event-label { letter-spacing: .04em; font-size: .95rem; }
.event-celebrant {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 6.4vw, 2.3rem); letter-spacing: .05em; color: var(--accent-light);
  line-height: 1.3;
}
[data-lang="en"] .event-celebrant { text-transform: uppercase; }

.event-facts { display: grid; gap: 4px; padding: 22px 18px 4px; text-align: left; }
.event-fact {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 6px; border-bottom: 1px dashed rgba(201, 162, 74, .5);
}
.event-fact:last-child { border-bottom: 0; }
.fact-icon {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); border: 1.5px solid var(--accent);
  color: var(--secondary); font-size: 1.1rem;
}
.fact-body { display: flex; flex-direction: column; min-width: 0; }
.fact-label { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
[data-lang="ne"] .fact-label { letter-spacing: .02em; font-size: .9rem; }
.fact-value { font-family: var(--font-display); font-size: 1.15rem; color: var(--primary); font-weight: 600; line-height: 1.4; }
[data-lang="ne"] .fact-value { font-family: var(--font-deva); }


/* ------------------------------------------------------------------
   9. SECTION 4 — FAMILY
   ------------------------------------------------------------------ */
.family-tier { display: grid; gap: 18px; margin-bottom: 18px; position: relative; z-index: 1; }
.family-tier--celebrant { justify-items: center; margin-bottom: 26px; }

.family-card {
  position: relative; text-align: center;
  background: var(--white);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 5px rgba(229, 199, 122, .7), var(--shadow-sm);
  padding: 26px 18px 24px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.family-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 5px rgba(229, 199, 122, .7), var(--shadow); }

/* Relationship title with small gold lines on both sides */
.family-relation {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: .76rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--secondary); margin-bottom: 12px;
}
[data-lang="ne"] .family-relation { letter-spacing: .02em; font-size: .98rem; }
.family-relation::before, .family-relation::after {
  content: ""; width: 26px; height: 1px; flex: 0 0 auto;
  background: linear-gradient(90deg, transparent, var(--accent));
}
.family-relation::after { transform: scaleX(-1); }

.family-names li {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.2rem; color: var(--primary); line-height: 1.45;
}
.family-names li + li { margin-top: 6px; }
[data-lang="ne"] .family-names li { font-family: var(--font-deva); }
.family-names--two-col { display: grid; gap: 6px; }
.family-names--two-col li + li { margin-top: 0; }

/* Parents & grandparents: arched "temple window" cards */
.family-card--featured {
  border-radius: 160px 160px var(--radius) var(--radius);
  padding: 54px 20px 30px;
  background:
    radial-gradient(ellipse at 50% 0, rgba(229, 199, 122, .3), transparent 65%),
    var(--white);
}
.family-card--featured::before {           /* small gold lotus diamond at the top of the arch */
  content: ""; position: absolute; top: 18px; left: 50%;
  width: 14px; height: 14px; margin-left: -7px;
  background: var(--accent); transform: rotate(45deg); border-radius: 2px;
}
.family-card--featured .family-names li { font-size: 1.35rem; }
.family-card--parents { border-width: 2px; }

/* Celebrant: maroon arched card */
.family-card--celebrant {
  width: 100%; max-width: 420px;
  border-radius: 200px 200px var(--radius-lg) var(--radius-lg);
  padding: 70px 20px 32px;
  background:
    radial-gradient(ellipse at 50% 0, rgba(229, 199, 122, .3), transparent 60%),
    linear-gradient(160deg, var(--secondary), var(--primary));
  border: 2px solid var(--accent);
  box-shadow: inset 0 0 0 6px var(--primary), inset 0 0 0 7px var(--accent), var(--shadow-lg);
}
.family-card--celebrant:hover { box-shadow: inset 0 0 0 6px var(--primary), inset 0 0 0 7px var(--accent), var(--shadow-lg); }
.family-card--celebrant .family-relation { color: var(--accent-light); }
.family-card--celebrant .family-names li { color: var(--white); font-size: clamp(1.45rem, 6vw, 1.9rem); }
.family-marigold { position: absolute; top: 20px; left: 50%; width: 38px; height: 38px; margin-left: -19px; }

/* ---------- 9b. Traditional layout: प्रार्थी + दर्शनाभिलाषी | मावलीतर्फ ---------- */
/* Nepali-only names (Admin → Family option) never get letter-spacing */
[lang="ne"], [lang="sa"] { letter-spacing: 0 !important; }

.family-block-title {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-family: var(--font-deva); font-weight: 700; color: var(--secondary);
  font-size: clamp(1.45rem, 5.4vw, 1.9rem); line-height: 1.4; margin-bottom: 14px;
}
[data-lang="en"] .family-block-title .tr[lang="en"] { font-family: var(--font-display); }

/* प्रार्थी — centred, framed by two marigolds */
.family-prati {
  position: relative; z-index: 1; text-align: center;
  max-width: 560px; margin: 0 auto 30px; padding: 46px 22px 10px;
  border: 1px solid var(--accent);
  border-radius: 200px 200px var(--radius) var(--radius);          /* temple-window arch */
  background:
    radial-gradient(ellipse at 50% 0, rgba(229, 199, 122, .32), transparent 65%),
    var(--white);
  box-shadow: inset 0 0 0 6px var(--white), inset 0 0 0 7px var(--accent-light), var(--shadow);
}
.family-block-title--prati {
  font-size: clamp(1.8rem, 7vw, 2.4rem); color: var(--primary); margin-bottom: 10px;
}
.family-block-title--prati::before, .family-block-title--prati::after {
  content: ""; flex: 0 1 70px; height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--accent));
}
.family-block-title--prati::after { transform: scaleX(-1); }
.prati-marigold { position: absolute; top: 52px; width: 28px; height: 28px; }
.prati-marigold--l { left: calc(50% - 118px); }
.prati-marigold--r { right: calc(50% - 118px); }
.prati-names li {
  font-family: var(--font-deva); font-weight: 600; color: var(--primary);
  font-size: clamp(1.25rem, 5vw, 1.55rem); line-height: 1.7;
}
[data-lang="en"] .prati-names .tr[lang="en"] { font-family: var(--font-display); }
.family-prati .divider { margin-top: 18px; }

/* The two columns: identical width, height, border, padding and type */
.family-columns { position: relative; z-index: 1; display: grid; gap: 20px; margin-bottom: 26px; align-items: stretch; }
.family-col {
  position: relative; display: flex; flex-direction: column;
  background:
    radial-gradient(ellipse at 50% 0, rgba(229, 199, 122, .22), transparent 60%),
    var(--white);
  border: 1px solid var(--accent); border-radius: var(--radius);
  box-shadow: inset 0 0 0 6px var(--white), inset 0 0 0 7px var(--accent-light), var(--shadow);
  padding: 46px 24px 34px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.family-col:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 6px var(--white), inset 0 0 0 7px var(--accent), 0 0 0 4px rgba(229, 199, 122, .35), var(--shadow-lg);
}
.family-col-head { text-align: center; margin-bottom: 18px; }
.family-col-kalash { width: 40px; height: 46px; margin: 0 auto 8px; color: var(--accent); }
.family-col--mawali .family-col-kalash { width: 36px; height: 36px; }
.family-col .family-block-title { margin-bottom: 8px; }
.family-col-rule { display: block; width: 90px; height: 2px; margin: 0 auto; background: linear-gradient(90deg, transparent, var(--accent), transparent); }

.family-groups { display: grid; gap: 18px; counter-reset: none; }
.family-group {
  padding: 14px 16px; border-radius: 12px;
  background: rgba(255, 248, 233, .65); border: 1px dashed rgba(201, 162, 74, .55);
}
.family-group-title {
  display: flex; align-items: baseline; justify-content: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-deva); font-weight: 700; color: var(--secondary); font-size: 1.12rem; margin-bottom: 6px;
}
.family-group-num {
  display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 999px;
  background: var(--primary); color: var(--accent-light); font-size: .95rem; line-height: 1;
}
.family-group-names { text-align: center; }
.family-group-names li {
  font-family: var(--font-deva); font-weight: 600; color: var(--primary);
  font-size: clamp(1.08rem, 4.2vw, 1.22rem); line-height: 1.75;
}
[data-lang="en"] .family-group-names .tr[lang="en"],
[data-lang="en"] .family-group-title .tr[lang="en"] { font-family: var(--font-display); }
.family-group-names li + li { margin-top: 2px; }
.name-part { white-space: nowrap; }                 /* a person's name never splits over two lines */
.name-sep { color: var(--accent); }


/* ------------------------------------------------------------------
   9c. PHOTO GALLERY ("विशेष पलहरू") + LIGHTBOX
   ------------------------------------------------------------------ */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; position: relative; z-index: 1; }
.gallery-grid--few { display: flex; flex-wrap: wrap; justify-content: center; }
.gallery-grid--few .gallery-item { width: min(100%, 360px); }
.gallery-item { min-width: 0; }
.gallery-tile {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  aspect-ratio: 1 / 1; overflow: hidden; border-radius: 12px; background: var(--bg-alt);
  box-shadow: 0 0 0 1px rgba(201, 162, 74, .55), var(--shadow-sm);
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.gallery-tile::after {   /* thin inner gold frame */
  content: ""; position: absolute; inset: 6px; border: 1px solid rgba(229, 199, 122, .7); border-radius: 8px; pointer-events: none;
}
.gallery-tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.001); transition: transform .9s var(--ease), filter .6s;
}
.gallery-tile:hover, .gallery-tile:focus-visible { box-shadow: 0 0 0 1px var(--accent), 0 0 22px rgba(229, 199, 122, .55), var(--shadow); }
.gallery-tile:hover img, .gallery-tile:focus-visible img { transform: scale(1.07); }
.gallery-tile-shine {      /* gold light sweeping over the photo on hover */
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 238, 190, .45) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform 1s var(--ease);
}
.gallery-tile:hover .gallery-tile-shine { transform: translateX(120%); }
.gallery-tile-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 12px;
  background: linear-gradient(transparent, rgba(50, 14, 20, .78));
  color: #fff; font-size: .85rem; line-height: 1.4; text-align: left;
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease);
}
.gallery-tile:hover .gallery-tile-caption, .gallery-tile:focus-visible .gallery-tile-caption { opacity: 1; transform: none; }
@media (hover: none) { .gallery-tile-caption { opacity: 1; transform: none; } }   /* phones: always show captions */

.lightbox { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox[hidden] { display: none !important; }
.lightbox-backdrop {
  position: absolute; inset: 0; background: rgba(28, 8, 12, .93);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .35s ease;
}
.lightbox-figure {
  position: relative; margin: 0; max-width: min(1100px, 100%); display: flex; flex-direction: column; align-items: center; gap: 12px;
  opacity: 0; transform: scale(.94); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.lightbox.is-open .lightbox-backdrop { opacity: 1; }
.lightbox.is-open .lightbox-figure { opacity: 1; transform: none; }
.lightbox-stage { position: relative; display: grid; place-items: center; min-width: 120px; min-height: 120px; }
.lightbox-img {
  display: block; max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100svh - 150px);
  width: auto; height: auto; border-radius: 10px; object-fit: contain;
  box-shadow: 0 0 0 1px rgba(229, 199, 122, .6), 0 24px 60px rgba(0, 0, 0, .5);
  transition: opacity .35s ease, transform .45s var(--ease);
}
.lightbox-img.is-out-left  { opacity: 0; transform: translateX(-40px) scale(.98); }
.lightbox-img.is-out-right { opacity: 0; transform: translateX(40px) scale(.98); }
.lightbox-img.is-loading   { opacity: 0; }
.lightbox-spinner {
  position: absolute; width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(229, 199, 122, .3); border-top-color: var(--accent-light);
  animation: spin-plain .8s linear infinite; opacity: 0; transition: opacity .2s;
}
.lightbox.is-busy .lightbox-spinner { opacity: 1; }
.lightbox-caption { color: #F6EBD2; text-align: center; font-size: .98rem; max-width: 640px; display: flex; flex-direction: column; gap: 4px; }
.lightbox-count { color: var(--accent-light); font-size: .8rem; letter-spacing: .15em; }
.lightbox-btn {
  position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.1rem;
  background: rgba(100, 27, 36, .85); color: var(--accent-light); border: 1.5px solid var(--accent);
  transition: transform .25s var(--ease), background-color .25s;
}
.lightbox-btn:hover { transform: scale(1.08); background: var(--primary); }
.lightbox-close { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
.lightbox-prev { left: 10px; top: 50%; margin-top: -24px; }
.lightbox-next { right: 10px; top: 50%; margin-top: -24px; }
.lightbox-btn[hidden] { display: none; }
@media (max-width: 599px) {
  .lightbox-prev, .lightbox-next { top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); margin-top: 0; }
  .lightbox-prev { left: calc(50% - 62px); }
  .lightbox-next { right: calc(50% - 62px); }
  .lightbox-img { max-height: calc(100svh - 210px); }
}
body.lightbox-open { overflow: hidden; }


/* ------------------------------------------------------------------
   10. SECTION 5 — DRESS CODE
   ------------------------------------------------------------------ */
.dress-grid { display: grid; gap: 20px; }
.dress-card {
  position: relative; text-align: center; overflow: hidden;
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--accent);
  box-shadow: var(--shadow);
  padding: 40px 22px 32px;
}
.dress-card::before {   /* coloured band at the top of each card */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px;
  background: linear-gradient(90deg, var(--accent-light), var(--accent));   /* default for new cards */
}
.dress-card--puja::before  { background: linear-gradient(90deg, var(--puja-yellow) 0 50%, var(--puja-red) 50% 100%); }
.dress-card--party::before { background: linear-gradient(90deg, var(--accent-light), var(--accent), var(--secondary)); }
.dress-card--puja  { background: radial-gradient(circle at 50% 0, rgba(233, 181, 38, .16), transparent 60%), var(--white); }

.dress-icon {
  width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.7rem;
  border: 2px solid var(--accent);
  color: var(--primary); background: var(--bg);   /* default for new cards */
}
.dress-card--puja .dress-icon  { color: var(--puja-red); background: linear-gradient(135deg, #FFF1C2, #FFE08A); }
.dress-card--party .dress-icon { color: var(--primary); background: var(--bg); }

.dress-occasion { font-size: .78rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
[data-lang="ne"] .dress-occasion { letter-spacing: .02em; font-size: .98rem; }
.dress-title { font-family: var(--font-display); font-size: clamp(1.5rem, 5.6vw, 1.9rem); color: var(--primary); margin: 4px 0 14px; line-height: 1.3; }
[data-lang="ne"] .dress-title { font-family: var(--font-deva); }
.dress-desc { color: var(--text-soft); max-width: 360px; margin: 0 auto; }

.swatches { display: flex; justify-content: center; gap: 10px; margin-bottom: 16px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 0 0 1.5px var(--accent), var(--shadow-sm); }
.swatch--yellow { background: var(--puja-yellow); }
.swatch--red    { background: var(--puja-red); }
.swatch--any    { width: 34px; background: conic-gradient(#E9B526, #B3202C, #6A2C70, #1F5F8B, #2E7D5B, #E9B526); }


/* ------------------------------------------------------------------
   11. SECTION 6 — SCHEDULE
   ------------------------------------------------------------------ */
.schedule-placeholder {
  text-align: center; padding: 34px 22px;
  border: 1.5px dashed var(--accent); border-radius: var(--radius);
  background: rgba(255, 255, 255, .6);
  font-family: var(--font-display); font-size: 1.15rem; color: var(--primary);
}
[data-lang="ne"] .schedule-placeholder { font-family: var(--font-deva); }
.placeholder-kalash { width: 52px; height: 64px; margin: 0 auto 12px; color: var(--accent); opacity: .85; }

/* Timeline design — used in Phase 5 when the admin adds activities */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--accent), var(--accent-light));
}
.timeline-item {
  position: relative; background: var(--white); border: 1px solid var(--accent-light);
  border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.timeline-item + .timeline-item { margin-top: 16px; }
.timeline-item::before {
  content: ""; position: absolute; left: -30px; top: 20px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--secondary); border: 3px solid var(--accent-light);
}
.timeline-time { font-weight: 700; color: var(--accent); letter-spacing: .1em; font-size: .85rem; }
.timeline-title { font-family: var(--font-display); color: var(--primary); font-size: 1.2rem; }
.timeline-desc { color: var(--text-soft); }


/* ------------------------------------------------------------------
   12. SECTION 7 — LOCATION
   ------------------------------------------------------------------ */
.location-layout { display: grid; gap: 22px; }
.location-info {
  text-align: center; background: var(--white);
  border: 1px solid var(--accent); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 34px 20px;
}
.location-pin {
  display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 12px;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  border: 2px solid var(--accent);
}
.location-pin i { transform: rotate(45deg); color: var(--accent-light); font-size: 1.4rem; }
.venue-name { font-family: var(--font-display); color: var(--primary); font-size: clamp(1.5rem, 5.6vw, 2rem); }
[data-lang="ne"] .venue-name { font-family: var(--font-deva); }
.venue-address { color: var(--text-soft); font-size: 1.05rem; }

.map-frame {
  position: relative; min-height: 280px;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--accent);
  box-shadow: inset 0 0 0 6px var(--bg-alt), inset 0 0 0 7px var(--accent-light), var(--shadow);
  background:
    repeating-linear-gradient(45deg, rgba(201, 162, 74, .07) 0 12px, transparent 12px 24px),
    var(--bg);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center;
  color: var(--text-soft);
}
.map-placeholder-pagoda { width: 90px; height: 117px; color: var(--accent); opacity: .7; }


/* ------------------------------------------------------------------
   13. SECTION 8 — RSVP
   ------------------------------------------------------------------ */
.rsvp-card { padding: 54px 20px 40px; }
.rsvp-form { position: relative; z-index: 2; display: grid; gap: 22px; }

.form-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-field label,
.form-field legend {
  display: block; padding: 0; margin-bottom: 8px;
  font-weight: 700; color: var(--primary); font-size: .98rem;
}
.req { color: var(--error); margin-left: 2px; }
.optional { font-weight: 400; color: var(--text-soft); font-size: .88rem; margin-left: 4px; }

.input-wrap { position: relative; }
.input-wrap > i {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--accent); pointer-events: none;
}
.rsvp-form input[type="text"],
.rsvp-form input[type="tel"],
.rsvp-form input[type="number"],
.rsvp-form textarea {
  width: 100%; min-height: 52px;
  border: 1.5px solid rgba(201, 162, 74, .7); border-radius: 12px;
  background: var(--bg); padding: 12px 16px;
  font-size: 1rem; /* 16px stops iPhones from zooming in */
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.input-wrap input { padding-left: 46px !important; }
.rsvp-form textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.rsvp-form input:focus,
.rsvp-form textarea:focus {
  outline: none; border-color: var(--secondary); background: var(--white);
  box-shadow: 0 0 0 4px rgba(139, 30, 45, .12);
}
.rsvp-form ::placeholder { color: #A8937F; }

.form-field.has-error input,
.form-field.has-error textarea { border-color: var(--error); background: #FFF4F2; }
.form-field.has-error .choice-box { border-color: var(--error); }
.field-error { color: var(--error); font-size: .88rem; margin-top: 6px; min-height: 0; }
.field-error:empty { display: none; }
.char-count { text-align: right; font-size: .8rem; color: var(--text-soft); margin-top: 4px; }

/* Attendance choice cards (real radio buttons, styled) */
.choice-row { display: grid; gap: 12px; }
.choice { position: relative; display: block; margin: 0 !important; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-box {
  display: flex; align-items: center; gap: 12px; min-height: 58px;
  padding: 12px 16px; border-radius: 12px;
  border: 1.5px solid rgba(201, 162, 74, .7); background: var(--bg);
  font-weight: 700; color: var(--text);
  transition: border-color .2s, background-color .2s, color .2s, box-shadow .2s;
}
.choice-box i { color: var(--accent); font-size: 1.15rem; width: 22px; text-align: center; }
.choice input:focus-visible + .choice-box { box-shadow: 0 0 0 4px rgba(201, 162, 74, .45); }
.choice input:checked + .choice-box {
  border-color: var(--secondary); color: var(--white);
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}
.choice input:checked + .choice-box i { color: var(--accent-light); }

/* Number stepper  [-] 1 [+] */
.stepper { display: flex; align-items: stretch; max-width: 220px; }
.stepper input {
  text-align: center; border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important;
  -moz-appearance: textfield; appearance: textfield; font-weight: 700; font-size: 1.15rem !important;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-btn {
  flex: 0 0 52px; border: 1.5px solid rgba(201, 162, 74, .7); background: var(--bg-alt);
  color: var(--primary); font-size: 1rem;
}
.stepper-btn:first-child { border-radius: 12px 0 0 12px; }
.stepper-btn:last-child  { border-radius: 0 12px 12px 0; }
.stepper-btn:hover { background: var(--accent-light); }
#attendees-field.is-disabled { opacity: .45; }
#attendees-field.is-disabled * { cursor: not-allowed; }

/* Honeypot field: hidden from humans */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Submit button loading state */
.btn-spinner {
  display: none; width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid rgba(229, 199, 122, .35); border-top-color: var(--accent-light);
  animation: spin-plain .8s linear infinite;
}
.btn.is-loading .btn-label { display: none; }
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading { pointer-events: none; opacity: .9; }
.btn-label { display: inline-flex; align-items: center; gap: 10px; }

/* "Already responded" notice and success message */
.rsvp-already {
  position: relative; z-index: 2; text-align: center;
  padding: 16px; margin-bottom: 22px; border-radius: 12px;
  background: rgba(62, 123, 58, .08); border: 1px solid rgba(62, 123, 58, .3);
}
.rsvp-already > i { color: var(--success); font-size: 1.5rem; margin-bottom: 6px; }
.rsvp-success { position: relative; z-index: 2; text-align: center; padding: 10px 0; outline: none; }
.success-marigold { width: 64px; height: 64px; margin: 0 auto 14px; animation: bloom .9s var(--ease) both; }
.success-title { font-family: var(--font-display); color: var(--primary); font-size: clamp(1.5rem, 6vw, 2rem); margin-bottom: 10px; }
[data-lang="ne"] .success-title { font-family: var(--font-deva); }
.success-text { color: var(--text-soft); max-width: 460px; margin: 0 auto 20px; }
.preview-note {
  font-size: .86rem; color: #7A5B12; background: #FFF3CF; border: 1px dashed var(--accent);
  border-radius: 10px; padding: 10px 14px; margin: 0 auto 20px; max-width: 460px;
}


/* ------------------------------------------------------------------
   14. SECTION 9 — CLOSING
   ------------------------------------------------------------------ */
.section--closing {
  background:
    radial-gradient(circle at 50% 30%, rgba(201, 162, 74, .22), transparent 60%),
    linear-gradient(160deg, var(--secondary), var(--primary)) !important;
  color: var(--accent-light);
  padding: 90px 0;
}
.closing-inner { position: relative; z-index: 1; text-align: center; }
.closing-om {
  display: block; font-family: var(--font-deva); font-size: 3.4rem; line-height: 1;
  color: var(--accent); margin-bottom: 16px;
}
.closing-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.8rem, 7vw, 3rem); line-height: 1.25; color: var(--white);
}
[data-lang="ne"] .closing-title { font-family: var(--font-deva); font-size: clamp(1.5rem, 6vw, 2.4rem); }
.closing-text { font-family: var(--font-display); font-style: italic; font-size: clamp(1.05rem, 4vw, 1.25rem); max-width: 600px; margin: 0 auto; }
[data-lang="ne"] .closing-text { font-style: normal; font-family: var(--font-deva); }
.closing-sign {
  margin: 30px 0 32px; font-size: .9rem; letter-spacing: .3em; text-transform: uppercase; line-height: 2;
}
.closing-sign strong {
  display: block; font-family: var(--font-display); font-size: clamp(1.4rem, 5.6vw, 1.9rem);
  letter-spacing: .12em; color: var(--accent);
}
[data-lang="ne"] .closing-sign { letter-spacing: .04em; font-size: 1.05rem; }
[data-lang="ne"] .closing-sign strong { font-family: var(--font-deva); letter-spacing: 0; }


/* ------------------------------------------------------------------
   15. FOOTER
   ------------------------------------------------------------------ */
.site-footer {
  position: relative; background: #3E0F16;                                     /* fallback for old browsers */
  background: color-mix(in srgb, var(--primary) 65%, #000);   /* a darker shade of the primary colour */
  color: var(--accent-light);
  text-align: center; padding: 0 16px 34px;
  border-top: 3px double var(--accent);
}
.footer-temples {
  display: flex; justify-content: center; align-items: flex-end; gap: 18px;
  margin-top: -1px; padding-top: 26px; color: var(--accent); opacity: .55;
}
.pagoda--sm { width: 46px; height: 60px; }
.pagoda--lg { width: 70px; height: 91px; }
.footer-inner { padding-top: 18px; border-top: 1px solid rgba(201, 162, 74, .3); max-width: 600px; margin: 0 auto; }
.footer-blessing { font-family: var(--font-deva); font-size: 1.2rem; color: var(--accent); }
.footer-text { font-size: .88rem; opacity: .85; }


/* ------------------------------------------------------------------
   16. FLOATING BUTTONS, TOASTS, PETALS
   ------------------------------------------------------------------ */
.float-btn {
  position: fixed; right: 14px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--accent);
  background: var(--primary); color: var(--accent-light);
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease), opacity .3s;
}
.float-btn:hover { transform: scale(1.06); }
.to-top-btn { bottom: calc(18px + env(safe-area-inset-bottom)); opacity: 0; pointer-events: none; }
.to-top-btn.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- Music controls (bottom right, above the "back to top" button) ---------- */
.music-control {
  position: fixed; right: 14px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 90;
  display: flex; align-items: center; gap: 8px;
  animation: fade-in .6s ease both;
}
.music-control[hidden] { display: none; }
.music-control .music-btn { position: relative; right: auto; bottom: auto; }
/* Play/pause: ▶ when paused, moving bars + a soft gold pulse while playing */
.music-btn i { font-size: 1rem; margin-left: 2px; }
.music-bars { display: none; gap: 3px; align-items: flex-end; height: 18px; }
.music-bars span { width: 3px; background: var(--accent-light); border-radius: 2px; animation: bars 1s ease-in-out infinite; }
.music-bars span:nth-child(2) { animation-delay: .25s; }
.music-bars span:nth-child(3) { animation-delay: .5s; }
.music-bars span:nth-child(4) { animation-delay: .15s; }
.music-btn[aria-pressed="true"] .music-bars { display: flex; }
.music-btn[aria-pressed="true"] i { display: none; }
.music-control.is-playing .music-btn { animation: music-pulse 2.6s ease-out infinite; }
/* Small button that opens the volume panel */
.music-more {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--accent); background: rgba(255, 248, 233, .95); color: var(--primary);
  box-shadow: var(--shadow-sm); font-size: .85rem; transition: transform .25s var(--ease);
}
.music-more:hover, .music-more[aria-expanded="true"] { transform: scale(1.08); background: var(--white); }
/* Volume panel: mute button + slider */
.music-panel {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .97); border: 1px solid var(--accent); box-shadow: var(--shadow);
  animation: panel-in .3s var(--ease) both;
}
.music-panel[hidden] { display: none; }
.music-mute {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 0; background: var(--bg-alt); color: var(--primary);
}
.music-mute[aria-pressed="true"] { background: var(--primary); color: var(--accent-light); }
.music-volume { width: 110px; accent-color: var(--primary); cursor: pointer; }
@media (max-width: 380px) { .music-volume { width: 84px; } }
@keyframes music-pulse { 0% { box-shadow: 0 0 0 0 rgba(229, 199, 122, .6), var(--shadow); } 70%, 100% { box-shadow: 0 0 0 14px rgba(229, 199, 122, 0), var(--shadow); } }
@keyframes panel-in { from { opacity: 0; transform: translateX(12px) scale(.96); } to { opacity: 1; transform: none; } }

.toast-area {
  position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 200;
  transform: translateX(-50%);
  width: min(92vw, 440px); display: grid; gap: 10px; pointer-events: none;
}
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px; border-radius: 12px;
  background: var(--text); color: var(--white); box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--accent);
  font-size: .95rem; line-height: 1.5;
  animation: toast-in .35s var(--ease) both;
}
.toast i { margin-top: 3px; color: var(--accent-light); }
.toast--success { border-left-color: #6FBF69; }
.toast--error { border-left-color: #FF7B72; }
.toast.is-leaving { animation: toast-out .3s ease forwards; }

/* Falling marigold petals (created by main.js when the invitation opens) */
.petal-layer { position: fixed; inset: 0; z-index: 150; pointer-events: none; overflow: hidden; }
.petal {
  position: absolute; top: -30px; width: 14px; height: 18px;
  border-radius: 80% 0 80% 0;
  background: var(--petal-color, #E07B12);
  opacity: .9;
  animation: petal-fall var(--fall, 4s) var(--delay, 0s) linear forwards;
}


/* ------------------------------------------------------------------
   16b. OPTIONAL IMAGES CHOSEN IN THE ADMIN PANEL
   ------------------------------------------------------------------ */
/* Cover photo: shown softly behind a cream veil so the text stays readable */
.hero.has-bg-image {
  background:
    linear-gradient(rgba(255, 248, 233, .86), rgba(255, 248, 233, .9)),
    var(--hero-bg) center / cover no-repeat,
    var(--bg);
}
/* Logo instead of the ॐ circle in the header */
.brand-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 50%; flex: 0 0 auto; }
/* Decorative image instead of the kalash on the invitation card */
.message-decoration { width: auto; max-width: 160px; max-height: 110px; margin: -12px auto 14px; object-fit: contain; }
/* Uploaded dress-code picture instead of the icon */
.dress-icon--image { overflow: hidden; background: var(--white) !important; }
.dress-icon--image img { width: 100%; height: 100%; object-fit: cover; }
/* Only one dress-code card: centre it */
.dress-grid--single { max-width: 520px; margin: 0 auto; grid-template-columns: 1fr !important; }
/* Contact details in the footer */
.footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 10px; font-size: .88rem; }
.footer-contact a { color: var(--accent-light); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-contact i { color: var(--accent); margin-right: 4px; }


/* ------------------------------------------------------------------
   17. ANIMATIONS
   ------------------------------------------------------------------ */
/* Hero items rise in one after another (--d = delay set in the HTML) */
.anim-in { animation: rise 1s var(--d, 0s) var(--ease) both; }

/* ---------- Scroll reveal ----------
   main.js adds .is-visible when an element scrolls into view.
   data-reveal="left | right | zoom | fade" chooses the movement (default: slide up).
   --i  (set by main.js) staggers cards that sit next to each other.
   --si (set by main.js) staggers lines inside a card ([data-stagger]). */
.js .reveal {
  opacity: 0; transform: translate3d(0, 34px, 0);
  transition: opacity .9s var(--ease) calc(var(--i, 0) * 110ms), transform 1.05s var(--ease) calc(var(--i, 0) * 110ms);
}
.js .reveal[data-reveal="left"]  { transform: translate3d(-46px, 0, 0); }
.js .reveal[data-reveal="right"] { transform: translate3d(46px, 0, 0); }
.js .reveal[data-reveal="zoom"]  { transform: scale(.93); }
.js .reveal[data-reveal="fade"]  { transform: none; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Lines inside a revealed card appear one after another */
.js .reveal [data-stagger] {
  opacity: 0; transform: translate3d(0, 12px, 0);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(280ms + var(--si, 0) * 120ms + var(--i, 0) * 110ms);
}
.js .reveal.is-visible [data-stagger] { opacity: 1; transform: none; }

/* Section headings: small line → title → gold divider drawing outwards */
.js .section-head.reveal .eyebrow,
.js .section-head.reveal .section-title,
.js .section-head.reveal .section-sub { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .section-head.reveal .section-title { transition-delay: .12s; }
.js .section-head.reveal .section-sub   { transition-delay: .3s; }
.js .section-head.reveal.is-visible .eyebrow,
.js .section-head.reveal.is-visible .section-title,
.js .section-head.reveal.is-visible .section-sub { opacity: 1; transform: none; }
.js .reveal .divider { transform: scaleX(0); transition: transform 1.2s var(--ease) .4s; }
.js .reveal.is-visible .divider { transform: scaleX(1); }

/* ---------- Section transitions ----------
   A fine gold line with a small diamond at the top of each section
   draws itself when the section comes into view (main.js adds .in-view). */
main > .section:not(.hero):not(.section--message)::before {
  content: ""; position: absolute; top: 0; left: 50%; z-index: 1;
  width: min(320px, 70%); height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-50%) scaleX(0); transition: transform 1.4s var(--ease);
}
main > .section:not(.hero):not(.section--message)::after {
  content: ""; position: absolute; top: 2px; left: 50%; z-index: 1;
  width: 11px; height: 11px; margin-left: -5.5px; background: var(--accent); border: 2px solid var(--bg);
  transform: rotate(45deg) scale(0); transition: transform .8s var(--ease) .5s;
}
.js main > .section.in-view::before { transform: translateX(-50%) scaleX(1); }
.js main > .section.in-view::after  { transform: rotate(45deg) scale(1); }
html:not(.js) main > .section::before { transform: translateX(-50%) scaleX(1); }
html:not(.js) main > .section::after  { transform: rotate(45deg) scale(1); }

/* ---------- Buttons: gold shine sweeping across, and a gentle lift ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 246, 220, .55) 50%, transparent 70%);
  transform: translateX(-130%); transition: transform .9s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateX(130%); }
.btn:hover { transform: translateY(-2px) scale(1.025); }
.btn:active { transform: scale(.98); }

/* ---------- Family cards: lift + soft gold glow ---------- */
.family-card:hover {
  transform: translateY(-5px);
  box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 5px var(--accent), 0 0 0 3px rgba(229, 199, 122, .35), 0 0 26px rgba(229, 199, 122, .45), var(--shadow);
}
.family-group { transition: border-color .4s, background-color .4s, transform .4s var(--ease); }
.family-group:hover { border-color: var(--accent); background: #FFF6DF; transform: translateY(-2px); }

/* ---------- Cover: entrance (when the page loads) ---------- */
.toran { animation: toran-drop 1.3s .15s var(--ease) both; }
.hero-frame .corner { stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw-corner 2.4s .35s var(--ease) forwards, fade-in .6s .35s both; }
.hero-frame::after {         /* a single gold light passing over the card */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; z-index: 3;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 240, 200, .55) 50%, transparent 62%);
  transform: translateX(-110%); animation: card-sweep 2.6s 1.6s ease-out forwards;
}
.hero-frame { overflow: hidden; }
.om-symbol { animation: om-glow 2.4s 1.1s ease-out both; }
.ganesh-line { clip-path: inset(0 0 0 0); }
.ganesh-line.anim-in { animation: ink-reveal 1.4s var(--d, 0s) var(--ease) both; }
.hero-name { animation: name-in 1.6s 1s var(--ease) both; }
.hero-title-big { animation: name-in-deva 1.6s 1s var(--ease) both; }   /* no letter-spacing: it would break Devanagari */

/* "Open without music" link under the main button */
.open-quiet {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 14px;
  border: 0; background: none; color: var(--text-soft); font-size: .9rem; text-decoration: underline; text-underline-offset: 4px;
  border-radius: 999px; transition: color .25s, background-color .25s;
}
.open-quiet:hover { color: var(--primary); background: rgba(201, 162, 74, .12); }
body.is-open .open-quiet { display: none; }

/* ---------- Opening: the cover splits and swings open like two doors ---------- */
.gate { position: fixed; inset: 0; z-index: 250; perspective: 1800px; pointer-events: none; overflow: hidden; }
.gate-half { position: absolute; top: 0; bottom: 0; width: 50%; overflow: hidden; backface-visibility: hidden; will-change: transform; }
.gate-half--left  { left: 0;  transform-origin: left center; }
.gate-half--right { right: 0; transform-origin: right center; }
.gate-half .hero { position: absolute; top: 0; width: 200%; min-height: 100vh; min-height: 100svh; }
.gate-half--left .hero  { left: 0; }
.gate-half--right .hero { right: 0; }
.gate .anim-in, .gate .toran, .gate .corner, .gate .hero-name, .gate .hero-title-big, .gate .hero-frame::after { animation: none !important; opacity: 1; stroke-dashoffset: 0; clip-path: none; }
.gate .btn-open, .gate .open-quiet, .gate .scroll-indicator { visibility: hidden; }
.gate-half::after {          /* shadow on the inner edge while the door turns */
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; pointer-events: none; opacity: 0; transition: opacity 1.2s ease;
}
.gate-half--left::after  { right: 0; background: linear-gradient(90deg, transparent, rgba(60, 20, 10, .35)); }
.gate-half--right::after { left: 0;  background: linear-gradient(270deg, transparent, rgba(60, 20, 10, .35)); }
.gate-seam {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px;
  background: linear-gradient(transparent, var(--accent-light), var(--accent), var(--accent-light), transparent);
  box-shadow: 0 0 18px 4px rgba(229, 199, 122, .7); opacity: 0; animation: seam-glow .5s ease forwards;
}
.gate.is-open .gate-half--left  { transform: rotateY(-108deg); opacity: 0; transition: transform 1.7s cubic-bezier(.55, .05, .25, 1), opacity .5s ease 1.2s; }
.gate.is-open .gate-half--right { transform: rotateY(108deg);  opacity: 0; transition: transform 1.7s cubic-bezier(.55, .05, .25, 1), opacity .5s ease 1.2s; }
.gate.is-open .gate-half::after { opacity: 1; }
.gate.is-open .gate-seam { animation: seam-out .6s ease forwards; }

/* The invitation card behind the doors grows in as they open */
body.is-opening .message-card { animation: card-rise 1.8s .2s var(--ease) both; }

@keyframes rise       { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade-in    { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin       { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spin-plain { to { transform: rotate(360deg); } }
@keyframes shimmer    { 0% { left: -60%; } 40%, 100% { left: 130%; } }
@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
@keyframes om-glow    { 0% { box-shadow: 0 0 0 5px rgba(229,199,122,.35); } 50% { box-shadow: 0 0 0 18px rgba(229,199,122,.25), 0 0 60px 20px rgba(229,199,122,.6); } 100% { box-shadow: 0 0 0 5px rgba(229,199,122,.35); } }
@keyframes frame-flash { 0%, 100% { border-color: var(--accent); } 40% { border-color: var(--accent-light); box-shadow: inset 0 0 0 5px var(--bg), inset 0 0 0 6px var(--accent-light), 0 0 40px rgba(229,199,122,.6); } }
@keyframes btn-out    { to { opacity: 0; transform: scale(.85); } }
@keyframes bars       { 0%, 100% { height: 5px; } 50% { height: 18px; } }
@keyframes bloom      { from { opacity: 0; transform: scale(.3) rotate(-90deg); } to { opacity: 1; transform: none; } }
@keyframes toast-in   { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes toast-out  { to { opacity: 0; transform: translateY(16px); } }
@keyframes toran-drop   { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw-corner  { to { stroke-dashoffset: 0; } }
@keyframes card-sweep   { to { transform: translateX(110%); } }
@keyframes ink-reveal   { from { clip-path: inset(0 50% 0 50%); opacity: 0; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes name-in      { from { opacity: 0; letter-spacing: .3em; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes name-in-deva { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes seam-glow    { to { opacity: 1; } }
@keyframes seam-out     { from { opacity: 1; } to { opacity: 0; transform: scaleY(1.4); } }
@keyframes card-rise    { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes petal-fall {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: .95; }
  100% { transform: translate3d(var(--drift, 40px), 110vh, 0) rotate(var(--spin, 540deg)); opacity: .2; }
}


/* ------------------------------------------------------------------
   18. LARGER SCREENS
   ------------------------------------------------------------------ */
@media (min-width: 420px) {
  .brand-text { display: inline; }
}

@media (min-width: 600px) {
  .section { padding: 96px 0; }
  .container { padding: 0 24px; }
  .corner { width: 84px; height: 84px; }
  .hero { padding: calc(var(--header-h) + 10px) 20px 20px; }
  .hero-frame { padding: 70px 40px 80px; }
  .hero-frame .corner { width: 110px; height: 110px; }
  .om-medallion { width: 120px; height: 120px; }
  .om-symbol { font-size: 4rem; }
  .ornate-card { padding: 70px 56px 56px; }
  .rsvp-card { padding: 70px 48px 50px; }
  .choice-row { grid-template-columns: 1fr 1fr; }
  .family-tier--grid { grid-template-columns: repeat(2, 1fr); }
  .family-card--wide { grid-column: 1 / -1; }
  .family-names--two-col { grid-template-columns: 1fr 1fr; }
  .dress-grid { grid-template-columns: 1fr 1fr; }
  .event-facts { grid-template-columns: 1fr 1fr; gap: 0 24px; padding: 26px 34px 6px; }
  .event-fact:nth-last-child(2) { border-bottom: 0; }
  .toran { height: 70px; background-size: 145px 70px; }
}

/* Tablet and desktop: दर्शनाभिलाषी left, मावलीतर्फ right, equal width and height */
@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  /* With 5+ photos the first one is shown large */
  .gallery-grid--feature .gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
  .family-columns { grid-template-columns: 1fr 1fr; gap: 26px; }
  .family-columns--single { grid-template-columns: minmax(0, 560px); justify-content: center; }
  .family-col { padding: 54px 32px 38px; }
}

@media (min-width: 1100px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 900px) {
  :root { --header-h: 72px; }
  .family-tier--featured { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .family-tier--grid { grid-template-columns: repeat(3, 1fr); }
  .family-card--wide { grid-column: span 2; }
  .location-layout { grid-template-columns: 5fr 6fr; align-items: stretch; }
  .location-info { display: flex; flex-direction: column; justify-content: center; }
  .map-frame { min-height: 380px; }
  .bg-mandala { width: 700px; height: 700px; }
}

/* Fewer than 3 featured family cards: keep them centred */
@media (min-width: 600px) {
  .family-tier--featured.family-tier--count-1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
  .family-tier--featured.family-tier--count-2 { grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; }
}

/* Short laptop screens: tighten the cover so "Open Invitation" stays visible without scrolling */
@media (min-width: 600px) and (max-height: 920px) {
  .hero-frame { padding: 40px 40px 44px; }
  .om-medallion { width: 92px; height: 92px; margin-bottom: 16px; }
  .om-symbol { font-size: 3rem; }
  .hero-name { font-size: clamp(2rem, 7.5vh, 4rem); }
  .hero-title-big { font-size: clamp(3rem, 10vh, 5.4rem); }
  .hero-date { margin-bottom: 20px; }
  .hero .divider { margin: 10px auto; }
}

/* Desktop navigation: links sit in the header bar */
@media (min-width: 1080px) {
  .nav-toggle { display: none !important; }
  .main-nav {
    position: static; max-height: none; overflow: visible;
    background: none; border: 0;
  }
  .main-nav ul { display: flex; gap: 2px; padding: 0; }
  .main-nav a {
    border: 0; padding: 8px 11px; border-radius: 999px;
    font-size: .76rem; letter-spacing: .14em; color: var(--primary);
  }
  [data-lang="ne"] .main-nav a { font-size: .95rem; }
  .is-scrolled .main-nav a { color: var(--accent-light); }
  .main-nav a:hover, .main-nav a.is-active { background: rgba(201, 162, 74, .2); }
  .main-nav a.nav-cta { background: var(--accent); color: var(--primary) !important; }
}


/* ------------------------------------------------------------------
   19. REDUCED MOTION & ANIMATIONS SWITCHED OFF
   Visitors who ask their phone for less motion, or when the admin turns
   animations off (body data-animations="off"), get a calm static page.
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .petal-layer { display: none; }
}
body[data-animations="off"] *,
body[data-animations="off"] *::before,
body[data-animations="off"] *::after { animation: none !important; transition: none !important; }
.js body[data-animations="off"] .reveal { opacity: 1; transform: none; }
body[data-animations="off"] .hero-mandala { transform: translate(-50%, -50%); }
/* Final, fully visible state of everything that normally animates in */
body[data-animations="off"] .hero-frame .corner { stroke-dashoffset: 0; }
body[data-animations="off"] .hero-frame::after { display: none; }
.js body[data-animations="off"] .reveal [data-stagger],
.js body[data-animations="off"] .section-head.reveal .eyebrow,
.js body[data-animations="off"] .section-head.reveal .section-title,
.js body[data-animations="off"] .section-head.reveal .section-sub { opacity: 1; transform: none; }
.js body[data-animations="off"] .reveal .divider { transform: none; }
body[data-animations="off"] main > .section::before { transform: translateX(-50%) scaleX(1) !important; }
body[data-animations="off"] main > .section::after  { transform: rotate(45deg) scale(1) !important; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal [data-stagger], .js .section-head.reveal .eyebrow, .js .section-head.reveal .section-title,
  .js .section-head.reveal .section-sub { opacity: 1; transform: none; }
  .js .reveal .divider { transform: none; }
  .gate { display: none; }
}
