/* ==========================================================================
   Brooke Veritas & Associates CPAK — Stylesheet
   Brand palette only. No gradients. Mobile-first. Accessible.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
    --navy: #05193E;
    --navy-90: rgba(5, 25, 62, 0.90);
    --navy-80: rgba(5, 25, 62, 0.80);
    --gold: #B48E3C;
    --gold-light: #D9BE7C;
    --white: #FFFFFF;
    --gray: #F4F3EA;
    --gray-2: #ECEAE0;
    --ink: #05193E;
    --ink-soft: #2A3A5A;
    --muted: #5C6680;
    --line: #E2DFD2;
    --line-navy: rgba(180, 142, 60, 0.35);

    --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --container: 1180px;
    --gutter: 24px;
    --radius: 4px;
    --radius-lg: 8px;
    --shadow-sm: 0 1px 2px rgba(5, 25, 62, 0.06);
    --shadow: 0 6px 24px rgba(5, 25, 62, 0.08);
    --shadow-lg: 0 18px 50px rgba(5, 25, 62, 0.12);
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.18; margin: 0; letter-spacing: -0.01em; color: var(--navy); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Layout helpers ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.section { padding: 84px 0; }
.section-tinted { background: var(--gray); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head-light .section-eyebrow,
.section-head-light .section-title,
.section-head-light .section-lead { color: var(--white); }
.section-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}
.section-eyebrow-light { color: var(--gold-light); }
.section-title { font-size: clamp(28px, 4vw, 42px); }
.section-lead { font-size: 18px; color: var(--muted); margin-top: 14px; }
.section-foot { text-align: center; margin-top: 48px; }
.prose { font-size: 18px; color: var(--ink-soft); margin-bottom: 1.2em; }
.prose strong { color: var(--navy); font-weight: 600; }

/* ---------- Skip link ---------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--navy);
    color: var(--white);
    padding: 10px 18px;
    z-index: 1000;
    font-size: 14px;
    border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 14px 28px;
    border: 1.5px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all .22s var(--ease);
    text-align: center;
    line-height: 1.1;
}
.btn-gold { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-gold:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-navy-large { background: var(--navy); color: var(--white); border-color: var(--navy); padding: 18px 36px; font-size: 16px; }
.btn-navy-large:hover { background: var(--white); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.45); }
.btn-ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-submit { width: 100%; padding: 17px 28px; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 20px;
}

.brand { display: inline-flex; align-items: center; flex-shrink: 1; min-width: 0; color: var(--navy); }
.brand:hover { color: var(--navy); }

/* Logo fills the full navigation bar height; width is free (driven by aspect ratio)
   and scales down on narrow screens to stay responsive. */
.brand-logo {
    display: block;
    width: auto;
    height: auto;
    max-height: var(--header-h);
    max-width: 100%;
    object-fit: contain;
}

.primary-nav { display: flex; align-items: center; gap: 6px; }
.primary-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-soft);
    padding: 10px 14px;
    border-radius: var(--radius);
    position: relative;
}
.primary-nav a:hover { color: var(--navy); }
.primary-nav a.is-active { color: var(--navy); }
.primary-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 4px;
    height: 2px;
    background: var(--gold);
}
.nav-cta {
    background: var(--navy);
    color: var(--white) !important;
    padding: 11px 22px !important;
    margin-left: 10px;
    border: 1.5px solid var(--navy);
}
.nav-cta:hover { background: var(--gold) !important; border-color: var(--gold) !important; }
.nav-cta.is-active::after { display: none; }

/* External link in nav (Sacco Portal) — styled like the Book a Consultation CTA */
.nav-portal {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--navy);
    color: var(--white) !important;
    border: 1.5px solid var(--navy);
    margin-left: 6px;
}
.nav-portal:hover { background: var(--gold) !important; border-color: var(--gold) !important; color: var(--white) !important; }
.nav-portal.is-active::after { display: none; }
.nav-portal .ext-icon { color: var(--white); flex-shrink: 0; transition: transform .2s var(--ease); }
.nav-portal:hover .ext-icon { transform: translate(2px, -2px); }

