/* ==========================================================================
   Kavana Capital Limited — Brand Stylesheet
   Palette: Navy #001E55 (dominant) · Gold #DFA82C (accent) · White #FFFFFF
   No gradients. Mobile-first. Accessible.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
    /* Brand */
    --navy: #001E55;
    --gold: #DFA82C;
    --white: #FFFFFF;
    --deep-navy: #00143D;
    --light-navy: #123B78;
    --light-gold: #F2D27A;
    --off-white: #F7F9FC;
    --dark-text: #1B2430;

    /* Semantic */
    --bg: var(--off-white);
    --bg-alt: var(--white);
    --bg-dark: var(--deep-navy);
    --text: var(--dark-text);
    --text-muted: #5A6472;
    --text-light: #C7D2E4;
    --heading: var(--navy);
    --accent: var(--gold);
    --accent-hover: #C9951E;
    --border: #E3E8F0;
    --border-strong: #C9D2E0;
    --focus: var(--gold);

    /* Typography */
    --font-head: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;
    --space-9: 6rem;

    /* Layout */
    --container: 1200px;
    --container-narrow: 760px;
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0, 20, 61, 0.06), 0 1px 3px rgba(0, 20, 61, 0.08);
    --shadow: 0 4px 12px rgba(0, 20, 61, 0.08), 0 2px 6px rgba(0, 20, 61, 0.06);
    --shadow-lg: 0 18px 40px rgba(0, 20, 61, 0.14), 0 6px 14px rgba(0, 20, 61, 0.08);
    --header-h: 76px;
    --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* Reserve space so floating action buttons never cover footer/form content */
    padding-bottom: 80px;
    -webkit-tap-highlight-color: transparent;
}

/* Remove 300ms tap delay on touch devices */
a, button, [role="button"], .btn, .filter-chip, .nav-link, .cat-nav-link {
    touch-action: manipulation;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--light-navy); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); line-height: 1.2; font-weight: 700; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea, button { font-family: inherit; }

/* Accessibility */
:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
    border-radius: 4px;
}
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 1000;
    background: var(--navy); color: var(--white); padding: var(--space-3) var(--space-5);
    border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: var(--white); }

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--space-5);
}
.narrow { max-width: var(--container-narrow); }
.main { min-height: 60vh; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    text-align: center;
    transition: background var(--transition), color var(--transition),
                border-color var(--transition), transform var(--transition),
                box-shadow var(--transition);
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 0.9rem 1.8rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-gold {
    background: var(--gold);
    color: var(--deep-navy);
    border-color: var(--gold);
    box-shadow: 0 2px 6px rgba(223, 168, 44, 0.3);
}
.btn-gold:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--deep-navy); }

.btn-navy {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}
.btn-navy:hover { background: var(--light-navy); border-color: var(--light-navy); color: var(--white); }

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.55);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); color: var(--white); }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: var(--space-5);
}
.brand {
    display: inline-flex;
    align-items: center;
    color: var(--navy);
    flex-shrink: 0;
}
.brand:hover { color: var(--navy); }
/* Logo fills the full header height; width is unconstrained (logo is wide
   and already contains the organisation name). */
.brand-logo {
    height: 100%;
    width: auto;
    max-width: none;
    display: block;
    object-fit: contain;
}
/* Header logo sits within the header height with a little vertical breathing room. */
.site-header .brand { height: calc(var(--header-h) - 22px); }

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}
.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}
.nav-link {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text);
    padding: var(--space-2) 0;
    position: relative;
    transition: color var(--transition);
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}
.nav-link:hover { color: var(--navy); }
.nav-link:hover::after { width: 100%; }
.nav-link.is-active { color: var(--navy); }
.nav-link.is-active::after { width: 100%; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    padding: 10px;
    border-radius: var(--radius-sm);
}
.nav-toggle-bar {
    display: block;
    width: 24px; height: 2.5px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: var(--space-9) 0; }
.section-tight { padding: var(--space-6) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-navy { background: var(--deep-navy); color: var(--text-light); }
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--white); }
.section-center { text-align: center; }

