/* ==========================================================================
   Ornaments: watermarks, cliparts, garlands and gentle motion.
   Loaded after site.css on every page. Every graphic is a CSS mask over
   currentColor / theme variables, so the admin-editable theme recolours it,
   and none of it is announced to assistive tech or intercepts the pointer.
   All motion lives in the prefers-reduced-motion: no-preference block at the
   end; without it everything below is static.
   ========================================================================== */

:root {
  --orn-mandala: url("/images/ornaments/mandala.svg");
  --orn-lotus: url("/images/ornaments/lotus.svg");
  --orn-paisley: url("/images/ornaments/paisley.svg");
  --orn-corner: url("/images/ornaments/corner-floral.svg");
  --orn-sparkle: url("/images/ornaments/sparkle.svg");
  --orn-diya: url("/images/ornaments/diya.svg");
  --orn-toran: url("/images/ornaments/toran.svg");
  --orn-divider: url("/images/ornaments/divider.svg");
}

/* ---------- shared mask recipe ---------- */
.section::before, .section::after,
.site-footer::before, .cta-final::before, .cta-banner::before,
.section-head:not(.on-dark)::before,
.toran, .deco, .hero-deco > span, .map-frame::before, .map-frame::after {
  content: ""; background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.section::before, .section::after, .site-footer::before, .cta-final::before, .cta-banner::before,
.toran, .deco, .hero-deco > span, .map-frame::before, .map-frame::after {
  position: absolute; pointer-events: none;
}

/* ---------- section watermarks ---------- */
.section, .site-footer, .cta-final, .cta-banner { position: relative; overflow: clip; isolation: isolate; }
.section > .container, .cta-final > .container, .cta-banner > .container { position: relative; z-index: 1; }

/* Big slow mandala, alternating sides */
.section::before {
  z-index: -1; width: min(640px, 84vw); aspect-ratio: 1; top: -200px; right: -220px;
  color: var(--gold); opacity: 0.11;
  -webkit-mask-image: var(--orn-mandala); mask-image: var(--orn-mandala);
}
.section:nth-of-type(even)::before { right: auto; left: -220px; }
.bg-navy::before { color: var(--gold-light); opacity: 0.09; }

/* Corner floral (ivory + navy) or paisley pair (white) */
.section::after {
  z-index: -1; width: 210px; aspect-ratio: 1; left: 0; bottom: 0; transform: scaleY(-1);
  color: var(--gold); opacity: 0.2;
  -webkit-mask-image: var(--orn-corner); mask-image: var(--orn-corner);
}
.section:nth-of-type(even)::after { left: auto; right: 0; transform: scale(-1, -1); }
.bg-navy::after { color: var(--gold-light); opacity: 0.16; }
.bg-white::after {
  width: 120px; aspect-ratio: 5 / 7; left: 4%; bottom: 36px; transform: rotate(14deg); opacity: 0.11;
  -webkit-mask-image: var(--orn-paisley); mask-image: var(--orn-paisley);
}
.bg-white:nth-of-type(even)::after { left: auto; right: 4%; transform: scaleX(-1) rotate(14deg); }

/* Fine dot pattern on navy bands */
.bg-navy {
  background-image: radial-gradient(rgba(232, 201, 106, 0.13) 1px, transparent 1.5px);
  background-size: 28px 28px;
}

/* Lotus above every centred section heading */
.section-head:not(.on-dark)::before {
  display: block; width: 46px; height: 30px; margin: 0 auto 12px; color: var(--gold);
  -webkit-mask-image: var(--orn-lotus); mask-image: var(--orn-lotus);
}
.bg-navy .section-head:not(.on-dark)::before { color: var(--gold-light); }

/* ---------- toran (door garland) under the header ---------- */
.toran {
  position: relative; display: block; height: 34px; margin-bottom: -34px; z-index: 5;
  color: var(--gold-light); opacity: 0.92; transform-origin: top center;
  -webkit-mask-image: var(--orn-toran); mask-image: var(--orn-toran);
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
  -webkit-mask-size: 54px 34px; mask-size: 54px 34px;
  -webkit-mask-position: left top; mask-position: left top;
}

/* ---------- hero decoration ---------- */
.hero-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-deco > span { display: block; }
.hero-deco .hd-mandala {
  width: min(560px, 70vw); aspect-ratio: 1; right: -120px; top: 50%; margin-top: max(-280px, -35vw);
  color: var(--gold-light); opacity: 0.2;
  -webkit-mask-image: var(--orn-mandala); mask-image: var(--orn-mandala);
}
.hero-deco .hd-sparkle { width: 16px; height: 16px; color: var(--gold-light); opacity: 0.85; -webkit-mask-image: var(--orn-sparkle); mask-image: var(--orn-sparkle); }
.hero-deco .s1 { top: 18%; right: 24%; }
.hero-deco .s2 { top: 64%; right: 12%; width: 11px; height: 11px; }
.hero-deco .s3 { top: 30%; right: 40%; width: 9px; height: 9px; }
.hero-deco .s4 { top: 78%; right: 34%; width: 13px; height: 13px; }
.hero-deco .hd-diya { width: 60px; height: 48px; right: 5%; bottom: 8%; color: var(--gold-light); opacity: 0.55; -webkit-mask-image: var(--orn-diya); mask-image: var(--orn-diya); }

/* ---------- decorative clip-art helpers ---------- */
.deco-mandala { -webkit-mask-image: var(--orn-mandala); mask-image: var(--orn-mandala); }
.deco-diya { -webkit-mask-image: var(--orn-diya); mask-image: var(--orn-diya); }
.deco-sparkle { -webkit-mask-image: var(--orn-sparkle); mask-image: var(--orn-sparkle); }
.deco-paisley { -webkit-mask-image: var(--orn-paisley); mask-image: var(--orn-paisley); }

/* ---------- footer ---------- */
.site-footer::before {
  z-index: -1; width: min(520px, 90vw); aspect-ratio: 1; right: -160px; bottom: -220px; color: var(--gold); opacity: 0.1;
  -webkit-mask-image: var(--orn-mandala); mask-image: var(--orn-mandala);
}

/* ---------- event-type marquee ---------- */
.marquee {
  position: relative; overflow-x: auto; padding-block: 18px; background: var(--navy); color: var(--gold-light);
  border-block: 1px solid rgba(232, 201, 106, 0.35); scrollbar-width: none;
}
.marquee::-webkit-scrollbar { display: none; }
.marquee-track { display: flex; align-items: center; gap: 0; width: max-content; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 22px; padding-right: 22px;
  font-family: var(--font-display); font-size: clamp(1.05rem, 2vw, 1.35rem); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
}
.marquee-item::after {
  content: ""; width: 12px; height: 12px; background-color: var(--gold); flex: none;
  -webkit-mask: var(--orn-sparkle) center / contain no-repeat; mask: var(--orn-sparkle) center / contain no-repeat;
}

/* ---------- home: about photo frame ---------- */
.about-visual.framed { position: relative; }
.about-visual.framed::before {
  content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 1px solid var(--gold); border-radius: 6px; z-index: -1; pointer-events: none;
}

/* ---------- home: signature trio ---------- */
.sig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sig-card {
  position: relative; display: flex; align-items: flex-end; min-height: 400px; overflow: hidden; border-radius: 8px;
  color: var(--ivory); border: 1px solid rgba(201, 162, 39, 0.5); box-shadow: var(--shadow-card); isolation: isolate;
}
.sig-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.9s var(--ease); }
.sig-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgba(7, 24, 47, 0.95) 0%, rgba(7, 24, 47, 0.55) 46%, rgba(7, 24, 47, 0.05) 100%);
}
.sig-card::after {
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(232, 201, 106, 0.5); border-radius: 5px; pointer-events: none; transition: inset 0.4s var(--ease);
}
.sig-card:hover img { transform: scale(1.06); }
.sig-card:hover::after { inset: 14px; }
.sig-body { position: relative; padding: 30px 28px 34px; }
.sig-body h3 { color: var(--gold-light); font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.sig-body p { margin-top: 10px; color: rgba(248, 243, 231, 0.88); font-size: 0.95rem; line-height: 1.65; }
.sig-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--gold-light);
  font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em;
}
.sig-link::after { content: "\2192"; transition: transform 0.3s var(--ease); }
.sig-card:hover .sig-link::after { transform: translateX(5px); }