/* Inline external indicator in footer links */
.ext-inline { font-size: 11px; color: var(--gold); margin-left: 4px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px;
}
.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--navy);
    transition: transform .25s var(--ease), opacity .25s 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); }

/* ---------- Flash toast (popup modal) ---------- */
.flash-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 320px;
    max-width: 420px;
    padding: 20px 22px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    border-left: 4px solid var(--gold);
    animation: flash-toast-in .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.flash-toast-error { border-left-color: #c53030; }
.flash-toast.is-hiding {
    animation: flash-toast-out .4s ease forwards;
}
@keyframes flash-toast-in {
    0% { opacity: 0; transform: translateX(100px) scale(0.95); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes flash-toast-out {
    0% { opacity: 1; transform: translateX(0) scale(1); }
    100% { opacity: 0; transform: translateX(100px) scale(0.95); }
}
.flash-toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--green-bg, #f0fff4);
    color: #2f855a;
}
.flash-toast-error .flash-toast-icon {
    background: #fff5f5;
    color: #c53030;
}
.flash-toast-body { flex: 1; min-width: 0; padding-top: 4px; }
.flash-toast-message {
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
    display: block;
}
.flash-toast-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
    padding: 2px 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity .2s ease;
}
.flash-toast-close:hover { opacity: 1; }
.flash-close:hover { opacity: 1; color: var(--white); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: var(--navy);
    color: var(--white);
    padding: 96px 0 88px;
    overflow: hidden;
    border-bottom: 3px solid var(--gold);
}
.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M60 0H0v60' fill='none' stroke='%23B48E3C' stroke-width='0.5' opacity='0.12'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    pointer-events: none;
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 56px;
    align-items: center;
}
.hero-content { min-width: 0; }
.hero-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 22px;
}
.hero-firm {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.08;
    color: var(--white);
    display: block;
}
.hero-tagline {
    font-family: var(--font-head);
    font-style: italic;
    font-size: clamp(20px, 3vw, 28px);
    color: var(--gold-light);
    margin: 22px 0 30px;
    letter-spacing: 0.02em;
}
.hero-pillars {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 38px;
}
.hero-pillar {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--white);
    padding: 8px 18px;
    border: 1px solid rgba(217, 190, 124, 0.5);
    border-radius: 2px;
}
.pillar-sep { color: var(--gold); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero media — framed photo on the navy hero */
.hero-media { position: relative; }
.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(217, 190, 124, 0.4);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    object-fit: cover;
}

/* ---------- Commitment ---------- */
.section-commitment { padding: 72px 0; }
.commitment { max-width: 820px; margin: 0 auto; text-align: center; }
.commitment .section-eyebrow { display: block; }
.commitment-quote {
    font-family: var(--font-head);
    font-style: italic;
    font-size: clamp(22px, 3.4vw, 34px);
    line-height: 1.4;
    color: var(--navy);
    margin: 8px 0 22px;
    padding: 0;
    border: none;
    position: relative;
}
.commitment-quote::before,
.commitment-quote::after {
    display: block;
    width: 48px; height: 2px;
    background: var(--gold);
    margin: 24px auto;
    content: "";
}
.commitment-mission { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 auto; }

/* ---------- Service cards ---------- */
.card-grid { display: grid; gap: 24px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.service-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--line-navy);
}
.service-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-bottom: 3px solid var(--gold);
    background: var(--gray);
}
.service-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s var(--ease);
}
.service-card:hover .service-card-media img { transform: scale(1.05); }
.service-card-body { padding: 26px 28px 30px; flex: 1; }
.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px; height: 50px;
    background: var(--gray);
    color: var(--navy);
    border-radius: var(--radius);
    margin-bottom: 18px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card-title { font-size: 20px; margin-bottom: 10px; }
.service-card-text { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.6; }

