/* Sajana Tech — company site.
 *
 * Navy / white / gold, the same palette Gurukul AI uses (rules.md,
 * "Appearance"), because the product is the company's most visible face and a
 * parent site in unrelated colours reads as a different organisation.
 *
 * Every colour is a token, and each is chosen against the surface it sits on:
 * body text needs 4.5:1, large text 3:1. Gold is a FILL that takes dark ink —
 * gold text on white is 2.1:1 and unreadable, which is why `--gold-ink` exists
 * separately.
 */

:root {
  --navy: #1D4ED8;          /* white on it: 6.70:1 */
  --navy-deep: #1E3A8A;     /* the darker end of the same hue, for gradients */
  --ink: #111827;
  --body: #374151;          /* 10.4:1 on white */
  --muted: #646B78;         /* 5.36:1 on white, 4.87:1 on the tinted surface */
  --gold: #D4AF37;          /* a fill; near-black ink on it is 8.44:1 */
  --gold-ink: #8A6D1F;      /* gold AS TEXT, darkened to 4.90:1 */
  --page: #FFFFFF;
  --surface: #F8FAFC;
  --line: #E5E7EB;
  --radius: 14px;
  --wide: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--body);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 750; letter-spacing: -.01em; }
h3 { font-size: 1.1rem; font-weight: 700; }
p  { margin: 0 0 1rem; }
a  { color: var(--navy); }

/* ── header ─────────────────────────────────────────────────────────────── */

header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px;
}
.brand {
  font-weight: 800; font-size: 1.15rem; color: var(--ink);
  text-decoration: none; letter-spacing: -.01em; white-space: nowrap;
}
.brand span { color: var(--navy); }
nav.site a {
  color: var(--body); text-decoration: none; font-size: .94rem;
  font-weight: 600; margin-left: 22px; white-space: nowrap;
}
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--navy); }

/* The nav wraps rather than scrolls on a narrow screen: five items at 375px
   would otherwise clip the last one, which is how you lose Contact. */
@media (max-width: 720px) {
  header.site .wrap { flex-direction: column; align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
  nav.site { display: flex; flex-wrap: wrap; gap: 4px 0; }
  nav.site a { margin-left: 0; margin-right: 18px; }
}

/* ── hero ───────────────────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; padding: clamp(56px, 9vw, 104px) 0;
}
.hero h1 { color: #fff; max-width: 18ch; }
.hero p { font-size: clamp(1.02rem, 2vw, 1.2rem); max-width: 60ch; color: rgba(255,255,255,.92); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}

/* ── sections and cards ─────────────────────────────────────────────────── */

section { padding: clamp(48px, 7vw, 80px) 0; }
section.tinted { background: var(--surface); }
.lede { font-size: 1.08rem; max-width: 64ch; color: var(--body); }

.grid { display: grid; gap: 20px; margin-top: 32px; }
.grid.two   { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--page); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); font-size: .96rem; margin-bottom: 0; }
.card ol { margin: 10px 0 0; padding-left: 20px; color: var(--muted); font-size: .92rem; }
.card ol li { margin-bottom: 6px; line-height: 1.55; }
.card ol strong { color: var(--ink); }
.card .tag {
  align-self: flex-start; margin-top: 16px; font-size: .74rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.tag.live    { background: rgba(29,78,216,.10); color: var(--navy); }
.tag.soon    { background: rgba(212,175,55,.18); color: var(--gold-ink); }

/* ── buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 12px 24px; border-radius: 10px; font-size: .96rem;
}
.btn.primary { background: var(--gold); color: var(--ink); }   /* 8.44:1 */
.btn.ghost   { border: 1.5px solid rgba(255,255,255,.55); color: #fff; margin-left: 10px; }
.btn.solid   { background: var(--navy); color: #fff; }         /* 6.70:1 */
.hero .btn { margin-top: 26px; }

/* ── construction notice ────────────────────────────────────────────────── */

.construction {
  border: 1px solid #FDE68A; background: #FFFBEB;
  border-radius: var(--radius); padding: 22px 24px; margin-top: 28px;
}
.construction h3 { color: var(--gold-ink); margin-bottom: .3em; }
.construction p  { color: #78620F; margin-bottom: 0; font-size: .96rem; }

/* ── footer ─────────────────────────────────────────────────────────────── */

footer.site {
  border-top: 1px solid var(--line); background: var(--surface);
  padding: 40px 0; margin-top: 8px;
}
footer.site .cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
footer.site h4 { font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
footer.site a  { display: block; color: var(--body); text-decoration: none; font-size: .93rem; padding: 3px 0; }
footer.site a:hover { color: var(--navy); }
.legal { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }

dl.facts { margin: 0; }
dl.facts dt { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 16px; }
dl.facts dd { margin: 2px 0 0; color: var(--ink); font-weight: 600; }

/* Long-form legal text. NOT .legal — that is the footer's small muted
   copyright line, and reusing it here shrank the whole policy to 0.86rem.
   Measured contrast: --ink on --page, checked below. */
.policy { max-width: 68ch; }
.policy h2 { font-size: 1.5rem; margin: 0 0 18px; }
.policy h3 { font-size: 1.06rem; margin: 34px 0 10px; color: var(--ink); }
.policy p { margin: 0 0 14px; line-height: 1.7; color: var(--ink); }
.policy ul { margin: 0 0 16px 20px; }
.policy li { margin-bottom: 7px; line-height: 1.65; }
.policy hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
.policy code { background: var(--surface); padding: 1px 5px; border-radius: 4px;
               font-size: .9em; }
.policy strong { color: var(--ink); }

/* Division logos. The two supplied artworks carry their own backgrounds —
   Academy is dark green, Arts is white — so they are framed as images rather
   than floated on the page, and a light border keeps the white one from
   dissolving into the page behind it. */
.divlogo { display: block; width: 100%; max-width: 620px; height: auto;
           margin: 0 0 28px; border-radius: var(--radius);
           border: 1px solid var(--line); }
.motto { display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
         margin: 0 0 22px; letter-spacing: .12em; text-transform: uppercase;
         font-size: .74rem; font-weight: 600; color: var(--muted); }
.motto span[aria-hidden] { color: var(--gold); }
/* The tag on a NAVY hero, not on the page.
   .tag.live is navy ink on a 10%-navy tint. Over white that tint reads as pale
   blue and the pair works. Over the navy hero the tint IS the hero, so it
   measured 1.00:1 — the text was exactly its own background and vanished.
   Same fill-vs-ink trap the app palette documents. On the hero the tag becomes
   light ink on a translucent white fill: 8.6:1 and 12.4:1 below. */
.hero .tag { margin-top: 16px; }
.hero .tag.live,
.hero .tag.soon { background: rgba(255,255,255,.16); color: #FFFFFF;
                  border: 1px solid rgba(255,255,255,.34); }