/* ---------- home: FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; box-shadow: var(--shadow-soft); transition: border-color 0.3s; }
.faq-item[open] { border-color: var(--gold); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px 22px; font-family: var(--font-display); font-size: 1.12rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center; color: var(--gold-dark); font-size: 1.3rem; line-height: 1;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--gold); color: var(--navy); }
.faq-item summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.faq-answer { padding: 0 22px 20px; color: var(--text-body); line-height: 1.75; }

/* ---------- visit us + map ---------- */
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: clamp(22px, 4vw, 40px); align-items: stretch; }
.visit-card {
  background: var(--surface); border: 1px solid rgba(201, 162, 39, 0.35); border-radius: 8px; padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 6px;
}
.visit-card h3 { font-size: 1.5rem; }
.visit-card h4 { margin-top: 18px; font-family: var(--font-body); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-dark); }
.visit-card p { margin-top: 6px; color: var(--text-body); line-height: 1.65; }
.visit-card .btn { margin-top: 24px; align-self: flex-start; }
.map-frame {
  position: relative; min-height: 380px; border-radius: 8px; border: 1px solid rgba(201, 162, 39, 0.55);
  box-shadow: var(--shadow-card); background: var(--surface-alt); overflow: hidden;
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* ---------- final call-to-action band ---------- */
.cta-final {
  text-align: center; color: var(--ivory); padding-block: clamp(64px, 9vw, 110px);
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 162, 39, 0.22), transparent 60%), var(--navy);
}
.cta-final::before {
  z-index: -1; width: min(760px, 120vw); aspect-ratio: 1; left: 50%; top: 50%; margin: max(-380px, -60vw) 0 0 max(-380px, -60vw);
  color: var(--gold-light); opacity: 0.13;
  -webkit-mask-image: var(--orn-mandala); mask-image: var(--orn-mandala);
}
.cta-final h2 { color: var(--gold-light); font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.1; text-transform: uppercase; letter-spacing: 0.02em; }
.cta-final p { max-width: 620px; margin: 18px auto 0; color: rgba(248, 243, 231, 0.88); font-size: 1.08rem; line-height: 1.7; }
.cta-final .hero-actions { justify-content: center; }
.cta-final .deco { z-index: 0; color: var(--gold-light); }
.cta-final .deco-diya { width: 84px; height: 66px; bottom: 26px; opacity: 0.6; }
.cta-final .deco-diya.left { left: clamp(8px, 6vw, 90px); }
.cta-final .deco-diya.right { right: clamp(8px, 6vw, 90px); }
.cta-final .deco-sparkle { width: 18px; height: 18px; opacity: 0.8; }
.cta-final .deco-sparkle.a { top: 22%; left: 18%; }
.cta-final .deco-sparkle.b { top: 30%; right: 20%; width: 12px; height: 12px; }
.cta-final .deco-sparkle.c { bottom: 24%; right: 34%; width: 10px; height: 10px; }
.cta-banner::before {
  z-index: -1; width: 380px; aspect-ratio: 1; right: -110px; top: -120px; color: var(--gold-light); opacity: 0.1;
  -webkit-mask-image: var(--orn-mandala); mask-image: var(--orn-mandala);
}

