/* ==========================================================================
   State Medicals — public site
   Kumkum red and ivory from the logo, Tanjore-painting gold, temple friezes,
   kolam patterns and the logo's double frame with corner scrolls.
   ========================================================================== */

:root {
  --red: #c8132c;
  --red-deep: #8f0e22;
  --red-ink: #5c0815;
  --maroon: #2a0a10;
  --ivory: #fbf6ec;
  --ivory-2: #f5ecdb;
  --sand: #ead9bb;
  --gold: #b0802b;
  --gold-2: #d6ad62;
  --gold-3: #f0d9a0;
  --ink: #2a1a14;
  --ink-2: #5a473d;
  --muted: #8a7566;
  --line: #e3d3b6;
  --white: #fffdf8;
  --leaf: #2f6b4f;

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --caps: 'Marcellus', 'Cormorant Garamond', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --tamil: 'Noto Serif Tamil', 'Latha', serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --shadow-sm: 0 2px 8px -2px rgba(42, 10, 16, .12);
  --shadow: 0 18px 40px -22px rgba(42, 10, 16, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--maroon); color: var(--gold-3); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.tamil { font-family: var(--tamil); font-weight: 500; letter-spacing: 0; }

/* ---------- type ---------- */
h1, h2 { text-wrap: balance; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; color: var(--maroon); letter-spacing: -.005em; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; }
.eyebrow {
  font: 400 13px/1.2 var(--caps);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow.center::after { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.lede { font-size: clamp(16px, 1.6vw, 18px); color: var(--ink-2); max-width: 60ch; }
.gold-text {
  background: linear-gradient(100deg, #b98a35 0%, #f3dc9c 35%, #c99a45 55%, #f7e3ae 75%, #b0802b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- ornaments ---------- */
.frieze { height: 20px; background: var(--gold-2); -webkit-mask: url(../img/frieze.svg) repeat-x center / 40px 20px; mask: url(../img/frieze.svg) repeat-x center / 40px 20px; }
.frieze.on-light { background: var(--gold); opacity: .55; }
.kolam { position: absolute; inset: 0; pointer-events: none; background: currentColor; -webkit-mask: url(../img/kolam.svg) repeat 0 0 / 72px 72px; mask: url(../img/kolam.svg) repeat 0 0 / 72px 72px; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--gold); margin: 18px auto 0; }
.ornament::before, .ornament::after { content: ''; height: 1px; width: 56px; background: linear-gradient(90deg, transparent, currentColor); }
.ornament::after { transform: scaleX(-1); }
.ornament i { width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid currentColor; position: relative; }
.ornament i::after { content: ''; position: absolute; inset: 2px; background: currentColor; }

/* The logo's frame: a hairline inset border with a scroll in each corner. */
.framed { position: relative; }
.framed::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(176, 128, 43, .45); pointer-events: none; z-index: 1; }
.corners > .c { position: absolute; width: 34px; height: 34px; background: var(--gold); -webkit-mask: url(../img/corner.svg) no-repeat center / contain; mask: url(../img/corner.svg) no-repeat center / contain; pointer-events: none; z-index: 2; }
.corners > .c.tl { top: 4px; left: 4px; }
.corners > .c.tr { top: 4px; right: 4px; transform: scaleX(-1); }
.corners > .c.bl { bottom: 4px; left: 4px; transform: scaleY(-1); }
.corners > .c.br { bottom: 4px; right: 4px; transform: scale(-1, -1); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--red); --fg: var(--white); --frame: rgba(240, 217, 160, .65);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  background: var(--bg); color: var(--fg);
  border: 0; border-radius: 2px; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 700 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), color .25s;
}
.btn::after { content: ''; position: absolute; inset: 4px; border: 1px solid var(--frame); border-radius: 1px; pointer-events: none; transition: inset .25s var(--ease); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:hover::after { inset: 3px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-red:hover { --bg: var(--red-deep); }
.btn-gold { --bg: linear-gradient(135deg, #e9c983, #c79a49 55%, #e6c47c); --fg: var(--maroon); --frame: rgba(92, 8, 21, .35); background: var(--bg); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-ghost { --bg: transparent; --fg: var(--white); --frame: rgba(240, 217, 160, .5); box-shadow: inset 0 0 0 1px rgba(240, 217, 160, .65); }
.btn-ghost:hover { --bg: rgba(240, 217, 160, .1); }
.btn-line { --bg: transparent; --fg: var(--red-deep); --frame: rgba(200, 19, 44, .25); box-shadow: inset 0 0 0 1px rgba(200, 19, 44, .55); }
.btn-line:hover { --bg: rgba(200, 19, 44, .06); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 11.5px; }
.btn-sm::after { inset: 3px; }

/* ---------- top bars + header ---------- */
.announce { background: var(--red); color: var(--white); text-align: center; font-size: 13.5px; padding: 8px var(--gutter); }
.util { background: var(--maroon); color: rgba(251, 246, 236, .78); font-size: 13px; }
.util .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.util a { text-decoration: none; color: var(--gold-3); }
.util a:hover { color: var(--white); }
.util .greet { display: flex; align-items: center; gap: 10px; }
.util .greet .tamil { color: var(--gold-3); }
.util .links { display: flex; gap: 22px; align-items: center; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 246, 236, .92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(42, 10, 16, .5); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.brand img { width: 46px; height: auto; box-shadow: 0 6px 16px -8px rgba(143, 14, 34, .7); }
.brand .word { display: grid; line-height: 1; }
.brand .word b { font: 400 25px/1 var(--caps); letter-spacing: .26em; color: var(--red); }
.brand .word small { font: 600 10.5px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-top: 7px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { position: relative; padding: 10px 14px; text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.nav a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--red); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current='page']::after { transform: scaleX(1); }
.nav a[aria-current='page'] { color: var(--red-deep); }
.header-cta { display: flex; gap: 10px; }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); background: var(--white); border-radius: 2px; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 1.5px; background: var(--maroon); margin: auto; position: relative; transition: transform .3s var(--ease), background .3s; }
.menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; color: var(--white); background: radial-gradient(120% 90% at 78% 20%, #d4203a 0%, var(--red) 28%, var(--red-deep) 70%, #6e0a19 100%); overflow: hidden; isolation: isolate; }
.hero .kolam { color: var(--gold-3); opacity: .07; z-index: -1; }
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(transparent, rgba(42, 10, 16, .35)); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(56px, 8vw, 104px) 0 clamp(120px, 12vw, 150px); }
.hero .eyebrow { color: var(--gold-3); }
.hero .eyebrow .tamil { letter-spacing: .02em; text-transform: none; font-size: 15px; }
.hero h1 { color: var(--white); font-size: clamp(44px, 6vw, 78px); line-height: .98; font-weight: 600; }
.hero h1 em { display: block; font-weight: 500; }
.hero h1 em, .hero h1 .em { background: linear-gradient(100deg, #e7c47d 0%, #fbe7b4 40%, #d9b066 70%, #f6dfa4 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { color: rgba(255, 253, 248, .86); margin: 26px 0 0; font-size: clamp(16px, 1.5vw, 18.5px); }
.hero .motto { margin: 22px 0 0; font-family: var(--tamil); color: var(--gold-3); font-size: 17px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.hero .motto small { font: italic 500 16px var(--serif); color: rgba(255, 253, 248, .65); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-stats { display: flex; gap: clamp(20px, 4vw, 48px); margin: 44px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(240, 217, 160, .25); }
.hero-stats div { display: grid; gap: 6px; }
.hero-stats dt { order: 2; font: 400 11.5px/1.2 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 253, 248, .66); }
.hero-stats dd { margin: 0; font: 600 clamp(32px, 3.4vw, 44px)/1 var(--serif); color: var(--gold-3); }

.hero-art { position: relative; justify-self: center; width: min(460px, 100%); }
.arch {
  position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 6px 6px; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 35%, #a5132b, #6d0a19 75%);
  box-shadow: 0 0 0 1px rgba(240, 217, 160, .55), 0 0 0 10px rgba(42, 10, 16, .18), 0 0 0 11px rgba(240, 217, 160, .35), 0 40px 80px -30px rgba(0, 0, 0, .6);
}
.arch::after { content: ''; position: absolute; inset: 12px; border-radius: inherit; border: 1px solid rgba(240, 217, 160, .45); pointer-events: none; z-index: 3; }
.arch .vimana { position: absolute; inset: 10% 6% 0; width: 88%; height: auto; margin: auto; bottom: 0; top: auto; }
.arch .slides { position: absolute; inset: 0; z-index: 2; }
.arch .slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s var(--ease), transform 7s linear; transform: scale(1.06); }
.arch .slides img.on { opacity: 1; transform: scale(1); }
.arch .slides::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(42, 10, 16, .55)); }
.arch-caption { position: absolute; z-index: 4; left: 0; right: 0; bottom: 30px; text-align: center; font: italic 500 17px var(--serif); color: var(--gold-3); padding: 0 40px; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.hero-seal { position: absolute; left: -26px; bottom: 54px; z-index: 5; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: var(--ivory); color: var(--red-deep); box-shadow: 0 0 0 6px rgba(251, 246, 236, .25), var(--shadow); }
.hero-seal::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; border: 1px dashed var(--gold); }
.hero-seal span { font: 400 10.5px/1.35 var(--caps); letter-spacing: .14em; text-transform: uppercase; }
.hero-seal b { display: block; font: 600 30px/1 var(--serif); color: var(--red); letter-spacing: 0; }
.hero > .frieze { position: absolute; left: 0; right: 0; bottom: 18px; opacity: .55; }

/* ---------- quick actions ---------- */
.quick { position: relative; z-index: 6; margin-top: -84px; }
.quick-card { background: var(--white); box-shadow: var(--shadow); display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; }
.quick-card > * { padding: 28px 26px; position: relative; }
.quick-card > * + *::before { content: ''; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px; background: var(--line); }
.quick h2 { font-size: 26px; }
.quick p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.finder { display: flex; margin-top: 16px; border: 1px solid var(--line); background: var(--ivory); }
.finder input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 14px; height: 50px; font-size: 15px; outline: none; }
.finder input::placeholder { color: var(--muted); }
.finder:focus-within { border-color: var(--gold); }
.finder .btn { min-height: 50px; border-radius: 0; }
.tile { display: grid; grid-template-rows: auto auto 1fr; align-content: start; gap: 2px; text-decoration: none; transition: background .25s; }
.tile:hover { background: var(--ivory); }
.tile .ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(200, 19, 44, .07); color: var(--red); margin-bottom: 12px; box-shadow: inset 0 0 0 1px rgba(200, 19, 44, .18); }
.tile .ico svg { width: 22px; height: 22px; }
.tile h3 { font-size: 22px; }
.tile .go { margin-top: 14px; font: 700 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red); display: inline-flex; gap: 8px; align-items: center; }
.tile .go::after { content: '→'; transition: transform .25s var(--ease); }
.tile:hover .go::after { transform: translateX(4px); }

/* ---------- trust strip ---------- */
.trust { padding: 44px 0 10px; }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust li { display: flex; gap: 14px; align-items: center; color: var(--ink-2); font-size: 14.5px; line-height: 1.4; }
.trust li b { display: block; color: var(--maroon); font: 600 19px/1.15 var(--serif); }
.trust svg { width: 30px; height: 30px; color: var(--gold); flex: none; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.section.tint { background: var(--ivory-2); }
.section.tint .kolam { color: var(--gold); opacity: .06; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: clamp(36px, 4.6vw, 58px); }
.section-head .lede { margin: 18px auto 0; }
.section-head .tamil-sub { display: block; font-family: var(--tamil); font-size: 16px; color: var(--red-deep); margin-top: 12px; font-weight: 500; }

/* categories */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat { position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; padding: 30px 14px 26px; background: var(--white); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease); box-shadow: var(--shadow-sm); }
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat .ring { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 12px; color: var(--red); background: radial-gradient(circle, var(--ivory) 58%, transparent 60%), conic-gradient(from 0deg, var(--gold-2), var(--gold-3), var(--gold), var(--gold-3), var(--gold-2)); }
.cat .ring svg { width: 30px; height: 30px; }
.cat h3 { font-size: 21px; }
.cat .tamil { font-size: 12.5px; color: var(--muted); }

/* store cards */
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.store-card { background: var(--white); display: grid; grid-template-rows: auto 1fr; box-shadow: var(--shadow-sm); transition: box-shadow .35s var(--ease), transform .35s var(--ease); scroll-margin-top: 120px; }
.store-card:hover { box-shadow: var(--shadow); }
.store-card.active { box-shadow: 0 0 0 2px var(--gold-2), var(--shadow); }
.store-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--red-deep); }
.store-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.store-card:hover .store-media img { transform: scale(1.04); }
.store-media .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold-3); background: radial-gradient(80% 90% at 50% 30%, #b3162f, var(--red-deep) 70%, #600a18); }
.store-media .placeholder .kolam { opacity: .1; }
.store-media .placeholder img { position: absolute; bottom: -8%; width: 54%; left: 23%; height: auto; opacity: .55; object-fit: contain; }
.store-media .placeholder b { position: relative; z-index: 1; font: 400 16px/1 var(--caps); letter-spacing: .3em; text-transform: uppercase; margin-bottom: 46%; }
.badge { position: absolute; top: 14px; left: 14px; z-index: 3; background: var(--ivory); color: var(--red-deep); font: 400 10.5px/1 var(--caps); letter-spacing: .16em; text-transform: uppercase; padding: 8px 12px; box-shadow: inset 0 0 0 1px var(--gold-2); }
.badge.gold { background: linear-gradient(135deg, #f0d396, #cfa253); color: var(--maroon); box-shadow: none; }
.store-body { padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 6px; }
.store-body .where { font: 400 11.5px/1.2 var(--caps); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.store-body h3 { font-size: 25px; }
.store-body .addr { color: var(--ink-2); font-size: 14.5px; margin: 4px 0 0; }
.store-body .meta { color: var(--muted); font-size: 13.5px; margin: 0; display: flex; gap: 6px; align-items: center; }
.store-body .meta svg { width: 14px; height: 14px; flex: none; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; }
.tags li { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--red-deep); background: rgba(200, 19, 44, .06); padding: 5px 10px; border-radius: 99px; }
.store-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 18px; }
.store-actions .btn { flex: 1; min-width: 0; padding: 0 12px; }
.distance { font-weight: 700; color: var(--leaf); }

.towns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: -24px 0 40px; }
.town-pill { display: inline-flex; gap: 10px; align-items: baseline; padding: 10px 18px; background: var(--white); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 14px; }
.town-pill b { font: 600 20px/1 var(--serif); color: var(--red); }
.center-cta { text-align: center; margin-top: 44px; }

/* services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service { padding: 40px 34px 38px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; background: transparent; transition: background .3s; }
.service:hover { background: var(--white); }
.service .num { font: 500 46px/1 var(--tamil); color: var(--gold-2); margin-bottom: 18px; display: block; }
.service h3 { font-size: 26px; margin-bottom: 10px; }
.service p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* heritage */
.heritage { background: radial-gradient(100% 120% at 20% 0%, #9e1229, var(--red-deep) 45%, #5a0815); color: var(--white); position: relative; overflow: hidden; isolation: isolate; }
.heritage .kolam { color: var(--gold-3); opacity: .06; z-index: -1; }
.heritage .frieze { opacity: .6; }
.heritage-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: center; padding: clamp(64px, 8vw, 110px) 0; }
.heritage-art { position: relative; max-width: 440px; justify-self: center; }
.heritage-art img { width: 100%; height: auto; }
.heritage h2 { color: var(--white); font-size: clamp(36px, 4.4vw, 56px); }
.heritage .eyebrow { color: var(--gold-3); }
.heritage p { color: rgba(255, 253, 248, .84); }
.kural { margin: 34px 0 0; padding: 30px 32px; background: rgba(42, 10, 16, .28); position: relative; }
.kural::before { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(240, 217, 160, .35); pointer-events: none; }
.kural .corners > .c { background: var(--gold-2); width: 26px; height: 26px; }
.kural blockquote { margin: 0; font-family: var(--tamil); font-size: clamp(17px, 1.8vw, 20px); line-height: 1.9; color: var(--gold-3); }
.kural figcaption { margin-top: 14px; font: italic 500 18px/1.5 var(--serif); color: rgba(255, 253, 248, .85); }
.kural figcaption small { display: block; margin-top: 8px; font: 400 11px/1 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); font-style: normal; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; counter-reset: step; position: relative; }
.steps::before { content: ''; position: absolute; top: 40px; left: 16%; right: 16%; border-top: 2px dotted var(--gold-2); }
.step { text-align: center; position: relative; }
.step .n { width: 80px; height: 80px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ivory); color: var(--red); font: 600 34px/1 var(--serif); box-shadow: inset 0 0 0 1px var(--gold-2), 0 0 0 8px var(--ivory), 0 0 0 9px var(--line); position: relative; }
.step h3 { font-size: 25px; margin-bottom: 8px; }
.step p { margin: 0 auto; color: var(--ink-2); max-width: 32ch; font-size: 15px; }