.section-head { max-width: 720px; margin-bottom: var(--space-7); }
.section-head-light .section-eyebrow { color: var(--gold); }
.section-head-light .section-sub { color: var(--text-light); }
.section-eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-3);
}
.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    margin-bottom: var(--space-3);
}
.section-sub {
    font-size: 1.08rem;
    color: var(--text-muted);
    max-width: 60ch;
}
.section-foot { margin-top: var(--space-7); text-align: center; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-3);
}
.eyebrow-light { color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
    background: var(--navy);
    color: var(--white);
    padding: var(--space-9) 0 0;
    position: relative;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/* Solid navy overlay for legibility — no gradient */
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 20, 61, 0.82);
}
.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: var(--space-8);
    align-items: center;
    padding-bottom: var(--space-8);
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-5);
}
.hero-lead {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 56ch;
    margin-bottom: var(--space-6);
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.hero-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    border-left: 4px solid var(--gold);
}
.hero-card-top { margin-bottom: var(--space-5); }
.hero-card-label {
    display: block;
    font-family: var(--font-head);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}
.hero-card-value {
    font-family: var(--font-head);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}
.hero-card-list { display: flex; flex-direction: column; gap: var(--space-3); }
.hero-card-list li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 0.98rem;
    color: var(--white);
}
.check {
    width: 18px; height: 18px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--gold);
    position: relative;
}
.check::after {
    content: "";
    position: absolute;
    left: 5px; top: 2px;
    width: 5px; height: 9px;
    border: solid var(--deep-navy);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.hero-strip {
    background: var(--deep-navy);
    border-top: 3px solid var(--gold);
}
.hero-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding-block: var(--space-5);
    flex-wrap: wrap;
}
.hero-strip-item { display: flex; flex-direction: column; gap: 2px; }
.hero-strip-item strong {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gold);
}
.hero-strip-item span { font-size: 0.85rem; color: var(--text-light); }
.hero-strip-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.18); }

/* ---------- Two column ---------- */
.two-col {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: var(--space-8);
    align-items: start;
}
.two-col-text p { margin-bottom: var(--space-4); color: var(--text); }
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--navy);
    margin-top: var(--space-2);
}
.link-arrow span { transition: transform var(--transition); color: var(--gold); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Feature / value cards ---------- */
.two-col-aside { display: flex; flex-direction: column; gap: var(--space-4); }
.story-media {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    height: 240px;
}
.story-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.feature-card, .value-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.feature-card:hover, .value-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--light-gold);
}
.feature-icon, .value-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    background: var(--off-white);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: var(--space-4);
    border: 1px solid var(--border);
}
.feature-card h3, .value-card h3 { font-size: 1.15rem; margin-bottom: var(--space-2); }
.feature-card p, .value-card p { font-size: 0.95rem; color: var(--text-muted); }

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
}

/* ---------- Category cards (home) ---------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}
.cat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 0;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.cat-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-card-media {
    height: 180px;
    overflow: hidden;
}
.cat-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.cat-card:hover .cat-card-media img { transform: scale(1.05); }
.cat-card-head { padding: var(--space-6) var(--space-6) 0; }
.cat-tag {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--light-gold);
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: var(--space-4);
    align-self: flex-start;
}
.cat-title { font-size: 1.4rem; margin-bottom: var(--space-3); }
.cat-summary { color: var(--text-muted); margin-bottom: var(--space-5); font-size: 0.98rem; }
.cat-list { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-5); padding: 0 var(--space-6); }
.cat-list li { display: flex; align-items: center; gap: var(--space-3); font-size: 0.95rem; }
.cat-bullet {
    width: 8px; height: 8px;
    flex-shrink: 0;
    background: var(--gold);
    border-radius: 2px;
    transform: rotate(45deg);
}
.cat-svc-title { font-weight: 600; color: var(--text); }
.cat-card .link-arrow { margin-top: auto; padding: 0 var(--space-6) var(--space-6); }

/* ---------- Service cards ---------- */
.svc-section-head {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: var(--space-7);
    align-items: center;
    margin-bottom: var(--space-7);
}
.svc-section-media {
    border-radius: var(--radius);
    overflow: hidden;
    height: 240px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.svc-section-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.svc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
}
.svc-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-5);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
}
.section-alt .svc-card { background: var(--off-white); }
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--light-gold); }
.svc-card-top { margin-bottom: var(--space-3); }
.svc-num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--gold);
    display: block;
    margin-bottom: var(--space-2);
}
.svc-card-title { font-size: 1.1rem; }
.svc-card-desc { font-size: 0.92rem; color: var(--text-muted); }

/* ---------- Category quick nav ---------- */
.cat-nav {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}
.cat-nav-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--navy);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.cat-nav-link:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--navy); }
.cat-nav-icon { display: inline-flex; }