/* ---------- Why strip (home) ---------- */
.why-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.why-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    text-align: center;
    transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    color: var(--gold);
    margin-bottom: 16px;
}
.why-icon svg { width: 30px; height: 30px; }
.why-item-title { font-size: 17px; margin-bottom: 10px; }
.why-item-text { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ---------- Audience ---------- */
.section-audience { background: var(--navy); color: var(--white); }
.section-audience .section-title { color: var(--white); }
.audience-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 12px;
}
.audience-chip {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--white);
    padding: 12px 26px;
    border: 1px solid rgba(217, 190, 124, 0.45);
    border-radius: 2px;
    background: rgba(255,255,255,0.03);
}
.audience-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.audience-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px 22px;
    text-align: center;
    transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.audience-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.audience-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}
.audience-card-title { font-size: 17px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--gold); padding: 64px 0; }
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    flex-wrap: wrap;
}
.cta-title { font-size: clamp(24px, 3.4vw, 34px); color: var(--navy); max-width: 640px; }
.cta-lead { font-size: 17px; color: var(--navy-80); margin: 12px 0 0; max-width: 560px; }
.cta-action { flex-shrink: 0; }

/* ---------- Page header ---------- */
.page-header {
    background: var(--navy);
    color: var(--white);
    padding: 72px 0 64px;
    border-bottom: 3px solid var(--gold);
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M60 0H0v60' fill='none' stroke='%23B48E3C' stroke-width='0.5' opacity='0.12'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    pointer-events: none;
}
.page-header .container { position: relative; }
.page-title { font-size: clamp(30px, 5vw, 48px); color: var(--white); }
.page-subtitle { font-size: 18px; color: var(--gold-light); margin-top: 16px; max-width: 680px; }

/* ---------- Two column (about) ---------- */
.two-col {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 56px;
    align-items: start;
}
.two-col-main .section-eyebrow { display: block; margin-bottom: 14px; }
.two-col-main .section-title { margin-bottom: 22px; }
.two-col-aside { display: flex; flex-direction: column; gap: 24px; }
.aside-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    background: var(--gray);
}
.aside-photo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.credential-card {
    background: var(--gray);
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
}
.credential-mark { display: inline-flex; margin-bottom: 18px; }
.credential-title {
    font-family: var(--font-head);
    font-size: 30px;
    color: var(--gold);
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}
.credential-text { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 14px; }
.credential-note { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ---------- Specialist cards ---------- */
.specialist-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .28s var(--ease), box-shadow .28s var(--ease);
    display: flex;
    flex-direction: column;
}
.specialist-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.specialist-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--gray);
}
.specialist-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s var(--ease);
}
.specialist-card:hover .specialist-media img { transform: scale(1.05); }
.specialist-body { padding: 28px 28px 30px; flex: 1; }
.specialist-number {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 700;
    color: var(--gold);
    display: block;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}
.specialist-title { font-size: 20px; margin-bottom: 12px; }
.specialist-text { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.6; }

/* ---------- KRA band ---------- */
.kra-band {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 48px;
    align-items: center;
}
.kra-content .section-eyebrow { display: block; margin-bottom: 14px; }
.kra-content .section-title { margin-bottom: 20px; }
.kra-content .btn { margin-top: 22px; }
.kra-media {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
}
.kra-figure {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--gray);
    position: relative;
}
.kra-figure:nth-child(1) { grid-row: 1 / span 2; }
.kra-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s var(--ease);
}
.kra-figure:hover img { transform: scale(1.05); }

/* ---------- Extended list ---------- */
.extended-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 32px;
    max-width: 980px;
    margin: 0 auto;
}
.extended-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.extended-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    margin-top: 2px;
}
.extended-name { font-size: 15.5px; color: var(--ink-soft); font-weight: 500; }