.cta-final .eyebrow { color: var(--gold-light); justify-content: center; }
.section-foot { text-align: center; margin-top: 38px; }
.contact-side .map-frame { margin-top: 22px; min-height: 300px; }

/* ---------- WhatsApp float: ring ---------- */
.fab-whatsapp { position: relative; }
.fab-whatsapp::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; opacity: 0; pointer-events: none; }

/* ---------- gold button: sheen ---------- */
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.5) 50%, transparent 68%);
  transform: translateX(-120%);
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .visit-grid { grid-template-columns: 1fr; }
  .about-visual.framed::before { inset: 12px -8px -12px 12px; }
  .sig-grid { grid-template-columns: 1fr; }
  .sig-card { min-height: 340px; }
  .map-frame { min-height: 320px; }
}
@media (max-width: 640px) {
  .section::before { width: 420px; top: -140px; right: -200px; }
  .section:nth-of-type(even)::before { right: auto; left: -200px; }
  .section::after { width: 120px; }
  .bg-white::after { width: 74px; }
  .toran { height: 26px; margin-bottom: -26px; -webkit-mask-size: 42px 26px; mask-size: 42px 26px; }
  .hero-deco .hd-mandala { right: -220px; opacity: 0.16; }
  .hero-deco .hd-diya { display: none; }
  .cta-final .deco-diya { width: 54px; height: 42px; bottom: 14px; }
  .marquee-item { gap: 14px; padding-right: 14px; }
  .hero-emblem::after { display: none; }
  .hero-tagline { letter-spacing: 0.2em; }
}

