/* ==================================================================
   AVANPA — design system
   Modern corporate tech: deep navy, warm amber accent, generous space.
   No framework dependency. Written for PHP templates.
   ================================================================== */

/* ---------- 1. Tokens ------------------------------------------- */
:root {
    /* Brand */
    --navy-900: #06152B;
    --navy-800: #0C2340;
    --navy-700: #12365F;
    --navy-600: #1B4B80;
    --navy-100: #E8EFF7;

    --accent:      #F5A524;
    --accent-dark: #D4861A;
    --accent-soft: #FFF4E0;

    --teal: #17A2A8;

    /* Header + footer "shell". Chosen FOR the transparent logo: the mark is
       bright blue + silver artwork on nothing, so the bar has to supply the
       contrast. At this depth all three lines of the logo stay legible —
       silver wordmark 8.6:1, nav text 9.9:1, amber CTA 7.0:1. */
    --shell:       #0A1F3C;
    --shell-light: #0E2A4F;

    /* Neutrals */
    --ink:    #0D1B2A;
    --body:   #465569;
    --muted:  #7C8CA1;
    --line:   #E2E8F0;
    --bg:     #FFFFFF;
    --bg-soft:#F5F8FC;

    /* Shape */
    --radius-sm: 8px;
    --radius:    14px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(6, 21, 43, .06), 0 2px 8px rgba(6, 21, 43, .05);
    --shadow-md: 0 6px 16px rgba(6, 21, 43, .08), 0 16px 40px rgba(6, 21, 43, .07);
    --shadow-lg: 0 24px 64px rgba(6, 21, 43, .16);

    --container: 1180px;
    --gutter: 24px;
    --header-h: 90px;

    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;

    --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 2. Reset -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.7;
    color: var(--body);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5 {
    margin: 0 0 .6em;
    color: var(--ink);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.02em;
}

h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }

a { color: var(--navy-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-dark); }

ul { margin: 0; padding: 0; list-style: none; }

hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    background: var(--navy-800); color: #fff; padding: .75rem 1.25rem;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- 3. Layout helpers ----------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding: clamp(56px, 7vw, 104px) 0; }
.section-soft { background: var(--bg-soft); }
.section-tight { padding: clamp(40px, 5vw, 72px) 0; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.text-center { text-align: center; }
.measure { max-width: 68ch; }
.measure-center { max-width: 66ch; margin-inline: auto; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .8rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--navy-600);
    margin-bottom: .9rem;
}
.eyebrow::before {
    content: ''; width: 26px; height: 2px; background: var(--accent); border-radius: 2px;
}
.eyebrow-center { justify-content: center; }

.section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p { color: var(--body); font-size: 1.06rem; }

.lead { font-size: 1.14rem; color: var(--body); }

/* ---------- 4. Buttons ------------------------------------------ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .82rem 1.6rem;
    font-family: inherit; font-size: .97rem; font-weight: 700;
    border-radius: var(--radius-pill);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease),
                background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 1rem 2rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-accent {
    background: var(--accent); color: var(--navy-900);
    box-shadow: 0 6px 18px rgba(245, 165, 36, .32);
}
.btn-accent:hover { background: var(--accent-dark); color: var(--navy-900); box-shadow: 0 10px 26px rgba(245, 165, 36, .4); }

.btn-primary { background: var(--navy-800); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; }

.btn-ghost { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy-800); color: var(--navy-800); background: var(--navy-100); }

.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.6); }

.link-arrow { font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow::after { content: '→'; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- 5. Header ------------------------------------------- */
/* The AVANPA logo is light-on-dark artwork, so the header stays navy. */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: linear-gradient(180deg, rgba(14, 42, 79, .95), rgba(10, 31, 60, .95));
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .13);
    transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.site-header.is-stuck {
    background: linear-gradient(180deg, rgba(14, 42, 79, .99), rgba(10, 31, 60, .99));
    box-shadow: 0 8px 28px rgba(3, 12, 28, .45);
}

.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; min-height: var(--header-h);
}