/* ---------- Why grid (page) ---------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.why-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .28s var(--ease), box-shadow .28s var(--ease);
    display: flex;
    flex-direction: column;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-card-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--gray);
}
.why-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s var(--ease);
}
.why-card:hover .why-card-media img { transform: scale(1.05); }
.why-card-body { padding: 28px 28px 30px; flex: 1; }
.why-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.why-icon-lg {
    width: 52px; height: 52px;
    background: var(--gray);
    color: var(--navy);
    border-radius: var(--radius);
}
.why-icon-lg svg { width: 28px; height: 28px; }
.why-index {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 700;
    color: var(--gold);
    opacity: 0.7;
}
.why-card-title { font-size: 20px; margin-bottom: 10px; }
.why-card-text { font-size: 15px; color: var(--muted); margin: 0 0 18px; line-height: 1.6; }
.why-card-cta {
    background: var(--navy);
    color: var(--white);
    border: 1px solid var(--navy);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px 30px;
}
.why-card-cta:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-card-cta .why-card-title { color: var(--white); }
.why-card-cta .why-card-text { color: rgba(255,255,255,0.78); }

/* ---------- Contact layout ---------- */
.contact-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
    align-items: start;
}
.contact-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.contact-aside-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    background: var(--gray);
    margin-bottom: 24px;
    aspect-ratio: 16 / 10;
}
.contact-aside-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.contact-aside .section-eyebrow { display: block; margin-bottom: 12px; }
.contact-aside .section-title { margin-bottom: 14px; }
.contact-channels { margin: 28px 0; display: flex; flex-direction: column; gap: 18px; }
.contact-channel {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--gray);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
}
.channel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: var(--navy);
    color: var(--white);
    border-radius: 50%;
    font-size: 18px;
    flex-shrink: 0;
}
.channel-icon-wa { background: #25D366; color: var(--white); }
.channel-body { display: flex; flex-direction: column; }
.channel-label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.channel-value { font-size: 16px; font-weight: 600; color: var(--navy); word-break: break-word; }
.channel-value:hover { color: var(--gold); }
.contact-note {
    margin-top: 24px;
    padding: 18px 20px;
    background: var(--white);
    border: 1px dashed var(--line-navy);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--muted);
}
.contact-note p { margin: 0; }

/* ---------- Form ---------- */
.contact-form-wrap {
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-sm);
}
.form-head { margin-bottom: 28px; }
.form-head .section-eyebrow { display: block; margin-bottom: 10px; }
.form-head .section-title { font-size: 26px; }
.form-head .section-lead { font-size: 15.5px; margin-top: 10px; }
.consult-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; }
.form-field label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--navy);
    margin-bottom: 8px;
}
.req { color: var(--gold); }
.form-field input,
.form-field select,
.form-field textarea {
    font-family: var(--font-body);
    font-size: 15.5px;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 13px 14px;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
    width: 100%;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #9aa0ad; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(180, 142, 60, 0.15);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input.is-invalid,
.form-field select.is-invalid,
.form-field textarea.is-invalid {
    border-color: #b3261e;
    box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12);
}
.form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2305193E' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 38px; }
.form-actions { margin-top: 8px; }
.form-fineprint { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; text-align: center; }

/* ---------- SACCO page ---------- */
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.feature-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    text-align: center;
    transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    background: var(--gray);
    color: var(--navy);
    border-radius: var(--radius);
    margin-bottom: 18px;
}
.feature-card-title { font-size: 17px; margin-bottom: 10px; }
.feature-card-text { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }

.sacco-access-inline { margin-top: 28px; }
.btn-large { padding: 16px 32px; font-size: 16px; }

/* Steps grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 880px;
    margin: 0 auto;
}
.step-card {
    text-align: center;
    padding: 36px 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    position: relative;
}
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 18px;
}
.step-title { font-size: 19px; margin-bottom: 10px; }
.step-text { font-size: 15px; color: var(--muted); margin: 0; }

/* SACCO access band */
.sacco-access-band { background: var(--navy); padding: 64px 0; }
.sacco-access-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    flex-wrap: wrap;
}
.sacco-access-text { flex: 1; min-width: 280px; }
.sacco-access-text .cta-title { color: var(--white); }
.sacco-access-text .cta-lead { color: rgba(255,255,255,0.7); }
.sacco-access-actions { display: flex; flex-direction: column; gap: 14px; flex-shrink: 0; }
.sacco-access-actions .btn { text-align: center; }
.btn-ghost-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}
.btn-ghost-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