/* ==========================================================================
   Motion (only when the visitor has not asked for reduced motion)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @keyframes deco-spin { to { transform: rotate(360deg); } }
  @keyframes deco-spin-rev { to { transform: rotate(-360deg); } }
  @keyframes deco-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
  @keyframes deco-twinkle { 0%, 100% { opacity: 0.25; transform: scale(0.7) rotate(0deg); } 50% { opacity: 1; transform: scale(1.15) rotate(45deg); } }
  @keyframes deco-sway { from { transform: skewX(-0.9deg); } to { transform: skewX(0.9deg); } }
  @keyframes deco-flicker { 0%, 100% { filter: drop-shadow(0 0 6px rgba(232, 201, 106, 0.45)); opacity: 0.6; } 40% { filter: drop-shadow(0 0 16px rgba(232, 201, 106, 0.9)); opacity: 0.85; } 70% { filter: drop-shadow(0 0 9px rgba(232, 201, 106, 0.6)); opacity: 0.7; } }
  @keyframes deco-ring { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(1.7); opacity: 0; } }
  @keyframes deco-sheen { 0%, 62% { transform: translateX(-120%); opacity: 0; } 66% { opacity: 1; } 100% { transform: translateX(120%); opacity: 1; } }
  @keyframes deco-marquee { to { transform: translateX(-50%); } }
  @keyframes deco-breathe { 0%, 100% { opacity: 0.09; } 50% { opacity: 0.16; } }

  .section::before { animation: deco-spin 170s linear infinite; }
  .section:nth-of-type(even)::before { animation-name: deco-spin-rev; animation-duration: 210s; }
  .site-footer::before { animation: deco-spin 190s linear infinite; }
  .cta-final::before { animation: deco-spin 150s linear infinite; }
  .cta-banner::before { animation: deco-spin-rev 160s linear infinite; }
  .hero-deco .hd-mandala { animation: deco-spin 120s linear infinite; }
  .hero-deco .hd-sparkle { animation: deco-twinkle 4.2s ease-in-out infinite; }
  .hero-deco .s2 { animation-delay: 1.1s; }
  .hero-deco .s3 { animation-delay: 2.2s; }
  .hero-deco .s4 { animation-delay: 3.1s; }
  .hero-deco .hd-diya { animation: deco-flicker 3.2s ease-in-out infinite; }
  .cta-final .deco-diya { animation: deco-flicker 3.2s ease-in-out infinite; }
  .cta-final .deco-diya.right { animation-delay: 1.4s; }
  .cta-final .deco-sparkle { animation: deco-twinkle 4.6s ease-in-out infinite; }
  .cta-final .deco-sparkle.b { animation-delay: 1.6s; }
  .cta-final .deco-sparkle.c { animation-delay: 2.8s; }
  .toran { animation: deco-sway 7s ease-in-out infinite alternate; }

  .highlight .icon { animation: deco-float 6s ease-in-out infinite; }
  .highlight:nth-child(2) .icon { animation-delay: -1s; }
  .highlight:nth-child(3) .icon { animation-delay: -2s; }
  .highlight:nth-child(4) .icon { animation-delay: -3s; }
  .highlight:nth-child(5) .icon { animation-delay: -4s; }
  .highlight:nth-child(6) .icon { animation-delay: -5s; }
  .about-visual > svg { animation: deco-float 8s ease-in-out infinite; }

  .fab-whatsapp::after { animation: deco-ring 2.6s ease-out infinite; }
  .btn-gold::before { animation: deco-sheen 5s 1.5s ease-in-out infinite; }

  .marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, var(--navy) 8%, var(--navy) 92%, transparent); mask-image: linear-gradient(90deg, transparent, var(--navy) 8%, var(--navy) 92%, transparent); }
  .marquee-track { animation: deco-marquee 46s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }

  /* Set by site.js on off-screen bands so their animations stop costing frames. */
  .anim-paused::before, .anim-paused::after, .anim-paused .marquee-track,
  .anim-paused .hero-deco > span, .anim-paused .deco, .anim-paused .highlight .icon { animation-play-state: paused; }
}
