/* Thaamarai · Vijayadashami Admissions
   Thaamarai magenta and deep plum, gold and ivory, with leaf-green accents. */
:root {
  /* Thaamarai brand: deep magenta-plum (was temple maroon) */
  --maroon: #5c0a3f;
  --maroon-2: #80105a;
  --maroon-3: #2e0520;
  --gold: #c99a3b;
  --gold-2: #e9c675;
  --gold-3: #f6e3ae;
  /* Thaamarai logo magenta (was marigold). --magenta is for buttons and text (AA contrast);
     --magenta-logo is the logo's exact colour, for small decorative marks only. */
  --magenta: #c8007a;
  --magenta-dark: #a3005f;
  --magenta-logo: #e8008a;
  --magenta-tint: #fbedf5;
  --leaf: #2f6b3a;
  --ivory: #fbf5e8;
  --paper: #fffaf0;
  --ink: #2b1a24;
  --ink-2: #5e4856;
  --line: rgba(92, 10, 63, .14);
  --err: #b3261e;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 16.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; border-radius: 2px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--maroon); color: #fff; text-decoration: none; border-radius: 4px; }
.skip:focus { top: 12px; }

/* ---------- Toran (mango-leaf festoon) ---------- */
.toran {
  height: 22px; background-color: var(--maroon-3);
  background-image:
    radial-gradient(ellipse 9px 13px at 50% 0, var(--leaf) 0 70%, transparent 72%),
    radial-gradient(circle 4px at 50% 4px, var(--magenta) 0 90%, transparent 100%);
  background-size: 28px 22px, 28px 22px;
  background-position: 0 0, 14px 0;
  background-repeat: repeat-x;
  border-bottom: 2px solid var(--gold);
}

/* ---------- Top bar ---------- */
.bar { background: var(--maroon-3); color: var(--gold-3); }
.bar-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 16px; letter-spacing: .01em; color: #fff; }
.brand b { font-weight: 650; }
.brand img { width: 44px; height: auto; border-radius: 50%; }
.bar-call { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--gold-2); padding: 8px 14px; border: 1px solid rgba(233, 198, 117, .45); border-radius: 999px; }
.bar-call:hover { background: rgba(233, 198, 117, .12); }
.bar-call-short { display: none; }
.bar-call-label { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(246, 227, 174, .7); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: var(--ivory);
  background:
    radial-gradient(1200px 600px at 18% 30%, rgba(233, 198, 117, .22), transparent 60%),
    radial-gradient(900px 600px at 90% 100%, rgba(232, 0, 138, .14), transparent 60%),
    linear-gradient(160deg, var(--maroon-2), var(--maroon) 45%, var(--maroon-3)); }
