/* ==========================================================================
   Dhiman Sisterz — public site
   Desktop: alternating temple-dark & cream sections (per approved mockup)
   Mobile (≤ 760px): installable app shell — app bar, bottom tab bar, swipe rows
   ========================================================================== */
:root {
  --dark: #160a06;
  --dark-2: #1f0f09;
  --dark-3: #2a150c;
  --maroon: #5c1414;
  --maroon-2: #7a1c1a;
  --cream: #fbf4e8;
  --cream-2: #f5ead7;
  --paper: #fffdf9;
  --gold: #e2ae4a;
  --gold-2: #c58a2a;
  --gold-light: #f6d98c;
  --gold-grad: linear-gradient(180deg, #f6d27a 0%, #e4ac45 55%, #c98e2c 100%);
  --ink: #2c1610;
  --ink-2: #5b4136;
  --muted: #8b7262;
  --ivory: #fbefdc;
  --line: #ecdcc2;
  --line-dark: rgba(226, 174, 74, .22);
  --ok: #2f8f57;
  --err: #c53b33;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 10px 30px -14px rgba(60, 25, 10, .35);
  --shadow-lg: 0 24px 60px -20px rgba(20, 6, 2, .55);
  --ff-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --ff-caps: "Cinzel", "Playfair Display", Georgia, serif;
  --ff-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-hindi: "Tiro Devanagari Hindi", "Noto Sans Devanagari", serif;
  --container: 1240px;
  --header-h: 84px;
  --tabbar-h: 0px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@supports (overflow-x: clip) { html, body { overflow-x: clip !important; } }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--ff-body); font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
img, svg, video, iframe { display: block; max-width: 100%; }
main, section, footer, header { max-width: 100vw; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
::selection { background: var(--gold); color: var(--dark); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.ic { width: 1em; height: 1em; flex-shrink: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--dark); padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip:focus { left: 8px; }
.hindi { font-family: var(--ff-hindi); }
.muted { color: var(--muted); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container.narrow { max-width: 720px; }
.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 500; font-size: 14px; white-space: nowrap; transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s; }
.btn .ic { width: 15px; height: 15px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--gold-grad); color: #2a1206; box-shadow: 0 8px 22px -10px rgba(201, 142, 44, .9), inset 0 1px 0 rgba(255, 255, 255, .45); font-weight: 600; }
.btn-gold:hover { box-shadow: 0 12px 28px -10px rgba(201, 142, 44, 1), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-outline-light { border-color: rgba(246, 217, 140, .7); color: var(--ivory); background: rgba(0, 0, 0, .15); }
.btn-outline-light:hover { background: rgba(246, 217, 140, .12); }
.btn-pill-light { border-color: rgba(246, 217, 140, .55); color: var(--ivory); padding: 9px 20px; font-size: 13px; }
.btn-pill-light:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-pill { border-color: var(--gold-2); color: var(--ink); padding: 9px 20px; font-size: 13px; background: var(--paper); }
.btn-pill:hover { background: var(--gold-light); }
.btn-outline { border-color: var(--gold-2); color: var(--ink); background: transparent; }
.btn-outline:hover { background: #fff3d8; }
.btn-dark { background: #3a1d12; color: #fbe6c4; }
.btn-dark:hover { background: #4b2617; }
.btn-xs { padding: 7px 16px; font-size: 12.5px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-lg { padding: 15px 30px; font-size: 15px; }
.btn-block { width: 100%; }
.link-gold { color: var(--gold-2); font-weight: 600; border-bottom: 1px solid currentColor; }
.wa-dot { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #25d366; color: #fff; }
.wa-dot svg { width: 13px; height: 13px; }

/* ---------- typography helpers ---------- */
.kicker { display: inline-block; font-family: var(--ff-body); font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; margin-bottom: 8px; }
.sec-dark .kicker, .hero .kicker, .cta .kicker, .page-hero .kicker { color: var(--gold); }
.sec { padding: 72px 0; position: relative; }
.sec-cream { background: var(--cream); background-image: radial-gradient(circle at 100% 0%, rgba(226, 174, 74, .09), transparent 40%), radial-gradient(circle at 0% 100%, rgba(226, 174, 74, .07), transparent 35%); }
.sec-dark { background: var(--dark); color: var(--ivory); background-image: radial-gradient(ellipse 60% 70% at 50% 120%, rgba(198, 92, 30, .28), transparent 70%), radial-gradient(ellipse 50% 60% at 0% 0%, rgba(92, 20, 20, .45), transparent 70%); }
.sec-dark h2, .sec-dark h3 { color: var(--ivory); }
.temple-bg::after { content: ""; position: absolute; inset: auto 0 0 0; height: 160px; background: url("../img/temple.svg") center bottom / auto 100% repeat-x; opacity: .35; pointer-events: none; filter: blur(.3px); }
.temple-bg > .container { position: relative; z-index: 1; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(26px, 3vw, 34px); margin: 0; color: var(--ink); }
.sec-dark .sec-head h2 { color: var(--ivory); }
.split-head { align-items: flex-end; }
.split-head p { max-width: 430px; color: var(--ink-2); margin: 0; font-size: 14px; }
.left-arrows { justify-content: flex-start; }
.arrows { display: flex; gap: 8px; margin-bottom: 4px; }

/* ---------- header ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; transition: background .3s, box-shadow .3s, height .3s; }
.is-inner .site-header, .site-header.scrolled { position: fixed; background: rgba(22, 10, 6, .94); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line-dark); }
.site-header.scrolled { height: 68px; }
.is-inner main { padding-top: var(--header-h); }
.nav-wrap { display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 46px; height: auto; }
.brand-name { display: block; font-family: var(--ff-caps); font-weight: 700; font-size: 21px; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .01em; }
.brand-sub { display: block; font-size: 8.5px; text-transform: uppercase; letter-spacing: .2em; color: #d9c3a0; margin-top: 5px; }
.main-nav { display: flex; gap: 2px; margin-left: auto; }
.main-nav a { position: relative; padding: 8px 12px; font-size: 14px; color: #f4e6cf; transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--gold); }
.main-nav a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--gold); border-radius: 2px; }
.nav-socials { display: flex; gap: 8px; }
.nav-socials a { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; color: #fff; background: #b4231b; transition: transform .2s; }
.nav-socials a:hover { transform: translateY(-2px); }
.nav-socials svg { width: 14px; height: 14px; }
.nav-socials .s-instagram { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.nav-socials .s-facebook { background: #b4231b; }
.nav-cta { padding: 11px 20px; }
.app-back, .app-title, .app-call { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 640px; padding: calc(var(--header-h) + 36px) 0 40px; color: var(--ivory); overflow: hidden; isolation: isolate; background: var(--dark); }
.hero-bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 45% 70% at 58% 45%, rgba(214, 120, 40, .45), transparent 70%),
  radial-gradient(ellipse 30% 40% at 80% 20%, rgba(245, 180, 80, .25), transparent 70%),
  radial-gradient(ellipse 80% 80% at 50% 120%, rgba(110, 24, 18, .9), transparent 70%), var(--dark); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 8, 4, .96) 0%, rgba(18, 8, 4, .82) 26%, rgba(18, 8, 4, .15) 52%, rgba(18, 8, 4, .1) 70%, rgba(18, 8, 4, .55) 100%), linear-gradient(180deg, rgba(18, 8, 4, .55) 0%, transparent 25%, transparent 70%, rgba(18, 8, 4, .9) 100%); }
.hero:not(.has-img) .hero-bg::before { content: ""; position: absolute; inset: 0; background: url("../img/mandala.svg") 62% 50% / 640px no-repeat; opacity: .16; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.hero-copy { max-width: 440px; padding-top: 18px; }
.hero-title { font-size: clamp(54px, 6.4vw, 86px); font-weight: 700; line-height: .95; margin: 0 0 14px; color: #fff; letter-spacing: -.01em; }
.hero-title span, .hero-title em { display: block; }
.hero-title em { font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.hero-lead { font-family: var(--ff-display); font-size: 25px; line-height: 1.2; color: #fff; margin: 0 0 14px; }
.hero-sub { font-size: 14px; color: #e3d2bb; max-width: 400px; margin-bottom: 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { list-style: none; padding: 0; margin: 64px 0 0; display: flex; gap: 34px; flex-wrap: wrap; width: max-content; max-width: calc(100vw - 480px); }
.hero-stats li { display: flex; align-items: center; gap: 10px; }
.hero-stats .ic { width: 30px; height: 30px; color: var(--gold); }
.hero-stats b { display: block; font-size: 17px; font-weight: 600; color: #fff; line-height: 1.1; }
.hero-stats span { font-size: 11.5px; color: #d7c3a6; }

/* quick booking form */
.qb { background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); padding: 24px 22px 20px; box-shadow: var(--shadow-lg); border: 1px solid #f1e3c8; }
.qb-kicker { display: block; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; }
.qb h2 { font-size: 22px; margin: 4px 0 4px; color: var(--ink); }
.qb-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.qb-grid { display: grid; gap: 10px; margin-bottom: 14px; }
.qf { position: relative; display: block; }
.qf .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: #a58b75; pointer-events: none; }
.qf input, .qf select { width: 100%; height: 44px; padding: 0 12px 0 38px; border: 1px solid #e6d7c1; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 13.5px; transition: border-color .2s, box-shadow .2s; }
.qf select { appearance: none; color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%238b7262' stroke-width='2'/%3E%3C/svg%3E") right 12px center / 14px no-repeat; }
.qf select:invalid { color: #9d8a7b; }
.qf input::placeholder { color: #9d8a7b; }
.qf input:focus, .qf select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(226, 174, 74, .18); }
.qf input[type=date]:invalid::-webkit-datetime-edit { color: #9d8a7b; }
.qb-wa { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 12.5px; }
.qb-wa .wa-dot { width: 30px; height: 30px; }
.qb-wa .wa-dot svg { width: 16px; height: 16px; }
.qb-wa b { display: block; font-weight: 600; }
.qb-wa u { color: #1e9e52; }
.qb-cta .qb-grid { grid-template-columns: 1fr 1fr; }
.qb-cta .qf-wide { grid-column: span 2; }
.qb-cta h2 { font-family: var(--ff-display); font-size: 19px; margin-bottom: 14px; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr .6fr; gap: 40px; align-items: center; }
.about-media { position: relative; }
.about-media .brush { width: 100%; aspect-ratio: 4/3; object-fit: cover; -webkit-mask: url("../img/brush-mask.svg") center / 100% 100% no-repeat; mask: url("../img/brush-mask.svg") center / 100% 100% no-repeat; }
.about-media::before { content: ""; position: absolute; inset: 6% -2% -4% 4%; background: radial-gradient(circle, rgba(226, 174, 74, .28), transparent 65%); z-index: -1; }
.about-copy h2 { font-size: clamp(26px, 2.6vw, 32px); color: var(--ink); }
.about-copy p { color: var(--ink-2); font-size: 14px; }
.features { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.features li { text-align: center; }
.features .ic { width: 30px; height: 30px; margin: 0 auto 8px; color: var(--maroon-2); }
.features b { display: block; font-family: var(--ff-display); font-size: 14.5px; color: var(--ink); }
.features span { font-size: 11.5px; color: var(--muted); }
.about-quote { position: relative; text-align: center; padding: 20px 0; min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; }
.aq-art { position: absolute; inset: -40px -60px auto auto; width: 300px; opacity: .14; filter: sepia(1) saturate(2) hue-rotate(-10deg); z-index: 0; }
.about-quote blockquote { position: relative; margin: 0 0 8px; font-family: var(--ff-display); font-style: italic; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.about-quote cite { position: relative; font-style: normal; color: var(--gold-2); font-family: var(--ff-display); font-weight: 600; }

/* ---------- events carousel ---------- */
.carousel { position: relative; }
.car-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 22px) / 4); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 70px; }
.car-track::-webkit-scrollbar, .scroll-x::-webkit-scrollbar { display: none; }
.car-btn { position: absolute; top: calc(50% - 60px); z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s; }
.car-btn:hover { transform: scale(1.08); }
.car-btn .ic { width: 18px; height: 18px; }
.car-btn.prev { left: -22px; } .car-btn.next { right: -22px; }
.car-btn.sm { position: static; width: 32px; height: 32px; border: 1px solid var(--gold-2); box-shadow: none; background: var(--paper); }
.ev-card { scroll-snap-align: start; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: 0 14px 34px -16px rgba(0, 0, 0, .6); color: var(--ink); display: flex; flex-direction: column; transition: transform .25s; }
.ev-card:hover { transform: translateY(-4px); }
.ev-media { position: relative; display: block; aspect-ratio: 16/9.5; overflow: hidden; }
.ev-media img, .ev-media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ev-card:hover .ev-media img { transform: scale(1.05); }
.ev-date { position: absolute; left: 10px; top: 10px; background: #fff; border-radius: 6px; padding: 5px 9px 4px; text-align: center; line-height: 1; box-shadow: 0 4px 10px rgba(0, 0, 0, .2); }
.ev-date b { display: block; font-family: var(--ff-display); font-size: 22px; color: var(--ink); }
.ev-date span { display: block; font-size: 8.5px; text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; color: var(--muted); }
.ev-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.ev-body h3 { font-size: 17px; margin: 0 0 6px; }
.ev-body h3 a:hover { color: var(--maroon-2); }
.ev-meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin: 0 0 4px; }
.ev-meta .ic { color: #c0392b; width: 13px; height: 13px; }
.ev-body .btn { margin-top: auto; align-self: flex-start; }
.ev-body .ev-meta + .btn, .ev-body .ev-meta:last-of-type { margin-bottom: 10px; }

/* placeholder for missing photos */
.ph { display: grid; place-items: center; background: radial-gradient(circle at 70% 30%, rgba(240, 160, 70, .55), transparent 55%), radial-gradient(circle at 20% 80%, rgba(110, 24, 18, .95), transparent 60%), linear-gradient(135deg, #3a120d, #1b0a06); color: var(--gold); }
.ph span { width: 30%; max-width: 70px; opacity: .8; }
.ph .ic { width: 100%; height: auto; }
.ph.brush { aspect-ratio: 4/3; }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.svc-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; text-align: center; padding-bottom: 16px; box-shadow: 0 6px 20px -12px rgba(60, 25, 10, .4); border: 1px solid #f0e2c9; transition: transform .25s, box-shadow .25s; }
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.svc-media { aspect-ratio: 4/3.2; overflow: hidden; }
.svc-media img, .svc-media .ph { width: 100%; height: 100%; object-fit: cover; }
.svc-icon { position: relative; display: grid; place-items: center; width: 40px; height: 40px; margin: -20px auto 6px; border-radius: 50%; background: #fff; color: #b5402c; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); border: 1px solid #f3e0c0; }
.svc-icon .ic { width: 20px; height: 20px; }
.svc-card h3 { font-size: 15px; margin: 4px 10px 4px; }
.svc-card p { font-size: 11.5px; color: var(--muted); margin: 0 12px; line-height: 1.5; }

/* ---------- videos ---------- */
.videos-sec { padding-bottom: 60px; }
.videos-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 0; }
.videos-layout > div:first-child { padding-right: 34px; }
.v-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.v-card h3 { font-family: var(--ff-body); font-size: 13px; font-weight: 600; line-height: 1.35; margin: 10px 0 3px; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v-card p { font-size: 11.5px; color: #bda78b; margin: 0; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16/10; border: 1px solid rgba(226, 174, 74, .55); border-radius: 8px; overflow: hidden; padding: 0; background: #000; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.yt:hover img { transform: scale(1.05); }
.yt .play { position: absolute; inset: 0; margin: auto; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: #b4231b; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); transition: transform .2s; }
.yt .play .ic { width: 20px; height: 20px; margin-left: 3px; }
.yt:hover .play { transform: scale(1.1); }
.yt .dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, .78); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 4px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.v-side { position: relative; border-left: 1px solid var(--line-dark); padding: 0 0 0 28px; display: flex; flex-direction: column; justify-content: space-between; min-height: 300px; overflow: hidden; }
.v-side::after { content: ""; position: absolute; left: 28px; right: -40px; bottom: 90px; height: 140px; background: url("../img/temple.svg") center bottom / contain no-repeat; opacity: .35; }
.v-side h3 { font-family: var(--ff-caps); font-weight: 600; font-size: 15px; letter-spacing: .3em; line-height: 1.6; text-transform: uppercase; color: #f0dcbc; }
.v-side blockquote { position: relative; z-index: 1; margin: 0; text-align: center; font-family: var(--ff-display); font-style: italic; font-size: 14px; line-height: 1.55; color: #ecdcc4; }
.v-side cite { position: relative; z-index: 1; display: block; text-align: center; margin-top: 8px; color: var(--gold); font-style: normal; font-family: var(--ff-display); font-weight: 600; font-size: 14px; }

/* ---------- gallery ---------- */
.gallery-sec { padding-bottom: 30px; }
.g-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.g-tile { position: relative; display: block; aspect-ratio: 4/3.3; border-radius: 6px; overflow: hidden; background: var(--dark); }
.g-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.g-tile:hover img { transform: scale(1.06); }
.g-more span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; background: rgba(18, 8, 4, .62); color: #fff; font-size: 13px; }
.g-more b { display: block; font-family: var(--ff-display); font-size: 34px; line-height: 1; }

/* ---------- testimonials ---------- */
.testimonials { padding-top: 40px; }
.t-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 22px) / 3); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 10px; }
.t-card { scroll-snap-align: start; margin: 0; background: var(--paper); border: 1px solid #efe0c6; border-radius: var(--radius); padding: 20px 22px; box-shadow: 0 8px 22px -16px rgba(60, 25, 10, .5); }
.t-head { display: flex; align-items: center; gap: 12px; position: relative; }
.t-avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; background: var(--gold-grad); color: #3a1608; font-family: var(--ff-display); font-weight: 700; font-size: 19px; }
.t-avatar img { width: 100%; height: 100%; object-fit: cover; }
.t-head strong { display: block; font-size: 13.5px; line-height: 1.2; }
.t-head small { display: block; font-size: 11.5px; color: var(--muted); }
.stars { color: #e8a41c; font-size: 12px; letter-spacing: 1px; }
.t-q { position: absolute; right: 0; top: -4px; color: #ecd7b2; }
.t-q .ic { width: 38px; height: 38px; }
.t-card blockquote { margin: 14px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }

/* ---------- CTA ---------- */
.cta { position: relative; color: var(--ivory); overflow: hidden; isolation: isolate; padding: 70px 0; background: var(--dark); }
.cta-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 35% 80% at 52% 55%, rgba(214, 120, 40, .45), transparent 70%), radial-gradient(ellipse 60% 80% at 0 100%, rgba(110, 24, 18, .7), transparent 70%), var(--dark); }
.cta-bg img { position: absolute; left: 30%; width: 45%; height: 100%; object-fit: cover; object-position: center 25%; -webkit-mask: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); mask: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); }
.cta-grid { display: grid; grid-template-columns: 1fr 440px; gap: 40px; align-items: center; }
.cta-grid > .cta-copy { max-width: 420px; }
.cta h2 { font-size: clamp(30px, 3.2vw, 40px); color: #fff; margin-bottom: 14px; }
.cta p { color: #e2d0b8; font-size: 14px; margin-bottom: 26px; }

/* ---------- blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 24px -16px rgba(60, 25, 10, .5); border: 1px solid #f0e2c9; transition: transform .25s; }
.post-card:hover { transform: translateY(-4px); }
.post-media { display: block; aspect-ratio: 16/7.5; overflow: hidden; }
.post-media img, .post-media .ph { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 14px 16px 14px; }
.post-body h3 { font-size: 15.5px; margin: 0 0 10px; }
.post-body h3 a:hover { color: var(--maroon-2); }
.post-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.post-foot span { display: inline-flex; align-items: center; gap: 6px; }
.post-foot a { display: inline-flex; align-items: center; gap: 5px; color: var(--gold-2); font-weight: 600; }
.post-foot .ic { width: 13px; height: 13px; }

/* ---------- footer ---------- */
.site-footer { position: relative; background: #0f0906; color: #cbb89f; padding: 54px 0 0; overflow: hidden; }
.footer-temple { position: absolute; right: 2%; bottom: 40px; width: 320px; height: 150px; background: url("../img/temple.svg") center bottom / contain no-repeat; opacity: .5; filter: invert(18%) sepia(30%) saturate(500%) hue-rotate(340deg) brightness(.55); pointer-events: none; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.5fr .8fr 1fr 1.3fr .7fr; gap: 34px; }
.site-footer h4 { font-family: var(--ff-display); font-size: 15px; color: #fff; margin-bottom: 14px; }
.f-brand p { font-size: 13px; margin-top: 16px; max-width: 240px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: #c4261d; color: #fff; transition: transform .2s; }
.socials a:hover { transform: translateY(-2px); }
.socials svg { width: 16px; height: 16px; }
.f-links { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.f-links li { margin-bottom: 5px; }
.f-links a:hover, .f-contact a:hover { color: var(--gold); }
.f-contact { list-style: none; padding: 0; margin: 0 0 18px; font-size: 13px; }
.f-contact li { display: flex; gap: 10px; align-items: center; margin-bottom: 9px; }
.f-contact .ic { color: var(--gold); width: 15px; height: 15px; }
.f-jmd { text-align: center; color: var(--gold); align-self: start; }
.f-jmd .ic { width: 48px; height: 48px; margin: 0 auto 4px; }
.f-jmd span { font-size: 22px; }
.f-bottom { position: relative; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 28px; margin-top: 40px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12px; }
.f-bottom a:hover { color: var(--gold); }
.heart { color: #e0453a; font-style: normal; }

/* ---------- inner pages ---------- */
.page-hero { position: relative; padding: 70px 0 64px; text-align: center; overflow: hidden; isolation: isolate; color: var(--ivory); background: var(--dark); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18, 8, 4, .82), rgba(18, 8, 4, .9)), var(--ph-img, none) center 30% / cover, radial-gradient(ellipse 60% 80% at 50% 120%, rgba(198, 92, 30, .45), transparent 70%); }
.page-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 90px; background: url("../img/temple.svg") center bottom / auto 100% repeat-x; opacity: .3; z-index: -1; }
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); color: #fff; margin: 0 0 8px; }
.page-hero p { color: #e2d0b8; max-width: 620px; margin: 0 auto; }
.crumbs { font-size: 12.5px; color: #c9b292; margin-bottom: 14px; }
.crumbs a:hover { color: var(--gold); }
.prose p { color: var(--ink-2); font-size: 15px; }
.prose h2 { font-size: 26px; margin-top: 1.4em; }
.prose h3 { font-size: 20px; margin-top: 1.2em; }
.prose ul, .prose ol { color: var(--ink-2); padding-left: 22px; }
.prose img { border-radius: var(--radius); margin: 20px 0; }
.card-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 38px); box-shadow: var(--shadow); }
.side-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 8px 22px -16px rgba(60, 25, 10, .5); margin-bottom: 16px; }
.side-card h3 { font-size: 20px; }
.side-card .btn { margin-bottom: 10px; }
.empty { text-align: center; padding: 44px 24px; border: 1px dashed #dcc7a3; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .5); }
.empty p { color: var(--muted); max-width: 520px; margin: 0 auto 18px; }
.empty-dark { border-color: var(--line-dark); background: rgba(255, 255, 255, .03); }
.empty-dark p { color: #cbb69a; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 30px; }
.chip { padding: 7px 16px; border-radius: 999px; border: 1px solid #dcc7a3; font-size: 13px; color: var(--ink-2); background: var(--paper); transition: all .2s; white-space: nowrap; }
.chip.active { background: var(--gold-grad); border-color: transparent; color: #2a1206; font-weight: 600; }
.grid-events { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.month-title { font-size: 24px; margin: 40px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.month-title:first-of-type { margin-top: 0; }
.past-list { display: grid; gap: 8px; }
.past-item { display: grid; grid-template-columns: 130px 1fr auto; gap: 18px; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.past-item time { color: var(--gold-2); font-size: 13px; font-weight: 600; }
.past-item span { color: var(--muted); font-size: 13px; }
.v-grid-page { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.v-grid-page .v-card h3 { color: var(--ink); font-size: 14px; }
.v-grid-page .v-card p { color: var(--muted); }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.pager a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); }
.pager a.active { background: var(--gold-grad); font-weight: 700; border-color: transparent; }
.masonry { columns: 3 280px; column-gap: 14px; }
.m-item { position: relative; display: block; break-inside: avoid; margin-bottom: 14px; border-radius: var(--radius); overflow: hidden; }
.m-item img { width: 100%; transition: transform .5s; }
.m-item:hover img { transform: scale(1.04); }
.m-cap { position: absolute; inset: auto 0 0 0; padding: 26px 14px 10px; font-size: 13px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.svc-page { display: grid; gap: 26px; }
.svc-row { display: grid; grid-template-columns: 380px 1fr; gap: 30px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 8px 22px -16px rgba(60, 25, 10, .5); }
.svc-row:nth-child(even) { grid-template-columns: 1fr 380px; }
.svc-row:nth-child(even) .svc-row-media { order: 2; }
.svc-row-media { aspect-ratio: 4/3; height: 100%; }
.svc-row-media img, .svc-row-media .ph { width: 100%; height: 100%; object-fit: cover; }
.svc-row-body { padding: 26px 30px; }
.svc-row-body .svc-icon { margin: 0 0 12px; }
.svc-row-body h2 { font-size: 26px; }
.svc-row-body p { color: var(--ink-2); }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.post-cover { border-radius: var(--radius-lg); margin-bottom: 26px; width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.post-meta { color: var(--muted); font-size: 13px; margin-bottom: 18px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* event detail */
.event-facts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }
.event-facts > div { padding: 10px 18px; border: 1px solid var(--line-dark); border-radius: 10px; background: rgba(0, 0, 0, .3); text-align: left; }
.event-facts small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .16em; color: var(--gold); }
.event-facts strong { font-weight: 500; color: #fff; font-size: 14px; }
.tag { display: inline-block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; padding: 4px 11px; border-radius: 999px; background: rgba(226, 174, 74, .18); color: var(--gold-light); border: 1px solid var(--line-dark); font-weight: 600; margin: 0 4px 10px; }
.event-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.event-poster { border-radius: var(--radius-lg); margin-bottom: 24px; }
.sticky { position: sticky; top: 96px; }

/* forms (book / contact / status) */
.book-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; align-items: start; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { line-height: 1.2; font-family: var(--ff-display); font-size: 26px; color: var(--ink); margin-bottom: 16px; padding: 0; font-weight: 600; }
.js .step { display: none; animation: fadeUp .35s ease; }
.js .step.active { display: block; }
.steps-bar { display: none; gap: 8px; margin-bottom: 24px; }
.js .steps-bar { display: flex; }
.steps-bar span { flex: 1; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; padding-top: 10px; border-top: 3px solid var(--line); color: var(--muted); font-weight: 600; }
.steps-bar span.active { border-color: var(--gold); color: var(--gold-2); }
.lbl { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 16px 0 6px; }
.card-box input:not([type=radio]):not([type=checkbox]), .card-box select, .card-box textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #e3d2b8; background: #fff; color: var(--ink); font: inherit; font-size: 14.5px; transition: border-color .2s, box-shadow .2s; }
.card-box input:focus, .card-box select:focus, .card-box textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(226, 174, 74, .18); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.type-opt { position: relative; }
.type-opt input { position: absolute; opacity: 0; }
.type-opt span { display: grid; place-items: center; min-height: 48px; padding: 10px; border: 1px solid #e3d2b8; border-radius: 10px; text-align: center; font-size: 13px; cursor: pointer; transition: all .2s; background: #fff; }
.type-opt span:hover { border-color: var(--gold); }
.type-opt input:checked + span { background: var(--gold-grad); border-color: transparent; font-weight: 600; color: #2a1206; }
.type-opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.step-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.step-actions .btn:only-child { margin-left: auto; }
.field-error { color: var(--err); font-size: 13px; margin: 5px 0 0; }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert-error { background: #fdeceb; border: 1px solid #f3c3bf; color: #8a2a23; }
.terms { font-size: 12.5px; margin-top: 16px; color: var(--muted); }
.avail { min-height: 22px; font-size: 13.5px; margin: 8px 0 0; }
.avail .ok { color: var(--ok); } .avail .no { color: var(--err); }
.mini-steps { padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.cal-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; margin-top: 24px; align-items: start; }
.cal { border: 1px solid #e3d2b8; border-radius: 12px; padding: 14px; background: #fff; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-title { font-family: var(--ff-display); font-size: 18px; }
.cal-nav { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #e3d2b8; background: #fff; font-size: 18px; line-height: 1; }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid .dow { font-size: 10.5px; color: var(--muted); text-transform: uppercase; padding: 4px 0; }
.cal-grid button { aspect-ratio: 1; border: 1px solid transparent; border-radius: 9px; background: #eef8f1; color: var(--ink); font-size: 13.5px; transition: all .15s; }
.cal-grid button:hover:not(:disabled) { border-color: var(--gold); }
.cal-grid button:disabled { background: transparent; color: #cdbfb0; cursor: not-allowed; }
.cal-grid button.booked { background: #fdeceb; color: #c79a95; text-decoration: line-through; }
.cal-grid button.sel { background: var(--gold-grad); color: #2a1206; font-weight: 700; }
.cal-grid button.today { border-color: #e3d2b8; }
.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); margin-top: 10px; }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.lg-free { background: #bfe5cc; } .lg-booked { background: #f3c3bf; } .lg-sel { background: var(--gold); }
.success-card { max-width: 620px; margin: 0 auto; text-align: center; }
.success-icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; color: #2a1206; background: var(--gold-grad); box-shadow: 0 0 0 10px rgba(226, 174, 74, .18); }
.ref-box { margin: 22px auto; padding: 14px; border: 1px dashed var(--gold-2); border-radius: 12px; max-width: 280px; background: #fffaf0; }
.ref-box small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
.ref-box strong { font-family: var(--ff-display); font-size: 30px; color: var(--maroon-2); letter-spacing: .05em; }
.status-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.status-top small { display: block; color: var(--muted); font-size: 12px; }
.status-top strong { font-family: var(--ff-display); font-size: 26px; color: var(--maroon-2); }
.badge { padding: 5px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.badge-pending { background: #fff3d6; color: #a76c0c; }
.badge-confirmed, .badge-completed { background: #e3f4ea; color: var(--ok); }
.badge-declined, .badge-cancelled { background: #fdeceb; color: var(--err); }
.timeline { list-style: none; padding: 0; margin: 0 0 24px; display: flex; justify-content: space-between; position: relative; }
.timeline::before { content: ""; position: absolute; top: 9px; left: 10px; right: 10px; height: 2px; background: var(--line); }
.timeline li { position: relative; font-size: 12.5px; color: var(--muted); text-align: center; flex: 1; }
.timeline li span { display: block; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--line); margin: 0 auto 8px; position: relative; }
.timeline li.done { color: var(--ink); font-weight: 600; }
.timeline li.done span { background: var(--gold); border-color: var(--gold); }
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 24px; }
.details dt { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.details dd { margin: 2px 0 0; font-weight: 600; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 34px; align-items: start; }
.contact-cards { display: grid; gap: 12px; }
.c-card { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); transition: border-color .2s, transform .2s; }
a.c-card:hover { border-color: var(--gold); transform: translateX(3px); }
.c-card > .ic { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: #fff3d8; color: var(--maroon-2); }
.c-card small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .16em; color: var(--gold-2); font-weight: 600; }
.c-card strong { font-family: var(--ff-display); font-size: 18px; font-weight: 600; display: block; }
.map { width: 100%; height: 360px; border: 0; border-radius: var(--radius-lg); margin-top: 40px; }
.about-page .about-grid { grid-template-columns: 1fr 1.2fr; }
.steps-4 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps-4 li { padding: 24px; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); }
.steps-4 li > b { font-family: var(--ff-display); font-size: 34px; color: var(--gold-2); line-height: 1; }
.steps-4 h3 { font-size: 18px; margin: 10px 0 6px; }
.steps-4 p { font-size: 13.5px; color: var(--ink-2); margin: 0; }
.stats-band { background: var(--dark); color: var(--ivory); padding: 34px 0; }
.stats-band .hero-stats { margin: 0 auto; max-width: none; justify-content: space-around; width: 100%; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 3, 2, .95); display: grid; place-items: center; padding: 20px; animation: fade .25s; }
.lightbox img { max-height: 84vh; max-width: 92vw; border-radius: 10px; }
.lightbox figcaption { text-align: center; margin-top: 12px; color: #d9c6ad; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 22px; }
.lb-close { top: calc(16px + var(--safe-t)); right: 16px; } .lb-prev { left: 16px; top: 50%; } .lb-next { right: 16px; top: 50%; }

/* floating WhatsApp + chat */
.fab-wa { position: fixed; left: 22px; bottom: 22px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 26px -6px rgba(37, 211, 102, .6); transition: transform .2s; }
.fab-wa:hover { transform: scale(1.07); }
.fab-wa svg { width: 28px; }
.chat { position: fixed; right: 22px; bottom: 22px; z-index: 61; }
.chat-launch { display: flex; align-items: center; gap: 9px; padding: 13px 20px 13px 16px; border-radius: 999px; border: 0; background: var(--gold-grad); color: #2a1206; font-weight: 600; box-shadow: 0 12px 30px -10px rgba(201, 142, 44, .9); transition: transform .2s; }
.chat-launch svg { width: 19px; fill: #2a1206; }
.chat-panel { position: absolute; right: 0; bottom: 66px; width: min(370px, calc(100vw - 28px)); height: min(540px, calc(100svh - 140px)); display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 70px -20px rgba(20, 6, 2, .6); overflow: hidden; animation: fadeUp .3s ease; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: linear-gradient(120deg, var(--maroon), #2c0c08); color: #fff; }
.chat-head strong { display: block; font-family: var(--ff-display); font-size: 18px; }
.chat-head small { font-size: 11.5px; color: #f0cfa5; }
.chat-head button { background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--cream); overscroll-behavior: contain; }
.msg { max-width: 85%; padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.msg a { color: var(--maroon-2); text-decoration: underline; }
.msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.user { background: var(--gold-grad); color: #2a1206; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.typing::after { content: "…"; animation: dots 1.2s infinite steps(4); display: inline-block; width: 1.2em; overflow: hidden; vertical-align: bottom; }
@keyframes dots { from { width: 0; } to { width: 1.2em; } }
.chat-quick { display: flex; gap: 6px; padding: 8px 12px; flex-wrap: wrap; background: var(--cream); }
.chat-quick button { padding: 5px 11px; font-size: 12px; border-radius: 999px; border: 1px solid var(--gold-2); background: #fff; color: var(--ink); }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.chat-form input { flex: 1; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); font: inherit; font-size: 16px; }
.chat-form input:focus { outline: none; border-color: var(--gold); }
.chat-form button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--gold-grad); display: grid; place-items: center; flex-shrink: 0; }
.chat-form button svg { width: 17px; fill: #2a1206; }

/* Layout children must be allowed to shrink — otherwise a row of cards widens the whole page */
.hero-grid > *, .about-grid > *, .videos-layout > *, .cta-grid > *, .event-layout > *, .book-layout > *,
.post-layout > *, .contact-layout > *, .cal-wrap > *, .footer-grid > *, .sec-head > *, .svc-row > *,
.grid-2 > *, .qb-grid > *, .hero-copy, .ev-body, .post-body, .v-card, .t-card { min-width: 0; }
.v-card h3, .ev-body h3, .post-body h3, .svc-card h3, .t-card blockquote { overflow-wrap: anywhere; }

/* app shell pieces (hidden on desktop) */
.tabbar, .sheet { display: none; }

/* reveal + transitions */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- tablet ---------- */
@media (max-width: 1180px) {
  .main-nav a { padding: 8px 8px; font-size: 13.5px; }
  .nav-socials { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 350px; }
  .hero-stats { max-width: 100%; gap: 22px; }
  .about-grid { grid-template-columns: 1fr 1.1fr; }
  .about-quote { display: none; }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .car-track { grid-auto-columns: calc((100% - 2 * 22px) / 3); }
  .v-grid { grid-template-columns: repeat(2, 1fr); }
  .videos-layout { grid-template-columns: 1fr; }
  .videos-layout > div:first-child { padding-right: 0; }
  .v-side { display: none; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; }
  .f-jmd { display: none; }
  .grid-events { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .main-nav { display: none; }
  .nav-cta { margin-left: auto; }
  .hero-grid, .cta-grid, .book-layout, .event-layout, .post-layout, .contact-layout { grid-template-columns: 1fr; }
  .hero-form { max-width: 520px; }
  .cta-bg img { left: 0; width: 100%; opacity: .35; }
  .grid-events, .post-grid, .v-grid-page { grid-template-columns: repeat(2, 1fr); }
  .svc-row, .svc-row:nth-child(even) { grid-template-columns: 1fr; }
  .svc-row:nth-child(even) .svc-row-media { order: 0; }
  .steps-4 { grid-template-columns: repeat(2, 1fr); }
  .sticky { position: static; }
}

/* ==========================================================================
   MOBILE APP MODE (≤ 760px)
   ========================================================================== */
@media (max-width: 760px) {
  :root { --header-h: 58px; --tabbar-h: 64px; }
  body { font-size: 14.5px; padding-bottom: calc(var(--tabbar-h) + var(--safe-b)); overscroll-behavior-y: none; }
  .container { padding: 0 16px; }

  /* App bar */
  .site-header, .is-inner .site-header, .site-header.scrolled { position: fixed; height: calc(var(--header-h) + var(--safe-t)); padding-top: var(--safe-t); background: rgba(22, 10, 6, .97); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line-dark); }
  .is-home .site-header:not(.scrolled) { background: linear-gradient(180deg, rgba(18, 8, 4, .85), rgba(18, 8, 4, 0)); box-shadow: none; backdrop-filter: none; }
  .is-inner main { padding-top: calc(var(--header-h) + var(--safe-t)); }
  .nav-wrap { gap: 10px; }
  .brand img { width: 36px; }
  .brand-name { font-size: 17px; }
  .brand-sub { display: none; }
  .nav-cta { display: none; }
  .app-call { display: grid; place-items: center; margin-left: auto; width: 38px; height: 38px; border-radius: 50%; background: rgba(226, 174, 74, .15); color: var(--gold); }
  .app-call .ic { width: 18px; height: 18px; }
  .is-inner .brand { display: none; }
  .app-back { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); color: #fff; }
  .app-back .ic { width: 20px; height: 20px; }
  .app-title { display: block; flex: 1; text-align: center; font-family: var(--ff-display); font-weight: 600; font-size: 17px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .is-inner .app-call { margin-left: 0; }

  /* Bottom tab bar */
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; z-index: 70; height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: rgba(255, 252, 246, .97); backdrop-filter: blur(16px) saturate(1.4); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(60, 25, 10, .25); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: none; border: 0; color: #9c8574; font-size: 10.5px; font-weight: 500; user-select: none; -webkit-user-select: none; }
  .tabbar .ic { width: 22px; height: 22px; transition: transform .2s; }
  .tabbar .on { color: var(--maroon-2); }
  .tabbar .on .ic { transform: translateY(-1px); }
  .tabbar a:active .ic, .tabbar button:active .ic { transform: scale(.88); }
  .tb-fab { display: grid; place-items: center; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; background: var(--gold-grad); color: #4a1a0a; box-shadow: 0 8px 20px -6px rgba(201, 142, 44, .9), 0 0 0 5px var(--cream); }
  .tb-fab .ic { width: 26px; height: 26px; }
  .tab-book { color: var(--ink) !important; font-weight: 600 !important; }

  /* Bottom sheet */
  .sheet { display: block; position: fixed; inset: 0; z-index: 90; }
  .sheet[hidden] { display: none; }
  .sheet-backdrop { position: absolute; inset: 0; background: rgba(10, 4, 2, .5); animation: fade .2s; }
  .sheet-panel { position: absolute; inset: auto 0 0 0; background: var(--paper); border-radius: 22px 22px 0 0; padding: 10px 18px calc(22px + var(--safe-b)); animation: sheetUp .28s cubic-bezier(.2, .8, .2, 1); }
  @keyframes sheetUp { from { transform: translateY(100%); } }
  .sheet-grip { display: block; width: 40px; height: 5px; border-radius: 3px; background: #e2d3bd; margin: 0 auto 16px; }
  .sheet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 6px; }
  .sheet-grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-2); text-align: center; }
  .sheet-grid .ic { width: 50px; height: 50px; padding: 14px; border-radius: 16px; background: #fbefdc; color: var(--maroon-2); }
  .install-app { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 18px; padding: 13px; border-radius: 14px; border: 0; background: var(--dark); color: var(--gold-light); font-weight: 600; }
  .install-app[hidden] { display: none; }
  .install-app .ic { transform: rotate(90deg); }
  .sheet-socials { justify-content: center; }

  /* floating buttons sit above the tab bar */
  .fab-wa { display: none; }
  .chat { right: 14px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px); }
  .chat-launch { padding: 0; width: 50px; height: 50px; justify-content: center; }
  .chat-launch span { display: none; }
  .chat-panel { position: fixed; inset: auto 0 0 0; width: 100%; height: calc(100svh - 70px - var(--safe-t)); border-radius: 22px 22px 0 0; bottom: 0; z-index: 95; padding-bottom: var(--safe-b); }

  /* Swipeable rows (app-style horizontal carousels) */
  .scroll-x, .car-track, .t-track { display: grid !important; grid-auto-flow: column; grid-template-columns: none !important; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 18px; scroll-padding: 0 16px; gap: 12px !important; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; width: calc(100% + 32px); max-width: 100vw; }
  .car-track { grid-auto-columns: 72vw; padding-bottom: 24px; }
  .svc-grid.scroll-x { grid-auto-columns: 42vw; }
  .v-grid.scroll-x { grid-auto-columns: 70vw; }
  .g-strip.scroll-x { grid-auto-columns: 56vw; }
  .t-track { grid-auto-columns: 82vw; }
  .post-grid.scroll-x { grid-auto-columns: 78vw; }
  .grid-events.scroll-x { grid-auto-columns: 72vw; }
  .scroll-x > *, .car-track > * { scroll-snap-align: start; }
  .car-btn.prev, .car-btn.next { display: none; }

  /* Sections */
  .sec { padding: 34px 0; }
  .sec-head { margin-bottom: 14px; flex-wrap: nowrap; align-items: center; gap: 10px; }
  .sec-head > div { flex: 1 1 auto; }
  .sec-head h2 { font-size: 21px; }
  .sec-head .btn { padding: 6px 12px; font-size: 11.5px; flex-shrink: 0; }
  .sec-head .btn .ic { display: none; }
  .kicker { font-size: 10px; margin-bottom: 4px; }
  .split-head { flex-wrap: wrap; }
  .split-head p { font-size: 13px; }
  .temple-bg::after { height: 80px; }

  /* Hero */
  .hero { min-height: 0; padding: calc(var(--header-h) + var(--safe-t) + 26px) 0 22px; }
  .hero.has-img .hero-bg { bottom: auto; height: 118vw; }
  .hero-bg img { object-position: 55% 25%; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(18, 8, 4, .5) 0%, rgba(18, 8, 4, 0) 22%, rgba(18, 8, 4, .2) 55%, var(--dark) 100%); }
  .hero-copy { padding-top: 62vw; max-width: none; }
  .hero:not(.has-img) .hero-copy { padding-top: 10px; }
  .hero-title { font-size: 48px; }
  .hero-lead { font-size: 20px; }
  .hero-sub { font-size: 13px; margin-bottom: 18px; }
  .hero-ctas .btn { flex: 1; padding: 12px 14px; font-size: 13px; }
  .hero-stats { max-width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; width: auto; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-dark); }
  .hero-stats .ic { width: 24px; height: 24px; }
  .hero-stats b { font-size: 15px; }
  .hero-form { margin-top: 6px; }
  .qb { padding: 18px 16px; border-radius: 18px; }
  .qb h2 { font-size: 19px; }
  .qf input, .qf select { height: 46px; font-size: 16px; }
  .qb-cta .qb-grid { grid-template-columns: 1fr; }
  .qb-cta .qf-wide { grid-column: auto; }

  /* About */
  .about-grid, .about-page .about-grid { grid-template-columns: 1fr; gap: 18px; }
  .about-copy h2 { font-size: 22px; }
  .features { gap: 8px; margin: 16px 0 18px; }
  .features li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 6px; }
  .features .ic { width: 24px; height: 24px; }
  .features b { font-size: 12.5px; }
  .features span { font-size: 10.5px; }
  .about-copy .btn { width: 100%; }

  /* Cards on mobile */
  .ev-body { padding: 12px 14px 14px; }
  .ev-body h3 { font-size: 16px; }
  .svc-card h3 { font-size: 14px; }
  .t-card { padding: 16px; }
  .cta { padding: 34px 0; }
  .cta-bg img { opacity: .28; }
  .cta h2 { font-size: 25px; }
  .cta p { font-size: 13px; margin-bottom: 18px; }
  .cta .hero-ctas .btn { font-size: 12.5px; }

  /* Footer becomes a compact app footer */
  .site-footer { padding: 30px 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; text-align: center; }
  .footer-grid > div:nth-child(2), .footer-grid > div:nth-child(3) { display: none; }
  .f-brand .brand { justify-content: center; }
  .f-brand .brand-sub { display: block; }
  .f-brand p { margin: 12px auto 0; }
  .socials { justify-content: center; }
  .f-contact li { justify-content: center; }
  .footer-temple { width: 200px; right: 50%; transform: translateX(50%); opacity: .25; }
  .f-bottom { flex-direction: column; align-items: center; text-align: center; gap: 6px; margin-top: 20px; padding-bottom: 20px; }

  /* Inner pages */
  .page-hero { padding: 30px 0 28px; }
  .page-hero h1 { font-size: 28px; }
  .page-hero p { font-size: 13px; }
  .page-hero .kicker { display: none; }
  .grid-events, .post-grid:not(.scroll-x), .v-grid-page { grid-template-columns: 1fr; }
  .card-box { padding: 18px 16px; border-radius: 18px; }
  .card-box input:not([type=radio]):not([type=checkbox]), .card-box select, .card-box textarea { font-size: 16px; }
  .grid-2, .details { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: 1fr 1fr; }
  .cal-wrap { grid-template-columns: 1fr; }
  .steps-bar span { font-size: 10px; }
  .step-actions { position: sticky; bottom: calc(var(--tabbar-h) + var(--safe-b)); background: linear-gradient(transparent, var(--paper) 30%); padding: 14px 0 6px; margin: 16px -16px 0; padding-inline: 16px; z-index: 5; }
  .step-actions .btn { flex: 1; }
  .past-item { grid-template-columns: 1fr; gap: 2px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin: 0 -16px 18px; padding: 0 16px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .steps-4 { grid-template-columns: 1fr; }
  .svc-row-body { padding: 18px; }
  .event-facts > div { flex: 1 1 100%; }
  .stats-band .hero-stats { background: none; border: 0; }

  body:has(#bookForm) .chat, body:has(.qb:focus-within) .chat { display: none; }
  legend { font-size: 22px; }

  /* Standalone app polish */
  .standalone .site-footer .f-bottom span:last-child { display: none; }
  main { animation: fade .25s ease; }
  a, button { touch-action: manipulation; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Cards and forms placed on dark sections keep dark text */
.sec-dark .ev-card h3, .ev-card h3 a { color: var(--ink); }
.cta .qb h2, .hero .qb h2 { color: var(--ink); }
.yt { background: linear-gradient(135deg, #3a120d, #1b0a06); }
