/*
 * Anamay — site styles.
 *
 * Plain CSS, no build step. The site deploys onto a box already running
 * production applications; not needing node/npm there is worth more than the
 * convenience of a utility framework.
 *
 * PALETTE comes from the logo: a red swoosh, a blue-to-navy arc, a warm brown
 * letterform, all on white. The site is light for the same reason the mark is —
 * the brown "A" all but disappears on a dark background, and a brand should not
 * need a second version of itself to survive its own website.
 *
 * Red carries action. Navy carries depth and closes the page, echoing the arc
 * under the mark.
 */

:root {
    /* Brand */
    --brand-red:   #ce1f2e;
    --brand-red-d: #a9161f;
    --brand-navy:  #17296f;
    --brand-blue:  #1c6fc2;
    --brand-brown: #6b5d57;

    /* Surfaces */
    --bg:        #ffffff;
    --bg-soft:   #f8f6f4;
    --bg-card:   #ffffff;
    --line:      #e7e1dc;
    --line-soft: #f0ebe7;

    /* Ink */
    --ink:       #241e1b;
    --ink-soft:  #5c534e;
    --ink-faint: #8a7f79;

    --accent: var(--brand-red);

    /* Product accents, tuned to read on a light surface */
    --teal:   #0f8a72;
    --indigo: #4351b8;
    --amber:  #b8730c;
    --green:  #2f7d4a;
    --slate:  #5d6b73;

    --radius: 14px;
    --wrap: 1140px;
    /* Kept as a variable because the mobile menu drops from exactly here —
       hard-coding it in two places is how the dropdown ends up floating. */
    --header-h: 88px;
    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --shadow: 0 1px 2px rgba(36, 30, 27, .05), 0 8px 24px -12px rgba(36, 30, 27, .14);
}

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

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-red); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

h1, h2, h3 { line-height: 1.18; letter-spacing: -0.022em; margin: 0 0 .5em; font-weight: 650; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.15rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.05rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.22rem; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }

/* The full lockup. It is a stacked mark with the wordmark beneath, so it needs
   real height for the Devanagari to stay legible — hence the taller header. */
.brand-logo { height: 60px; width: auto; display: block; }

/* Fallback used until the logo file is in place. */
.brand-mark {
    width: 34px; height: 34px; border-radius: 10px; flex: none;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-navy));
    display: grid; place-items: center;
    color: #fff; font-weight: 800; font-size: 1rem;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink-soft); font-size: .94rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand-navy); text-decoration: none; }
.nav a.btn-primary { color: #fff; }

.nav-toggle {
    display: none; background: none; border: 1px solid var(--line);
    color: var(--ink); border-radius: 9px; padding: 7px 11px; font-size: 1rem; cursor: pointer;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
    display: inline-block; padding: 12px 24px; border-radius: 10px;
    font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer;
    transition: transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand-red); color: #fff; }
.btn-primary:hover { background: var(--brand-red-d); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--brand-navy); background: #fff; }
.btn-ghost:hover { border-color: var(--brand-navy); }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
    padding: clamp(56px, 10vw, 108px) 0 clamp(40px, 7vw, 72px);
    position: relative; overflow: hidden;
    background: linear-gradient(180deg, #fdfbfa 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--line-soft);
}
/* A faint echo of the arc beneath the mark. */
.hero::after {
    content: ""; position: absolute; left: 50%; bottom: -78%;
    width: 150%; aspect-ratio: 2 / 1; transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(28, 111, 194, .09), transparent 72%);
    pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero p.lede { font-size: clamp(1.05rem, 2vw, 1.26rem); color: var(--ink-soft); max-width: 60ch; }

.eyebrow {
    display: inline-block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--brand-red); font-weight: 700; margin-bottom: 14px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ── Sections ───────────────────────────────────────────────────────────── */

.section { padding: clamp(48px, 8vw, 80px) 0; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--line-soft); }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head p { color: var(--ink-soft); margin-bottom: 0; }

/* ── Cards ──────────────────────────────────────────────────────────────── */

