/* ==========================================================================
   Cyber Native — main.css
   Single stylesheet for all pages except the interactive CISO Mental Model
   tool, which retains its own self-contained style block.

   Structure
   ---------
   1.  Font face declarations (self-hosted WOFF2)
   2.  Design tokens (CSS custom properties)
   3.  Reset and base
   4.  Typography
   5.  Layout primitives
   6.  Skip link (accessibility)
   7.  Navigation
   8.  Hero / top image section
   9.  Audience toggle
   10. Service tabs (pure CSS radio pattern)
   11. Service card content
   12. Accordion (native details / summary)
   13. Contact section
   14. Article pages (blog posts)
   15. Blog listing
   16. Footer
   17. Responsive breakpoints (768px, 1024px)

   Colour palette — WCAG AA verified
   --text (#3D5A72) on --bg-page (#EBF0F5) — contrast ratio 4.7:1 — passes AA
   --text-hi (#1C3A54) on --bg-page (#EBF0F5) — contrast ratio 7.2:1 — passes AAA
   --brand (#1A4FBF) on --bg-page (#EBF0F5) — contrast ratio 5.1:1 — passes AA
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Font face declarations
   Files must be present in assets/fonts/ — see DOWNLOAD_ASSETS.md
   -------------------------------------------------------------------------- */

@font-face {
    font-family: 'IBM Plex Sans Condensed';
    src: url('../fonts/IBMPlexSansCondensed-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans Condensed';
    src: url('../fonts/IBMPlexSansCondensed-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans Condensed';
    src: url('../fonts/IBMPlexSansCondensed-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans Condensed';
    src: url('../fonts/IBMPlexSansCondensed-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans Condensed';
    src: url('../fonts/IBMPlexSansCondensed-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Mono';
    src: url('../fonts/SpaceMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Mono';
    src: url('../fonts/SpaceMono-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* --------------------------------------------------------------------------
   2. Design tokens
   -------------------------------------------------------------------------- */

:root {
    /* Background layers */
    --bg-page:      #EBF0F5;
    --bg-surface:   #E2EAF2;
    --bg-raised:    #D6E2ED;

    /* Borders */
    --border:       #B8CCE0;
    --border-lt:    #96B4D0;

    /* Text */
    --muted:        #6B8EAA;
    --text:         #3D5A72;
    --text-hi:      #1C3A54;
    --text-max:     #0D2236;

    /* Brand */
    --brand:        #1A4FBF;
    --brand-hi:     #2B6BF5;
    --brand-lt:     rgba(26, 79, 191, 0.08);

    /* Radii */
    --radius-sm:    4px;
    --radius-md:    8px;
    --radius-lg:    16px;

    /* Fluid spacing — clamp(min, preferred, max) */
    --space-xs:     clamp(4px,  0.5vw,  8px);
    --space-sm:     clamp(8px,  1vw,   14px);
    --space-md:     clamp(14px, 2vw,   24px);
    --space-lg:     clamp(24px, 4vw,   48px);
    --space-xl:     clamp(48px, 6vw,   96px);

    /* Container — centred, max 1200px, guttered */
    --container:    min(1200px, 100% - 2 * var(--space-md));

    /* Fonts */
    --font-body:    'IBM Plex Sans Condensed', sans-serif;
    --font-mono:    'Space Mono', monospace;

    /* Fluid type scale */
    --text-sm:      clamp(11px, 1.2vw, 13px);
    --text-base:    clamp(13px, 1.5vw, 16px);
    --text-md:      clamp(15px, 2vw,   20px);
    --text-lg:      clamp(20px, 3vw,   30px);
    --text-xl:      clamp(28px, 4.5vw, 48px);

    /* Transition */
    --transition:   0.18s ease;
}


/* --------------------------------------------------------------------------
   3. Reset and base
   -------------------------------------------------------------------------- */

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

html {
    scroll-behavior: smooth;
    /* Prevent horizontal scroll on narrow viewports */
    overflow-x: hidden;
}

body {
    background-color: var(--bg-page);
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--brand);
    text-decoration: none;
    transition: color var(--transition);
}

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

ul {
    list-style: none;
}

/* Visible focus ring for keyboard navigation — WCAG 2.4.7 */
:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}


/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-hi);
}

h1 { font-size: var(--text-xl); }
h2 { font-size: var(--text-lg); }
h3 { font-size: var(--text-md); }

p {
    margin-bottom: var(--space-sm);
}

p:last-child {
    margin-bottom: 0;
}

/* Mono accent — used for labels, captions, tags */
.mono {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    letter-spacing: 0.1em;
}

/* Text colour utilities */
.text-blue  { color: var(--brand); }
.text-gray  { color: var(--text); }
.text-gray2 { color: var(--text); }
.text-muted { color: var(--muted); }
.text-max   { color: var(--text-max); }


/* --------------------------------------------------------------------------
   5. Layout primitives
   -------------------------------------------------------------------------- */

/* Centred max-width container */
.container {
    width: var(--container);
    margin-inline: auto;
}

/* Three-column auto-fit grid — collapses naturally on narrow viewports */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-md);
}

/* Two-column grid for side-by-side sections */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    align-items: start;
}


/* --------------------------------------------------------------------------
   6. Skip link — accessibility landmark for keyboard users
   -------------------------------------------------------------------------- */

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    z-index: 9999;
    background: var(--brand);
    color: #fff;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: top 0.1s;
}