/* ---------- Process ---------- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
}
.process-step {
    border-top: 3px solid var(--gold);
    padding-top: var(--space-5);
}
.process-num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--gold);
    display: block;
    margin-bottom: var(--space-3);
}
.process-step h3 { color: var(--white); font-size: 1.15rem; margin-bottom: var(--space-2); }
.process-step p { color: var(--text-light); font-size: 0.92rem; }

/* ---------- Projects ---------- */
.filter-bar {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-bottom: var(--space-7);
}
.filter-chip {
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--border-strong);
    border-radius: 100px;
    background: var(--white);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text);
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.filter-chip:hover { border-color: var(--gold); color: var(--navy); }
.filter-chip.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.proj-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}
.proj-grid-full { grid-template-columns: repeat(3, 1fr); }
.proj-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.proj-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.proj-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-bottom: 3px solid var(--gold);
}
.proj-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.proj-card:hover .proj-thumb img { transform: scale(1.05); }
.proj-thumb-cat {
    position: absolute;
    bottom: var(--space-4);
    left: var(--space-4);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(0,20,61,0.78);
    padding: 4px 10px;
    border-radius: 4px;
}
.proj-thumb-status {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 100px;
}
.status-completed { background: var(--gold); color: var(--deep-navy); }
.status-ongoing { background: var(--white); color: var(--navy); }
.proj-body { padding: var(--space-5); flex: 1; }
.proj-title { font-size: 1.15rem; margin-bottom: var(--space-2); }
.proj-meta { font-size: 0.85rem; color: var(--gold); font-weight: 600; margin-bottom: var(--space-3); }
.proj-scope { font-size: 0.92rem; color: var(--text-muted); }
.empty-state { text-align: center; color: var(--text-muted); padding: var(--space-7); }

/* ---------- Page hero ---------- */
.page-hero {
    background: var(--navy);
    color: var(--white);
    padding: var(--space-8) 0;
    border-bottom: 3px solid var(--gold);
}
.page-hero-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--space-4);
    max-width: 18ch;
}
.page-hero-lead {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 62ch;
}

/* ---------- Stats / leader ---------- */
.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
}
.stat-row { display: flex; align-items: baseline; gap: var(--space-4); }
.stat-num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 2rem;
    color: var(--navy);
    min-width: 60px;
}
.stat-label { font-size: 0.95rem; color: var(--text-muted); }
.stat-divider { height: 1px; background: var(--border); margin: var(--space-4) 0; }

.leader-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-6);
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    max-width: 820px;
}
.leader-media {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 3px solid var(--gold);
}
.leader-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.leader-avatar {
    position: absolute;
    bottom: -18px;
    right: -18px;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--navy);
    display: flex; align-items: center; justify-content: center;
    border: 3px solid var(--gold);
    box-shadow: var(--shadow);
}
.leader-initials {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--gold);
}
.leader-name { font-size: 1.3rem; margin-bottom: 2px; }
.leader-title { color: var(--gold); font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; margin-bottom: var(--space-3); }
.leader-bio { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- CTA band ---------- */
.cta-band {
    background: var(--gold);
    color: var(--deep-navy);
    padding: var(--space-8) 0;
}
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    flex-wrap: wrap;
}
.cta-title { color: var(--deep-navy); font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: var(--space-2); }
.cta-sub { color: var(--deep-navy); font-size: 1.05rem; max-width: 50ch; opacity: 0.85; }
.cta-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.cta-band .btn-gold { background: var(--deep-navy); color: var(--white); border-color: var(--deep-navy); }
.cta-band .btn-gold:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.cta-band .btn-outline-light { color: var(--deep-navy); border-color: var(--deep-navy); }
.cta-band .btn-outline-light:hover { background: var(--deep-navy); color: var(--white); }

/* ---------- Forms ---------- */
.form-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.4fr;
    gap: var(--space-7);
    align-items: start;
}
.form-aside {
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius);
    padding: var(--space-6);
    border-left: 4px solid var(--gold);
    position: sticky;
    top: calc(var(--header-h) + var(--space-5));
    overflow: hidden;
}
.form-aside-media {
    margin: calc(var(--space-6) * -1) calc(var(--space-6) * -1) var(--space-5);
    height: 180px;
    overflow: hidden;
}
.form-aside-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.form-aside-title { color: var(--white); font-size: 1.25rem; margin-bottom: var(--space-5); }
.form-aside-list { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-6); }
.form-aside-list li { display: flex; align-items: flex-start; gap: var(--space-3); font-size: 0.95rem; color: var(--text-light); }
.form-aside-contact { border-top: 1px solid rgba(255,255,255,0.16); padding-top: var(--space-5); }
.form-aside-label { font-family: var(--font-head); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--space-3); }
.contact-line { display: block; color: var(--white); font-weight: 600; padding: var(--space-2) 0; }
.contact-line:hover { color: var(--light-gold); }

