/* Raapagal: the 24-hour dial. Two grounds, chosen by the hour in Coimbatore when the page is
   opened (body.t-day / body.t-night). One action colour (pilot-lamp green) and one colour that
   only ever means "night charge" (sodium-lamp amber). Phone first. */

:root {
  --font: "Mona Sans", "Noto Sans Tamil", system-ui, sans-serif;
  --font-ta: "Noto Sans Tamil", "Mona Sans", sans-serif;
  --wrap: 1240px;
  --gutter: 18px;
  --header-h: 60px;
  --radius: 10px;
  /* Fixed meanings, both grounds */
  --day-arc: #dfe8e3;
  --day-arc-ink: #0f1d24;
  --night-arc: #e89b44;
  --night-arc-ink: #1d1004;
}

body.t-day {
  --bg: #fbfcfa;
  --surface: #eef2ef;
  --surface-2: #e2e9e5;
  --line: #c9d4cf;
  --ink: #0f1d24;
  --muted: #4a5a5f;
  --call: #13703f;
  --call-hover: #0e5a32;
  --call-ink: #ffffff;
  --amber: #8a4a00;
  --amber-bg: #fbecd8;
  --focus: #0f1d24;
  --face: #ffffff;
  color-scheme: light;
}

body.t-night {
  --bg: #0f1d24;
  --surface: #16282f;
  --surface-2: #1d323a;
  --line: #2f4650;
  --ink: #eef3f1;
  --muted: #a7b8b9;
  --call: #3ccf7e;
  --call-hover: #64dc98;
  --call-ink: #05140b;
  --amber: #f0a54e;
  --amber-bg: #2b2418;
  --focus: #f6f8f7;
  --face: #132730;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  padding-bottom: 72px; /* room for the phone action bar */
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; font-stretch: 108%; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 7.4vw, 3.9rem); font-weight: 820; font-stretch: 112%; }
h2 { font-size: clamp(1.55rem, 4.6vw, 2.35rem); font-weight: 780; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 .8em; }
[lang="ta"], .ta { font-family: var(--font-ta); font-stretch: normal; letter-spacing: 0; }
.ta { font-weight: 400; color: var(--muted); font-size: .8em; }
.num { font-variant-numeric: tabular-nums; font-stretch: 118%; font-weight: 700; white-space: nowrap; }
.big { font-size: 1.6em; }
.small { font-size: .9rem; color: var(--muted); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.lede { font-size: 1.08rem; color: var(--muted); max-width: 46em; }
.kicker { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .6em; font-stretch: 120%; }
.kicker [lang="ta"] { text-transform: none; letter-spacing: 0; }
.sample {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border: 1.5px dashed var(--amber); color: var(--amber); padding: 0 .4em; border-radius: 3px; vertical-align: .15em;
  font-stretch: 110%;
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: .5em 1em; z-index: 50; }
.skip:focus { left: 8px; }
.notice-strip { margin: 0; padding: .55em var(--gutter); background: var(--amber-bg); color: var(--ink); text-align: center; font-size: .95rem; font-weight: 600; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .6em 1.15em; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; font-stretch: 105%; line-height: 1.15;
}
.btn-main, .btn-call { background: var(--call); color: var(--call-ink); }
.btn-main:hover, .btn-call:hover { background: var(--call-hover); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--surface); }
.btn-big { min-height: 56px; font-size: 1.1rem; width: 100%; }

/* ── Header: sticky at every width ── */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.mark { flex: none; }
.mark-day { stroke: var(--ink); stroke-width: 5; }
.mark-night { stroke: var(--night-arc); stroke-width: 5; }
.mark-dot { fill: var(--call); stroke: var(--bg); stroke-width: 2; }
.logo-words { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.logo-name { font-weight: 820; font-size: 1.12rem; font-stretch: 118%; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-ta { font-weight: 600; font-size: .82em; color: var(--muted); }
.logo-sub { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-wide, .header-book { display: none; }
.header-call {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  background: var(--call); color: var(--call-ink); font-weight: 800; text-decoration: none; font-stretch: 108%; white-space: nowrap;
}
.header-call:hover { background: var(--call-hover); }
.header-call-num { display: none; }
@media (max-width: 419px) { .hc-247, .logo-sub, .logo-ta { display: none; } }
.nav-small { position: relative; }
.nav-small summary {
  list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px;
  border: 1.5px solid var(--line); border-radius: 8px;
}
.nav-small summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.nav-small[open] .burger { background: transparent; }
.nav-small[open] .burger::before { top: 0; transform: rotate(45deg); }
.nav-small[open] .burger::after { top: 0; transform: rotate(-45deg); }
.nav-small nav {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(78vw, 300px);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}
.nav-small ul { list-style: none; margin: 0; padding: 0; }
.nav-small a { display: block; padding: .7em .9em; text-decoration: none; font-weight: 600; border-radius: 6px; }
.nav-small a:hover, .nav-small a[aria-current="page"] { background: var(--surface); }

/* ── Phone action bar ── */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 1px;
  background: var(--line); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.action-bar a {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 60px;
  background: var(--bg); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem;
}
.action-bar .ab-call { background: var(--call); color: var(--call-ink); font-weight: 800; font-size: 1.05rem; }

/* ── Footer ── */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 48px; padding: 40px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; gap: 28px; }
.site-footer h2 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .7em; font-stretch: 120%; }
.footer-promise { color: var(--muted); margin-top: .8em; }
.footer-call { display: flex; flex-direction: column; }
.footer-call a { font-size: 1.5rem; text-decoration: none; }
.footer-call span { color: var(--muted); font-size: .9rem; }
.footer-list { list-style: none; margin: 0 0 .6em; padding: 0; }
.footer-list li { padding: .2em 0; }
.footer-imprint dl { margin: 0 0 .6em; }
.footer-imprint dt { color: var(--muted); font-size: .85rem; }
.footer-imprint dd { margin: 0 0 .5em; }
.footer-base { display: flex; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 16px; color: var(--muted); font-size: .85rem; }
.footer-base p { margin: 0; }