.hero-pattern { position: absolute; inset: 0; z-index: -1; opacity: .16;
  background-image: radial-gradient(circle at center, var(--gold-2) 1.2px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); mask-image: linear-gradient(90deg, #000, transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(0, 1.05fr) minmax(400px, 1.1fr); gap: 40px clamp(28px, 3.4vw, 56px); align-items: start; padding-block: clamp(24px, 2.6vw, 40px) clamp(48px, 6vw, 88px); }

.shrine { display: grid; justify-items: center; gap: 14px; }
.arch { position: relative; width: min(100%, 400px); aspect-ratio: 5 / 7.6; border-radius: 999px 999px 18px 18px; padding: 10px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 40%, #9c7425);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .25); }
.arch::before { content: ""; position: absolute; inset: 10px; border-radius: 999px 999px 10px 10px; background: radial-gradient(circle at 50% 34%, #fffdf6 0, #fff4d8 38%, #f6dfa6 78%, #e8c46a 100%); }
.arch::after { content: ""; position: absolute; inset: 18px; border-radius: 999px 999px 6px 6px; border: 1px solid rgba(156, 116, 37, .45); pointer-events: none; }
.arch-glow { display: none; position: absolute; left: 50%; top: 26%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 120, .9), rgba(255, 214, 120, 0) 70%); animation: glow 6s ease-in-out infinite alternate; }
@keyframes glow { to { opacity: .6; transform: translate(-50%, -50%) scale(1.08); } }
.arch img { position: absolute; z-index: 1; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: cover; object-position: 50% 0; border-radius: 999px 999px 10px 10px; }
.arch::after { z-index: 2; border-color: rgba(246, 227, 174, .55); }
.shrine figcaption { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--gold-3); }

.tamil { font-family: "Noto Sans Tamil", var(--sans); font-weight: 500; font-size: 17px; color: var(--gold-2); letter-spacing: .02em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 12.5px; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; font-variation-settings: "wdth" 112; color: var(--gold-3); }
.eyebrow-dark { color: var(--maroon-2); margin-top: 0; }
.spark { width: 10px; height: 10px; transform: rotate(45deg); background: var(--magenta-logo); box-shadow: 0 0 0 3px rgba(232, 0, 138, .25); }
.hero h1 { margin-top: 18px; font-size: clamp(40px, 4.6vw, 70px); line-height: 1.02; font-weight: 600; letter-spacing: -.035em; font-variation-settings: "wdth" 94; color: #fff; text-wrap: balance; }
.hero h1 em { display: block; font-family: var(--serif); font-style: italic; font-weight: 600; letter-spacing: -.01em; font-size: 1.12em; line-height: 1; color: var(--gold-2);
  background: linear-gradient(100deg, var(--gold-3), var(--gold-2) 40%, var(--gold) 70%, var(--gold-3)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lede { margin-top: 22px; max-width: 44ch; font-size: 18px; color: rgba(251, 245, 232, .86); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips li { padding: 7px 14px; border: 1px solid rgba(233, 198, 117, .45); border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--gold-3); background: rgba(0, 0, 0, .12); }
.motto { margin-top: 28px; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold-2); }

/* ---------- Form ---------- */
.apply { position: relative; }
.form, .thanks { position: relative; background: var(--paper); color: var(--ink); border-radius: 18px; padding: clamp(22px, 2.4vw, 34px);
  box-shadow: 0 30px 70px rgba(30, 3, 20, .45), 0 0 0 1px rgba(201, 154, 59, .55), 0 0 0 7px rgba(255, 250, 240, .06); }
.form::before, .thanks::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(201, 154, 59, .35); border-radius: 13px; pointer-events: none; }
.form { display: grid; gap: 14px; }
.form[hidden] { display: none; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-head { margin-bottom: 2px; }
.form-kicker { font-size: 12px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--magenta); }
.form-head h2 { margin-top: 4px; font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 2.4vw, 34px); line-height: 1.05; color: var(--maroon); }
.form-note { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.req { color: var(--err); font-weight: 700; }
.opt { font-weight: 400; color: var(--ink-2); }

.field { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: var(--ink); padding: 0; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; background: #fff; border: 1px solid #e3cfdb; border-radius: 10px; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 72px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--maroon) 50%), linear-gradient(135deg, var(--maroon) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 154, 59, .28); }
.field [aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 3px rgba(179, 38, 30, .12); }
.err { font-size: 13px; color: var(--err); font-weight: 500; }
.err:empty { display: none; }
.hint { font-size: 12.5px; color: var(--ink-2); }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-radius: 12px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid #e3cfdb; border-radius: 10px; background: #fff; font-weight: 600; transition: background .2s, border-color .2s, color .2s; }
.seg input:checked + span { background: var(--maroon); border-color: var(--maroon); color: var(--gold-3); }
.seg input:focus-visible + span { outline: 2px solid var(--magenta); outline-offset: 2px; }
.seg[data-invalid="true"] span { border-color: var(--err); }

.tel { display: flex; align-items: stretch; }
.tel-code { display: grid; place-items: center; padding: 0 12px; border: 1px solid #e3cfdb; border-right: 0; border-radius: 10px 0 0 10px; background: var(--magenta-tint); font-weight: 600; color: var(--ink-2); }
.tel input { border-radius: 0 10px 10px 0; }

.submit { margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; border: 0; border-radius: 12px; cursor: pointer;
  font-weight: 700; font-size: 16px; letter-spacing: .01em; color: #fff;
  background: var(--magenta); box-shadow: 0 10px 24px rgba(200, 0, 122, .28);
  transition: transform .2s var(--ease), box-shadow .2s, background-color .2s; }
.submit:hover { transform: translateY(-1px); background: var(--magenta-dark); box-shadow: 0 14px 30px rgba(200, 0, 122, .36); }
.submit:active { transform: translateY(0); }
.submit[disabled] { opacity: .7; cursor: progress; }
.submit-arrow { transition: transform .25s var(--ease); }
.submit:hover .submit-arrow { transform: translateX(4px); }
.form-status { font-size: 14px; font-weight: 500; color: var(--err); }
.form-status:empty { display: none; }
.form-foot { font-size: 13px; color: var(--ink-2); text-align: center; }

.thanks { text-align: center; display: grid; gap: 14px; justify-items: center; }
.thanks[hidden] { display: none; }
.thanks-lotus svg { fill: var(--magenta-logo); }
.thanks h2 { font-family: var(--serif); font-weight: 600; font-size: 32px; line-height: 1.1; color: var(--maroon); }
.thanks p { color: var(--ink-2); max-width: 36ch; }
.summary { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; text-align: left; padding: 14px 16px; background: var(--magenta-tint); border-radius: 10px; font-size: 14.5px; }
.summary dt { color: var(--ink-2); }
.summary dd { font-weight: 600; }
.thanks-blessing { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--maroon-2) !important; }
.again { min-height: 44px; padding: 0 18px; border: 1px solid var(--maroon); border-radius: 999px; background: none; color: var(--maroon); font-weight: 600; cursor: pointer; }
.again:hover { background: var(--maroon); color: var(--gold-3); }

/* ---------- Vidhyarambam ---------- */
.vidya { padding-block: clamp(80px, 10vw, 140px); background:
  radial-gradient(700px 400px at 85% 10%, rgba(233, 198, 117, .25), transparent 70%), var(--ivory); }
.vidya-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px clamp(40px, 6vw, 96px); align-items: center; }
.vidya-photos { position: relative; padding: 0 12% 14% 0; }
.vidya-photos figure { overflow: hidden; border-radius: 16px; box-shadow: 0 24px 50px rgba(92, 10, 63, .18); }
.vp-1 img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 40% 40%; }
.vp-2 { position: absolute; right: 0; bottom: 0; width: 46%; border: 6px solid var(--paper); }
.vp-2 img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.vidya-copy h2, .find-head h2, .steps h2 { margin-top: 16px; font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 4.4vw, 64px); line-height: 1.02; color: var(--maroon); letter-spacing: -.01em; text-wrap: balance; }
.vidya-copy p:not(.eyebrow) { margin-top: 20px; max-width: 48ch; font-size: 18px; color: var(--ink-2); }
.divider { display: flex; align-items: center; gap: 14px; margin-top: 32px; max-width: 320px; color: var(--gold); }
.divider span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.divider svg { fill: var(--gold); flex: none; }

/* ---------- What they will find ---------- */
.find { padding-block: clamp(80px, 10vw, 140px); background: var(--paper); border-block: 1px solid var(--line); }
.find-head { text-align: center; display: grid; justify-items: center; }
.find-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); margin-top: clamp(40px, 5vw, 64px); }
.find-grid figure { overflow: hidden; border-radius: 999px 999px 14px 14px; border: 3px solid var(--gold-3); box-shadow: 0 0 0 1px var(--gold); }
.find-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 1.2s var(--ease); }
.find-grid li:hover img { transform: scale(1.05); }
.find-num { margin-top: 18px; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--magenta); }
.find-grid h3 { font-size: 22px; font-weight: 650; letter-spacing: -.01em; color: var(--maroon); }
.find-grid li > p:last-child { margin-top: 4px; color: var(--ink-2); font-size: 15.5px; }