.form-main {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
}
.form { display: flex; flex-direction: column; gap: var(--space-5); }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
}
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy);
}
.req { color: var(--gold); }
.input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    font-size: 1rem;
    color: var(--text);
    background: var(--off-white);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.input::placeholder { color: #9aa3b2; }
/* iOS Safari select consistency */
select.input { -webkit-appearance: none; appearance: none; }
.input:hover { border-color: var(--light-navy); }
.input:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(223,168,44,0.2);
}
.input.is-invalid { border-color: #C0392B; background: #FDF2F0; }
.input-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23001E55' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.4rem; }
textarea.input { resize: vertical; min-height: 120px; }
.field-error {
    color: #C0392B;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 2px;
}
.form-actions { margin-top: var(--space-2); }
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: var(--space-3); text-align: center; }

/* ---------- Alert ---------- */
.alert {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
    background: var(--off-white);
    border: 1px solid var(--light-gold);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: var(--space-5);
}
.alert-icon { flex-shrink: 0; }
.alert-title { font-size: 1.15rem; color: var(--navy); margin-bottom: var(--space-2); }
.alert-text { color: var(--text-muted); margin-bottom: var(--space-3); }

/* ---------- Contact list ---------- */
.contact-list { display: flex; flex-direction: column; gap: var(--space-5); }
.contact-list li { display: flex; gap: var(--space-4); align-items: flex-start; }
.contact-icon { flex-shrink: 0; width: 40px; height: 40px; background: var(--off-white); border: 1px solid var(--border); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.contact-label { font-family: var(--font-head); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.contact-value { display: block; font-weight: 600; color: var(--white); font-size: 1.02rem; }
.contact-value:hover { color: var(--light-gold); }
.contact-value-sub { font-size: 0.9rem; font-weight: 500; color: var(--text-light); margin-top: 2px; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--deep-navy);
    color: var(--text-light);
    padding-top: var(--space-8);
    margin-top: 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: var(--space-6);
    padding-bottom: var(--space-7);
}
.footer-brand .brand-footer { height: 56px; }
.footer-tagline { margin-top: var(--space-4); font-size: 0.92rem; color: var(--text-light); max-width: 36ch; }
.footer-heading {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}
.footer-links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-links a { color: var(--text-light); font-size: 0.92rem; }
.footer-links a:hover { color: var(--gold); }
.footer-contact { display: flex; flex-direction: column; gap: var(--space-4); }
.footer-contact li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 0.92rem; color: var(--text-light); }
.footer-contact a { color: var(--text-light); }
.footer-contact a:hover { color: var(--gold); }
.footer-icon { flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-block: var(--space-5);
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-light);
}
.footer-director { color: var(--gold); font-weight: 600; }