/* ---------- Training page ---------- */
.programme-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .28s var(--ease), box-shadow .28s var(--ease);
    display: flex;
    flex-direction: column;
}
.programme-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.programme-card-coming { opacity: 0.85; }
.programme-card-coming:hover { opacity: 1; }
.programme-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--gray);
}
.programme-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s var(--ease);
}
.programme-card:hover .programme-media img { transform: scale(1.05); }
.programme-level {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--navy);
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 2px;
}
.programme-body { padding: 26px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.programme-title { font-size: 20px; margin-bottom: 12px; }
.programme-summary { font-size: 14.5px; color: var(--muted); margin: 0 0 18px; line-height: 1.6; }
.programme-topics { margin: 0 0 22px; display: flex; flex-direction: column; gap: 8px; }
.programme-topic {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--ink-soft);
}
.topic-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    margin-top: 2px;
}
.programme-cta {
    display: inline-block;
    margin-top: auto;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
    align-self: flex-start;
}
.programme-cta:hover { color: var(--gold); }

/* Training form */
.training-form-wrap {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-sm);
}

/* Login section (existing students) */
.login-section { max-width: 820px; margin: 0 auto; }
.login-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 36px;
}
.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}
.login-divider-text {
    font-family: var(--font-head);
    font-style: italic;
    font-size: 18px;
    color: var(--gold);
    white-space: nowrap;
}
.login-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    flex-wrap: wrap;
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
}
.login-text { flex: 1; min-width: 260px; }
.login-text .section-eyebrow { display: block; margin-bottom: 10px; }
.login-text .section-title { font-size: 24px; }
.login-text .section-lead { font-size: 15px; margin-top: 10px; }
.login-action { flex-shrink: 0; text-align: center; }
.btn-login { display: inline-flex; align-items: center; gap: 10px; }
.login-note {
    font-size: 12.5px;
    color: var(--muted);
    margin: 14px 0 0;
    max-width: 260px;
}

/* ---------- Blog (public) ---------- */
.blog-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
    justify-content: center;
}
.blog-filter-pill {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    background: var(--white);
    transition: all .2s var(--ease);
}
.blog-filter-pill:hover { border-color: var(--navy); color: var(--navy); }
.blog-filter-pill.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.blog-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card-link { display: block; text-decoration: none; color: inherit; }
.blog-card-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--gray);
}
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.blog-card:hover .blog-card-media img { transform: scale(1.05); }
.blog-card-media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: var(--gold-light);
    font-family: var(--font-head);
    font-style: italic;
    font-size: 16px;
}
.blog-card-body { padding: 22px 22px 24px; }
.blog-card-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}
.blog-card-title { font-size: 19px; margin: 0 0 8px; line-height: 1.3; }
.blog-card-excerpt { font-size: 14.5px; color: var(--muted); margin: 0 0 14px; line-height: 1.6; }
.blog-card-meta { display: flex; gap: 14px; font-size: 13px; color: var(--muted); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); font-size: 16px; }

/* Blog article page */
.blog-article-header { background: var(--navy); color: var(--white); padding: 60px 0 48px; text-align: center; }
.blog-article-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 16px;
    text-decoration: none;
}
.blog-article-category:hover { color: var(--gold); }
.blog-article-title { font-size: clamp(28px, 5vw, 42px); margin: 0 0 16px; line-height: 1.2; }
.blog-article-excerpt { font-size: 18px; color: rgba(255,255,255,0.75); max-width: 700px; margin: 0 auto 20px; }
.blog-article-meta { display: flex; gap: 20px; justify-content: center; font-size: 14px; color: rgba(255,255,255,0.6); }
.blog-article-hero { padding: 0; margin-top: -20px; }
.blog-article-hero-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-top: 20px;
}
.prose-content {
    max-width: 760px;
    margin: 40px auto;
    font-size: 17px;
    line-height: 1.8;
    color: var(--ink);
}
.prose-content h1, .prose-content h2, .prose-content h3 {
    font-family: var(--font-head);
    margin-top: 1.8em;
    margin-bottom: 0.6em;
    line-height: 1.3;
}
.prose-content h1 { font-size: 28px; }
.prose-content h2 { font-size: 24px; }
.prose-content h3 { font-size: 20px; }
.prose-content p { margin: 0 0 1.2em; }
.prose-content ul, .prose-content ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.prose-content li { margin-bottom: 0.5em; }
.prose-content blockquote {
    border-left: 3px solid var(--gold);
    padding: 12px 20px;
    margin: 1.5em 0;
    background: var(--gray);
    font-style: italic;
    color: var(--muted);
}
.prose-content a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); }
.prose-content a:hover { color: var(--gold); }
.prose-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 1.5em 0; }