/* ---------- Steps ---------- */
.steps { padding-block: clamp(80px, 10vw, 130px); text-align: center; }
.steps-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; counter-reset: s; }
.steps-list li { position: relative; padding: 32px 26px 28px; background: var(--paper); border-radius: 16px; border: 1px solid var(--line); }
.step-n { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--gold-3), var(--gold)); color: var(--maroon-3); font-family: var(--serif); font-weight: 600; font-size: 26px; box-shadow: 0 0 0 5px rgba(201, 154, 59, .18); }
.steps-list h3 { margin-top: 16px; font-size: 21px; color: var(--maroon); }
.steps-list p { margin-top: 6px; color: var(--ink-2); font-size: 15.5px; }
.classes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 44px; border: 1px solid var(--gold); border-radius: 14px; overflow: hidden; background: var(--maroon); color: var(--gold-3); }
.classes li { display: grid; gap: 2px; padding: 18px 12px; }
.classes li + li { border-left: 1px solid rgba(233, 198, 117, .3); }
.classes b { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); }
.classes span { font-family: var(--serif); font-size: 21px; color: #fff; }

/* ---------- Closing ---------- */
.closing { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--maroon-3); }
.closing-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.closing::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(46, 5, 32, .55), rgba(46, 5, 32, .85)); }
.closing-inner { display: grid; justify-items: center; text-align: center; gap: 16px; padding-block: clamp(100px, 13vw, 180px); }
.closing h2 { max-width: 20ch; font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 5vw, 70px); line-height: 1.04; text-wrap: balance; }
.closing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 18px; }
.cta { display: inline-flex; align-items: center; min-height: 54px; padding: 0 30px; border-radius: 999px; text-decoration: none; font-weight: 700; color: #fff; background: var(--magenta); box-shadow: 0 10px 24px rgba(0, 0, 0, .3); transition: background-color .2s; }
.cta:hover { background: var(--magenta-dark); }
.cta-ghost { display: inline-flex; align-items: center; min-height: 54px; padding: 0 26px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--gold-3); border: 1px solid rgba(233, 198, 117, .6); }
.cta-ghost:hover { background: rgba(233, 198, 117, .12); }