/* ---------- Floating actions ---------- */
.floating-actions {
    position: fixed;
    right: var(--space-5);
    bottom: var(--space-5);
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.float-btn {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
}
.float-btn:hover { transform: scale(1.08); color: var(--white); }
.float-whatsapp { background: #25D366; }
.float-whatsapp:hover { background: #1FB855; }
.float-call { background: var(--navy); border: 2px solid var(--gold); }
.float-call:hover { background: var(--light-navy); }
.float-label {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--deep-navy);
    color: var(--white);
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}
.float-btn:hover .float-label { opacity: 1; }

/* ==========================================================================
   Responsive — mobile-first, progressive enhancement
   Breakpoints: 960 (tablet) · 820 (mobile nav) · 640 (large phone)
                · 480 (phone) · 400 (small phone) · 360 (tiny phone)
   ========================================================================== */

/* ---- Tablet (≤ 960px) ---- */
@media (max-width: 960px) {
    :root { --space-9: 4.5rem; --space-8: 3rem; }
    .nav, .nav-list { gap: var(--space-4); }
    .nav-cta { display: none; }
    .hero-inner { grid-template-columns: 1fr; gap: var(--space-6); }
    .hero-card { max-width: 460px; }
    .two-col { grid-template-columns: 1fr; gap: var(--space-6); }
    .form-layout { grid-template-columns: 1fr; }
    .form-aside { position: static; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .svc-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .proj-grid, .proj-grid-full { grid-template-columns: repeat(2, 1fr); }
    .cat-grid { grid-template-columns: 1fr; }
    .svc-section-head { grid-template-columns: 1fr; gap: var(--space-5); }
    .svc-section-media { height: 200px; order: -1; }
    .leader-card { grid-template-columns: 1fr; text-align: center; justify-items: center; max-width: 560px; }
    .leader-media { width: 180px; height: 180px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
    .footer-brand { grid-column: 1 / -1; }
}

/* ---- Mobile navigation (≤ 820px) ---- */
@media (max-width: 820px) {
    :root { --header-h: 64px; }
    .nav-toggle { display: flex; }
    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-5);
        padding: var(--space-5) var(--space-5) var(--space-7);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: transform var(--transition), opacity var(--transition);
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }
    .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .nav-list li { border-bottom: 1px solid var(--border); }
    /* 44px minimum touch target for nav links */
    .nav-link { display: block; padding: 13px 4px; font-size: 1.05rem; min-height: 44px; display: flex; align-items: center; }
    .nav-link::after { display: none; }
    .nav-link.is-active { color: var(--gold); }
    .nav-cta { display: inline-flex; margin-top: var(--space-4); min-height: 48px; }

    /* Logo: cap width so it never overflows alongside the hamburger toggle */
    .site-header .brand { height: calc(var(--header-h) - 22px); max-width: 60vw; }
    .brand-logo { max-width: 60vw; height: auto; }
}

/* ---- Large phone (≤ 640px) ---- */
@media (max-width: 640px) {
    :root { --space-9: 4rem; --space-8: 2.5rem; --space-7: 2.5rem; }
    .container { padding-inline: var(--space-4); }

    /* Hero: compact on mobile */
    .hero { padding-top: var(--space-7); }
    .hero-title { font-size: 1.85rem; }
    .hero-lead { font-size: 1rem; }
    .hero-card { padding: var(--space-5); }
    .hero-card-value { font-size: 2.2rem; }

    /* Hero strip: 2×2 grid instead of vertical stack — saves scroll debt */
    .hero-strip-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-4) var(--space-5);
        padding-block: var(--space-5);
    }
    .hero-strip-divider { display: none; }
    .hero-strip-item { flex-direction: row; align-items: baseline; gap: var(--space-3); }
    .hero-strip-item strong { font-size: 1.1rem; }

    /* Buttons: full-width on mobile for easy touch */
    .hero-actions { flex-direction: column; align-items: stretch; gap: var(--space-3); }
    .hero-actions .btn { width: 100%; }

    /* Compact grids stay 2-col on phones — reduces scrolling significantly */
    .values-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
    .svc-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
    .process-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
    .proj-grid, .proj-grid-full { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }

    /* Project thumb: shorter in 2-col mobile layout */
    .proj-thumb { height: 130px; }
    .proj-thumb-cat { font-size: 0.62rem; padding: 3px 7px; bottom: var(--space-3); left: var(--space-3); }
    .proj-thumb-status { font-size: 0.6rem; padding: 2px 7px; top: var(--space-3); right: var(--space-3); }
    .proj-body { padding: var(--space-4); }
    .proj-title { font-size: 1rem; }
    .proj-scope { font-size: 0.85rem; -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }

    /* Value cards: compact on mobile */
    .value-card { padding: var(--space-4); }
    .value-card h3 { font-size: 1.05rem; }
    .value-card p { font-size: 0.88rem; }
    .value-icon { width: 40px; height: 40px; }

    /* Service cards: compact on mobile */
    .svc-card { padding: var(--space-4); }
    .svc-card-title { font-size: 1rem; }
    .svc-card-desc { font-size: 0.85rem; }

    /* Process steps: compact */
    .process-step { padding-top: var(--space-4); }
    .process-num { font-size: 1.4rem; }
    .process-step h3 { font-size: 1rem; }
    .process-step p { font-size: 0.85rem; }

    /* Category cards: shorter media on mobile */
    .cat-card-media { height: 160px; }
    .cat-card-head { padding: var(--space-5) var(--space-5) 0; }
    .cat-list { padding: 0 var(--space-5); }
    .cat-card .link-arrow { padding: 0 var(--space-5) var(--space-5); }

    /* Story media: shorter on mobile */
    .story-media { height: 200px; }

    /* Services section media: shorter on mobile */
    .svc-section-media { height: 180px; }

    /* Form aside media: shorter on mobile */
    .form-aside-media { height: 160px; }

    /* Form: single column rows on mobile */
    .form-row { grid-template-columns: 1fr; gap: var(--space-4); }

    /* Footer: keep 2-col for link columns, brand spans full width */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: var(--space-2); }

    /* CTA: stack vertically on mobile */
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .cta-actions { width: 100%; }
    .cta-actions .btn { width: 100%; }

    /* Floating actions: slightly smaller, positioned to not cover content */
    .floating-actions { right: var(--space-4); bottom: var(--space-4); }
    .float-btn { width: 50px; height: 50px; }
    .float-label { display: none; }

    /* Category nav links: full width, good touch target */
    .cat-nav-link { width: 100%; justify-content: flex-start; min-height: 48px; }

    /* Filter chips: 44px touch target minimum */
    .filter-bar { gap: var(--space-2); }
    .filter-chip { font-size: 0.85rem; padding: 0.6rem 1rem; min-height: 44px; display: inline-flex; align-items: center; }

    .page-hero-title { max-width: none; }
    .page-hero { padding: var(--space-7) 0; }

    /* Section heads: tighter on mobile */
    .section-head { margin-bottom: var(--space-6); }
    .section-title { font-size: 1.5rem; }
    .section-sub { font-size: 1rem; }

    /* Leader card: compact on mobile */
    .leader-card { padding: var(--space-5); }
    .leader-name { font-size: 1.15rem; }
}

