/* ============ Theme ============ */
:root {
  --maroon: #5b1023;
  --maroon-deep: #3a0815;
  --wine: #7a1a30;
  --gold: #d9a94e;
  --gold-light: #f3d58f;
  --gold-dark: #a87a2a;
  --cream: #fbf4e6;
  --ink: #2a1a12;
  --brown: #1e110a;
  --muted: #7b6556;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(58, 8, 21, 0.18);
  --font-head: "Cinzel", serif;
  --font-serif: "Cormorant Garamond", serif;
  --font-body: "Poppins", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.8rem;
  border-radius: 50px;
  font-weight: 500; font-size: .95rem; letter-spacing: .03em;
  cursor: pointer; border: 2px solid transparent;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 50%, var(--gold-dark));
  color: var(--maroon-deep);
  box-shadow: 0 8px 22px rgba(217, 169, 78, .35);
}
.btn-gold:hover { box-shadow: 0 12px 28px rgba(217, 169, 78, .5); }
.btn-outline { border-color: var(--gold); color: var(--gold-light); }
.btn-outline:hover { background: var(--gold); color: var(--maroon-deep); }
.btn-sm { padding: .55rem 1.3rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* ============ Nav ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 4%;
  transition: background .3s, padding .3s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(58, 8, 21, .95);
  backdrop-filter: blur(8px);
  padding: .6rem 4%;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.brand { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo { display: block; height: 66px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); transition: height .3s; }
.nav.scrolled .logo { height: 52px; }
.logo-lg { height: 96px; margin: 0 auto; }
@media (max-width: 760px) { .logo { height: 54px; } .nav.scrolled .logo { height: 46px; } }
.brand-name {
  font-family: var(--font-head); font-size: 1.9rem; font-weight: 600;
  color: var(--gold-light); letter-spacing: .04em;
}
.brand-sub { font-size: .62rem; letter-spacing: .3em; color: var(--gold); text-transform: uppercase; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a:not(.btn) {
  color: #f5e6cc; font-size: .92rem; position: relative;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--gold); transition: width .3s;
}
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--gold-light); margin: 6px 0; transition: .3s; }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 7rem 0 5rem;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(217,169,78,.25), transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(122,26,48,.6), transparent 60%),
    linear-gradient(160deg, var(--maroon-deep), var(--maroon) 45%, #2a0d0a);
  color: #fff;
  overflow: hidden;
}
.sparkles {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 10% 20%, var(--gold-light), transparent),
    radial-gradient(1.5px 1.5px at 30% 70%, var(--gold), transparent),
    radial-gradient(2px 2px at 55% 15%, var(--gold-light), transparent),
    radial-gradient(1px 1px at 80% 60%, #fff, transparent),
    radial-gradient(2px 2px at 90% 30%, var(--gold), transparent),
    radial-gradient(1.5px 1.5px at 45% 85%, var(--gold-light), transparent),
    radial-gradient(1px 1px at 65% 45%, #fff, transparent),
    radial-gradient(2px 2px at 20% 50%, var(--gold), transparent);
  animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .4; } to { opacity: 1; } }