.grid { display: grid; gap: 20px; }
.grid-products { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

.card {
    background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; display: flex; flex-direction: column;
    box-shadow: var(--shadow);
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
    position: relative; overflow: hidden;
}
/* A colour bar at the top, taken from the product's own accent. */
.card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: var(--card-accent, var(--brand-red));
    opacity: .9;
}
.card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--card-accent, var(--brand-red)) 40%, var(--line));
    box-shadow: 0 2px 4px rgba(36,30,27,.06), 0 18px 40px -18px rgba(36,30,27,.24);
}
.card .sector {
    font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--card-accent, var(--brand-red)); font-weight: 700;
}
.card h3 { margin: 10px 0 6px; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--card-accent, var(--brand-red)); text-decoration: none; }
.card .tagline { color: var(--brand-navy); font-size: .95rem; margin-bottom: 14px; font-weight: 500; }
.card .summary { color: var(--ink-soft); font-size: .93rem; flex: 1; }
.card .card-foot { margin-top: 18px; font-size: .9rem; font-weight: 600; color: var(--card-accent, var(--brand-red)); }

.pill {
    display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em;
    padding: 3px 10px; border-radius: 999px; text-transform: uppercase;
    border: 1px solid var(--line); color: var(--ink-faint); background: #fff;
}

/* ── Prose ──────────────────────────────────────────────────────────────── */

.prose { max-width: 68ch; color: var(--ink-soft); font-size: 1.03rem; }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; }
.prose strong { color: var(--ink); }
.prose a { text-decoration: underline; }
.prose blockquote {
    margin: 1.4em 0; padding: 4px 0 4px 20px;
    border-left: 3px solid var(--brand-red); color: var(--ink);
}

/* ── Feature list ───────────────────────────────────────────────────────── */

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.checks li::before {
    content: "✓"; position: absolute; left: 0; top: -1px;
    width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center;
    background: color-mix(in srgb, var(--card-accent, var(--brand-red)) 12%, transparent);
    color: var(--card-accent, var(--brand-red)); font-size: .72rem; font-weight: 700;
}

/* ── Forms ──────────────────────────────────────────────────────────────── */

.form { display: grid; gap: 18px; max-width: 620px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
    width: 100%; padding: 12px 14px; border-radius: 10px;
    background: #fff; border: 1px solid var(--line); color: var(--ink);
    font: inherit; font-size: .96rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--brand-red);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-red) 14%, transparent);
}
.field textarea { min-height: 150px; resize: vertical; }
.field .error { color: var(--brand-red-d); font-size: .85rem; margin-top: 5px; font-weight: 500; }
.field-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice {
    padding: 14px 18px; border-radius: 10px; margin-bottom: 24px; font-size: .95rem;
    background: color-mix(in srgb, var(--brand-blue) 8%, #fff);
    border: 1px solid color-mix(in srgb, var(--brand-blue) 30%, transparent);
    color: var(--brand-navy);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

/* Navy, picking up the arc that closes the mark. */
.site-footer {
    background: var(--brand-navy);
    color: #d7dcf0;
    padding: 56px 0 34px;
    margin-top: 0;
}
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { background: rgba(255, 255, 255, .16); color: #fff; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.6fr 1fr 1fr; }
.footer-grid h4 { font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; color: #9aa6d4; margin: 0 0 14px; font-weight: 700; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-grid a { color: #d7dcf0; font-size: .93rem; }
.footer-grid a:hover { color: #fff; }
.footer-note { color: #b9c2e2; font-size: .93rem; max-width: 42ch; }
.footer-base {
    margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14);
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
    color: #9aa6d4; font-size: .87rem;
}

/* The full lockup in the footer, on a white chip — the arc is navy and would
   otherwise disappear into the navy behind it. */
.site-footer .brand-logo {
    background: #fff; padding: 10px 14px; border-radius: 12px; height: 74px;
}
.site-footer .brand { gap: 0; }

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 820px) {
    .footer-grid { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .nav-toggle { display: block; }
    .nav {
        display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 16px;
        box-shadow: var(--shadow);
    }
    .nav.open { display: flex; }
    .nav a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
    .nav a:last-child { border-bottom: none; margin-top: 8px; text-align: center; }
}

@media (max-width: 560px) {
    :root { --header-h: 74px; }
    .brand-logo { height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
    .btn:hover, .card:hover { transform: none; }
}