/* ---------- Footer ---------- */
.foot { background: var(--maroon-3); color: rgba(251, 245, 232, .75); font-size: 14.5px; padding-top: 48px; border-top: 2px solid var(--gold); }
.foot-grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 28px; }
.foot-name { font-family: var(--serif); font-size: 24px; color: #fff; }
.foot-motto { color: var(--gold-2); font-style: italic; font-family: var(--serif); font-size: 17px; }
.foot a { color: var(--gold-3); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-base { margin-top: 36px; padding-block: 20px; border-top: 1px solid rgba(233, 198, 117, .18); font-size: 12.5px; color: rgba(251, 245, 232, .5); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { display: none; }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .hero-copy > *, .js .shrine, .js .apply { animation: rise .9s var(--ease) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .08s; } .js .hero-copy > :nth-child(3) { animation-delay: .16s; }
.js .hero-copy > :nth-child(4) { animation-delay: .24s; } .js .hero-copy > :nth-child(5) { animation-delay: .32s; }
.js .shrine { animation-delay: .1s; } .js .apply { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr); }
  .shrine { grid-column: 1; grid-row: 1; justify-self: start; }
  .shrine .arch { width: 260px; }
  .hero-copy { grid-column: 1; grid-row: 2; }
  .apply { grid-column: 2; grid-row: 1 / 3; }
}
@media (max-width: 899px) {
  .hero-grid { grid-template-columns: 1fr; }
  .shrine, .hero-copy, .apply { grid-column: 1; grid-row: auto; }
  .shrine { justify-self: center; }
  .shrine .arch { width: min(56vw, 240px); }
  .hero-grid { padding-block: 32px 48px; gap: 28px; }
  .hero-copy { text-align: center; display: grid; justify-items: center; }
  .chips { justify-content: center; }
  .vidya-grid { grid-template-columns: 1fr; }
  .find-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .steps-list { grid-template-columns: 1fr; }
  .classes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .classes li:nth-child(3) { border-left: 0; }
  .classes li:nth-child(n+3) { border-top: 1px solid rgba(233, 198, 117, .3); }
  .foot-grid { grid-template-columns: 1fr; }
  .sticky-cta { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: 999px; text-decoration: none; font-weight: 700; color: #fff; background: var(--magenta); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transform: translateY(150%); transition: transform .35s var(--ease); }
  .sticky-cta.is-visible { transform: none; }
  .foot { padding-bottom: 80px; }
}
@media (max-width: 480px) {
  .bar-call-label, .bar-call-num { display: none; }
  .bar-call-short { display: inline; }
  .hero .eyebrow .spark { display: none; }
  .hero .eyebrow { letter-spacing: .14em; }
  .brand span { font-size: 14.5px; }
  .hero h1 { font-size: clamp(34px, 10vw, 44px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