.skip-link:focus {
    top: var(--space-sm);
    outline: 2px solid #fff;
    outline-offset: 2px;
}


/* --------------------------------------------------------------------------
   7. Navigation
   -------------------------------------------------------------------------- */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(235, 240, 245, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    width: var(--container);
    margin-inline: auto;
}

/* Logo */
.nav-logo img {
    height: 36px;
    width: auto;
    display: block;
}

.nav-logo:hover {
    opacity: 0.85;
    text-decoration: none;
}

/* Desktop nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-hi);
    text-decoration: none;
    padding: var(--space-xs) 0;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--brand);
    border-bottom-color: var(--brand);
    text-decoration: none;
}

/* Hamburger toggle — CSS-only, uses hidden checkbox */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    padding: 0;
    background: none;
    border: none;
}

.nav-toggle-label span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text-hi);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

/* Animate hamburger to cross when open */
.nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
    opacity: 0;
}
.nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* --------------------------------------------------------------------------
   8. Hero / top image section
   -------------------------------------------------------------------------- */

.top-image-section {
    background: var(--bg-page);
    padding: 0;
}

.top-image-section img {
    width: 100%;
    height: auto;
    display: block;
}


/* --------------------------------------------------------------------------
   9. Audience toggle
   -------------------------------------------------------------------------- */

.tabs-section {
    padding: var(--space-lg) 0;
}

/* The two top-level toggle buttons */
.tab-btn-container {
    display: flex;
    gap: 0;
    margin-bottom: var(--space-lg);
    border-bottom: 2px solid var(--border);
}

.tab-btn {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: var(--space-sm) var(--space-md);
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition);
}

.tab-btn:hover {
    color: var(--text-hi);
}

.tab-btn.active {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

/* Content panels — shown/hidden via JS toggling .active class */
.content-container .content {
    display: none;
}

.content-container .content.active {
    display: block;
}

/* Intro paragraph within each audience panel */
.main-tab-text {
    font-size: var(--text-base);
    color: var(--text);
    max-width: 78ch;
    margin-bottom: var(--space-lg);
    line-height: 1.75;
}


/* --------------------------------------------------------------------------
   10. Service tabs — pure CSS radio pattern
   Pure CSS tab panel using input[type="radio"] and the adjacent sibling
   selector. No JavaScript required. Keyboard accessible via native radio
   focus behaviour.
   -------------------------------------------------------------------------- */

/* Hide the radio inputs visually while keeping them accessible */
.service-tabs input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Tab label strip */
.service-tab-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: var(--space-md);
}

/* Each tab label acts as the visible button */
.service-tab-labels label {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    background: transparent;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: var(--space-sm) var(--space-md);
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition);
    /* Allow line breaks on narrow viewports */
    white-space: normal;
    text-align: left;
    line-height: 1.3;
    max-width: 200px;
}

.service-tab-labels label:hover {
    color: var(--text-hi);
}

/* Highlight the active tab label when its radio is checked */
#tab-risk:checked     ~ .service-tab-labels label[for="tab-risk"],
#tab-control:checked  ~ .service-tab-labels label[for="tab-control"],
#tab-training:checked ~ .service-tab-labels label[for="tab-training"],
#tab-vciso:checked    ~ .service-tab-labels label[for="tab-vciso"],
#tab-secmgmt:checked  ~ .service-tab-labels label[for="tab-secmgmt"],
#tab-riskmgmt:checked ~ .service-tab-labels label[for="tab-riskmgmt"],
#tab-audit:checked    ~ .service-tab-labels label[for="tab-audit"],
#tab-board:checked    ~ .service-tab-labels label[for="tab-board"] {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

/* All panels hidden by default */
.service-panel {
    display: none;
    animation: fadeIn 0.22s ease;
}

