/* ==========================================================================
   BASE: design tokens, reset, typography, utilities
   Brand colours are sampled from the Parhit Foundation logo.
   ========================================================================== */

:root {
    --blue: #013b7c;
    --blue-700: #0a4c97;
    --blue-900: #012a58;
    --blue-100: #dce8f6;
    --blue-50: #eef4fb;

    --green: #509b22;          /* brand green: decoration, accents */
    --green-btn: #3f8419;      /* buttons (white text passes 4.5:1) */
    --green-btn-h: #336f13;
    --green-text: #2f6b27;     /* green text on white and on pale green (passes 4.5:1) */
    --green-100: #dfefd3;
    --green-50: #f1f8ec;

    --ink: #14233a;
    --muted: #51607a;
    --line: #dce3ec;
    --paper: #ffffff;
    --soft: #f6f9fc;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(1, 42, 88, .06), 0 2px 10px rgba(1, 42, 88, .06);
    --shadow: 0 10px 34px rgba(1, 42, 88, .14);

    --container: 1180px;
    --gutter: 16px;
    --header-h: 64px;
    --bar-h: 64px;

    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 960px) { :root { --header-h: 76px; --gutter: 32px; } }

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    color-scheme: light;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
}

@media (min-width: 960px) { body { padding-bottom: 0; } }

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; color: var(--blue); font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 4vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--blue-700); text-underline-offset: 3px; }
a:hover { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
address { font-style: normal; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
summary { cursor: pointer; }

:focus-visible { outline: 3px solid var(--blue-700); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---- Utilities ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }
.center { text-align: center; }
.stack { margin-top: 2rem; }
.stack-sm { margin-top: 1rem; }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.2rem); color: var(--muted); }
.eyebrow { display: inline-block; margin: 0 0 .9rem; padding: .3rem .8rem; border-radius: 99px; background: var(--green-100); color: var(--green-text); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; padding: .7rem 1rem; background: var(--blue); color: #fff; border-radius: 8px; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 12px; color: #fff; }

/* Icons */
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: -.2em; }
.i--lg { width: 1.6em; height: 1.6em; }
.i--xl { width: 2em; height: 2em; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