.blog-related { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--line); }
.blog-related .section-title { margin-bottom: 24px; }
.blog-article-back { margin-top: 40px; padding-bottom: 40px; }

/* 404 page */
.not-found-content { text-align: center; padding: 60px 20px; }
.not-found-actions { display: flex; gap: 16px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--white); margin-top: 0; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding: 72px var(--gutter) 48px;
    max-width: var(--container);
    margin: 0 auto;
}
.footer-logo-wrap {
    display: inline-block;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 16px;
    margin-bottom: 22px;
}
.brand-logo-footer {
    display: block;
    width: auto;
    height: auto;
    max-height: 56px;
    max-width: 220px;
    object-fit: contain;
}
.footer-tagline {
    font-family: var(--font-head);
    font-style: italic;
    color: var(--gold-light);
    font-size: 18px;
    margin: 22px 0 6px;
}
.footer-positioning { font-size: 14px; color: rgba(255,255,255,0.6); margin: 0; }
.footer-heading {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}
.footer-links li, .footer-contact li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.78); font-size: 15px; }
.footer-links a:hover { color: var(--gold-light); }
.footer-contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    overflow-wrap: break-word;
    word-break: break-word;
}
.footer-contact-link:hover { color: var(--gold-light); }
.fc-icon { color: var(--gold); font-size: 16px; flex-shrink: 0; }
.footer-cta {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gold-light);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
}
.footer-cta:hover { color: var(--white); border-color: var(--white); }

/* Social icons */
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    transition: all .25s var(--ease);
    text-decoration: none;
}
.footer-social:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); }
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 22px var(--gutter);
    max-width: var(--container);
    margin: 0 auto;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
}
.footer-credential { color: var(--gold-light); }