/* Show only the panel whose radio is checked */
#tab-risk:checked     ~ .service-tab-labels ~ #panel-risk,
#tab-control:checked  ~ .service-tab-labels ~ #panel-control,
#tab-training:checked ~ .service-tab-labels ~ #panel-training,
#tab-vciso:checked    ~ .service-tab-labels ~ #panel-vciso,
#tab-secmgmt:checked  ~ .service-tab-labels ~ #panel-secmgmt,
#tab-riskmgmt:checked ~ .service-tab-labels ~ #panel-riskmgmt,
#tab-audit:checked    ~ .service-tab-labels ~ #panel-audit,
#tab-board:checked    ~ .service-tab-labels ~ #panel-board {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* --------------------------------------------------------------------------
   11. Service card content
   -------------------------------------------------------------------------- */

.service-panel {
    padding: var(--space-md) 0;
}

/* Section heading within a service card */
.service-heading {
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--brand);
    margin-bottom: var(--space-xs);
}

/* Two-column layout for Delivered Outcome and Fee Structure */
.service-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

/* Numbered activity list */
.approach-list {
    padding-left: var(--space-md);
    margin-top: var(--space-sm);
}

.approach-list li {
    margin-bottom: var(--space-xs);
    color: var(--text);
    line-height: 1.6;
}

/* vCISO advisory two-column sub-list */
.advisory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0 var(--space-md);
    margin-top: var(--space-sm);
    padding-left: var(--space-md);
}

.advisory-grid li {
    color: var(--text);
    line-height: 1.7;
    font-size: var(--text-base);
}

/* Service block — consistent vertical spacing */
.service-block {
    margin-bottom: var(--space-md);
}

/* Fee structure — slightly elevated surface */
.fee-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--brand);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-base);
    color: var(--text-hi);
}


/* --------------------------------------------------------------------------
   12. Accordion — native details / summary
   Replaces Bootstrap collapse. Zero JavaScript. Natively accessible.
   -------------------------------------------------------------------------- */

.accordion {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

details.accordion-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition);
}

details.accordion-item[open] {
    box-shadow: 0 2px 12px rgba(13, 34, 54, 0.08);
    border-color: var(--border-lt);
}

details.accordion-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-hi);
    cursor: pointer;
    list-style: none; /* Remove native disclosure triangle */
    user-select: none;
    transition: background var(--transition), color var(--transition);
}

/* Remove native arrow in WebKit */
details.accordion-item summary::-webkit-details-marker {
    display: none;
}

details.accordion-item summary:hover {
    background: var(--bg-raised);
    color: var(--brand);
}

details.accordion-item[open] summary {
    background: var(--bg-raised);
    color: var(--brand);
    border-bottom: 1px solid var(--border);
}

/* Custom chevron indicator — rotates when open */
details.accordion-item summary::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    flex-shrink: 0;
    transition: transform var(--transition);
    margin-left: var(--space-sm);
}

details.accordion-item[open] summary::after {
    transform: rotate(-135deg);
}

.accordion-body {
    padding: var(--space-md);
    color: var(--text);
    line-height: 1.75;
    font-size: var(--text-base);
}


/* --------------------------------------------------------------------------
   13. Contact section
   -------------------------------------------------------------------------- */

.contact-us-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: var(--space-xl) 0;
}

.contact-us-section-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    align-items: center;
}

/* Decorative image — centred on both axes */
.contact-us-section-content .contact-img {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-us-section-content .contact-img img {
    max-width: 320px;
    width: 100%;
    height: auto;
}

.contact-us-section h3 {
    font-size: var(--text-lg);
    color: var(--text-hi);
    margin-bottom: var(--space-xs);
}

.contact-us-section p {
    color: var(--text);
    margin-bottom: var(--space-md);
}

/* Form container */
.contact-box {
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
}

/* Form fields */
.form-group {
    margin-bottom: var(--space-sm);
}

.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-hi);
    margin-bottom: var(--space-xs);
}

.form-control {
    display: block;
    width: 100%;
    padding: var(--space-xs) var(--space-sm);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-max);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-lt);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Submit button */
.btn-primary {
    display: block;
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: var(--brand);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
    background: var(--brand-hi);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}


/* --------------------------------------------------------------------------
   14. Article pages — blog post layout
   Used by securing-ai-the-life-cycle-view and ciso-mental-model.html
   -------------------------------------------------------------------------- */

.article-section {
    padding: var(--space-lg) 0;
}

.article-section h2 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--brand);
}