/* The logo sits directly on the bar — transparent PNG, no panel or plate. */
.brand {
    position: relative; display: inline-flex; align-items: center;
    padding: 0; background: none; border: 0; box-shadow: none;
    transition: transform .25s var(--ease), filter .25s var(--ease);
}
.brand img {
    height: 56px; width: auto; object-fit: contain;
    /* Nothing behind or under the mark: no panel, no drop shadow. A dark
       shadow on a dark bar is what reads as a "box" around the logo. */
    filter: none;
}
.brand:hover { transform: translateY(-1px); }

.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.main-nav > ul { display: flex; align-items: center; gap: 1.45rem; }
.nav-cta { padding: .62rem 1.15rem; font-size: .88rem; line-height: 1.2; flex: 0 0 auto; }
.main-nav > ul li { flex: 0 0 auto; }
@media (max-width: 1180px) {
    .main-nav > ul { gap: 1.1rem; }
    .main-nav > ul a { font-size: .9rem; }
}
.main-nav a {
    position: relative; font-size: .95rem; font-weight: 600; color: rgba(255, 255, 255, .84);
    padding: .35rem 0;
}
.main-nav a:hover { color: #fff; }
.main-nav a::after {
    content: ''; position: absolute; left: 0; bottom: -2px;
    width: 0; height: 2px; background: var(--accent); border-radius: 2px;
    transition: width .22s var(--ease);
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { width: 100%; }
.main-nav a[aria-current="page"] { color: #fff; }

.nav-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 10px;
    background: transparent; border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius-sm);
    cursor: pointer;
}
.nav-toggle span {
    display: block; height: 2px; background: #fff; border-radius: 2px;
    transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. Hero --------------------------------------------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(900px 500px at 82% 8%, rgba(245,165,36,.22), transparent 60%),
        radial-gradient(760px 520px at 8% 90%, rgba(23,162,168,.24), transparent 62%),
        linear-gradient(150deg, var(--navy-900) 0%, var(--navy-800) 48%, var(--navy-700) 100%);
    color: #fff;
    padding: clamp(72px, 9vw, 132px) 0 clamp(64px, 8vw, 112px);
}
.hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 78%);
}
.hero > .container { position: relative; z-index: 1; }

.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }

.hero h1 { color: #fff; margin-bottom: .7rem; }
.hero h1 .accent {
    background: linear-gradient(100deg, var(--accent) 10%, #FFD27A 90%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { color: rgba(255,255,255,.82); font-size: 1.16rem; max-width: 56ch; }

.hero .eyebrow { color: var(--accent); }
.hero .eyebrow::before { background: var(--accent); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }

.hero-trust {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem 1.5rem;
    margin-top: 3rem; padding-top: 1.75rem;
    border-top: 1px solid rgba(255,255,255,.16);
}
.hero-trust div strong { display: block; color: #fff; font-size: 1.6rem; font-weight: 800; line-height: 1.2; }
.hero-trust div span { color: rgba(255,255,255,.62); font-size: .88rem; }

/* Hero card stack */
.hero-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-lg);
}
.hero-card h2 { color: #fff; font-size: 1.15rem; margin-bottom: 1.2rem; }
.hero-card ul { display: grid; gap: 14px; }
.hero-card li {
    display: flex; gap: 12px; align-items: flex-start;
    color: rgba(255,255,255,.86); font-size: .95rem; line-height: 1.55;
}
.hero-card li::before {
    content: '✓'; flex: 0 0 22px; height: 22px; margin-top: 2px;
    display: grid; place-items: center;
    background: var(--accent); color: var(--navy-900);
    border-radius: 50%; font-size: .72rem; font-weight: 800;
}

/* ---------- 7. Cards -------------------------------------------- */
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 30px 28px;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
    height: 100%;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.card h3 { margin-bottom: .5rem; }
.card p { margin-bottom: 0; font-size: .98rem; }

.card-icon {
    width: 52px; height: 52px; border-radius: var(--radius);
    display: grid; place-items: center; margin-bottom: 1.1rem;
    background: var(--navy-100); color: var(--navy-700);
}
.card-icon svg { width: 26px; height: 26px; stroke-width: 1.7; }
.card-accent .card-icon { background: var(--accent-soft); color: var(--accent-dark); }

.card-link { margin-top: 1.1rem; display: inline-flex; font-size: .93rem; }

/* Numbered process steps */
.steps { counter-reset: step; }
.step {
    position: relative; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 30px 28px 28px;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step::before {
    counter-increment: step; content: counter(step, decimal-leading-zero);
    display: block; font-size: 1.05rem; font-weight: 800; color: var(--accent-dark);
    margin-bottom: .75rem; letter-spacing: .04em;
}
.step h3 { font-size: 1.1rem; }
.step p { font-size: .95rem; margin-bottom: 0; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.stat {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 28px 24px; text-align: center;
}
.stat strong { display: block; font-size: clamp(2rem, 1.4rem + 1.8vw, 2.7rem); font-weight: 800; color: var(--navy-800); line-height: 1.1; }
.stat span { font-size: .92rem; color: var(--muted); }

/* Split media block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; }
.split-reverse .split-media { order: 2; }

.check-list { display: grid; gap: .85rem; margin: 1.5rem 0; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; font-size: .99rem; }
.check-list li::before {
    content: '✓'; flex: 0 0 22px; height: 22px; margin-top: 3px;
    display: grid; place-items: center; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent-dark);
    font-size: .74rem; font-weight: 800;
}

/* ---------- 8. Products ----------------------------------------- */
.product-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    height: 100%;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.product-media { position: relative; aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.product-body p { font-size: .95rem; flex: 1; }
/* Makhana is quoted, not priced on the page — this is the line that
   sits where a price would otherwise go. */
.product-tagline {
    font-size: .84rem; font-weight: 700; color: var(--navy-700);
    letter-spacing: .02em; margin: .5rem 0 1.1rem;
    padding-top: .9rem; border-top: 1px solid var(--line);
}
.badge {
    position: absolute; top: 14px; left: 14px; z-index: 1;
    background: var(--accent); color: var(--navy-900);
    font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    padding: .35rem .75rem; border-radius: var(--radius-pill);
}

/* ---------- 9. Blog --------------------------------------------- */
.post-card {
    display: flex; flex-direction: column; overflow: hidden; height: 100%;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.04); }
.post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: .8rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .6rem; }
.post-body h3 { font-size: 1.16rem; margin-bottom: .5rem; }
.post-body h3 a { color: var(--ink); }
.post-body h3 a:hover { color: var(--navy-600); }
.post-body p { font-size: .95rem; flex: 1; }

/* Article */
.article { max-width: 760px; margin-inline: auto; }
.article-header { text-align: center; margin-bottom: 2.5rem; }
.article-hero img { border-radius: var(--radius-lg); margin-bottom: 2.5rem; box-shadow: var(--shadow-md); }
.article-body { font-size: 1.08rem; }
.article-body h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.article-body p { margin-bottom: 1.3em; }
.article-body strong { color: var(--ink); }

.tag {
    display: inline-block; background: var(--navy-100); color: var(--navy-700);
    font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: .3rem .7rem; border-radius: var(--radius-pill);
}

/* ---------- 8b. Technology stack -------------------------------- */
.stack-grid {
    display: grid; gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
}

.stack-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 26px 24px; height: 100%;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.stack-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

.stack-head { display: flex; align-items: center; gap: 14px; margin-bottom: 1.1rem; }
.stack-head .card-icon { width: 42px; height: 42px; margin: 0; flex: 0 0 42px; }
.stack-head .card-icon svg { width: 21px; height: 21px; }
.stack-head h3 { margin: 0; font-size: 1.04rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-block;
    padding: .34rem .72rem;
    font-size: .82rem; font-weight: 600; line-height: 1.4;
    color: var(--navy-700); background: var(--bg-soft);
    border: 1px solid var(--line); border-radius: var(--radius-pill);
}
.stack-card:hover .chip { border-color: #D8E2F0; }

/* ---------- 9b. Careers / job listings -------------------------- */
.job-list { display: grid; gap: 20px; }

.job-card {
    display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 28px;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.job-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.job-card h3 { margin: .6rem 0 .45rem; }
.job-card p { font-size: .97rem; margin-bottom: .6rem; }
.job-req { font-size: .92rem; color: var(--muted); }
.job-req strong { color: var(--ink); }

.job-meta {
    display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
    margin-top: 1rem; font-size: .88rem; font-weight: 600; color: var(--navy-700);
}
.job-meta li { display: inline-flex; align-items: center; gap: .4rem; }
.job-meta svg { width: 17px; height: 17px; flex: 0 0 17px; color: var(--accent-dark); }

.job-action { display: flex; }

/* Candidate / employer switch on the application form */
.type-switch {
    display: flex; flex-wrap: wrap; gap: 12px;
    border: 0; padding: 0; margin: 0 0 1.75rem;
}
.type-switch legend {
    font-size: .88rem; font-weight: 700; color: var(--ink);
    padding: 0; margin-bottom: .6rem; width: 100%;
}
.type-switch label {
    flex: 1 1 180px; cursor: pointer;
    display: flex; align-items: center; gap: .6rem;
    padding: .85rem 1.1rem;
    border: 1.5px solid var(--line); border-radius: var(--radius);
    font-size: .95rem; font-weight: 600; color: var(--ink);
    transition: border-color .2s var(--ease), background .2s var(--ease);
}
.type-switch label:hover { border-color: var(--navy-600); }
.type-switch input { accent-color: var(--navy-700); width: 18px; height: 18px; }
.type-switch label:has(input:checked) {
    border-color: var(--accent); background: var(--accent-soft);
}

/* Fields that belong to only one audience — JS adds .is-employer to the form */
.employer-only { display: none; }
form.is-employer .employer-only { display: revert; }
form.is-employer .form-field.employer-only { display: flex; }
form.is-employer .candidate-only { display: none; }
form.is-employer .form-field.candidate-only { display: none; }

/* ---------- 10. Page hero (inner pages) ------------------------- */
.page-hero {
    background:
        radial-gradient(700px 380px at 88% 0%, rgba(245,165,36,.2), transparent 62%),
        linear-gradient(140deg, var(--navy-900), var(--navy-700));
    color: #fff;
    padding: clamp(52px, 6vw, 88px) 0 clamp(48px, 6vw, 80px);
}
.page-hero h1 { color: #fff; margin-bottom: .5rem; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 62ch; margin-bottom: 0; }
.page-hero .eyebrow { color: var(--accent); }
.page-hero .eyebrow::before { background: var(--accent); }

.breadcrumbs { font-size: .86rem; margin-bottom: 1.25rem; color: rgba(255,255,255,.6); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 0; }
.breadcrumbs a { color: rgba(255,255,255,.78); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs li + li::before { content: '/'; margin-right: .45rem; color: rgba(255,255,255,.35); }

/* ---------- 11. Forms ------------------------------------------- */
.form-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: .4rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .88rem; font-weight: 700; color: var(--ink); }
.form-field .req { color: var(--accent-dark); }

.form-field input,
.form-field select,
.form-field textarea {
    font-family: inherit; font-size: .98rem; color: var(--ink);
    padding: .82rem 1rem;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: #fff;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
    width: 100%;
}
.form-field textarea { resize: vertical; min-height: 148px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none; border-color: var(--navy-600);
    box-shadow: 0 0 0 4px rgba(27, 75, 128, .12);
}
.form-field .error { font-size: .84rem; color: #C0392B; font-weight: 600; }
.form-field.has-error input,
.form-field.has-error textarea { border-color: #E0796B; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-note { font-size: .86rem; color: var(--muted); margin-top: 1rem; }

.alert { border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; font-size: .97rem; }
.alert-success { background: #E9F7EF; border: 1px solid #A9DFBF; color: #1D6F42; }
.alert-error   { background: #FDEDEC; border: 1px solid #F5B7B1; color: #A93226; }

/* Contact info tiles */
.contact-tile {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 20px 0; border-bottom: 1px solid var(--line);
}
.contact-tile:last-child { border-bottom: 0; }
.contact-tile .card-icon { margin-bottom: 0; flex: 0 0 52px; }
.contact-tile h3 { font-size: 1rem; margin-bottom: .2rem; }
.contact-tile p { margin-bottom: 0; font-size: .96rem; }

/* ---------- 12. CTA band + footer ------------------------------- */
.cta-band {
    background:
        radial-gradient(600px 320px at 15% 20%, rgba(23,162,168,.28), transparent 62%),
        linear-gradient(120deg, var(--navy-800), var(--navy-700));
    color: #fff; padding: clamp(48px, 6vw, 80px) 0;
}
.cta-inner { display: grid; grid-template-columns: 1.4fr .9fr; gap: 36px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .5rem; }
.cta-band p { color: rgba(255,255,255,.78); margin-bottom: 0; max-width: 56ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }

.site-footer {
    position: relative;
    background: linear-gradient(180deg, var(--shell-light), var(--shell));
    color: rgba(255,255,255,.78);
    padding: clamp(48px, 6vw, 76px) 0 28px; font-size: .95rem;
}
/* Thin brand rule so the footer is bookended like the header */
.site-footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, #0078D8 45%, var(--teal) 100%);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer h3 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: var(--accent); }
.footer-col ul { display: grid; gap: .6rem; }
.footer-logo {
    position: relative; display: inline-flex; align-items: center;
    padding: 0; margin-bottom: 1.3rem;
    background: none; border: 0; box-shadow: none;
    transition: transform .25s var(--ease);
}
.footer-logo:hover { transform: translateY(-1px); }
.footer-brand img {
    height: 58px; width: auto; margin: 0;
    filter: none;
}
.footer-brand p { font-size: .93rem; max-width: 38ch; }
.footer-contact address { font-style: normal; margin-bottom: .9rem; }

.social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.social a {
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255,255,255,.08); color: #fff;
    font-weight: 700; font-size: .9rem; text-transform: lowercase;
    transition: background .2s var(--ease), transform .2s var(--ease);
}
.social a:hover { background: var(--accent); color: var(--navy-900); transform: translateY(-2px); }

.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
    margin-top: 3rem; padding-top: 1.6rem;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: .86rem;
}
.footer-bottom p { margin: 0; }
.footer-meta { color: rgba(255,255,255,.45); }

/* ---------- 13. Back to top ------------------------------------- */
.to-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 90;
    width: 46px; height: 46px; border-radius: 50%;
    border: 0; cursor: pointer;
    background: var(--navy-800); color: #fff; font-size: 1.05rem;
    box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent); color: var(--navy-900); }

/* ---------- 14. Reveal animation --------------------------------
   Only hidden when JavaScript is running, so content is always
   visible to crawlers and to users with JS disabled.              */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 15. Responsive -------------------------------------- */
@media (max-width: 992px) {
    .hero-grid, .split, .cta-inner { grid-template-columns: 1fr; }
    .split-reverse .split-media { order: 0; }
    .cta-actions { justify-content: flex-start; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 860px) {
    :root { --header-h: 76px; }
    .nav-toggle { display: flex; }
    .brand img { height: 42px; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: linear-gradient(180deg, var(--shell-light), var(--shell)); border-bottom: 1px solid rgba(255,255,255,.14);
        box-shadow: 0 18px 40px rgba(3,8,18,.55);
        padding: 12px 24px 24px;
        max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
        transform: translateY(-14px); opacity: 0; visibility: hidden;
        transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
    }
    .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
    .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav > ul li { border-bottom: 1px solid rgba(255,255,255,.1); }
    .main-nav > ul a { display: block; padding: .95rem 0; font-size: 1.02rem; }
    .main-nav a::after { display: none; }
    .nav-cta { margin-top: 1.1rem; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .footer-brand img { height: 50px; }
    .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-trust { gap: 1.25rem 1.75rem; }
    .job-card { grid-template-columns: 1fr; }
    .job-action .btn { width: 100%; }
    .btn { width: 100%; }
    .hero-actions .btn, .cta-actions .btn { width: auto; flex: 1 1 200px; }
}

/* ---------- 16. Motion / print ---------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

@media print {
    .site-header, .cta-band, .to-top, .nav-toggle { display: none !important; }
    body { color: #000; }
}