/* gallery */
.gallery { columns: 3 280px; column-gap: 18px; }
.gallery figure { margin: 0 0 18px; break-inside: avoid; position: relative; background: var(--white); padding: 10px; box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; height: auto; }
.gallery figcaption { font: italic 500 16px/1.4 var(--serif); color: var(--ink-2); padding: 10px 4px 2px; }

/* online CTA band */
.cta-band { position: relative; background: var(--maroon); color: var(--white); overflow: hidden; isolation: isolate; }
.cta-band .kolam { color: var(--gold-3); opacity: .05; z-index: -1; }
.cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: clamp(48px, 6vw, 72px) 0; }
.cta-band h2 { color: var(--white); font-size: clamp(32px, 3.8vw, 48px); }
.cta-band p { color: rgba(255, 253, 248, .75); margin: 12px 0 0; max-width: 56ch; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer { background: #1e070b; color: rgba(251, 246, 236, .72); position: relative; overflow: hidden; isolation: isolate; font-size: 14.5px; }
.site-footer .frieze { opacity: .35; }
.site-footer .skyline { position: absolute; right: -60px; bottom: -40px; width: 420px; opacity: .08; z-index: -1; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 0 44px; }
.site-footer h4 { font: 400 13px/1 var(--caps); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: rgba(251, 246, 236, .82); }
.site-footer a:hover { color: var(--gold-3); }
.foot-brand .brand .word b { color: var(--gold-3); }
.foot-brand p { margin: 20px 0 0; max-width: 34ch; }
.foot-brand .tamil { color: var(--gold-2); display: block; margin-top: 14px; font-size: 15px; }
.foot-base { border-top: 1px solid rgba(240, 217, 160, .14); padding: 22px 0 28px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 13px; color: rgba(251, 246, 236, .5); }
.town-list li span { color: rgba(251, 246, 236, .45); }

/* ---------- inner page hero ---------- */
.page-hero { position: relative; background: radial-gradient(120% 140% at 80% 0%, #c41a33, var(--red-deep) 55%, #64091a); color: var(--white); overflow: hidden; isolation: isolate; }
.page-hero .kolam { color: var(--gold-3); opacity: .07; z-index: -1; }
.page-hero .wrap { padding: clamp(56px, 7vw, 92px) 0 clamp(64px, 7vw, 96px); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.page-hero h1 { color: var(--white); font-size: clamp(42px, 5.6vw, 72px); }
.page-hero .eyebrow { color: var(--gold-3); }
.page-hero p { color: rgba(255, 253, 248, .82); max-width: 58ch; margin: 18px 0 0; }
.page-hero .vimana-mini { width: 180px; opacity: .85; margin-bottom: -96px; }
.page-hero > .frieze { position: absolute; left: 0; right: 0; bottom: 14px; opacity: .5; }
.crumbs { font-size: 13px; color: rgba(255, 253, 248, .6); margin-bottom: 20px; }
.crumbs a { color: var(--gold-3); text-decoration: none; }

/* ---------- stores page ---------- */
.locator { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 0; min-height: 70vh; }
.locator-list { padding: 28px var(--gutter) 60px max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.locator-map { position: sticky; top: 84px; height: calc(100vh - 84px); background: var(--sand); }
#map { position: absolute; inset: 0; }
.toolbar { display: grid; gap: 14px; margin-bottom: 22px; }
.toolbar .finder { margin: 0; background: var(--white); }
.toolbar-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--white); padding: 8px 14px; font-size: 13.5px; font-weight: 600; border-radius: 99px; cursor: pointer; color: var(--ink-2); transition: all .2s; }
.chip[aria-pressed='true'] { background: var(--maroon); border-color: var(--maroon); color: var(--gold-3); }
.chip:hover { border-color: var(--gold-2); }
.result-count { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.locator .store-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
.locator .store-card { grid-template-rows: auto 1fr; }
.locator .store-media { aspect-ratio: 16 / 9; }
.locator .store-body h3 { font-size: 22px; }
.empty { padding: 40px; text-align: center; background: var(--white); color: var(--muted); }
.leaflet-container { font-family: var(--sans); background: #efe3cc; }
.leaflet-tile-pane { filter: sepia(.32) saturate(.85) hue-rotate(-8deg) contrast(.96); }
.pin { width: 34px; height: 44px; position: relative; }
.pin svg { width: 34px; height: 44px; filter: drop-shadow(0 4px 4px rgba(42, 10, 16, .35)); }
.pin.flag svg { width: 40px; height: 52px; }
.leaflet-popup-content-wrapper { border-radius: 2px; box-shadow: var(--shadow); }
.leaflet-popup-content { margin: 14px 16px; font-size: 13.5px; line-height: 1.5; }
.leaflet-popup-content b { font: 600 18px/1.2 var(--serif); color: var(--maroon); display: block; }

/* ---------- about page ---------- */
.story { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.story-text p { font-size: 17.5px; color: var(--ink-2); margin: 0 0 20px; }
.story-text p:first-of-type::first-letter { float: left; font: 600 88px/.8 var(--serif); color: var(--red); padding: 8px 12px 0 0; }
.story-aside { position: sticky; top: 120px; }
.portrait { background: var(--white); padding: 14px; box-shadow: var(--shadow); }
.portrait .inner { aspect-ratio: 4 / 5; position: relative; overflow: hidden; background: radial-gradient(90% 70% at 50% 35%, #a5132b, #6d0a19 75%); display: grid; place-items: end center; }
.portrait .inner > img { width: 100%; height: 100%; object-fit: cover; }
.portrait .inner > img.art { width: 82%; height: auto; object-fit: contain; }
.portrait figcaption { font: italic 500 16px var(--serif); color: var(--ink-2); padding: 12px 4px 0; text-align: center; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.value { background: var(--white); padding: 44px 32px 36px; text-align: center; box-shadow: var(--shadow-sm); }
.value .ta { font: 600 34px/1.2 var(--tamil); color: var(--red); display: block; }
.value .tr { font: 400 11.5px/1 var(--caps); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); display: block; margin: 12px 0 18px; }
.value h3 { font-size: 26px; margin-bottom: 10px; }
.value p { margin: 0; color: var(--ink-2); font-size: 15px; }
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--gold-2), var(--line)); }
.timeline li { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-bottom: 42px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: 50%; top: 10px; width: 13px; height: 13px; transform: translate(-50%, 0) rotate(45deg); background: var(--ivory-2); border: 1px solid var(--gold); box-shadow: 0 0 0 5px var(--ivory-2); }
.timeline .yr { text-align: right; font: 600 44px/1 var(--serif); color: var(--red); }
.timeline .tx h3 { font-size: 24px; margin-bottom: 6px; }
.timeline .tx p { margin: 0; color: var(--ink-2); }
.timeline li:nth-child(even) .yr { order: 2; text-align: left; }
.timeline li:nth-child(even) .tx { text-align: right; }
.about-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 56px; }
.about-gallery figure { margin: 0; background: var(--white); padding: 10px; box-shadow: var(--shadow-sm); }
.about-gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.about-gallery figcaption { font: italic 500 15px var(--serif); color: var(--ink-2); padding: 8px 4px 0; }

/* Cormorant's figures are old-style ("11" reads as "II", "2011" as "2OII") and the Google Fonts build ignores lnum,
   so standalone numbers use Marcellus, the inscription face of the labels. */
.hero-stats dd, .town-pill b, .timeline .yr, .step .n { font-family: var(--caps); font-weight: 400; letter-spacing: .02em; }
.hero-stats dd { font-size: clamp(30px, 3vw, 40px); }
.timeline .yr { font-size: 38px; }
.step .n { font-size: 30px; }
.town-pill b { font-size: 18px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .arch .slides img { transition: opacity .2s; transform: none; }
  * { animation: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .header-cta .btn-line { display: none; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .quick-card { grid-template-columns: repeat(3, 1fr); }
  .quick-card > :first-child { grid-column: 1 / -1; }
  .quick-card > :nth-child(2)::before { display: none; }
  .quick-card > :nth-child(n+2) { border-top: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .locator { grid-template-columns: 1fr; }
  .locator-list { padding: 28px var(--gutter) 60px; order: 2; }
  .locator-map { position: relative; top: 0; height: 52vh; min-height: 320px; order: 1; }
}
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: block; }
  .site-header .wrap { min-height: 72px; }
  .menu-open .nav { display: grid; position: absolute; left: 0; right: 0; top: 100%; background: var(--ivory); border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 22px; gap: 0; box-shadow: var(--shadow); }
  .menu-open .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .menu-open .nav a::after { display: none; }
  .menu-open .nav .mobile-cta { display: flex; gap: 10px; padding-top: 18px; }
  .hero-grid { grid-template-columns: 1fr; padding-bottom: 130px; }
  .hero-art { width: min(360px, 88%); order: -1; }
  .hero-seal { left: -12px; width: 96px; height: 96px; }
  .hero-seal b { font-size: 26px; }
  .trust ul { grid-template-columns: 1fr 1fr; }
  .store-grid { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .heritage-grid { grid-template-columns: 1fr; }
  .heritage-art { max-width: 300px; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .cta-inner { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; }
  .story-aside { position: static; max-width: 420px; }
  .values { grid-template-columns: 1fr; }
  .page-hero .vimana-mini { display: none; }
  .page-hero .wrap { grid-template-columns: 1fr; }
  .util .hide-sm { display: none; }
}
@media (min-width: 901px) { .nav .mobile-cta { display: none; } }
@media (max-width: 640px) {
  .brand img { width: 40px; }
  .brand .word b { font-size: 21px; }
  .brand .word small { font-size: 9.5px; letter-spacing: .26em; }
  .cats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .quick-card { grid-template-columns: 1fr; }
  .quick-card > * { grid-column: auto !important; padding: 22px 20px; }
  .quick-card > *::before { display: none; }
  .store-grid, .locator .store-grid { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .service { padding: 32px 24px; }
  .trust ul { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .timeline::before { left: 8px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; padding-left: 36px; }
  .timeline li::before { left: 8px; }
  .timeline .yr, .timeline li:nth-child(even) .yr { order: 0; text-align: left; font-size: 34px; }
  .timeline li:nth-child(even) .tx { text-align: left; }
  .hero-stats { gap: 24px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .util .links .hide-xs, .hero .eyebrow .hide-xs { display: none; }
  .finder .btn span { display: none; }
}