/* ---------- Floating actions ---------- */
.floating-actions {
    position: fixed;
    right: 22px;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 90;
}
.float-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    border-radius: 50%;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: transform .22s var(--ease), box-shadow .22s var(--ease);
    border: 2px solid var(--white);
}
.float-btn:hover { transform: scale(1.08); }
.float-whatsapp { background: #25D366; }
.float-whatsapp:hover { background: #1da851; color: var(--white); }
.float-call { background: var(--navy); }
.float-call:hover { background: var(--gold); color: var(--white); }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* ---- Large tablets / small laptops ---- */
@media (max-width: 1024px) {
    .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .why-strip { grid-template-columns: repeat(3, 1fr); }
    .audience-grid { grid-template-columns: repeat(3, 1fr); }
    .extended-list { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }

    /* Hamburger nav — triggers at 1024px because the full nav
       (5 links + 2 CTA buttons + logo) needs ~1050px+ */
    .nav-toggle { display: flex; }
    .primary-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px var(--gutter) 28px;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: transform .25s var(--ease), opacity .25s var(--ease), visibility .25s;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }
    .primary-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
    .primary-nav a {
        padding: 15px 8px;
        border-bottom: 1px solid var(--line);
        font-size: 16px;
    }
    .primary-nav a.is-active::after { display: none; }
    .primary-nav a.is-active { border-left: 3px solid var(--gold); padding-left: 12px; }
    .nav-cta {
        margin: 14px 0 0;
        text-align: center;
        border-bottom: none !important;
        padding: 15px 22px !important;
        display: flex;
        justify-content: center;
    }
    .nav-portal {
        display: flex !important;
        justify-content: center;
        margin-left: 0 !important;
    }
}

/* ---- Tablets ---- */
@media (max-width: 860px) {
    .section { padding: 64px 0; }

    .two-col { grid-template-columns: 1fr; gap: 36px; }
    .credential-card { position: static; }
    .hero-inner { grid-template-columns: 1fr; gap: 36px; }
    .hero-media { max-width: 440px; }
    .kra-band { grid-template-columns: 1fr; gap: 32px; }
    .kra-media { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .kra-figure:nth-child(1) { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 16 / 10; }
    .kra-figure { aspect-ratio: 4 / 3; }
    .contact-layout { grid-template-columns: 1fr; gap: 40px; }
    .contact-aside { position: static; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Mobile ---- */
@media (max-width: 620px) {
    :root { --gutter: 18px; }
    body { font-size: 16px; }
    .section { padding: 52px 0; }
    .section-head { margin-bottom: 36px; }
    .flash-toast { left: 16px; right: 16px; min-width: 0; max-width: none; top: 70px; }

    /* Grids: 2-per-row where cards are compact, 1-per-row for image-heavy cards */
    .card-grid-3 { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .card-grid-4 { grid-template-columns: 1fr 1fr; }
    .why-strip { grid-template-columns: 1fr 1fr; }       /* 5 compact pillars → 2 per row */
    .audience-grid { grid-template-columns: 1fr 1fr; }
    .extended-list { grid-template-columns: 1fr 1fr; }    /* 9 simple items → 2 per row */
    .why-grid { grid-template-columns: 1fr; }             /* image cards → 1 per row (readability) */

    .hero { padding: 64px 0 56px; }
    .hero-pillars { gap: 10px; }
    .hero-pillar { padding: 7px 14px; font-size: 12px; }
    .pillar-sep { display: none; }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero-media { max-width: 100%; }
    .hero-image { max-height: 340px; }

    .kra-media { grid-template-columns: 1fr; }
    .kra-figure:nth-child(1) { grid-column: auto; aspect-ratio: 16 / 10; }

    .cta-inner { flex-direction: column; align-items: flex-start; }
    .cta-action { width: 100%; }
    .cta-action .btn { width: 100%; }

    .form-row { grid-template-columns: 1fr; gap: 18px; }
    .contact-form-wrap { padding: 28px 20px; }
    .training-form-wrap { padding: 28px 20px; }
    .login-content { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
    .login-action { width: 100%; }
    .btn-login { width: 100%; justify-content: center; }
    .sacco-access-inner { flex-direction: column; align-items: flex-start; }
    .sacco-access-actions { width: 100%; }
    .sacco-access-actions .btn { width: 100%; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 52px var(--gutter) 36px; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; }

    .floating-actions { right: 16px; bottom: 16px; gap: 12px; }
    .float-btn { width: 52px; height: 52px; }

    .commitment-quote::before, .commitment-quote::after { width: 36px; margin: 18px auto; }
}

/* ---- Phones (480px+) — image cards can go 2-per-row ---- */
@media (max-width: 620px) and (min-width: 480px) {
    .why-grid { grid-template-columns: 1fr 1fr; }   /* 6 image cards → 2 per row on larger phones */
}

/* ---- Small phones ---- */
@media (max-width: 380px) {
    .audience-grid { grid-template-columns: 1fr; }
    .why-strip { grid-template-columns: 1fr; }
    .extended-list { grid-template-columns: 1fr; }
    .card-grid-4 { grid-template-columns: 1fr; }
    .hero-firm { font-size: 26px; }
    .hero-tagline { font-size: 18px; }
    .section-title { font-size: 24px; }
    .page-title { font-size: 26px; }
    .commitment-quote { font-size: 19px; }
    .contact-form-wrap { padding: 24px 16px; }
    .service-card-body { padding: 22px 20px 24px; }
    .specialist-body { padding: 22px 20px 24px; }
    .why-card-body { padding: 22px 20px 24px; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    .service-card:hover, .why-item:hover, .why-card:hover, .audience-card:hover, .specialist-card:hover { transform: none; }
}

/* ---- Print ---- */
@media print {
    .site-header, .floating-actions, .cta-band, .nav-toggle, .flash-toast { display: none; }
    .hero, .page-header { background: var(--white) !important; color: var(--navy) !important; }
    .hero-firm, .page-title { color: var(--navy) !important; }
}