/* ---- Phone (≤ 480px) ---- */
@media (max-width: 480px) {
    :root { --space-9: 3.5rem; --space-8: 2rem; --space-7: 2rem; }
    .container { padding-inline: var(--space-4); }

    /* Logo: tighter cap on very small screens */
    .site-header .brand { max-width: 52vw; }
    .brand-logo { max-width: 52vw; }

    /* Hero: further compact */
    .hero-title { font-size: 1.65rem; }
    .hero-card { padding: var(--space-4); }
    .hero-card-value { font-size: 2rem; }
    .hero-card-list li { font-size: 0.9rem; }

    /* Form main: reduce padding on small screens */
    .form-main { padding: var(--space-5); }
    .form-aside { padding: var(--space-5); }
    .form-aside-media { margin: calc(var(--space-5) * -1) calc(var(--space-5) * -1) var(--space-4); }

    /* Input touch targets: minimum 44px height */
    .input { padding: 0.8rem 0.9rem; min-height: 48px; }
    textarea.input { min-height: 120px; }

    /* Stat card: compact */
    .stat-card { padding: var(--space-5); }
    .stat-num { font-size: 1.6rem; min-width: 48px; }
    .stat-label { font-size: 0.88rem; }

    /* Alert: compact */
    .alert { padding: var(--space-4); }
    .alert-title { font-size: 1.05rem; }
}

/* ---- Small phone (≤ 400px) — collapse all grids to 1-col ---- */
@media (max-width: 400px) {
    /* All card grids go single column on very narrow screens */
    .values-grid,
    .svc-grid,
    .process-grid,
    .proj-grid,
    .proj-grid-full { grid-template-columns: 1fr; }

    /* Project thumb: taller in 1-col for better visual presence */
    .proj-thumb { height: 180px; }
    .proj-thumb-cat { font-size: 0.68rem; padding: 4px 9px; }
    /* Show full scope text in 1-col layout */
    .proj-scope { -webkit-line-clamp: unset; display: block; overflow: visible; }

    /* Hero strip: back to vertical stack on very narrow */
    .hero-strip-inner { grid-template-columns: 1fr; gap: var(--space-3); }
    .hero-strip-item { flex-direction: row; }

    /* Footer: single column on very narrow */
    .footer-grid { grid-template-columns: 1fr; }

    /* Section titles: smaller on tiny screens */
    .section-title { font-size: 1.35rem; }
    .hero-title { font-size: 1.5rem; }
    .page-hero-title { font-size: 1.5rem; }
}

/* ---- Tiny phone (≤ 360px) ---- */
@media (max-width: 360px) {
    .hero-card-value { font-size: 1.8rem; }
    .container { padding-inline: var(--space-3); }
    .hero-strip-item strong { font-size: 1rem; }
    .filter-chip { font-size: 0.8rem; padding: 0.55rem 0.85rem; }
}


/* Print */
@media print {
    .site-header, .floating-actions, .cta-band, .nav-toggle { display: none; }
    .site-footer { background: #fff; color: #000; }
    body { background: #fff; padding-bottom: 0; }
}