.garland {
  position: absolute; top: 84px; width: 18px; height: 240px;
  background: repeating-radial-gradient(circle at 50% 9px, #f7a21b 0 7px, #e7820e 8px, transparent 9px) 0 0 / 18px 18px repeat-y;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.4));
  opacity: .9;
}
.garland-left { left: 1.5%; }
.garland-right { right: 1.5%; }
.garland::after {
  content: ""; position: absolute; bottom: -12px; left: 3px; width: 12px; height: 14px;
  background: #3f8a3a; border-radius: 0 0 50% 50%;
}

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center;
}
.badge {
  display: inline-block;
  font-family: var(--font-head); font-size: .85rem; letter-spacing: .25em;
  color: var(--gold-light);
  border: 1px solid rgba(217,169,78,.5); border-radius: 50px;
  padding: .45rem 1.2rem; margin-bottom: 1.4rem;
  background: rgba(217,169,78,.08);
}
.hero h1 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.1rem, 6vw, 4.6rem); line-height: 1.05;
  background: linear-gradient(180deg, #fff3c9, var(--gold) 60%, var(--gold-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 6px 30px rgba(217,169,78,.15);
}
.hero h1 .small { font-size: .8em; }
.hero-tag {
  font-family: var(--font-head); font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  letter-spacing: .12em; color: #f6e7c8; margin-top: .6rem;
}
.hero-lead { font-family: var(--font-serif); font-size: 1.3rem; color: #ecdcc4; max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-loc { margin-top: 1.6rem; font-size: .9rem; color: #d8c3a3; }

.divider { display: flex; align-items: center; justify-content: center; gap: .8rem; margin: 1.1rem 0 1.3rem; color: var(--gold); }
.divider::before, .divider::after { content: ""; height: 1px; width: 70px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.divider.left, .hero .divider { justify-content: flex-start; }
.divider.left::before, .hero .divider::before { display: none; }

.hero-photo { position: relative; justify-self: center; width: min(440px, 100%); }
.photo-frame {
  position: relative; z-index: 2;
  aspect-ratio: 4 / 5;
  border-radius: 220px 220px 18px 18px; /* temple-arch shape */
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 10px rgba(217,169,78,.12), 0 30px 60px rgba(0,0,0,.5);
  background: var(--maroon-deep);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.mandala {
  position: absolute; border-radius: 50%; pointer-events: none;
  background:
    repeating-conic-gradient(from 0deg, rgba(217,169,78,.35) 0 4deg, transparent 4deg 15deg),
    radial-gradient(circle, transparent 38%, rgba(217,169,78,.4) 39% 40%, transparent 41% 58%, rgba(217,169,78,.35) 59% 60%, transparent 61%);
  -webkit-mask: radial-gradient(circle, #000 0 69%, transparent 70%);
          mask: radial-gradient(circle, #000 0 69%, transparent 70%);
  animation: spin 60s linear infinite;
}
.mandala-1 { width: 140%; aspect-ratio: 1; top: 50%; left: 50%; translate: -50% -50%; z-index: 1; opacity: .7; }
@keyframes spin { to { rotate: 360deg; } }

.scroll-hint {
  position: absolute; bottom: 1.8rem; left: 50%; translate: -50% 0; z-index: 3;
  width: 26px; height: 42px; border: 2px solid var(--gold); border-radius: 20px;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--gold); border-radius: 2px; animation: scrolly 1.8s infinite;
}
@keyframes scrolly { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ============ Sections ============ */
.section { padding: 6rem 0; position: relative; }
.section-head { text-align: center; margin-bottom: 3rem; }
.eyebrow {
  font-family: var(--font-serif); font-style: italic; font-size: 1.25rem; color: var(--gold-dark);
}
.title {
  font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--maroon); line-height: 1.2;
}
.section-sub { color: var(--muted); }

/* About */
.about {
  background:
    radial-gradient(circle at 0 0, rgba(217,169,78,.15), transparent 40%),
    var(--cream);
}
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: center; }
.about-img { position: relative; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow); position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; }
.about-img::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px;
  border: 2px solid var(--gold); border-radius: var(--radius);
}
.about-text p { margin-bottom: 1rem; color: #4a382c; }
.about-points { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.5rem; margin-top: 1.5rem; }
.about-points li { display: flex; gap: .6rem; font-size: .93rem; }
.about-points span { color: var(--gold-dark); }

/* Classes */
.classes { background: linear-gradient(180deg, #f6ead3, var(--cream)); }
.class-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.class-card {
  position: relative; overflow: hidden;
  background: #fff; border-radius: var(--radius);
  padding: 2.4rem 2rem;
  border-top: 4px solid var(--gold);
  box-shadow: 0 10px 30px rgba(58,8,21,.08);
  transition: transform .35s, box-shadow .35s;
  display: flex; flex-direction: column;
}
.class-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.class-card.featured {
  background: linear-gradient(160deg, var(--maroon), var(--maroon-deep));
  color: #f3e5cc;
}
.class-card.featured h3 { color: var(--gold-light); }
.class-card.featured li { color: #e9d8bb; }
.class-icon { font-size: 2.4rem; margin-bottom: .8rem; }
.class-card h3 { font-family: var(--font-head); font-size: 1.5rem; color: var(--maroon); }
.class-age { font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; color: var(--gold-dark); margin-bottom: .8rem; }
.class-card.featured .class-age { color: var(--gold); }
.class-card ul { list-style: none; margin: 1rem 0 1.6rem; }
.class-card li { padding: .35rem 0 .35rem 1.4rem; position: relative; font-size: .92rem; color: #4a382c; }
.class-card li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: .8rem; top: .5rem; }
.class-card .btn { margin-top: auto; align-self: flex-start; }
.ribbon {
  position: absolute; top: 22px; right: -42px; rotate: 45deg;
  background: var(--gold); color: var(--maroon-deep);
  font-size: .7rem; font-weight: 600; letter-spacing: .05em;
  padding: .3rem 3rem;
}

/* Gallery */
.gallery-section { background: var(--maroon-deep); color: #f3e5cc; }
.gallery-section .title { color: var(--gold-light); }
.gallery-section .eyebrow { color: var(--gold); }
.gallery-section .section-sub { color: #cdb795; }
.gallery-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.2rem; }
.filter {
  background: transparent; color: #e9d8bb;
  border: 1px solid rgba(217,169,78,.4); border-radius: 50px;
  padding: .45rem 1.2rem; font-family: inherit; font-size: .88rem; cursor: pointer;
  transition: .25s;
}
.filter:hover, .filter.active { background: var(--gold); color: var(--maroon-deep); border-color: var(--gold); }

.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px; gap: 1rem; grid-auto-flow: dense;
}
.g-item {
  position: relative; overflow: hidden; border-radius: 10px; cursor: pointer;
  background: linear-gradient(145deg, var(--wine), var(--maroon));
  border: 1px solid rgba(217,169,78,.25);
}
.g-item.tall { grid-row: span 2; }
.g-item.wide { grid-column: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.g-item:hover img { transform: scale(1.08); }
.g-item .g-cap {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem 1rem .8rem;
  background: linear-gradient(transparent, rgba(30,8,12,.9));
  font-size: .85rem; color: var(--gold-light);
  translate: 0 100%; transition: translate .35s;
}
.g-item:hover .g-cap { translate: 0 0; }
.g-item.hide { display: none; }
/* Placeholder tile shown until a real photo is added */
.g-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  color: rgba(243,213,143,.75); text-align: center; padding: 1rem; font-size: .85rem;
  background:
    repeating-conic-gradient(from 0deg at 50% 50%, rgba(217,169,78,.08) 0 10deg, transparent 10deg 20deg),
    linear-gradient(145deg, var(--wine), var(--maroon-deep));
}
.g-placeholder b { font-family: var(--font-head); color: var(--gold-light); font-weight: 500; font-size: 1rem; }
.g-placeholder .ph-icon { font-size: 2rem; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20,4,8,.94);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 90vw; max-height: 80vh; border-radius: 8px; border: 2px solid var(--gold); }
.lb-cap { color: var(--gold-light); margin-top: 1rem; font-family: var(--font-serif); font-size: 1.2rem; }
.lightbox button {
  position: absolute; background: none; border: 0; color: var(--gold-light);
  font-size: 3rem; cursor: pointer; line-height: 1; padding: .5rem 1rem;
}
.lb-close { top: 1rem; right: 1.5rem; }
.lb-prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lb-next { right: 1rem; top: 50%; translate: 0 -50%; }

/* Why */
.why { background: var(--cream); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.why-item {
  text-align: center; padding: 2rem 1.4rem; border-radius: var(--radius);
  background: #fff; border: 1px solid rgba(217,169,78,.3);
  transition: .3s;
}
.why-item:hover { border-color: var(--gold); box-shadow: 0 12px 30px rgba(58,8,21,.1); }
.why-num {
  font-family: var(--font-head); font-size: 2.4rem; font-weight: 700;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.why-item h4 { font-family: var(--font-head); color: var(--maroon); margin: .3rem 0 .5rem; font-size: 1.05rem; }
.why-item p { font-size: .9rem; color: var(--muted); }

/* CTA band */
.cta-band {
  padding: 4.5rem 0; text-align: center; color: #fff;
  background:
    radial-gradient(circle at 50% 0, rgba(217,169,78,.3), transparent 60%),
    linear-gradient(120deg, var(--maroon-deep), var(--wine));
}
.cta-band h2 { font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 2.1rem); color: var(--gold-light); }
.cta-band .hero-cta { justify-content: center; }

/* Contact */
.contact { background: linear-gradient(180deg, var(--cream), #f3e4c7); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.4rem; }
.info-item[hidden] { display: none; }
.info-icon {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.3rem;
  background: var(--maroon); box-shadow: 0 0 0 4px rgba(217,169,78,.3);
}
.info-item h4 { font-family: var(--font-head); color: var(--maroon); font-size: 1rem; }
.info-item p { color: #4a382c; }
.info-item a { color: var(--wine); font-weight: 500; }
.info-item a:hover { color: var(--gold-dark); }
.map { margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--gold); height: 260px; }
.map iframe { width: 100%; height: 100%; border: 0; }

.enquiry {
  background: #fff; padding: 2.4rem; border-radius: var(--radius);
  box-shadow: var(--shadow); border-top: 4px solid var(--gold);
}
.enquiry h3 { font-family: var(--font-head); color: var(--maroon); font-size: 1.5rem; }
.form-note { font-size: .85rem; color: var(--muted); margin-bottom: 1.2rem; }
.enquiry label { display: block; font-size: .85rem; font-weight: 500; color: var(--maroon); margin-bottom: 1rem; }
.enquiry input, .enquiry select, .enquiry textarea {
  display: block; width: 100%; margin-top: .35rem;
  padding: .75rem 1rem; font-family: inherit; font-size: .95rem;
  border: 1px solid #e0cfae; border-radius: 10px; background: #fffaf0;
  transition: border-color .2s, box-shadow .2s;
}
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,169,78,.2);
}
.enquiry .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Footer */
.footer { background: var(--brown); color: #bfa888; text-align: center; padding: 3rem 0 2rem; font-size: .9rem; }
.footer-brand { margin-bottom: 1rem; }
.footer .copy { margin-top: .6rem; font-size: .8rem; opacity: .7; }
/* Hidden-in-plain-sight admin login link */
.admin-link {
  margin-left: .6rem; font-size: .7rem; letter-spacing: .08em;
  opacity: .18; transition: opacity .3s;
}
.admin-link:hover, .admin-link:focus-visible { opacity: .8; }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-inner { text-align: center; }
  .hero .divider { justify-content: center; }
  .hero-lead { margin: 0 auto; }
  .hero-cta { justify-content: center; }
  .hero-photo { width: min(360px, 85%); margin-top: 1rem; }
  .class-cards { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .about-img { max-width: 440px; margin: 0 auto; }
  .garland { height: 150px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; z-index: 2; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(280px, 80vw);
    flex-direction: column; justify-content: center; gap: 1.8rem;
    background: var(--maroon-deep);
    translate: 100% 0; transition: translate .35s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,.4);
  }
  .nav-links.open { translate: 0 0; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .section { padding: 4.5rem 0; }
  .about-points { grid-template-columns: 1fr; }
  .enquiry { padding: 1.6rem; }
  .enquiry .row { grid-template-columns: 1fr; gap: 0; }
  .garland, .scroll-hint { display: none; }
}
@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: .6rem; }
  .g-item.wide { grid-column: span 2; }
}