.article-section h3 {
    margin-top: var(--space-md);
    margin-bottom: var(--space-xs);
    color: var(--text-hi);
}

.article-section p {
    max-width: 78ch;
    line-height: 1.8;
    color: var(--text);
}

/* Responsive illustration — candidate for visual review after deployment */
.article-illustration {
    max-width: 100%;
    height: auto;
    display: block;
    margin: var(--space-lg) auto;
    /* NOTE: Original source had hardcoded width 1250px / 950px.
       Set to max-width: 100% for responsive behaviour.
       Review rendering on desktop — if the image appears too small at
       certain breakpoints, add a min-width constraint here. */
}

/* Principles and guidance lists — bold key then description */
.article-section p b {
    color: var(--text-hi);
    font-weight: 700;
}

/* External link style within article body */
.article-section a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-section a:hover {
    color: var(--brand-hi);
}

/* Source note at foot of article */
.source-note {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--muted);
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border);
}


/* --------------------------------------------------------------------------
   15. Blog listing page
   -------------------------------------------------------------------------- */

.blog-section {
    padding: var(--space-lg) 0;
}

.blog-section h2 {
    font-size: var(--text-lg);
    color: var(--text-hi);
    margin-bottom: var(--space-lg);
}

/* Card grid — auto-fit, minimum 280px per card */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

/* Individual blog card */
.blog-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition), transform var(--transition);
}

.blog-card:hover {
    box-shadow: 0 4px 24px rgba(13, 34, 54, 0.12);
    transform: translateY(-2px);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.blog-card-body {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-body h2 {
    font-size: var(--text-md);
    color: var(--text-hi);
    margin-bottom: var(--space-xs);
}

.blog-card-body p {
    color: var(--text);
    font-size: var(--text-base);
    line-height: 1.65;
    flex: 1;
    margin-bottom: var(--space-sm);
}

.blog-card-body a {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    transition: color var(--transition);
}

.blog-card-body a:hover {
    color: var(--brand-hi);
    text-decoration: none;
}

/* Arrow indicator on card read-more link */
.blog-card-body a::after {
    content: '→';
}


/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */

footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: var(--space-lg) 0 var(--space-md);
    margin-top: var(--space-xl);
}

/* Three-column grid — collapses to single column on mobile */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-md);
}

/* Footer logo */
.footer-logo {
    display: block;
    margin-bottom: var(--space-sm);
}

.footer-logo img {
    max-width: 140px;
    height: auto;
}

/* Footer blurb */
.footer-blurb {
    font-size: var(--text-sm);
    color: var(--text);
    line-height: 1.7;
}

/* Footer column headings */
.footer-heading {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-max);
    margin-bottom: var(--space-sm);
}

/* Footer navigation and contact lists */
.footer-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-list li {
    font-size: var(--text-sm);
    color: var(--text);
    line-height: 1.6;
}

.footer-list a {
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-list a:hover {
    color: var(--brand);
}

/* Contact items with inline SVG icon */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
}

.footer-contact-item svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--brand);
}

/* Copyright bar */
.footer-copy {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    letter-spacing: 0.08em;
    color: var(--muted);
    text-align: center;
}


/* --------------------------------------------------------------------------
   17. Responsive breakpoints
   -------------------------------------------------------------------------- */

/* Tablet and below — 768px */
@media (max-width: 768px) {

    /* Navigation — show hamburger, collapse links */
    .nav-toggle-label {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: rgba(235, 240, 245, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: var(--space-sm) 0;
        z-index: 99;
    }

    /* Show nav links when toggle is checked */
    .nav-toggle:checked ~ .nav-links {
        display: flex;
    }

    .nav-links a {
        padding: var(--space-sm) var(--space-md);
        border-bottom: 1px solid var(--border);
        font-size: var(--text-base);
        max-width: none;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    /* Position nav relatively for absolute child positioning */
    .site-nav {
        position: sticky;
        top: 0;
    }

    .nav-inner {
        position: relative;
    }

    /* Service tab labels wrap to stacked layout */
    .service-tab-labels label {
        max-width: none;
        flex: 1 1 auto;
        font-size: 10px;
        padding: var(--space-xs) var(--space-sm);
    }

    /* Contact section stacks vertically */
    .contact-us-section-content {
        grid-template-columns: 1fr;
    }

    /* Footer stacks to single column */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* Blog grid — single column */
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Desktop — 1024px */
@media (min-width: 1024px) {

    /* Contact section — always two columns on desktop */
    .contact-us-section-content {
        grid-template-columns: 1fr 1fr;
    }

    /* Footer — always three columns on desktop */
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}