/* =====================================================
   REALISTIC SECURITY - Main Stylesheet
   Brand Colors: Dark slate theme with green accents
   Typography: Inter (body), Space Grotesk (headings)
   ===================================================== */

/* ====================== CSS VARIABLES ====================== */
:root {
    /* Brand Colors - Realistic Security Official */
    --primary: #8cc63f;
    --primary-dark: #7ab535;
    --primary-light: #a4d465;
    --secondary: #6ba32e;
    --accent: #8cc63f;
    
    /* Function Colors */
    --color-strategic: #29b6f6;
    --color-tactical: #66bb6a;
    --color-operational: #ffa726;
    --color-assess: #ff7043;
    --color-detect: #42a5f5;
    --color-protect: #66bb6a;
    --color-respond: #ef5350;
    
    /* Dark Theme - Navy Blue */
    --bg-dark: #0d1b2a;
    --bg-darker: #0d1b2a;
    --bg-darkest: #0d1b2a;
    --bg-card: #1a2d3d;
    --bg-card-hover: #243a4d;
    --bg-overlay: rgba(13, 27, 42, 0.95);
    --bg-transparent-light: rgba(13, 27, 42, 0.55);
    --bg-transparent-dark: rgba(13, 27, 42, 0.75);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b8c9d4;
    --text-muted: #8aa3b5;
    
    /* Borders & Shadows */
    --border-color: rgba(255, 255, 255, 0.12);
    --border-light: rgba(255, 255, 255, 0.06);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 30px rgba(124, 179, 66, 0.3);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-dark: linear-gradient(180deg, var(--bg-dark), var(--bg-darkest));
    --gradient-card: linear-gradient(145deg, var(--bg-card), var(--bg-darker));
    
    /* Typography */
    --font-body: 'Ubuntu', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', var(--font-body);
    --font-menu: 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px;
    --header-height: 80px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50%;
}

/* =================================================================
   THEME SWITCHING STYLES
   
   SAME IN BOTH MODES (Always Dark):
   - Header/Navigation
   - Hero banner with background image
   - Stats section with background image
   - Page hero sections on inner pages
   - Footer contact band (with logo, email, phone)
   - Footer
   ================================================================= */

/* ====================== RESET & BASE ====================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background: var(--bg-dark);
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    margin: 0;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ====================== SCROLL ANIMATIONS ====================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Slide from left */
.animate-on-scroll.from-left {
    transform: translateX(-40px);
}

.animate-on-scroll.from-left.animate-in {
    transform: translateX(0);
}

/* Slide from right */
.animate-on-scroll.from-right {
    transform: translateX(40px);
}

.animate-on-scroll.from-right.animate-in {
    transform: translateX(0);
}

/* Scale up */
.animate-on-scroll.scale-up {
    transform: scale(0.9);
}

.animate-on-scroll.scale-up.animate-in {
    transform: scale(1);
}

/* Inner-page hero entrance: same fade-up as the home hero (heroFadeInUp,
   further down), one line after the other on page load: breadcrumb, tag,
   title, text, buttons, badges. Pure CSS, so no flash before main.js runs.
   Fill mode "backwards" only holds the start frame during the delay; once
   done, the normal styles (incl. hover) apply again. */
.page-hero-content > * {
    animation: heroFadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.page-hero-content > :nth-child(1) { animation-delay: 0.1s; }
.page-hero-content > :nth-child(2) { animation-delay: 0.25s; }
.page-hero-content > :nth-child(3) { animation-delay: 0.4s; }
.page-hero-content > :nth-child(4) { animation-delay: 0.55s; }
.page-hero-content > :nth-child(5) { animation-delay: 0.7s; }
.page-hero-content > :nth-child(n+6) { animation-delay: 0.85s; }

/* Before main.js runs (js/reveal-init.js sets .reveal-pending), keep the
   body under the hero hidden so it does not paint and then flash out.
   main.js removes the class in the same task that hides the blocks one by
   one. Failsafe: if main.js never runs, the content shows after 4 s. */
@keyframes revealFailsafe {
    to { opacity: 1; }
}

.reveal-pending main > :not(.page-hero):not(.hero) {
    opacity: 0;
    animation: revealFailsafe 0s 4s forwards;
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .page-hero-content > * {
        animation: none;
    }
}

/* ====================== UTILITIES ====================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: var(--primary);
}

.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-description {
    margin: 0 auto;
}

/* ====================== BUTTONS ====================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 1px solid transparent;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: transparent;
    font-weight: 500;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(124, 179, 66, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(124, 179, 66, 0.1);
}

.btn-lg {
    padding: 12px 28px;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8125rem;
}

/* ====================== TOP BAR ====================== */
.top-bar {
    background: transparent;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-contact {
    display: flex;
    align-items: center;
    gap: 32px;
}

.top-bar-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.top-bar-contact li span {
    color: rgba(255, 255, 255, 0.5);
}

.top-bar-contact li a {
    color: rgba(255, 255, 255, 0.9);
    transition: color var(--transition-fast);
}

.top-bar-contact li a:hover {
    color: var(--primary);
}

.top-bar-social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar-social li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.top-bar-social li a:hover {
    color: var(--primary);
}

/* ====================== HEADER & NAVIGATION ====================== */
.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #062a40;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-base);
}

.header.scrolled {
    background: #062a40;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.35);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.logo-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
    color: #ffffff;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    font-family: var(--font-menu);
    font-size: 0.9375rem;
    font-weight: 400;
    color: #ffffff;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

@media (hover: hover) {
    .nav-link:hover {
        color: var(--primary);
    }
}

.nav-link.active {
    color: var(--primary);
    font-weight: 400;
}

/* Dropdown Menu Styles */
.nav-item {
    position: relative;
}

.nav-item.has-dropdown > .nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-item.has-dropdown > .nav-link::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    transition: transform var(--transition-fast);
}

@media (hover: hover) {
    .nav-item.has-dropdown:hover > .nav-link::after {
        transform: rotate(180deg);
    }
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #062a40;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    z-index: 1000;
    list-style: none;
}

@media (hover: hover) {
    .nav-item.has-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-family: var(--font-menu);
    font-size: 0.875rem;
    font-weight: 400;
    color: #ffffff;
    text-transform: none;
    letter-spacing: 0;
    transition: all var(--transition-fast);
}

@media (hover: hover) {
    .dropdown-menu a:hover {
        background: rgba(140, 198, 63, 0.1);
        color: var(--primary);
        padding-left: 25px;
    }
}

/* Mega Menu Styles */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    display: flex;
    gap: 0;
    background: #062a40;
    border-radius: var(--radius-md);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 1000;
    /* 4 columns (Assess / Protect / Detect / Respond). The panel is centred on
       the Services nav item, so it must stay narrow enough not to overflow the
       viewport at 1440px; max-width is the belt-and-braces guard. */
    min-width: 800px;
    max-width: calc(100vw - 32px);
}

@media (hover: hover) {
    .nav-item.has-megamenu:hover .mega-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

/* Narrow-desktop overflow fix (1024-1366px). The panel is centred on the
   "Services" nav item, which sits left of centre, so a 960px-wide panel runs
   off the right edge of the viewport. Anchor it to the VIEWPORT instead
   (position: fixed), 24px from the right. Scoped to >=769px so the <=768px
   mobile sliding-pane rules further down the file are never touched. */
@media (min-width: 769px) and (max-width: 1366px) {
    .mega-menu {
        position: fixed;
        top: var(--header-height);
        left: auto;
        right: 24px;
        transform: translateY(10px);
        min-width: 0;
        width: max-content;
        max-width: calc(100vw - 48px);
    }

    .nav-item.has-megamenu:hover .mega-menu {
        transform: translateY(0);
    }

    .mega-menu-column {
        min-width: 150px;
        padding: 0 12px;
    }

    /* Transparent hover bridge: the fixed panel sits below the header, so the
       pointer would otherwise lose :hover in the gap between the nav link and
       the panel. This strip keeps the nav-item hovered while crossing it. */
    .nav-item.has-megamenu {
        position: relative;
    }

    .nav-item.has-megamenu::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 24px;
    }
}

.mega-menu-column {
    flex: 1;
    min-width: 150px;
    padding: 0 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.mega-menu-column:last-child {
    border-right: none;
}

.mega-menu-title {
    font-family: var(--font-menu);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(140, 198, 63, 0.3);
}

.mega-menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-column li {
    padding: 0;
}

.mega-menu-column a {
    display: block;
    padding: 6px 0;
    font-family: var(--font-menu);
    font-size: 0.8125rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    transition: all var(--transition-fast);
}

@media (hover: hover) {
    .mega-menu-column a:hover {
        color: var(--primary);
        padding-left: 5px;
    }
}

/* Mobile-only chrome: back button + overview link injected by main.js when
   the dropdown / mega-menu converts to a sliding full-screen pane below
   768px. Hidden on desktop where the menu opens as an absolute popover. */
.mega-menu-back,
.mega-menu-overview,
.dropdown-menu .mega-menu-overview,
.mega-menu .mega-menu-overview {
    display: none;
}

/* Nav Search Button */
.nav-search {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.nav-search:hover {
    color: var(--primary);
}

/* Mobile Menu Toggle */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.bar {
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* ====================== HERO SECTION ====================== */
.hero {
    position: relative;
    /* Grow with the content: a fixed height clipped the "What We Do" bar
       on short laptop screens (overflow is hidden). */
    min-height: clamp(650px, 92vh, 800px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 100px 0 0;
    overflow: hidden;
}

.hero-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image: url('../images/blue-filter.png'), url('../images/background-rock.jpg');
    background-size: cover, cover;
    background-position: center, center 70%;
    background-repeat: no-repeat, no-repeat;
    background-blend-mode: multiply, normal;
}

/* Hero Visual - Particles Container (Right Side) */
.hero-visual {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    z-index: 1;
    opacity: 0;
    animation: heroFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

/* Particles.js Container */
.particles-container {
    position: absolute;
    inset: 0;
    z-index: 1;
}

#particles-js {
    width: 100%;
    height: 100%;
}

/* Typing Animation Styles - In Hero Title */
/* The slogan half of the animated headline ("That Works") carries the brand
   gradient; the company-name half stays plain white. */
.hero-title .hero-line-slogan {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* The caret stops blinking once the sequence has finished. */
.hero-title .typing-cursor.typing-cursor-done {
    animation: none;
    opacity: 0;
}

.hero-title .typing-cursor::before {
    /* The caret is CSS content, not text, so the H1 reads "Security That Works". */
    content: '|';
}

.hero-title .typing-cursor {
    color: var(--primary);
    font-weight: 400;
    animation: blink 0.7s infinite;
    -webkit-text-fill-color: var(--primary);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 60px;
    align-items: center;
}

.hero-content {
    text-align: left;
    margin-right: auto;
    min-width: 0;
    width: 100%;
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--primary);
    margin-bottom: 24px;
}

/* Hero Entrance Animations */
@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #ffffff;
    white-space: nowrap;
    position: relative;
    opacity: 0;
    animation: heroFadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 40px;
    width: calc(50vw - 84px);
    max-width: 550px;
    opacity: 0;
    animation: heroFadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 50px;
    justify-content: flex-start;
    max-width: 600px;
    opacity: 0;
    animation: heroFadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

/* Disable hero animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-title,
    .hero-subtitle,
    .hero-cta,
    .hero-visual,
    .hero-functions-container,
    .hero-functions-title,
    .hero-functions-intro,
    .hero-function-item {
        opacity: 1;
        animation: none;
    }
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: flex-start;
    max-width: 600px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Hero Functions Container - Full Width at Bottom */
.hero-functions-container {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 15;
    margin-top: auto;
    padding-bottom: 20px;
    opacity: 0;
    animation: heroFadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.9s forwards;
}

/* Hero Functions Row - Simple Style */
.hero-functions-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.hero-functions-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 15px;
    opacity: 0;
    animation: heroFadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.2s forwards;
}

.hero-functions-intro {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
    opacity: 0;
    animation: heroFadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.35s forwards;
}

.hero-functions-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-function-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 35px;
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    transition: all var(--transition-base);
    opacity: 0;
    animation: heroFadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-function-item:nth-child(1) { animation-delay: 1.5s; }
.hero-function-item:nth-child(2) { animation-delay: 1.7s; }
.hero-function-item:nth-child(3) { animation-delay: 1.9s; }
.hero-function-item:nth-child(4) { animation-delay: 2.1s; }

.hero-function-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 50px;
    width: 1px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 20%, 
        rgba(255, 255, 255, 0.3) 80%, 
        transparent 100%);
}

.hero-function-item:hover {
    transform: translateY(-3px);
}

.hero-function-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(140, 198, 63, 0.5);
    border-radius: var(--radius-md);
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.hero-function-item:hover .hero-function-icon {
    background: var(--primary);
    color: var(--bg-darkest);
    border-color: var(--primary);
}

.hero-function-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-function-text span {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.hero-function-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.3;
}

.shield-animation {
    position: relative;
    width: 350px;
    height: 350px;
}

.shield-outer,
.shield-middle,
.shield-inner {
    position: absolute;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-outer {
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 179, 66, 0.1), rgba(85, 139, 47, 0.1));
    border: 2px solid rgba(124, 179, 66, 0.2);
    animation: pulse 3s ease-in-out infinite;
}

.shield-middle {
    inset: 40px;
    background: linear-gradient(135deg, rgba(124, 179, 66, 0.15), rgba(85, 139, 47, 0.15));
    border: 2px solid rgba(124, 179, 66, 0.3);
    animation: pulse 3s ease-in-out infinite 0.5s;
}

.shield-inner {
    inset: 80px;
    background: var(--gradient-primary);
    font-size: 3rem;
    color: var(--bg-dark);
}

.orbit {
    position: absolute;
    border: 1px dashed rgba(124, 179, 66, 0.3);
    border-radius: var(--radius-full);
    animation: rotate 20s linear infinite;
}

.orbit-1 { inset: -20px; animation-duration: 25s; }
.orbit-2 { inset: -50px; animation-duration: 35s; animation-direction: reverse; }
.orbit-3 { inset: -80px; animation-duration: 45s; }

.orbit-dot {
    position: absolute;
    top: 50%;
    left: 0;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: var(--radius-full);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--primary);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.8; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ====================== PAGE HERO (Inner Pages) ====================== */
.page-hero {
    position: relative;
    padding: 80px 0;
    background: var(--bg-transparent-light);
    overflow: hidden;
}

.page-hero .hero-bg {
    opacity: 0.5;
}

.page-hero-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb i {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.page-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ====================== SERVICES OVERVIEW ====================== */
.services-overview {
    padding: var(--section-padding) 0;
    background: var(--bg-transparent-dark);
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition-base);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(140, 198, 63, 0.15);
    border-radius: var(--radius-md);
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-features {
    margin-bottom: 24px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 6px 0;
}

.service-features li i {
    color: var(--accent);
    font-size: 0.75rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
}

.service-link:hover {
    gap: 12px;
}

/* ====================== FOUR FUNCTIONS ====================== */
.functions-section {
    padding: var(--section-padding) 0;
    background: var(--bg-transparent-light);
    position: relative;
    z-index: 1;
}

/* Interactive Pyramid */
.pyramid-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.pyramid-wrapper {
    position: relative;
    width: 100%;
    max-width: 700px;
}

.pyramid-bg {
    width: 100%;
    height: auto;
    opacity: 1;
    filter: none;
}

/* Pyramid Layers - Clickable Areas (Transparent hotspots over image) */
.pyramid-layer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-decoration: none;
    display: block;
    transition: all var(--transition-base);
    cursor: pointer;
    border-radius: var(--radius-sm);
    background: transparent;
}

.pyramid-layer:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Layer Positions - Pyramid Shape (Top to Bottom) */
.layer-assess {
    top: 5%;
    width: 40%;
    height: 20%;
}

.layer-detect {
    top: 28%;
    width: 55%;
    height: 20%;
}

.layer-protect {
    top: 52%;
    width: 70%;
    height: 20%;
}

.layer-respond {
    top: 76%;
    width: 85%;
    height: 20%;
}

/* Layer Hover Colors */
.layer-assess:hover {
    background: rgba(255, 112, 67, 0.2);
    box-shadow: 0 0 25px rgba(255, 112, 67, 0.4);
}

.layer-detect:hover {
    background: rgba(66, 165, 245, 0.2);
    box-shadow: 0 0 25px rgba(66, 165, 245, 0.4);
}

.layer-protect:hover {
    background: rgba(102, 187, 106, 0.2);
    box-shadow: 0 0 25px rgba(102, 187, 106, 0.4);
}

.layer-respond:hover {
    background: rgba(239, 83, 80, 0.2);
    box-shadow: 0 0 25px rgba(239, 83, 80, 0.4);
}

/* ====================== SECURITY LENS (Pure HTML5/CSS) ====================== */
.security-lens {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    width: 100%;
    max-width: 700px;
    margin: 60px auto;
    background: rgba(124, 179, 66, 0.2);
    border-radius: var(--radius-lg);
    padding: 4px;
    box-shadow: 
        0 0 60px rgba(124, 179, 66, 0.15),
        0 0 120px rgba(124, 179, 66, 0.1);
}

/* Center Circle - Hidden for rectangle layout */
.lens-center {
    display: none;
}

/* Decorative Ring - Hidden for rectangle layout */
.lens-ring {
    display: none;
}

/* Segment Base Styles */
.lens-segment {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    padding: 40px 30px;
    min-height: 200px;
}

.lens-segment::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lens-segment:hover::before {
    opacity: 1;
}

.segment-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    transition: transform 0.4s ease;
}

.lens-segment:hover .segment-content {
    transform: scale(1.05);
}

.segment-content i {
    font-size: 3rem;
    margin-bottom: 16px;
    transition: all 0.4s ease;
}

.segment-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    transition: all 0.4s ease;
}

.segment-desc {
    font-size: 0.9rem;
    opacity: 0.9;
    max-width: 200px;
    line-height: 1.4;
    transition: all 0.4s ease;
}

/* Segment Positions & Colors */
.segment-assess {
    border-radius: var(--radius-lg) 0 0 0;
    background: linear-gradient(135deg, rgba(255, 112, 67, 0.2) 0%, rgba(255, 112, 67, 0.08) 100%);
    border: 1px solid rgba(255, 112, 67, 0.3);
}

.segment-assess::before {
    background: radial-gradient(circle at center, rgba(255, 112, 67, 0.3) 0%, transparent 70%);
}

.segment-assess i,
.segment-assess .segment-title {
    color: #ff7043;
}

.segment-assess .segment-desc {
    color: rgba(255, 200, 180, 0.9);
}

.segment-assess:hover {
    background: linear-gradient(135deg, rgba(255, 112, 67, 0.35) 0%, rgba(255, 112, 67, 0.15) 100%);
    box-shadow: 0 0 40px rgba(255, 112, 67, 0.3);
    border-color: rgba(255, 112, 67, 0.6);
}

/* Detect - Top Right */
.segment-detect {
    border-radius: 0 var(--radius-lg) 0 0;
    background: linear-gradient(225deg, rgba(66, 165, 245, 0.2) 0%, rgba(66, 165, 245, 0.08) 100%);
    border: 1px solid rgba(66, 165, 245, 0.3);
}

.segment-detect::before {
    background: radial-gradient(circle at center, rgba(66, 165, 245, 0.3) 0%, transparent 70%);
}

.segment-detect i,
.segment-detect .segment-title {
    color: #42a5f5;
}

.segment-detect .segment-desc {
    color: rgba(180, 210, 255, 0.9);
}

.segment-detect:hover {
    background: linear-gradient(225deg, rgba(66, 165, 245, 0.35) 0%, rgba(66, 165, 245, 0.15) 100%);
    box-shadow: 0 0 40px rgba(66, 165, 245, 0.3);
    border-color: rgba(66, 165, 245, 0.6);
}

/* Protect - Bottom Left */
.segment-protect {
    border-radius: 0 0 0 var(--radius-lg);
    background: linear-gradient(45deg, rgba(102, 187, 106, 0.2) 0%, rgba(102, 187, 106, 0.08) 100%);
    border: 1px solid rgba(102, 187, 106, 0.3);
}

.segment-protect::before {
    background: radial-gradient(circle at center, rgba(102, 187, 106, 0.3) 0%, transparent 70%);
}

.segment-protect i,
.segment-protect .segment-title {
    color: #66bb6a;
}

.segment-protect .segment-desc {
    color: rgba(180, 230, 180, 0.9);
}

.segment-protect:hover {
    background: linear-gradient(45deg, rgba(102, 187, 106, 0.35) 0%, rgba(102, 187, 106, 0.15) 100%);
    box-shadow: 0 0 40px rgba(102, 187, 106, 0.3);
    border-color: rgba(102, 187, 106, 0.6);
}

/* Respond - Bottom Right */
.segment-respond {
    border-radius: 0 0 var(--radius-lg) 0;
    background: linear-gradient(315deg, rgba(239, 83, 80, 0.2) 0%, rgba(239, 83, 80, 0.08) 100%);
    border: 1px solid rgba(239, 83, 80, 0.3);
}

.segment-respond::before {
    background: radial-gradient(circle at center, rgba(239, 83, 80, 0.3) 0%, transparent 70%);
}

.segment-respond i,
.segment-respond .segment-title {
    color: #ef5350;
}

.segment-respond .segment-desc {
    color: rgba(255, 180, 180, 0.9);
}

.segment-respond:hover {
    background: linear-gradient(315deg, rgba(239, 83, 80, 0.35) 0%, rgba(239, 83, 80, 0.15) 100%);
    box-shadow: 0 0 40px rgba(239, 83, 80, 0.3);
    border-color: rgba(239, 83, 80, 0.6);
}

/* Security Lens Responsive */
@media (max-width: 768px) {
    .security-lens {
        max-width: 500px;
        margin: 40px auto;
        gap: 3px;
        padding: 3px;
    }
    
    .lens-segment {
        padding: 30px 20px;
        min-height: 160px;
    }
    
    .segment-content i {
        font-size: 2.25rem;
        margin-bottom: 12px;
    }
    
    .segment-title {
        font-size: 1.15rem;
        letter-spacing: 1px;
    }
    
    .segment-desc {
        font-size: 0.8rem;
        max-width: 140px;
    }
}

@media (max-width: 480px) {
    .security-lens {
        max-width: 100%;
        margin: 30px auto;
        gap: 2px;
        padding: 2px;
    }
    
    .lens-segment {
        padding: 24px 16px;
        min-height: 130px;
    }
    
    .segment-content i {
        font-size: 1.75rem;
        margin-bottom: 10px;
    }
    
    .segment-title {
        font-size: 0.95rem;
        letter-spacing: 0.5px;
    }
    
    .segment-desc {
        font-size: 0.7rem;
        max-width: 100px;
    }
}

/* ====================== INTERACTIVE LENS (Image-based - Legacy) ====================== */
.lens-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.lens-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.lens-bg {
    width: 100%;
    height: auto;
    display: block;
}

/* Clickable Quadrants - positioned over the image */
.lens-quadrant {
    position: absolute;
    width: 50%;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.lens-quadrant .quadrant-label {
    opacity: 0;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.lens-quadrant:hover .quadrant-label {
    opacity: 1;
}

/* Quadrant Positions */
.quadrant-assess {
    top: 0;
    left: 0;
    border-radius: 50% 0 0 0;
}

.quadrant-detect {
    top: 0;
    right: 0;
    border-radius: 0 50% 0 0;
}

.quadrant-protect {
    bottom: 0;
    left: 0;
    border-radius: 0 0 0 50%;
}

.quadrant-respond {
    bottom: 0;
    right: 0;
    border-radius: 0 0 50% 0;
}

/* Quadrant Hover Effects */
.quadrant-assess:hover {
    background: rgba(255, 112, 67, 0.3);
}
.quadrant-assess .quadrant-label {
    background: rgba(255, 112, 67, 0.9);
}

.quadrant-detect:hover {
    background: rgba(66, 165, 245, 0.3);
}
.quadrant-detect .quadrant-label {
    background: rgba(66, 165, 245, 0.9);
}

.quadrant-protect:hover {
    background: rgba(102, 187, 106, 0.3);
}
.quadrant-protect .quadrant-label {
    background: rgba(102, 187, 106, 0.9);
}

.quadrant-respond:hover {
    background: rgba(239, 83, 80, 0.3);
}
.quadrant-respond .quadrant-label {
    background: rgba(239, 83, 80, 0.9);
}

/* Lens Responsive */
@media (max-width: 768px) {
    .lens-wrapper {
        max-width: 400px;
    }
    
    .lens-quadrant .quadrant-label {
        font-size: 1rem;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .lens-wrapper {
        max-width: 300px;
    }
    
    .lens-quadrant .quadrant-label {
        font-size: 0.875rem;
        padding: 6px 12px;
    }
}

/* Legacy functions-grid (keep for backward compatibility) */
.functions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.function-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: all var(--transition-base);
    overflow: hidden;
}

.function-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.function-card:hover::before {
    transform: scaleX(1);
}

.function-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.function-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 179, 66, 0.1);
    border-radius: var(--radius-full);
    font-size: 2rem;
    color: var(--primary);
}

/* Function-specific colors based on RS branding */
.function-card.assess .function-icon {
    background: rgba(255, 112, 67, 0.15);
    color: #ff7043;
}
.function-card.assess::before {
    background: linear-gradient(90deg, #ff7043, #ff8a65);
}

.function-card.detect .function-icon {
    background: rgba(66, 165, 245, 0.15);
    color: #42a5f5;
}
.function-card.detect::before {
    background: linear-gradient(90deg, #42a5f5, #64b5f6);
}

.function-card.protect .function-icon {
    background: rgba(102, 187, 106, 0.15);
    color: #66bb6a;
}
.function-card.protect::before {
    background: linear-gradient(90deg, #66bb6a, #81c784);
}

.function-card.respond .function-icon {
    background: rgba(239, 83, 80, 0.15);
    color: #ef5350;
}
.function-card.respond::before {
    background: linear-gradient(90deg, #ef5350, #e57373);
}

.function-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.function-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ====================== TRUSTED INDUSTRIES ====================== */
.industries-section {
    padding: var(--section-padding) 0;
    background: var(--bg-transparent-dark);
    position: relative;
    z-index: 1;
}

.industries-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.industry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 120px;
}

.industry-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    color: var(--primary);
    transition: all var(--transition-base);
}

.industry-item:hover .industry-icon {
    border-color: var(--primary);
    transform: scale(1.1);
}

.industry-name {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
}

/* ====================== VALUE PROPOSITION ====================== */
.value-section {
    padding: var(--section-padding) 0;
    background: var(--bg-transparent-light);
    position: relative;
    z-index: 1;
}

.value-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.value-content {
    max-width: 520px;
}

.value-list {
    margin-top: 32px;
}

.value-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.value-item:last-child {
    border-bottom: none;
}

.value-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(140, 198, 63, 0.15);
    border-radius: var(--radius-sm);
    color: var(--primary);
}

.value-item h4 {
    font-size: 1.125rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.value-item p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

/* ====================== ABOUT PAGE ====================== */
.about-story {
    padding: var(--section-padding) 0;
    background: var(--bg-transparent-dark);
    position: relative;
    z-index: 1;
}

/* Links inside prose inherited the body colour with no underline, so the
   NIST reference was indistinguishable from plain text. */
.story-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.story-content a:hover {
    color: var(--text-primary);
}

.story-grid {
    display: grid;
    /* The timeline that used to fill the second column was removed, so the
       story reads as one measured column instead of a half-width strip. */
    grid-template-columns: minmax(0, 820px);
    justify-content: center;
    gap: 80px;
    align-items: start;
}

.story-content h2 {
    color: var(--text-primary);
}

.story-content p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.story-content strong {
    color: var(--text-primary);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 4px;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: var(--radius-full);
    border: 3px solid #ffffff;
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.timeline-content h4 {
    font-size: 1.125rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.timeline-content p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Values Section */
/* About — Our Approach: the service map image (Assess / Protect / Detect / Respond). */
.approach-section {
    padding: var(--section-padding) 0;
    background: var(--bg-transparent-light);
    position: relative;
    z-index: 1;
}

.approach-section .section-title {
    color: #ffffff;
}

.approach-section .section-description {
    color: rgba(255, 255, 255, 0.8);
}

/* "How to read the map": three short steps above the wheel. */
.approach-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 1000px;
    margin: 32px auto 0;
    padding: 0;
    list-style: none;
}

.approach-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md, 12px);
    background: rgba(13, 27, 42, 0.6);
}

.approach-step-icon {
    flex: none;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    background: rgba(140, 198, 63, 0.15);
    color: var(--primary);
}

.approach-step strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.approach-step-no {
    color: var(--primary);
}

.approach-step p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .approach-steps {
        grid-template-columns: 1fr;
    }
}

.service-map {
    max-width: 1000px;
    margin: 32px auto 0;
}

.service-map-svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.sm-guide {
    fill: none;
    stroke: rgba(140, 198, 63, 0.45);
    stroke-width: 1.5;
    stroke-dasharray: 6 6;
}

.sm-phase--green { fill: var(--primary); }
.sm-phase--light { fill: #ffffff; }

.sm-phase-text {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.04em;
    fill: var(--bg-dark);
}

.sm-phase-no {
    font-size: 13px;
    font-weight: 600;
}

.sm-core {
    fill: var(--bg-dark);
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 2;
}

.sm-core-rule {
    stroke: var(--primary);
    stroke-width: 2;
}

.sm-core-text {
    font-family: var(--font-menu);
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    fill: var(--primary);
}

/* One service = segment + question + dot + label, all inside one link. */
.sm-seg {
    stroke-width: 1.5;
    transition: fill var(--transition-fast), stroke-width var(--transition-fast);
}

.sm-item--green .sm-seg { fill: rgba(140, 198, 63, 0.10); stroke: var(--primary); }
.sm-item--light .sm-seg { fill: rgba(255, 255, 255, 0.05); stroke: rgba(255, 255, 255, 0.55); }

.sm-q {
    font-family: var(--font-menu);
    font-size: 12.5px;
    font-weight: 500;
    fill: #ffffff;
    pointer-events: none;
}

.sm-dot { fill: var(--primary); }
.sm-item--light .sm-dot { fill: #ffffff; }

.sm-label {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
}

.sm-item--green .sm-label { fill: var(--primary); }
.sm-item--light .sm-label { fill: #ffffff; }

.sm-sub {
    font-family: var(--font-menu);
    font-size: 9px;
    letter-spacing: 0.1em;
    fill: var(--primary) !important;
}

a.sm-item { cursor: pointer; outline: none; }

a.sm-item:hover .sm-seg,
a.sm-item:focus-visible .sm-seg {
    fill: rgba(140, 198, 63, 0.38);
    stroke: var(--primary);
    stroke-width: 3;
}

a.sm-item:hover .sm-label,
a.sm-item:focus-visible .sm-label {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Small screens: the wheel is too small to read, show a grouped list. */
.service-map-list {
    display: none;
}

@media (max-width: 767px) {
    .service-map-svg { display: none; }

    .service-map-list {
        display: grid;
        gap: 20px;
    }

    /* Ring of four phase tabs above the cards. */
    .sm-ring {
        display: block;
        width: min(300px, 82vw);
        height: auto;
        margin: 0 auto -12px;
    }

    .sm-ring-tab { cursor: pointer; outline: none; }

    .sm-ring-seg {
        stroke-width: 3;
        stroke: transparent;
        transition: opacity var(--transition-fast);
    }

    .sm-ring-tab--green .sm-ring-seg { fill: var(--primary); }
    .sm-ring-tab--light .sm-ring-seg { fill: #ffffff; }

    .sm-ring-text {
        font-family: var(--font-heading);
        font-size: 15px;
        font-weight: 700;
        letter-spacing: 0.04em;
        fill: var(--bg-dark);
        pointer-events: none;
    }

    .sm-ring-no { font-size: 10px; font-weight: 600; }

    /* With JS on, the phases not selected fade back. */
    .service-map-list.is-tabs .sm-ring-tab[aria-selected="false"] .sm-ring-seg { opacity: 0.35; }
    .sm-ring-tab:focus-visible .sm-ring-seg { stroke: var(--primary); stroke-width: 4; }
    .sm-ring-tab--green:focus-visible .sm-ring-seg { stroke: #ffffff; }

    .sm-ring-hint {
        margin: 8px 0 4px;
        text-align: center;
        font-size: 0.85rem;
        color: var(--text-muted);
    }

    .service-map-list:not(.is-tabs) .sm-ring-hint { display: none; }
    .service-map-list.is-tabs .sm-group:not(.is-active) { display: none; }

    .sm-group-title {
        margin: 0 0 10px;
        font-size: 1.15rem;
        color: var(--primary);
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .sm-group--light .sm-group-title { color: #ffffff; }

    .sm-group-title span {
        font-size: 0.8rem;
        margin-right: 4px;
        opacity: 0.8;
    }

    .sm-group ul {
        display: grid;
        gap: 8px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .sm-row {
        display: block;
        padding: 12px 14px;
        border: 1px solid var(--border-color);
        border-left: 3px solid var(--primary);
        border-radius: var(--radius-sm);
        background: var(--bg-dark);
        text-decoration: none;
    }

    .sm-group--light .sm-row { border-left-color: #ffffff; }

    .sm-row-q {
        display: block;
        font-size: 0.9rem;
        color: var(--text-secondary);
    }

    .sm-row-name {
        display: block;
        margin-top: 2px;
        font-weight: 600;
        color: var(--text-primary);
    }

    .sm-row-name i {
        font-size: 0.75rem;
        color: var(--primary);
        margin-left: 4px;
    }

    .sm-row-sub {
        display: block;
        font-size: 0.75rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--primary);
    }
}

.values-section {
    padding: var(--section-padding) 0;
    background: var(--bg-transparent-light);
    position: relative;
    z-index: 1;
}

.values-section .section-title {
    color: #ffffff;
}

.values-section .section-description {
    color: rgba(255, 255, 255, 0.8);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: all var(--transition-base);
}

.value-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.value-card-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(140, 198, 63, 0.15);
    border-radius: var(--radius-full);
    font-size: 1.75rem;
    color: var(--primary);
}

.value-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.value-card p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Philosophy Section */
.philosophy-section {
    padding: var(--section-padding) 0;
    background: var(--bg-transparent-dark);
    position: relative;
    z-index: 1;
}

.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-quote {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.philosophy-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Experience Section */
.experience-section {
    padding: var(--section-padding) 0;
    background: var(--bg-transparent-light);
    position: relative;
    z-index: 1;
}

.experience-section .section-title {
    color: #ffffff;
}

.experience-section .section-description {
    color: rgba(255, 255, 255, 0.8);
}

.experience-grid {
    display: grid;
    /* Four stats, one row — they wrap to two columns on narrow screens. */
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

@media (max-width: 900px) {
    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.experience-item {
    text-align: center;
}

.experience-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.experience-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Certifications */
.certifications {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 60px;
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-base);
}

.cert-badge:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ====================== SERVICES PAGE ====================== */
.services-nav {
    padding: 40px 0;
    background: var(--bg-transparent-dark);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: var(--header-height);
    z-index: 100;
}

.services-nav-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.service-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.service-nav-item:hover,
.service-nav-item.active {
    background: rgba(124, 179, 66, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* Function-specific nav colors */
.service-nav-item[href="#assess"]:hover,
.service-nav-item[href="#assess"].active {
    background: rgba(255, 112, 67, 0.15);
    border-color: #ff7043;
    color: #ff7043;
}
.service-nav-item[href="#detect"]:hover,
.service-nav-item[href="#detect"].active {
    background: rgba(66, 165, 245, 0.15);
    border-color: #42a5f5;
    color: #42a5f5;
}
.service-nav-item[href="#protect"]:hover,
.service-nav-item[href="#protect"].active {
    background: rgba(102, 187, 106, 0.15);
    border-color: #66bb6a;
    color: #66bb6a;
}
.service-nav-item[href="#respond"]:hover,
.service-nav-item[href="#respond"].active {
    background: rgba(239, 83, 80, 0.15);
    border-color: #ef5350;
    color: #ef5350;
}

/* Service Detail Sections */
.service-detail {
    padding: var(--section-padding) 0;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-transparent-light);
    position: relative;
    z-index: 1;
}

.service-detail:nth-child(even) {
    background: var(--bg-transparent-dark);
}

.service-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 40px;
}

.service-icon-large {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    font-size: 2rem;
    color: #ffffff;
    flex-shrink: 0;
}

/* Function-specific service icon colors */
#assess .service-icon-large {
    background: linear-gradient(135deg, #ff7043, #ff8a65);
}
#detect .service-icon-large {
    background: linear-gradient(135deg, #42a5f5, #64b5f6);
}
#protect .service-icon-large {
    background: linear-gradient(135deg, #66bb6a, #81c784);
}
#respond .service-icon-large {
    background: linear-gradient(135deg, #ef5350, #e57373);
}

.service-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 800px;
}

.service-offerings h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 48px;
}

.offering-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all var(--transition-base);
}

.offering-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.offering-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(140, 198, 63, 0.15);
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 16px;
}

/* Function-specific offering colors */
#assess .offering-icon {
    background: rgba(255, 112, 67, 0.15);
    color: #ff7043;
}
#assess .offering-card:hover {
    border-color: #ff7043;
}

#detect .offering-icon {
    background: rgba(66, 165, 245, 0.15);
    color: #42a5f5;
}
#detect .offering-card:hover {
    border-color: #42a5f5;
}

#protect .offering-icon {
    background: rgba(102, 187, 106, 0.15);
    color: #66bb6a;
}
#protect .offering-card:hover {
    border-color: #66bb6a;
}

#respond .offering-icon {
    background: rgba(239, 83, 80, 0.15);
    color: #ef5350;
}
#respond .offering-card:hover {
    border-color: #ef5350;
}

.offering-card h4 {
    font-size: 1.125rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.offering-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.offering-card ul {
    font-size: 0.875rem;
}

.offering-card ul li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    padding: 4px 0;
}

.offering-card ul li i {
    color: var(--accent);
    font-size: 0.75rem;
}

/* ====================== SERVICE ACCORDION SECTIONS ====================== */
.service-accordion-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-transparent-dark);
    position: relative;
    z-index: 1;
}

.service-accordion-section:nth-child(even) {
    background: var(--bg-transparent-light);
}

.service-accordion-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.service-accordion-wrapper.reverse {
    direction: rtl;
}

.service-accordion-wrapper.reverse > * {
    direction: ltr;
}

.service-accordion-image {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-accordion-image .service-icon-display {
    font-size: 8rem;
    opacity: 0.3;
    color: var(--text-muted);
}

/* Detect Gears Image Container */
.detect-gears-container {
    position: relative;
    background: transparent;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detect-gears-image {
    width: 100%;
    height: auto;
    max-width: 500px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.detect-gears-container:hover .detect-gears-image {
    transform: scale(1.05);
}

/* Service Image Container with Frame and Hover Effects */
.service-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.service-image-container:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transform: scale(1.02);
}

.service-accordion-image .service-image-display {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-image-container:hover .service-image-display {
    transform: scale(1.08);
}

/* Blue overlay filter - visible by default, hides on hover */
.service-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 42, 64, 0.35);
    opacity: 1;
    transition: opacity 0.4s ease;
}

.service-image-container:hover .service-image-overlay {
    opacity: 0;
}

/* Caption band at bottom - green color on hover */
.service-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(140, 198, 63, 0.75);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.service-image-container:hover .service-image-caption {
    transform: translateY(0);
}

.service-image-caption h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: #0d1b2a;
    margin-bottom: 6px;
}

.service-image-caption p {
    font-size: 0.9rem;
    color: rgba(13, 27, 42, 0.85);
    margin: 0;
    line-height: 1.4;
}

.service-accordion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-accordion-content {
    padding: 0 0 20px 0;
}

.service-accordion-header {
    margin: 0 0 24px 0;
}

.service-accordion-header .section-tag {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    display: block;
}

.service-accordion-header h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.service-accordion-header .tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.service-accordion-header p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Accordion Items */
.accordion-list {
    margin-top: 24px;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-item:first-child {
    border-top: 1px solid var(--border-color);
}

.accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-fast);
}

.accordion-trigger:hover {
    color: var(--primary);
}

.accordion-trigger h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.accordion-trigger:hover h4 {
    color: var(--primary);
}

.accordion-trigger .accordion-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.active .accordion-trigger .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: grid-template-rows;
}

.accordion-item.active .accordion-content {
    grid-template-rows: 1fr;
}

.accordion-content-inner {
    overflow: hidden;
    padding-bottom: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease 0.1s, 
                transform 0.3s ease 0.1s,
                padding-bottom 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.accordion-item.active .accordion-content-inner {
    padding-bottom: 20px;
    opacity: 1;
    transform: translateY(0);
}

.accordion-content-inner p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
}

.accordion-content-inner .service-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: all var(--transition-base);
}

.accordion-content-inner .service-learn-more:hover {
    gap: 12px;
    color: var(--primary-light);
}

.accordion-content-inner .service-learn-more i {
    font-size: 0.75rem;
    transition: transform var(--transition-base);
}

.accordion-content-inner .service-learn-more:hover i {
    transform: translateX(4px);
}

/* Sub-services list within accordion content */
.sub-services-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sub-services-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(140, 198, 63, 0.05);
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
    transition: all var(--transition-base);
}

.sub-services-list li:hover {
    background: rgba(140, 198, 63, 0.1);
}

.sub-services-list li i {
    color: var(--primary);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.sub-services-list li div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sub-services-list li strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.sub-services-list li span {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Function-specific colors for accordions */
#assess .accordion-trigger:hover h4,
#assess .accordion-item.active .accordion-trigger h4,
#detect .accordion-trigger:hover h4,
#detect .accordion-item.active .accordion-trigger h4,
#protect .accordion-trigger:hover h4,
#protect .accordion-item.active .accordion-trigger h4,
#respond .accordion-trigger:hover h4,
#respond .accordion-item.active .accordion-trigger h4 {
    color: var(--primary);
}

/* Service Icon Colors in Image */
#assess .service-icon-display {
    color: #ff7043;
}
#detect .service-icon-display {
    color: #42a5f5;
}
#protect .service-icon-display {
    color: #66bb6a;
}
#respond .service-icon-display {
    color: #ef5350;
}

/* Responsive */
@media (max-width: 992px) {
    .service-accordion-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-accordion-wrapper.reverse {
        direction: ltr;
    }
    
    .service-accordion-image {
        max-height: 300px;
    }
}

/* ====================== APPROACH PAGE ====================== */
.approach-intro {
    padding: var(--section-padding) 0;
    background: var(--bg-transparent-dark);
    position: relative;
    z-index: 1;
}

.approach-intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.approach-intro-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Defense Mindset */
.mindset-section {
    padding: var(--section-padding) 0;
    background: var(--bg-transparent-light);
    position: relative;
    z-index: 1;
}

.mindset-section .section-title {
    color: #ffffff;
}

.mindset-section .section-description {
    color: rgba(255, 255, 255, 0.8);
}

.mindset-quote {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 60px;
    color: #ffffff;
}

.mindset-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.mindset-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: all var(--transition-base);
}

.mindset-item:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.mindset-number {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.mindset-item h4 {
    font-size: 0.9375rem;
    line-height: 1.4;
    color: #ffffff;
}

/* Approach Models */
.approach-models {
    padding: var(--section-padding) 0;
    background: var(--bg-transparent-dark);
    position: relative;
    z-index: 1;
}

.approach-models .section-title {
    color: var(--text-primary);
}

.approach-models .section-description {
    color: var(--text-secondary);
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.model-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: all var(--transition-base);
}

.model-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.model-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(140, 198, 63, 0.15);
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.model-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.model-card > p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.model-levels {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.model-level {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.model-level:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.model-level h4 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 8px;
}

/* Strategic Cascade pyramid colors */
.model-level.strategic h4,
.model-level.strategic h4 i {
    color: var(--color-strategic);
}

.model-level.tactical h4,
.model-level.tactical h4 i {
    color: var(--color-tactical);
}

.model-level.operational h4,
.model-level.operational h4 i {
    color: var(--color-operational);
}

.model-level p,
.model-level ul {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.model-level ul li {
    padding: 4px 0;
}

/* Question-Answer */
.qa-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.qa-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(140, 198, 63, 0.1);
    border-radius: var(--radius-sm);
}

.qa-item i {
    color: var(--primary);
}

.qa-item span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Retainer Services */
.retainer-services {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.retainer-tag {
    padding: 8px 16px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* Full Width Model Card for Retainer */
.model-card-full {
    grid-column: 1 / -1;
}

/* Retainer Accordion Styles */
.retainer-accordion {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 32px;
    margin-top: 16px;
}

.retainer-accordion .accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.retainer-accordion .accordion-item:nth-child(-n+3) {
    border-top: 1px solid #e0e0e0;
}

.retainer-accordion .accordion-trigger {
    padding: 14px 0;
}

.retainer-accordion .accordion-trigger h4 {
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.retainer-accordion .accordion-trigger:hover h4,
.retainer-accordion .accordion-item.active .accordion-trigger h4 {
    color: var(--primary);
}

.retainer-accordion .accordion-content-inner {
    padding: 0 0 16px 0;
}

.retainer-accordion .accordion-content-inner p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Responsive Retainer Accordion */
@media (max-width: 992px) {
    .retainer-accordion {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .retainer-accordion .accordion-item:nth-child(-n+3) {
        border-top: none;
    }
    
    .retainer-accordion .accordion-item:nth-child(-n+2) {
        border-top: 1px solid var(--border-color);
    }
}

@media (max-width: 768px) {
    .retainer-accordion {
        grid-template-columns: 1fr;
    }
    
    .retainer-accordion .accordion-item:nth-child(-n+2) {
        border-top: none;
    }
    
    .retainer-accordion .accordion-item:first-child {
        border-top: 1px solid var(--border-color);
    }
}

/* ====================== CONTACT PAGE ====================== */
.contact-section {
    padding: var(--section-padding) 0;
    background: var(--bg-dark);
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.contact-info > p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-details {
    margin-bottom: 40px;
}

/* Contact section entrance animations */
.contact-details.animate-on-scroll,
.contact-item.animate-on-scroll,
.social-links.animate-on-scroll,
.contact-form.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-details.animate-in,
.contact-item.animate-in,
.social-links.animate-in,
.contact-form.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger contact items */
.contact-item.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.contact-item.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.contact-item.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--primary);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
    font-size: 1rem;
    color: var(--text-primary);
}

.contact-item a:hover {
    color: var(--primary);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 1.125rem;
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px;
}

.contact-form-wrapper h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(140, 198, 63, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-submit {
    margin-top: 8px;
}

.form-submit .btn {
    width: 100%;
}

/* ====================== FOOTER ====================== */
.footer {
    background: var(--bg-dark);
    color: #ffffff;
    position: relative;
    z-index: 1;
}

/* Footer Top - Logo and Contact Bar */
.footer-top {
    background: #062a40;
    padding: 40px 0;
}

/* Footer top entrance animations */
.footer-top-content.animate-on-scroll,
.footer-logo.animate-on-scroll,
.footer-contact-item.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-top-content.animate-in,
.footer-logo.animate-in,
.footer-contact-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger footer contact items */
.footer-contact-item.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.footer-contact-item.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.footer-contact-item.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }

.footer-top-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

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

.footer-contact-bar {
    display: flex;
    align-items: center;
    /* Four items (phone, email, two offices) share one row, so the gap is
       tighter than when it held two. */
    gap: 32px;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

/* Brand mark leading the footer contact strip. The office address was removed
   from this bar (the full postal address lives on the contact page), so the
   logo fills the space instead of leaving the row lopsided. */
.footer-bar-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 8px;
}

.footer-bar-logo img {
    height: 44px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .footer-bar-logo {
        margin-right: 0;
    }

    .footer-bar-logo img {
        height: 38px;
    }
}

.footer-contact-item i {
    font-size: 1.15rem;
    color: var(--primary);
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary);
    border-radius: 50%;
}

.footer-contact-item div {
    display: flex;
    flex-direction: column;
}

.footer-contact-item span:first-child {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Small enough that a phone number and an e-mail each stay on one line
   instead of wrapping mid-value. */
.footer-contact-item span:last-child,
.footer-contact-item a {
    font-size: 0.8125rem;
    color: #ffffff;
    font-weight: 500;
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .footer-contact-bar {
        gap: 20px;
    }

    .footer-contact-item span:last-child,
    .footer-contact-item a {
        font-size: 0.75rem;
    }
}

/* Too narrow to keep four items on one line — let the values wrap again
   rather than overflow. */
@media (max-width: 900px) {
    .footer-contact-item span:last-child,
    .footer-contact-item a {
        white-space: normal;
    }
}

.footer-contact-item a:hover {
    color: var(--primary);
}

/* Footer Main Content */
.footer-main {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 50px;
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #ffffff;
}

.footer-about-text {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
}

/* Footer Links */
.footer-links {
    list-style: none;
}

.footer-links li {
    padding: 8px 0;
    position: relative;
    padding-left: 16px;
}

.footer-links li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.footer-links li a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-links li a:hover {
    color: var(--primary);
}

/* Newsletter Form */
.newsletter-form {
    margin-bottom: 16px;
}

.newsletter-input-wrap {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.newsletter-input-wrap input {
    flex: 1;
    padding: 14px 16px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.9375rem;
}

.newsletter-input-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input-wrap button {
    padding: 14px 20px;
    background: var(--primary);
    border: none;
    color: var(--bg-dark);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.newsletter-input-wrap button:hover {
    background: var(--primary-light);
}

.newsletter-text {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* Footer Bottom */
.footer-bottom {
    padding: 24px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.privacy-link {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

.privacy-link:hover {
    color: var(--primary);
}

/* ====================== BACK TO TOP ====================== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    color: var(--bg-dark);
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 1000;
    cursor: pointer;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

/* ====================== STATS SECTION - Banner Style ====================== */
.stats-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    background: var(--bg-transparent-light);
    z-index: 1;
}

/* Stats entrance animations */
.stats-title.animate-on-scroll,
.stats-item.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-title.animate-in,
.stats-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger stats items */
.stats-item.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.stats-item.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.stats-item.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.stats-item.animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }
.stats-item.animate-on-scroll:nth-child(5) { transition-delay: 0.5s; }

.stats-bg {
    display: none;
}

.stats-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

.stats-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 40px;
}

.stats-row {
    display: flex;
    align-items: flex-start;   /* keep every number on one line (see .stats-item) */
    justify-content: center;
    width: 100%;
    max-width: 1200px;
}

/* The About page reuses the Track Record row; it holds fewer items and sits
   on a normal section rather than the homepage's banner strip. */
.experience-stats {
    margin: 48px auto 0;
    justify-content: center;
    gap: 8px;
}

/* Four items share the row, so each gets tighter padding and is allowed to
   shrink rather than wrap onto a second line. */
.experience-stats .stats-item {
    padding: 16px 18px;
    flex: 1 1 0;
    min-width: 0;
}

@media (max-width: 900px) {
    .experience-stats {
        flex-wrap: wrap;
    }

    .experience-stats .stats-item {
        flex: 1 1 45%;
    }
}

.stats-item {
    display: flex;
    /* Top, not centre: a label that wraps to two lines must not push its
       number above the numbers of the other items. */
    align-items: flex-start;
    gap: 14px;
    padding: 20px 35px;
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    transition: all var(--transition-base);
}

.stats-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 50px;
    width: 1px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 20%, 
        rgba(255, 255, 255, 0.3) 80%, 
        transparent 100%);
}

.stats-item:hover {
    transform: translateY(-3px);
}

.stats-item-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(140, 198, 63, 0.5);
    border-radius: var(--radius-md);
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.stats-item:hover .stats-item-icon {
    background: var(--primary);
    color: var(--bg-darkest);
    border-color: var(--primary);
}

/* A stats icon box that holds a certification badge instead of a Font
   Awesome glyph — the eCIR badge on the DFIR page. Same box, same border,
   a little more room so the badge reads at a glance. */
.stats-item-icon--logo {
    width: 58px;
    height: 58px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.04);
}

.stats-item-icon--logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    /* Desaturated at rest, colour on hover — same behaviour as the badges
       in the certification band. */
    filter: grayscale(1);
    opacity: 0.8;
    transition: filter var(--transition-base), opacity var(--transition-base);
}

.stats-item:hover .stats-item-icon--logo img {
    filter: none;
    opacity: 1;
}

/* The row's hover fills the icon box green; behind a full-colour badge that
   just fights it. Keep the box quiet and let the badge do the colour. */
.stats-item:hover .stats-item-icon--logo {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    transform: none;
}

/* Team Qualifications row on the DFIR page: two items (years, DFIR hours),
   centred under the section header. */
.dfir-stats {
    max-width: 620px;
    margin: 32px auto 0;
}

.stats-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stats-item-text .stats-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stats-item-text .stats-number::after {
    content: '+';
    color: var(--primary);
    margin-left: 2px;
}

/* Every stat shows a trailing "+". The years counter opts out only on the
   exact anniversary, when the number is precise — see data-no-plus. */
.stats-number[data-no-plus]::after {
    content: '';
}

.stats-item-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.3;
}

@media (max-width: 1024px) {
    .stats-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .stats-item {
        padding: 15px 25px;
    }
}

@media (max-width: 768px) {
    .stats-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .stats-item {
        padding: 15px 20px;
        width: calc(50% - 5px);
        justify-content: flex-start;
    }
    
    .stats-item:not(:last-child)::after {
        display: none;
    }
    
    .stats-item-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
    
    .stats-item-text .stats-number {
        font-size: 1.25rem;
    }
    
    .stats-item-text p {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .stats-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .stats-item {
        width: 100%;
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .stats-item:last-child {
        border-bottom: none;
    }
}

/* ====================== CLIENTS CAROUSEL ====================== */
.clients-section {
    padding: 80px 0 60px;
    background: var(--bg-transparent-dark);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.clients-section .section-tag {
    color: var(--primary);
}

.clients-section .section-title {
    color: var(--text-primary);
}

.clients-carousel {
    width: 100%;
    overflow: hidden;
    margin-top: 40px;
}

.clients-track {
    display: flex;
    gap: 60px;
    animation: scroll-clients 30s linear infinite;
    width: max-content;
}

.clients-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-clients {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    min-width: 140px;
    padding: 0 24px;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: default;
}

.client-logo:hover {
    border-color: transparent;
    background: transparent;
}

.client-logo i {
    font-size: 2.5rem;
    color: var(--text-muted);
    transition: color var(--transition-base);
}

.client-logo:hover i {
    color: var(--primary);
}

.client-logo span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.client-logo img {
    max-height: 70px;
    max-width: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Per-logo size bumps — these emblems read too small at the default cap. */
.client-logo img[src*="mdn.png"],
.client-logo img[src*="faderco.png"],
.client-logo img[src*="adaptive.png"] {
    max-height: 88px;
    max-width: 260px;
}

/* When the carousel is hosted inside .footer-top, render it as a slim white
   panel only — no blue band around it. Scoped via :has() so it only fires on
   index.html (the only page with a carousel); other pages keep the original
   blue contact-bar band. */
.footer-top:has(.clients-carousel) {
    background: transparent !important;
    padding: 24px 0 0;
}

.footer-top .clients-carousel {
    background: #ffffff;
    padding: 14px 0;
    border-radius: 6px;
    margin: 0;
    position: relative;
}

/* Blue overlay on the whole band — fades out when the user hovers anywhere
   on the carousel, revealing the original logo colors. */
.footer-top .clients-carousel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(6, 42, 64, 0.7);
    border-radius: inherit;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.footer-top .clients-carousel:hover::after {
    opacity: 0;
}

/* Touch devices (no hover capability) never get the reveal-on-hover
   transition, so the heavy blue overlay leaves the logos almost invisible.
   Drop the overlay opacity so the logos remain readable on mobile. */
@media (hover: none) {
    .footer-top .clients-carousel::after {
        background: rgba(6, 42, 64, 0.15);
    }
}

@media (max-width: 768px) {
    .clients-track {
        gap: 40px;
    }

    .client-logo {
        min-width: 120px;
        padding: 24px 30px;
    }

    .client-logo i {
        font-size: 2rem;
    }

    .client-logo span {
        font-size: 0.75rem;
    }

    .client-logo img {
        max-height: 55px;
        max-width: 150px;
    }
}

/* ====================== CTA SECTION ====================== */
.cta-section {
    padding: var(--section-padding) 0;
    /* Darker than the contact band that follows it (.footer-top, #062a40), so
       the two stacked strips read as separate sections, not one block. */
    background: #091622;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 16px;
    color: #ffffff;
}

.cta-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* ====================== RESPONSIVE DESIGN ====================== */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    .pyramid-wrapper {
        max-width: 550px;
    }
    
    .pyramid-layer-content {
        padding: 12px 24px;
        gap: 10px;
    }
    
    .pyramid-layer i {
        font-size: 1.25rem;
    }
    
    .pyramid-title {
        font-size: 1.125rem;
    }
    
    .services-grid,
    .functions-grid,
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .experience-grid {
        gap: 40px;
    }
    
    .offerings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mindset-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .models-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --header-height: 70px;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        background: var(--bg-overlay);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
    
    .nav-cta {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Mobile dropdown / mega-menu — render as a full-screen second pane that
       slides in over the main nav, with a back button at the top to return.
       Hover triggers don't exist on touch devices, so the pane is gated by
       a .open class that JS toggles when the user taps the parent nav-link. */
    .nav-item.has-dropdown,
    .nav-item.has-megamenu {
        width: 100%;
        text-align: center;
    }

    .nav-item.has-dropdown > .nav-link,
    .nav-item.has-megamenu > .nav-link {
        justify-content: center;
    }

    .nav-menu .dropdown-menu,
    .nav-menu .mega-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        max-width: 100%;
        min-width: 0;
        margin: 0;
        padding: 24px 20px 40px;
        background: var(--bg-overlay);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: none;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        overflow-y: auto;
        opacity: 1;
        visibility: visible;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1001;
    }

    /* The desktop :hover rule applies a translateX(-50%) — neutralize it on
       mobile so the slide-in transform is correct. */
    .nav-menu .nav-item.has-megamenu:hover .mega-menu,
    .nav-menu .nav-item.has-dropdown:hover .dropdown-menu {
        transform: translateX(100%);
    }

    .nav-menu .nav-item.open > .dropdown-menu,
    .nav-menu .nav-item.open > .mega-menu,
    .nav-menu .nav-item.has-megamenu.open:hover .mega-menu,
    .nav-menu .nav-item.has-dropdown.open:hover .dropdown-menu {
        transform: translateX(0);
    }

    /* Back button — injected by JS at the top of every mobile sub-pane */
    .mega-menu-back {
        display: flex;
        align-items: center;
        gap: 10px;
        background: transparent;
        border: none;
        color: var(--primary);
        font-family: var(--font-menu);
        font-size: 0.9375rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.75px;
        padding: 8px 0;
        margin-bottom: 12px;
        align-self: flex-start;
        cursor: pointer;
    }

    .mega-menu-back i {
        font-size: 0.875rem;
    }

    /* Overview link — re-exposes the parent page (Services, About) inside
       the sub-pane since the parent nav-link's tap now opens the pane.
       The compound selectors beat the desktop display:none rule above. */
    .mega-menu-overview,
    .dropdown-menu .mega-menu-overview,
    .mega-menu .mega-menu-overview {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 16px;
        margin-bottom: 16px;
        background: rgba(140, 198, 63, 0.08);
        border: 1px solid rgba(140, 198, 63, 0.25);
        border-radius: var(--radius-sm);
        font-family: var(--font-menu);
        font-size: 1rem;
        font-weight: 500;
        color: #ffffff;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .mega-menu-overview:active {
        background: rgba(140, 198, 63, 0.15);
        color: var(--primary);
    }

    .mega-menu-overview i {
        color: var(--primary);
        font-size: 0.875rem;
    }

    /* Mega-menu columns stack vertically on mobile */
    .nav-menu .mega-menu-column {
        width: 100%;
        min-width: 0;
        flex: none;
        padding: 12px 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-menu .mega-menu-column:last-child {
        border-bottom: none;
    }

    .nav-menu .mega-menu-title {
        text-align: center;
        margin-bottom: 10px;
        font-size: 0.8125rem;
    }

    .nav-menu .mega-menu-column ul,
    .nav-menu .dropdown-menu {
        text-align: center;
    }

    .nav-menu .mega-menu-column a,
    .nav-menu .dropdown-menu a {
        padding: 10px 16px;
        font-size: 1rem;
    }

    /* Rotate the chevron when the dropdown is open (mobile counterpart of
       the desktop :hover rotation). */
    .nav-item.has-dropdown.open > .nav-link::after {
        transform: rotate(180deg);
    }

    /* Hero */
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.75rem);
        line-height: 1.15;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .hero-title .typing-text {
        display: inline-block;
        max-width: 100%;
    }

    .hero-subtitle {
        width: 100%;
        max-width: 100%;
        font-size: 1.0625rem;
        line-height: 1.6;
    }

    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    /* Grids */
    .services-grid,
    .functions-grid,
    .values-grid,
    .experience-grid,
    .offerings-grid {
        grid-template-columns: 1fr;
    }
    
    /* Pyramid Mobile */
    .pyramid-wrapper {
        max-width: 100%;
    }
    
    .pyramid-layer-content {
        padding: 10px 16px;
        gap: 8px;
    }
    
    .pyramid-layer i {
        font-size: 1rem;
    }
    
    .pyramid-title {
        font-size: 0.9375rem;
    }
    
    .pyramid-subtitle {
        display: none !important;
    }
    
    .mindset-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .story-grid,
    .value-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Services Nav */
    .services-nav-grid {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .service-nav-item {
        padding: 10px 16px;
        font-size: 0.875rem;
    }
    
    .service-detail-header {
        flex-direction: column;
    }
    
    /* Contact Form */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 32px 24px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    /* CTA */
    .cta-buttons {
        flex-direction: column;
    }
    
    /* QA Grid */
    .qa-grid {
        grid-template-columns: 1fr;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .mindset-grid {
        grid-template-columns: 1fr;
    }
    
    .industries-grid {
        gap: 24px;
    }
    
    .btn-lg {
        padding: 14px 24px;
        font-size: 1rem;
    }
}

/* ====================== TOP BAR & FOOTER RESPONSIVE ====================== */
@media (max-width: 992px) {
    .top-bar-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .top-bar-contact {
        gap: 20px;
    }
    
    .footer-top-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-contact-bar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .header {
        position: fixed;
        top: 0;
    }
    
    .footer-contact-bar {
        flex-direction: column;
        gap: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links li {
        padding-left: 0;
    }
    
    .footer-links li::before {
        display: none;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    /* Hero Functions Row Mobile */
    .hero-functions-row {
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 40px;
    }
    
    .hero-function-item {
        padding: 15px 20px;
        width: calc(50% - 5px);
        justify-content: flex-start;
    }
    
    .hero-function-item:not(:last-child)::after {
        display: none;
    }
    
    .hero-function-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
    
    .hero-function-text span {
        font-size: 0.9rem;
    }
    
    .hero-function-text p {
        font-size: 0.75rem;
    }
}

/* Mobile: keep the "What we do" intro off the screen edges, and left-align
   the function titles so each one lines up with its subtitle. */
@media (max-width: 768px) {
    .hero-functions-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-functions-intro {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .hero-function-text {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .hero-functions-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-function-item {
        width: 100%;
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .hero-function-item:last-child {
        border-bottom: none;
    }
}

/* ====================== SERVICE DETAIL PAGES ====================== */

/* Service Page Hero */
.service-page-hero {
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
    border-bottom: 1px solid rgba(42, 60, 80, 0.8);
    min-height: 500px;
    max-height: 500px;
    display: flex;
    align-items: center;
}

/* Service Hero Background with Blue Filter */
.service-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: contain auto;
    background-position: center;
    background-repeat: no-repeat;
}

/* Lazy reveal (tools/shared/hero-reveal.php): the photo stays hidden while
   it downloads, then fades in complete instead of painting in half-drawn. */
.service-hero-bg {
    transition: opacity 0.6s ease;
}

.service-hero-bg.hero-bg-loading {
    opacity: 0;
}

.service-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/blue-filter.png');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: 1;
}

.service-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.2) 0%, rgba(13, 27, 42, 0.6) 100%);
    z-index: 2;
}

/* Pentest Hero Background */
.pentest-hero-bg {
    background-image: url('../images/pentest-banner-modern-4.jpg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}

/* Use same blue filter as main page hero */
.pentest-hero-bg::before {
    opacity: 0.5;
}

.pentest-hero-bg::after {
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.2) 0%, rgba(13, 27, 42, 0.6) 100%);
}

/* Red Team Hero Background */
.redteam-hero-bg {
    background-image: url('../images/redteam-banner.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Use same blue filter as main page hero */
.redteam-hero-bg::before {
    opacity: 0.5;
}

.redteam-hero-bg::after {
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.2) 0%, rgba(13, 27, 42, 0.6) 100%);
}

/* Adversary Emulation Hero Background */
.adversary-hero-bg {
    background-image: url('../images/adversary-eumation-hero-banner-v2.jpeg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.adversary-hero-bg::before {
    opacity: 0.5;
}

.adversary-hero-bg::after {
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.2) 0%, rgba(13, 27, 42, 0.6) 100%);
}

/* Threat Modeling Hero Background */
.threat-modeling-hero-bg {
    background-image: url('../images/threat-modeling-banner.jpg');
    background-size: cover;
    background-position: center 75%;
    background-repeat: no-repeat;
}

.threat-modeling-hero-bg::before {
    opacity: 0.5;
}

.threat-modeling-hero-bg::after {
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.2) 0%, rgba(13, 27, 42, 0.6) 100%);
}

/* Detection Engineering Hero Background */
.detection-engineering-hero-bg {
    background-image: url('../images/detection-engineering-banner-1.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.detection-engineering-hero-bg::before {
    opacity: 0.5;
}

.detection-engineering-hero-bg::after {
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.2) 0%, rgba(13, 27, 42, 0.6) 100%);
}

/* Response Readiness Hero Background */
.response-readiness-hero-bg {
    background-image: url('../images/Response-Readines-banner-7.jpg');
    background-size: cover;
    background-position: center 70%;
    background-repeat: no-repeat;
}

.response-readiness-hero-bg::before {
    opacity: 0.5;
}

.response-readiness-hero-bg::after {
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.2) 0%, rgba(13, 27, 42, 0.6) 100%);
}

/* Trainings Hero Background */
.trainings-hero-bg {
    background-image: url('../images/training-banner.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.trainings-hero-bg::before {
    opacity: 0.5;
}

.trainings-hero-bg::after {
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.2) 0%, rgba(13, 27, 42, 0.6) 100%);
}

/* Same look as the plain page hero (contact, about): the blue-filtered rock
   from the site-wide .hero-bg, fixed and at half strength, without the photo
   overlays. */
.rock-hero-bg {
    background-image: url('../images/blue-filter.png'), url('../images/background-rock.jpg');
    background-size: cover, cover;
    background-position: center, center 70%;
    background-repeat: no-repeat, no-repeat;
    background-blend-mode: multiply, normal;
    background-attachment: fixed, fixed;
    opacity: 0.5;
}

.rock-hero-bg::before,
.rock-hero-bg::after {
    display: none;
}

/* Security Solutions Hero Background */
.security-solutions-hero-bg {
    background-image: url('../images/services/solution-integration-banner.jpeg');
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
}

.security-solutions-hero-bg::before {
    opacity: 0.5;
}

.security-solutions-hero-bg::after {
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.2) 0%, rgba(13, 27, 42, 0.6) 100%);
}

/* Security Architecture Design Hero Background */
.security-architecture-hero-bg {
    background-image: url('../images/arch-design-banner-6.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.security-architecture-hero-bg::before {
    opacity: 0.5;
}

.security-architecture-hero-bg::after {
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.2) 0%, rgba(13, 27, 42, 0.6) 100%);
}

/* Active Directory Review Hero Background */
.ad-review-hero-bg {
    background-image: url('../images/ad-review-4.jpg');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
}

.ad-review-hero-bg::before {
    opacity: 0.5;
}

.ad-review-hero-bg::after {
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.2) 0%, rgba(13, 27, 42, 0.6) 100%);
}

/* Vulnerability Assessment Hero Background */
.vuln-assessment-hero-bg {
    background-image: url('../images/services/Vulnerability-assessment-hero-banner.jpeg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.vuln-assessment-hero-bg::before {
    opacity: 0.5;
}

.vuln-assessment-hero-bg::after {
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.2) 0%, rgba(13, 27, 42, 0.6) 100%);
}

/* Application Security Hero Background */
.application-security-hero-bg {
    background-image: url('../images/services/Security-source-code-review.jpeg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.application-security-hero-bg::before {
    opacity: 0.5;
}

.application-security-hero-bg::after {
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.2) 0%, rgba(13, 27, 42, 0.6) 100%);
}

/* Playbook Development Hero Background */
.playbook-development-hero-bg {
    background-image: url('../images/services/Playbook-Development.jpeg');
    background-size: cover;
    background-position: center 25%;
    background-repeat: no-repeat;
}

.playbook-development-hero-bg::before {
    opacity: 0.5;
}

.playbook-development-hero-bg::after {
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.2) 0%, rgba(13, 27, 42, 0.6) 100%);
}

/* Security Controls Configuration Review Hero Background */
.controls-review-hero-bg {
    background-image: url('../images/arch-review-banner-1.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.controls-review-hero-bg::before {
    opacity: 0.5;
}

.controls-review-hero-bg::after {
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.2) 0%, rgba(13, 27, 42, 0.6) 100%);
}

/* Incident Response Hero Background */
.incident-response-hero-bg {
    background-image: url('../images/services/forensic-course.jpeg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.incident-response-hero-bg::before {
    opacity: 0.5;
}

.incident-response-hero-bg::after {
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.2) 0%, rgba(13, 27, 42, 0.6) 100%);
}

/* Compromise Assessment Hero Background */
.compromise-assessment-hero-bg {
    background-image: url('../images/compromise-assessment-1.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.compromise-assessment-hero-bg::before {
    opacity: 0.5;
}

.compromise-assessment-hero-bg::after {
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.2) 0%, rgba(13, 27, 42, 0.6) 100%);
}

/* MDR Hero Background */
.mdr-hero-bg {
    background-size: cover;
    background-position: right 20%;
    background-repeat: no-repeat;
}

.mdr-hero-bg::before {
    opacity: 0.5;
}

.mdr-hero-bg::after {
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.3) 0%, rgba(13, 27, 42, 0.7) 100%);
}

/* Incident Response Plan Hero Background */
.incident-response-plan-hero-bg {
    background-image: url('../images/incidet-reposne-report-1.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.incident-response-plan-hero-bg::before {
    opacity: 0.5;
}

.incident-response-plan-hero-bg::after {
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.2) 0%, rgba(13, 27, 42, 0.6) 100%);
}

/* Response Assessment Hero Background */
.response-assessment-hero-bg {
    background-image: url('../images/Response-Readines-banner-5.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.response-assessment-hero-bg::before {
    opacity: 0.5;
}

.response-assessment-hero-bg::after {
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.2) 0%, rgba(13, 27, 42, 0.6) 100%);
}

/* SOC Playbooks Hero Background */
.soc-playbooks-hero-bg {
    background-image: url('../images/ENT-SOC-Aug23.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.soc-playbooks-hero-bg::before {
    opacity: 0.5;
}

.soc-playbooks-hero-bg::after {
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.2) 0%, rgba(13, 27, 42, 0.6) 100%);
}

/* MDR Page Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(140, 198, 63, 0.15);
    border: 1px solid var(--primary);
    padding: 10px 20px;
    border-radius: 50px;
    margin-top: 24px;
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 500;
}

.hero-badge i {
    color: var(--primary);
}

/* MDR Highlight Card */
.highlight-card {
    background: linear-gradient(135deg, rgba(140, 198, 63, 0.1), rgba(140, 198, 63, 0.05));
    border: 1px solid rgba(140, 198, 63, 0.3);
    margin-top: 24px;
    text-align: center;
}

.highlight-card .highlight-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.highlight-card .highlight-icon i {
    font-size: 24px;
    color: white;
}

.highlight-card h4 {
    color: var(--primary);
    margin-bottom: 8px;
}

.highlight-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* MDR Stats Visual */
.mdr-features-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: 100%;
    align-content: center;
}

.mdr-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.mdr-stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(140, 198, 63, 0.15);
}

.mdr-stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(140, 198, 63, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mdr-stat-icon i {
    font-size: 22px;
    color: var(--primary);
}

.mdr-stat-content {
    display: flex;
    flex-direction: column;
}

.mdr-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.mdr-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Algeria Section Special Styling */
.algeria-section {
    background: linear-gradient(180deg, #0a141f 0%, var(--bg-dark) 100%);
}

.mdr-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.mdr-capabilities-grid.six-cols {
    grid-template-columns: repeat(6, 1fr);
    max-width: 1200px;
    gap: 20px;
}

/* MDR Responsive Adjustments */
@media (max-width: 768px) {
    .mdr-features-visual {
        grid-template-columns: 1fr;
    }
    
    .hero-badge {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    .mdr-capabilities-grid {
        grid-template-columns: 1fr;
    }
    
    .mdr-capabilities-grid.six-cols {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reporting-features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .mdr-capabilities-grid.six-cols {
        grid-template-columns: 1fr;
    }
}

/* MDR Capabilities Counter Section */
.mdr-stats-section {
    background: linear-gradient(180deg, #0a141f 0%, var(--bg-dark) 100%);
}

.mdr-capability-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.mdr-capability-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(140, 198, 63, 0.15);
}

.mdr-capability-card .capability-icon {
    width: 50px;
    height: 50px;
    background: rgba(140, 198, 63, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.mdr-capability-card .capability-icon i {
    font-size: 20px;
    color: var(--primary);
}

.mdr-capability-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
    display: block;
    margin-bottom: 8px;
}

.mdr-capability-card .stat-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: block;
}

.mdr-capability-card .stat-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* MDR What's Included Grid */
.reporting-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.reporting-features-grid .reporting-feature {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    transition: all 0.3s ease;
}

.reporting-features-grid .reporting-feature:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

@media (min-width: 769px) and (max-width: 1024px) {
    .mdr-capabilities-grid.six-cols {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Service Findings Section */
.service-findings-section {
    padding: var(--section-padding) 0;
    background: #0a141f;
}

.service-findings-section .section-header {
    margin-bottom: 48px;
}

.findings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.finding-item {
    background: var(--bg-dark);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.finding-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.finding-item h4 {
    color: var(--text-light);
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 600;
}

.finding-item h4 i {
    color: var(--primary);
    margin-right: 10px;
}

.finding-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.service-page-hero .container {
    position: relative;
    z-index: 3;
}

.service-page-hero .section-tag {
    display: inline-block;
    background: rgba(140, 198, 63, 0.15);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.service-page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.page-hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
}

/* Service Detail Section */
.service-detail-section {
    padding: 80px 0;
    background: var(--bg-dark);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: start;
}

.service-detail-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.service-detail-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 40px 0 20px;
}

.service-detail-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* Benefits List */
.service-benefits-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.service-benefits-list li {
    display: grid;
    grid-template-columns: 28px 230px 1fr;
    align-items: baseline;
    gap: 8px 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    line-height: 1.6;
}

.service-benefits-list li:last-child {
    border-bottom: none;
}

.service-benefits-list li i {
    color: var(--primary);
    font-size: 1.2rem;
    justify-self: center;
}

.service-benefits-list li strong {
    color: var(--text-primary);
    white-space: nowrap;
    margin-right: 4px;
}

/* Responsive adjustment for smaller screens */
@media (max-width: 768px) {
    .service-benefits-list li {
        grid-template-columns: 28px 1fr;
        grid-template-rows: auto auto;
        column-gap: 12px;
        row-gap: 4px;
    }

    .service-benefits-list li i {
        grid-column: 1;
        grid-row: 1;
        align-self: start;
        margin-top: 4px;
    }

    .service-benefits-list li strong {
        grid-column: 2;
        grid-row: 1;
        white-space: normal;
    }

    .service-benefits-list li span {
        grid-column: 2;
        grid-row: 2;
    }
}

/* Comparison Callout Box */
.comparison-callout {
    background: linear-gradient(135deg, rgba(140, 198, 63, 0.1) 0%, rgba(140, 198, 63, 0.05) 100%);
    border: 1px solid rgba(140, 198, 63, 0.3);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 24px 0;
}

.comparison-callout h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comparison-callout h4 i {
    font-size: 1.1rem;
}

.comparison-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comparison-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.comparison-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    min-width: 140px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
}

.comparison-question {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Service Info Card Sidebar */
.service-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: sticky;
    top: 100px;
}

.service-info-card h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.service-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.service-info-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.service-info-list li:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    color: var(--text-primary);
    font-weight: 500;
}

.btn-full {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* Service Types Section */
.service-types-section {
    padding: 80px 0;
    background: var(--bg-darker);
}

.service-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

/* Per-course anchors from the Services mega-menu (Trainings column) — same
   sticky-header clearance as the group titles so a jump never lands hidden. */
.service-type-card h3[id^="training-"] {
    scroll-margin-top: 100px;
}

.training-group-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 40px 0 20px;
    scroll-margin-top: 100px;
}

.service-types-grid.four-cols {
    grid-template-columns: repeat(4, 1fr);
}

/* A group that currently holds a single course: one column at the card's
   natural width instead of a 3-column row two-thirds empty. */
.service-types-grid.one-col {
    grid-template-columns: minmax(0, 420px);
}

.service-type-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition-base);
}

.service-type-card.compact {
    padding: 24px;
    text-align: center;
}

.service-type-card.compact h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.service-type-card.compact p {
    font-size: 0.8125rem;
    line-height: 1.5;
}

.service-type-icon.small {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    margin: 0 auto 16px;
}

.service-type-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

/* Linked Service Cards */
.service-type-card.linked {
    text-decoration: none;
    display: block;
    position: relative;
    cursor: pointer;
}

.service-type-card.linked h3,
.service-type-card.linked p {
    color: inherit;
}

.service-type-card.linked .card-link-indicator {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: var(--primary);
    font-size: 1rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-base);
}

.service-type-card.linked:hover .card-link-indicator {
    opacity: 1;
    transform: translateX(0);
}

.service-type-card.linked:hover h3 {
    color: var(--primary);
}

.service-type-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(140, 198, 63, 0.15);
    border-radius: var(--radius-md);
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.service-type-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 27, 42, 0.4);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid rgba(140, 198, 63, 0.2);
    position: relative;
}

.service-type-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
    transition: transform var(--transition-base);
}

.service-type-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/blue-filter.png');
    background-size: cover;
    background-position: center;
    opacity: 0.45;
    transition: opacity var(--transition-base);
    pointer-events: none;
    border-radius: var(--radius-md);
}

.service-type-card:hover .service-type-overlay {
    opacity: 0;
}

.service-type-card:hover .service-type-image img {
    transform: scale(1.05);
}

.service-type-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.service-type-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-type-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-type-features li {
    position: relative;
    padding: 8px 0 8px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.service-type-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* Methodology Section */
.service-methodology-section {
    padding: 80px 0;
    background: var(--bg-dark);
}

.methodology-timeline {
    max-width: 800px;
    margin: 48px auto 0;
    position: relative;
}

.methodology-timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.methodology-step {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
    position: relative;
}

.methodology-step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 50%;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    z-index: 1;
}

.step-content {
    flex: 1;
    padding-top: 16px;
}

.step-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Service CTA Section */
.service-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    border-top: 1px solid var(--border-color);
}

.service-cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.service-cta-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.service-cta-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.service-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Service Offerings Section */
.service-offerings-section {
    padding: 80px 0;
    background: var(--bg-darker);
}

.offering-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.offering-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(140, 198, 63, 0.1);
}

.offering-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(140, 198, 63, 0.1);
    border-radius: var(--radius-md);
    color: var(--primary);
    font-size: 1.75rem;
    margin-bottom: 20px;
}

.offering-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.offering-card > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.offering-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offering-card .offering-features li,
.offering-features li {
    display: block;
    position: relative;
    padding: 8px 0 8px 22px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.offering-card .offering-features li::before,
.offering-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* Service Process Section */
.service-process-section {
    padding: 80px 0;
    background: var(--bg-dark);
}

.process-timeline {
    max-width: 900px;
    margin: 48px auto 0;
    position: relative;
}

.process-step {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 40px;
    top: 80px;
    width: 2px;
    height: calc(100% - 40px);
    background: var(--border-color);
}

.process-step .step-number {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 50%;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.step-content {
    flex: 1;
    padding-top: 8px;
}

.step-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Service Track Record Section */
.service-track-record-section {
    padding: 80px 0;
    background: var(--bg-darker);
}

.track-record-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.track-record-chart {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.track-record-chart img {
    width: 100%;
    height: auto;
    display: block;
}

.track-record-content .section-tag {
    display: inline-block;
    background: rgba(140, 198, 63, 0.15);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.track-record-content h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.track-record-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.track-record-content p strong {
    color: var(--primary);
}

.track-record-stats {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.track-stat {
    text-align: center;
}

.track-stat .stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.track-stat .stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Chart Container */
.chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
}

.chart-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

#assessmentChart {
    width: 100%;
    height: 300px;
}

/* Service Reporting Section */
.service-reporting-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0a1628 100%);
    overflow: hidden;
}

.reporting-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.reporting-content {
    padding-right: 20px;
}

.reporting-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.reporting-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.reporting-feature {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition-base);
}

.reporting-feature:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    transform: translateX(5px);
}

.reporting-feature h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.reporting-feature h4 i {
    color: var(--primary);
    font-size: 1rem;
}

.reporting-feature p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.reporting-images {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 500px;
}

/* Report Image Container with Blue Overlay */
.report-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 450px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.report-image-display {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.report-image-container:hover .report-image-display {
    transform: scale(1.05);
}

/* Blue overlay filter - visible by default, hides on hover */
.report-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 42, 64, 0.35);
    opacity: 1;
    transition: opacity 0.4s ease;
}

.report-image-container:hover .report-image-overlay {
    opacity: 0;
}

/* Caption band at bottom - green color on hover */
.report-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(140, 198, 63, 0.75);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.report-image-container:hover .report-image-caption {
    transform: translateY(0);
}

.report-image-caption h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: #0d1b2a;
    margin-bottom: 6px;
}

.report-image-caption p {
    font-size: 0.9rem;
    color: rgba(13, 27, 42, 0.85);
    margin: 0;
    line-height: 1.4;
}

/* Service References Section */
.service-references-section {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #0a1628 0%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.references-carousel {
    width: 100%;
    overflow: hidden;
    margin-top: 40px;
}

.references-track {
    display: flex;
    gap: 60px;
    animation: scroll-references 30s linear infinite;
    width: max-content;
}

.references-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-references {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.reference-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 140px;
    padding: 30px 40px;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: all var(--transition-base);
    cursor: default;
}

.reference-logo:hover {
    transform: scale(1.1);
}

.reference-logo i {
    font-size: 2.5rem;
    color: var(--text-muted);
    transition: color var(--transition-base);
}

.reference-logo:hover i {
    color: var(--primary);
}

.reference-logo span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Service Certifications Section */
.service-certifications-section {
    padding: 80px 0;
    background: var(--bg-dark);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.certifications-grid.centered {
    grid-template-columns: repeat(3, 1fr);
    max-width: 800px;
}

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 20px;
    text-align: center;
    transition: all var(--transition-base);
}

.cert-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.cert-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Response Readiness lists what the engagement covers inline — the three
   sub-services used to be separate pages and are now sections of the parent. */
/* Each sub-service gets its own full-width sub-section rather than a cramped
   column, with a media panel reserved for artwork. To add a picture, drop an
   <img> into .readiness-sub-media — the placeholder icon sits behind it. */
.readiness-detail {
    display: flex;
    flex-direction: column;
    gap: 72px;
    margin-top: 56px;
}

/* A block in its own band, without a section header above it. */
.readiness-detail.no-header {
    margin-top: 0;
}

/* Same composition as the home-page Assess/Protect/Detect/Respond blocks:
   no card frame, text and a large 4:3 picture side by side, 50/50. */
.readiness-sub {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.readiness-sub-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.readiness-sub-head h3 {
    margin: 0;
    font-size: 1.5rem;
}

.readiness-sub-copy p {
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.readiness-sub-copy a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.readiness-sub .service-benefits-list {
    margin-top: 24px;
}

/* The list sits in a half-width column here, so the 28px / 230px / 1fr
   desktop grid would squeeze the description into a sliver. Stack the label
   above its text instead. */
.readiness-sub .service-benefits-list li {
    grid-template-columns: 28px 1fr;
    align-items: start;
}

.readiness-sub .service-benefits-list li strong,
.readiness-sub .service-benefits-list li > div {
    grid-column: 2;
}

.readiness-sub .service-benefits-list li > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Media panel. Empty, it shows a dashed placeholder with the block icon
   (desktop only). With .has-image it becomes a home-page style picture:
   blue overlay that clears on hover, slow zoom, green caption band. */
.readiness-sub-media {
    display: none;
    position: relative;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    background: rgba(140, 198, 63, 0.05);
    border: 1px dashed rgba(140, 198, 63, 0.25);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.readiness-sub-media i {
    font-size: 4rem;
    color: rgba(140, 198, 63, 0.35);
}

.readiness-sub-media.has-image {
    display: block;
    height: auto; /* .service-image-container sets 100%; keep the 4:3 box */
    background: var(--bg-card);
    border: none;
    order: -1;
}

.readiness-sub-media.has-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.readiness-sub-media.has-image:hover img {
    transform: scale(1.06);
}

/* Square photos lose a quarter of their height in the 4:3 box. Use this when
   details sit near the edges (a phone at the bottom, a report at the top) so
   the whole picture shows. */
.readiness-sub-media.has-image.square {
    aspect-ratio: 1 / 1;
}

/* Push the hidden caption fully out: with rounded corners a 100% shift
   leaves a 1px green hairline under the picture. */
.readiness-sub-media.has-image .service-image-caption {
    transform: translateY(calc(100% + 2px));
}

.readiness-sub-media.has-image:hover .service-image-caption {
    transform: translateY(0);
}

@media (min-width: 992px) {
    .readiness-sub {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
        gap: 60px;
    }

    .readiness-sub-media {
        display: flex;
    }

    .readiness-sub-media.has-image {
        display: block;
        order: 0;
    }

    /* Alternate which side the picture sits on down the stack. */
    .readiness-sub.reverse .readiness-sub-main {
        order: 2;
    }

    .readiness-sub.reverse .readiness-sub-media {
        order: 1;
    }
}

/* Application Security page: the "Outcome" card and the AppSec vs
   Penetration Testing comparison table. */
/* Alternate band for service pages: the same soft blue fade as
   .service-reporting-section, so neighbouring sections switch background
   without a purple tint. */
.section-band-alt {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0a1628 100%);
}

/* The opposite: a plain dark band, for a section that is a gradient by
   default (e.g. .service-reporting-section) when its neighbour already is. */
.section-band-dark {
    background: var(--bg-dark);
}

.appsec-outcome-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-color: var(--primary);
    background: rgba(140, 198, 63, 0.06);
}

.appsec-outcome-card .section-tag {
    margin-bottom: 8px;
}

.service-type-card.compact.appsec-outcome-card h3 {
    font-size: 1.125rem;
    margin: 0;
}

.appsec-table-wrap {
    overflow-x: auto;
}

.appsec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.appsec-table th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
}

.appsec-table td {
    color: var(--text-secondary);
    padding: 12px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.appsec-compare {
    max-width: 960px;
    margin: 48px auto 0;
}

.appsec-compare .appsec-table {
    font-size: 0.9375rem;
}

.appsec-compare .appsec-table th:last-child,
.appsec-compare .appsec-table td:last-child {
    color: var(--text-primary);
    background: rgba(140, 198, 63, 0.06);
}

.appsec-compare .appsec-table th:last-child {
    color: var(--primary);
}

.appsec-compare .appsec-table td:nth-child(1) {
    color: var(--text-secondary);
}

.appsec-compare-note {
    max-width: 960px;
    margin: 24px auto 0;
    text-align: center;
    color: var(--text-secondary);
}

.appsec-compare-note a {
    color: var(--primary);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .appsec-table td,
    .appsec-table th {
        padding: 10px 8px;
    }
}

/* Active Directory Review page: angle tag on the area cards, the three-stage
   attack chain, the sample results, the rating formula and the week plan. */
.ad-angle {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 16px;
}

.ad-chain {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 16px;
    align-items: stretch;
    margin-top: 48px;
}

.ad-stage {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.ad-stage-head {
    padding: 20px 24px;
    background: rgba(140, 198, 63, 0.08);
    border-bottom: 1px solid var(--border-color);
}

.ad-stage-final .ad-stage-head {
    background: var(--primary);
}

.ad-stage-num {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
}

.ad-stage-head h3 {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 4px 0;
}

.ad-stage-head p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.ad-stage-final .ad-stage-num,
.ad-stage-final .ad-stage-head h3,
.ad-stage-final .ad-stage-head p {
    color: var(--bg-dark);
}

.ad-stage-list {
    list-style: none;
    margin: 0;
    padding: 0 24px;
}

.ad-stage-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.ad-stage-list li:last-child {
    border-bottom: none;
}

.ad-stage-list strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.ad-stage-list span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.ad-chain-arrow {
    display: flex;
    align-items: center;
    color: var(--primary);
    font-size: 2rem;
}

.ad-results-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 16px;
}

.ad-results {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 48px;
}

.ad-results-severity {
    text-align: center;
}

/* Severity colours match the report: critical red, high orange. */
.ad-donut {
    --critical: #e5533d;
    --high: #f0a030;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
    background: conic-gradient(var(--critical) 0 40%, var(--high) 40% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-donut-hole {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ad-donut-hole strong {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    line-height: 1;
    color: var(--text-primary);
}

.ad-donut-hole span {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.ad-donut-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.ad-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 6px;
    vertical-align: -1px;
}

.ad-dot-critical { background: #e5533d; }
.ad-dot-high { background: #f0a030; }

/* Detection Engineering sample results: 19% covered (red, as in the deck),
   the rest a dim green track. */
.de-donut {
    background: conic-gradient(#e5533d 0 19%, rgba(140, 198, 63, 0.18) 19% 100%);
}

.ad-bar {
    margin-bottom: 20px;
}

.ad-bar-top {
    display: flex;
    justify-content: space-between;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.ad-bar-top strong {
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.ad-bar-track {
    height: 16px;
    background: rgba(140, 198, 63, 0.12);
}

.ad-bar-fill {
    height: 100%;
    background: var(--primary);
}

.ad-results-note {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 8px 0 0;
}

.ad-stat {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.ad-stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.25rem;
    line-height: 1.1;
    color: var(--primary);
}

.ad-stat span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.ad-rate {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 20px;
    align-items: stretch;
    margin-top: 48px;
}

.ad-rate-box {
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ad-rate-box h3 {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    color: var(--text-primary);
    margin: 0;
}

.ad-rate-result {
    border-color: transparent;
    background: rgba(140, 198, 63, 0.1);
}

.ad-rate-op {
    display: flex;
    align-items: center;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
}

.ad-sev-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ad-sev {
    padding: 8px;
    text-align: center;
    font-weight: 700;
    color: #1a1a1a;
}

.ad-sev-critical { background: #e5533d; }
.ad-sev-high { background: #f0a030; }
.ad-sev-medium { background: #e8c547; }
.ad-sev-low { background: #8fa6ba; }

.ad-rate-notes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.ad-rate-note {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
}

.ad-rate-note .ad-results-label {
    margin-bottom: 8px;
}

.ad-rate-note p {
    color: var(--text-primary);
    margin: 0;
    line-height: 1.6;
}

.ad-rate-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

.ad-rate-chips-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-right: 6px;
}

.ad-chip {
    border: 1px solid rgba(140, 198, 63, 0.5);
    padding: 6px 12px;
    font-size: 0.875rem;
    color: var(--text-primary);
}

@media (max-width: 992px) {
    .ad-chain,
    .ad-rate {
        grid-template-columns: 1fr;
    }

    .ad-chain-arrow,
    .ad-rate-op {
        justify-content: center;
        transform: rotate(90deg);
        font-size: 1.75rem;
    }

    .ad-rate-op {
        transform: none;
    }

    .ad-results {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ad-rate-notes {
        grid-template-columns: 1fr;
    }
}

/* Photo of the technology park the company was founded in, inside the Who We
   Are column. Capped to the 820px story measure so it never breaks the
   reading width, with a caption that carries the fact rather than leaving the
   reader to guess what the building is. */
.story-figure {
    margin: 36px 0 0;
}

.story-figure img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 15 / 8;
    object-fit: cover;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.story-figure figcaption {
    margin-top: 12px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-muted);
    text-align: center;
}

@media (max-width: 480px) {
    .story-figure {
        margin-top: 28px;
    }

    .story-figure figcaption {
        font-size: 0.8125rem;
        text-align: left;
    }
}

/* ====================== ABOUT — LEADERSHIP ======================
   Exactly two co-founders. Deliberately a centred pair of WIDE, SHORT
   cards (photo left, text right), not the 4-up .values-grid: two tall
   cards in the full 1200px container read as a grid missing a third
   item. Capping the pair at 980px follows .story-grid, capped at 820px.
   A third person would need this grid rule revisited, not just another
   JSON entry.

   Background is a real hex, NOT --bg-transparent-*. Those tokens are
   rgba(13,27,42,.55/.75) over a body that is already #0d1b2a, so they
   composite back to the same navy and draw no visible band. #101f2f is
   a small genuine lift — the same approach .cta-section takes with
   #091622.
   ================================================================ */
.leadership-section {
    padding: var(--section-padding) 0;
    background: #101f2f;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    position: relative;
    z-index: 1;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    max-width: 980px;
    margin: 0 auto;
}

.leadership-card {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 26px;
    transition: all var(--transition-base);
}

.leadership-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

/* ---- Photo frame ------------------------------------------------
   The two portraits are shot in very different conditions: one a lit
   conference headshot, one a darker trade-show floor. Four things bring
   them to a common look: a forced 1:1 box with object-fit cover so the
   framing matches; object-position above centre, where a face sits;
   grayscale plus a per-photo exposure nudge (see [data-tone]); and a
   navy/green wash with an inset vignette that pushes a busy background
   back. Colour returns on hover, the same idea as the .certs-grid badges.
   ------------------------------------------------------------------ */
.leadership-photo {
    position: relative;
    width: 148px;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-darkest);
}

.leadership-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 28%;
    filter: grayscale(1)
            brightness(var(--photo-brightness, 1))
            contrast(var(--photo-contrast, 1.05));
    transition: filter var(--transition-base);
}

.leadership-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(160deg,
                rgba(140, 198, 63, 0.10),
                rgba(13, 27, 42, 0.32));
    box-shadow: inset 0 0 22px 6px rgba(13, 27, 42, 0.38),
                inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    transition: opacity var(--transition-base);
}

.leadership-card:hover .leadership-photo img {
    filter: none;
}

.leadership-card:hover .leadership-photo::after {
    opacity: 0.35;
}

/* Per-photo exposure. Grayscale alone does not equalise a bright studio
   shot against a dark indoor one. These two knobs are the only values
   that should change when a photo is replaced. */
.leadership-card[data-tone="light"] .leadership-photo img {
    --photo-brightness: 0.92;
    --photo-contrast: 1.12;
}

.leadership-card[data-tone="dark"] .leadership-photo img {
    --photo-brightness: 1.20;
    --photo-contrast: 1.00;
}

/* ---- Text ------------------------------------------------------- */
.leadership-body {
    min-width: 0;
}

.leadership-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    margin: 0 0 6px;
    overflow-wrap: anywhere;
}

.leadership-role {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.5;
    color: var(--primary);
    margin: 0 0 12px;
}

.leadership-descriptor {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.leadership-linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-top: 16px;
    border: 1px solid rgba(140, 198, 63, 0.5);
    border-radius: var(--radius-md);
    color: var(--primary);
    font-size: 0.95rem;
    transition: all var(--transition-base);
}

.leadership-linkedin:hover,
.leadership-linkedin:focus-visible {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-darkest);
}

.leadership-linkedin:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* ---- Responsive -------------------------------------------------- */
/* Below 968px two cards squeeze the text column under ~200px, so the
   pair becomes a single centred column of full-width rows. */
@media (max-width: 968px) {
    .leadership-grid {
        grid-template-columns: minmax(0, 560px);
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .leadership-card {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 18px;
        padding: 20px;
    }

    .leadership-photo {
        width: 112px;
    }

    .leadership-name {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .leadership-card {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 14px;
        padding: 16px;
    }

    .leadership-photo {
        width: 92px;
    }

    .leadership-role {
        letter-spacing: 1px;
    }

    .leadership-descriptor {
        font-size: 0.875rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .leadership-card,
    .leadership-photo img,
    .leadership-photo::after,
    .leadership-linkedin {
        transition: none;
    }

    .leadership-card:hover {
        transform: none;
    }
}

/* Vendor band on Security Solutions Deployment. A static, centred row —
   there are only six marks, and a visitor looking for one vendor should not
   have to wait for a carousel to bring it round. The band takes its own
   darker blue, in the family of the blue-filter overlay the hero uses, so
   it reads as a distinct section between the offering cards and the
   process timeline.

   The source SVGs come in every brand colour — black Splunk, dark-teal
   Elastic — and several would vanish on a dark band, so every mark is
   flattened to a white silhouette (brightness(0) invert(1)) and only the
   opacity moves on hover. */
.service-vendors-section {
    padding: 80px 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(55, 90, 112, 0.35), transparent 60%),
        #0c2234;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 1;
}

.vendors-grid {
    display: grid;
    /* Eight marks sit as a deliberate 4 + 4. Every cell has the same
       width, so the columns line up whatever each logo's shape is. */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 48px 40px;
    max-width: 1040px;
    margin: 8px auto 0;
}

.vendor-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
}

/* Logos are sized to the same visual area, not the same height: a long
   wordmark (Fortinet, ThreatConnect) at full height would dwarf a compact
   one (Splunk, Elastic). Each vendor sets --logo-h from its ink aspect
   ratio (h = sqrt(area / ratio)); the vendor files are cropped to their
   ink so the numbers match what the eye sees. */
.vendor-logo img {
    height: var(--logo-h, 36px);
    width: auto;
    max-width: 100%;
    filter: brightness(0) invert(1);
    opacity: 0.72;
    transition: opacity var(--transition-base);
}

.vendor-logo:hover img {
    opacity: 1;
}

.vendor-logo--symantec      { --logo-h: 47px; }
.vendor-logo--elastic       { --logo-h: 49px; }
.vendor-logo--fortinet      { --logo-h: 27px; }
.vendor-logo--tenable       { --logo-h: 42px; }
.vendor-logo--splunk        { --logo-h: 50px; }
.vendor-logo--group-ib      { --logo-h: 35px; }
.vendor-logo--rapid7        { --logo-h: 33px; }
.vendor-logo--threatconnect { --logo-h: 29px; }

@media (max-width: 968px) {
    .vendors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 560px;
        gap: 36px 32px;
    }
}

@media (max-width: 480px) {
    .vendors-grid {
        gap: 28px 20px;
    }

    .vendor-logo {
        height: 56px;
    }

    /* Same proportions, scaled down to fit two per row. */
    .vendor-logo img {
        height: calc(var(--logo-h, 36px) * 0.72);
    }
}

/* Certification band on About. Static, centred grid — nine badges do not
   need a carousel, and a visitor looking for one certification should not
   wait for it to scroll round. Same darker-blue band as the vendor grid on
   Security Solutions Deployment, so the two "credentials" sections share
   a look. Badges sit desaturated and each one returns to colour on its own
   hover, not the whole band at once. */
.certifications-section {
    padding: 80px 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(55, 90, 112, 0.35), transparent 60%),
        #0c2234;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    /* .hero-bg is a position:fixed texture layer at z-index 0 that paints
       over any section without its own stacking context — every other
       About section carries this pair for the same reason. */
    position: relative;
    z-index: 1;
}

.certifications-section .section-title {
    color: #ffffff;
}

.certifications-section .section-description {
    color: rgba(255, 255, 255, 0.8);
}

/* One tile per certifying body rather than one per certificate: the
   suppliers' own wordmarks are what a visitor recognises, and several
   suppliers issue more than one of our certifications. Which certificates
   sit behind each logo is in the tile's title attribute.

   Everything here is scoped to .certs-grid on purpose. `.cert-logo` is also
   used by .cert-card on four service pages (penetration-testing, red-teaming,
   adversary-emulation, application-security), where it still holds the
   individual OSCP/OSWE/… badges at 80px. Do not unscope these rules. */
.certs-grid {
    /* Flex, not grid: a short last row is centred instead of left-aligned. */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    /* Wide enough that the widest mark (PECB, 6.5:1) still reaches its
       target height without hitting the tile edge. */
    max-width: 880px;   /* 4 x 200px + 3 x 20px: twelve marks as 4 + 4 + 4 */
    margin: 8px auto 0;
}

.certs-grid .cert-logo {
    flex: 0 0 200px;
    width: 200px;
    height: auto;
    min-height: 92px;
    margin: 0;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Height comes from --logo-h, set per tile in about.php from the `h` key in
   i18n/en.json. A single max-height cannot serve this set: the marks run from
   1.4:1 (Altered Security) to 6.5:1 (PECB), so one height would render the
   wide ones as a thin strip and the square ones oversized. Per-logo heights
   give them all roughly equal optical area.

   Marks are flattened to white rather than left in brand colour: most
   suppliers publish the version cut for their own dark site, so the set is a
   mix of white and near-black artwork and no single background keeps both
   legible. Same treatment as the vendor band on the Protect pages. */
.certs-grid .cert-logo img {
    height: var(--logo-h, 40px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.75;
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.certs-grid .cert-logo:hover img,
.certs-grid .cert-logo:focus img {
    opacity: 1;
    transform: scale(1.06);
}

/* Certification list for each mark. Shown on hover, and on focus so a tap
   (touch screens have no hover) or the keyboard opens it too. It stays in
   the DOM, so screen readers read it with the logo. */
.certs-grid .cert-logo {
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    outline: none;
}

.certs-grid .cert-logo:focus-visible {
    box-shadow: 0 0 0 2px var(--primary);
}

.certs-grid .cert-tip {
    position: absolute;
    /* Opens upward: the band clips its bottom edge, which cut off the tip
       under the last row of marks. */
    bottom: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 5;
    padding: 8px 10px;
    border-radius: 8px;
    background: #0b1a2b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    color: #e6edf3;
    font-size: 0.8rem;
    line-height: 1.4;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base);
}

.certs-grid .cert-logo:hover .cert-tip,
.certs-grid .cert-logo:focus .cert-tip {
    opacity: 1;
    visibility: visible;
}

/* A supplier whose own wordmark we do not hold yet falls back to its name
   set in type, so the tile still reads as one of the set. */
.certs-grid .cert-logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    opacity: 0.75;
    border: none;
    border-radius: 0;
    width: auto;
    height: auto;
    transition: opacity var(--transition-base);
}

.certs-grid .cert-logo:hover .cert-logo-text { opacity: 1; }

@media (max-width: 1000px) {
    .certs-grid { max-width: 720px; }
}

@media (max-width: 600px) {
    .certs-grid { gap: 14px; max-width: 420px; }
    .certs-grid .cert-logo { flex-basis: calc(50% - 7px); width: calc(50% - 7px); min-height: 78px; padding: 10px; }
    /* Tiles are roughly half as wide here, so scale every mark to match. */
    .certs-grid .cert-logo img { height: calc(var(--logo-h, 40px) * 0.82); }
}

/* Fallback when a certification has no badge artwork in the repo yet. */
.cert-logo-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50%;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}


@media (max-width: 480px) {

    .cert-logo {
        width: 76px;
        height: 76px;
    }

    .cert-logo img {
        max-width: 76px;
        max-height: 76px;
    }
}

.cert-card h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.cert-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Service Detail Page Responsive */
@media (max-width: 1024px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-info-card {
        position: static;
    }
    
    .service-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .certifications-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .track-record-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .reporting-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .reporting-images {
        min-height: 400px;
    }
    
    .report-image-container {
        min-height: 400px;
    }
}

/* Generic RS report image (4:3, used on services without their own report
   visual): the card takes the image height instead of the square min-height,
   so no dark band shows under the picture and nothing is cropped. */
.report-image-container.report-image-container--fit {
    min-height: 0;
}

@media (max-width: 768px) {
    /* On phones the title + tagline wrap to more than 500px; with the
       desktop height cap the centred content spilled out of the top and the
       breadcrumb hid under the fixed nav. Let the hero grow instead. */
    .service-page-hero {
        padding: 100px 0 50px;
        min-height: 0;
        max-height: none;
    }
    
    .service-detail-section {
        padding: 60px 0;
    }
    
    .service-types-section {
        padding: 60px 0;
    }
    
    .service-types-grid {
        grid-template-columns: 1fr;
    }
    
    .service-types-grid.four-cols {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .methodology-timeline::before {
        left: 30px;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }
    
    .methodology-step {
        gap: 20px;
    }
    
    .service-cta-section {
        padding: 60px 0;
    }
    
    .service-cta-content h2 {
        font-size: 2rem;
    }
    
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .track-record-stats {
        flex-wrap: wrap;
        gap: 24px;
    }
    
    .track-stat {
        flex: 1 1 80px;
    }
    
    .service-reporting-section {
        padding: 60px 0;
    }
    
    .reporting-images {
        min-height: 350px;
    }
    
    .report-image-container {
        min-height: 350px;
    }
}

@media (max-width: 480px) {
    .certifications-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .cert-card {
        padding: 20px 12px;
    }
    
    .cert-logo {
        width: 60px;
        height: 60px;
    }
    
    .cert-card h4 {
        font-size: 1rem;
    }
    
    .reporting-images {
        min-height: 280px;
    }
    
    .report-image-container {
        min-height: 280px;
    }
    
    .reporting-feature {
        padding: 16px;
    }
    
    .reporting-feature h4 {
        font-size: 1rem;
    }
}

/* ============================================================
   reCAPTCHA v3 — visible privacy notice + hide floating badge
   ============================================================
   Google's invisible reCAPTCHA must surface its branding somewhere; we hide
   the bottom-right badge (.grecaptcha-badge) and surface the legally
   required notice inline near each form instead. */
.grecaptcha-badge { visibility: hidden !important; }

.recaptcha-notice {
    font-size: 0.78rem;
    color: var(--text-muted, #94a3b8);
    margin-top: 12px;
    line-height: 1.45;
}
.recaptcha-notice a {
    color: inherit;
    text-decoration: underline;
}
.recaptcha-notice a:hover { color: var(--primary, #00ff88); }

.recaptcha-notice-footer,
.recaptcha-notice-sidebar {
    font-size: 0.72rem;
    margin-top: 8px;
}


/* ====================== WHERE WE OPERATE (About) ====================== */
.regions-section {
    padding: 80px 0;
    background: var(--bg-dark);
}

.regions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.regions-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
}

.regions-chip {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    border: 1px solid rgba(140, 198, 63, 0.35);
    border-radius: 999px;
    padding: 3px 10px;
    margin-bottom: 14px;
}

.regions-card h3 {
    margin: 0 0 8px;
    color: var(--text-primary);
}

.regions-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .regions-grid {
        grid-template-columns: 1fr;
    }
}

/* Trainings page: one row per course (about · topics · requirements),
   with a quick course index above and the full syllabus in <details>. */
.course-index {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 32px;
    margin: 32px 0 24px;
}

.course-index-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.course-index-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-right: 4px;
}

.course-index a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: border-color var(--transition-base);
}

.course-index a span {
    color: var(--primary);
    font-size: 0.8rem;
}

.course-index a:hover,
.course-index a:focus-visible {
    border-color: var(--primary);
}

.course-track {
    margin: 48px 0 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    scroll-margin-top: 100px;
}

.course-row {
    margin-bottom: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    scroll-margin-top: 100px;
}

.course-row-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-color);
}

.course-row-head .service-type-icon {
    margin: 0;
    flex-shrink: 0;
}

.course-row-title {
    flex: 1;
    min-width: 0;
}

.course-row-title h3 {
    margin: 0 0 6px;
    font-size: 1.4rem;
    overflow-wrap: anywhere;
    scroll-margin-top: 100px;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.course-meta i {
    color: var(--primary);
    margin-right: 4px;
}

.course-row-cta {
    flex-shrink: 0;
}

.course-row-cols {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    grid-template-areas: "about topics req";
}

.course-col {
    min-width: 0;
    padding: 24px 28px;
}

.course-col + .course-col {
    border-left: 1px solid var(--border-color);
}

.course-col-about { grid-area: about; }
.course-col-topics { grid-area: topics; }
.course-col-req { grid-area: req; }

.course-col h4 {
    margin: 0 0 12px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
}

.course-col h4:not(:first-child) {
    margin-top: 24px;
}

.course-col h5,
.course-syllabus h5 {
    margin: 16px 0 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.course-col h4 + h5 {
    margin-top: 0;
}

.course-col p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.course-col .service-type-features {
    margin: 0;
}

.course-col .service-type-features li {
    font-size: 0.88rem;
    padding: 4px 0 4px 20px;
}

.course-col .service-type-features li::before {
    top: 12px;
}

.course-topics {
    columns: 2;
    column-gap: 24px;
    margin: 0;
    padding-left: 1.6em;
    list-style: decimal outside;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.course-topics li {
    padding: 3px 0;
    break-inside: avoid;
}

.course-topics li::marker {
    color: var(--primary);
}

.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.course-tags li {
    padding: 4px 10px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.course-req {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 12px;
    margin: 0;
    font-size: 0.88rem;
}

.course-req dt {
    font-weight: 600;
    color: var(--text-primary);
}

.course-req dd {
    margin: 0;
    color: var(--text-secondary);
}

.course-col .course-req-note {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.course-syllabus {
    border-top: 1px solid var(--border-color);
}

.course-syllabus summary {
    padding: 16px 28px;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
}

.course-syllabus summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.course-syllabus h5 {
    padding: 0 28px;
}

.course-syllabus-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 32px;
    margin: 0;
    padding: 0 28px 24px;
    font-size: 0.88rem;
}

.course-syllabus-list dt {
    font-weight: 600;
    color: var(--text-primary);
}

.course-syllabus-list dd {
    margin: 2px 0 0;
    color: var(--text-secondary);
}

.course-row.is-short .course-row-cols {
    grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 991px) {
    .course-row-cols,
    .course-row.is-short .course-row-cols {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "about req" "topics topics";
    }

    .course-col-topics {
        border-left: 0 !important;
        border-top: 1px solid var(--border-color);
    }
}

@media (max-width: 767px) {
    .course-row-head {
        flex-wrap: wrap;
        padding: 20px 16px;
    }

    .course-row-cta {
        width: 100%;
        text-align: center;
    }

    .course-row-cols,
    .course-row.is-short .course-row-cols {
        grid-template-columns: 1fr;
        grid-template-areas: "about" "topics" "req";
    }

    .course-col {
        padding: 20px 16px;
    }

    .course-col + .course-col {
        border-left: 0;
        border-top: 1px solid var(--border-color);
    }

    .course-syllabus summary {
        padding: 16px;
    }

    .course-syllabus h5 {
        padding: 0 16px;
    }

    .course-syllabus-list {
        grid-template-columns: 1fr;
        padding: 0 16px 20px;
    }

    .course-index {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .course-topics {
        columns: 1;
    }
}

.course-syllabus-note {
    margin: 0;
    padding: 0 28px 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 767px) {
    .course-syllabus-note {
        padding: 0 16px 20px;
    }
}

/* ====================== TRAININGS SECTION ======================
   /trainings/ hub (course cards) and /trainings/<slug>.html course pages.
   Both reuse the service-detail template; only the parts below are new. */
.course-cards-section .course-track {
    margin-top: 40px;
}

.course-cards-section .service-types-grid {
    margin-top: 0;
}

.course-cards-grid .course-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
}

.course-card .service-type-icon {
    margin: 0;
}

.course-card h3 {
    margin: 0;
    font-size: 1.2rem;
}

.course-card p {
    flex: 1;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.course-cards-grid.four-cols .course-card {
    padding: 24px;
}

.course-cards-grid.four-cols .course-card h3 {
    font-size: 1.05rem;
}

/* ====================== COURSE PAGES (crs-) ======================
   /trainings/<slug>.html — templates/course-detail.php. Layout follows the
   buyer's questions: intro → outcomes → syllabus → setup, with a sticky
   booking card on desktop (inline after the intro below 1024px). */
/* Course heroes carry an extra row of fact chips, so they may grow past the
   500px service-hero cap (on phones a long title + chips was clipped), and
   the banner always fills the hero instead of showing as a strip. */
.crs-hero {
    max-height: none;
}

/* Wider text box so long course titles stay on one line; the tagline
   keeps a readable width. */
.crs-hero .page-hero-content {
    max-width: 960px;
}

.crs-hero .page-hero-description {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.crs-hero .service-hero-bg {
    background-size: cover;
}

.crs-hero-facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.crs-hero-facts li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-transparent-dark);
    backdrop-filter: blur(6px);
    color: var(--text-primary);
    font-family: var(--font-menu);
    font-size: 0.9rem;
}

.crs-hero-facts i {
    color: var(--primary);
}

.crs-body {
    padding: 72px 0 var(--section-padding);
    background: var(--bg-dark);
}

.crs-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    column-gap: 56px;
    align-items: start;
}

.crs-section {
    grid-column: 1;
    margin: 0 0 64px;
    padding: 0 0 64px;
    border-bottom: 1px solid var(--border-light);
    scroll-margin-top: calc(var(--header-height) + 24px);
}

.crs-layout > .crs-section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.crs-section h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--text-primary);
    margin: 8px 0 20px;
}

.crs-sub,
.crs-syl-sum {
    color: var(--text-muted);
    margin: -8px 0 24px;
}

.crs-label {
    display: block;
    font-family: var(--font-menu);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 10px;
}

/* Intro */
.crs-lead p {
    max-width: 68ch;
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.crs-lead p + p,
.crs-lead ul + p {
    margin-top: 14px;
}

.crs-lead ul {
    max-width: 68ch;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.crs-lead li {
    position: relative;
    padding-left: 22px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.crs-lead li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.65em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
}

.crs-lead li strong {
    color: var(--text-primary);
}

.crs-fit {
    display: grid;
    gap: 24px;
    margin-top: 32px;
}

.crs-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.crs-chips li {
    padding: 8px 14px;
    border: 1px solid rgba(140, 198, 63, 0.35);
    border-radius: 999px;
    background: rgba(140, 198, 63, 0.08);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.crs-know {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.crs-know > i,
.crs-outcomes i {
    flex: none;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    background: rgba(140, 198, 63, 0.12);
    color: var(--primary);
}

.crs-know p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.5;
}

.crs-know .crs-label {
    margin-bottom: 4px;
}

.crs-prereq {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0;
    padding: 14px 16px;
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: rgba(140, 198, 63, 0.06);
    color: var(--text-secondary);
}

.crs-prereq i {
    color: var(--primary);
    padding-top: 3px;
}

/* Booking card */
.crs-aside {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: stretch;
}

.crs-book {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    padding: 28px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.crs-book-head {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 20px;
}

.crs-book-icon {
    flex: none;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-md);
    background: rgba(140, 198, 63, 0.12);
    color: var(--primary);
    font-size: 1.25rem;
}

.crs-book-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--text-primary);
}

.crs-book-track {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.crs-book-facts {
    margin: 0 0 20px;
}

.crs-book-facts > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--border-light);
    font-size: 0.925rem;
}

.crs-book-facts dt {
    color: var(--text-muted);
}

.crs-book-facts dd {
    margin: 0;
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
}

.crs-book-note {
    margin: 12px 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.crs-jump {
    display: grid;
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.crs-jump a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 8px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.925rem;
}

.crs-jump a i {
    width: 16px;
    color: var(--primary);
}

.crs-jump a:hover,
.crs-jump a:focus-visible {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.crs-jump a:focus-visible,
.crs-book .btn:focus-visible,
.crs-inline-cta .btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Outcomes: a checklist, not icon cards — outcomes are sentences. */
.crs-outcomes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.crs-outcomes li {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid var(--border-light);
    color: var(--text-primary);
    line-height: 1.5;
}

/* Final case (or lab): the practice the course is built around. */
.crs-case {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 24px;
    border: 1px solid rgba(140, 198, 63, 0.3);
    border-radius: var(--radius-md, 12px);
    background: linear-gradient(135deg, rgba(140, 198, 63, 0.08), rgba(140, 198, 63, 0.02));
}

.crs-case-icon {
    flex: none;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    background: rgba(140, 198, 63, 0.15);
    color: var(--primary);
    font-size: 1.1rem;
}

.crs-case-body p {
    margin: 0 0 12px;
    color: var(--text-primary);
    line-height: 1.7;
}

.crs-case-body p:last-child {
    margin-bottom: 0;
}

.crs-case-body ul {
    margin: 0 0 12px;
    padding-left: 20px;
    color: var(--text-primary);
    line-height: 1.7;
}

.crs-case-body li {
    list-style: disc;
}

.crs-case-body li::marker {
    color: var(--primary);
}

.crs-case-body li + li {
    margin-top: 6px;
}

/* What participants take home. */
.crs-takeaways {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.crs-takeaways li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    line-height: 1.5;
}

.crs-takeaways i {
    color: var(--primary);
    padding-top: 4px;
}

@media (max-width: 767px) {
    .crs-case {
        flex-direction: column;
        padding: 18px;
    }

    .crs-takeaways {
        grid-template-columns: 1fr;
    }
}

/* Syllabus: one <details> per part, module tiles inside. */
.crs-part {
    margin-bottom: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.crs-part > summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 14px 20px;
    cursor: pointer;
    list-style: none;
    border-radius: var(--radius-md);
}

.crs-part > summary::-webkit-details-marker {
    display: none;
}

.crs-part > summary:hover {
    background: var(--bg-card-hover);
}

.crs-part > summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.crs-part-no {
    flex: none;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--primary);
    color: var(--bg-dark);
    font-family: var(--font-menu);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.crs-part-name {
    flex: 1;
    min-width: 0;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.crs-part-count {
    white-space: nowrap;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.crs-part-chev {
    color: var(--primary);
    transition: transform var(--transition-fast);
}

.crs-part[open] .crs-part-chev {
    transform: rotate(180deg);
}

.crs-part .crs-modules {
    padding: 4px 20px 20px;
}

.crs-modules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.crs-module {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    align-items: start;
    padding: 16px 18px;
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
}

.crs-modules--flat .crs-module {
    background: var(--bg-card);
}

.crs-module:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.crs-module-no {
    min-width: 2ch;
    padding-top: 2px;
    font-family: var(--font-menu);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

.crs-module-name {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
    line-height: 1.35;
    color: var(--text-primary);
}

.crs-module-desc {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

/* Optional sub-titles inside a module. */
.crs-module-topics {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.crs-module-topics li {
    position: relative;
    padding-left: 16px;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.crs-module-topics li + li {
    margin-top: 4px;
}

.crs-module-topics li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.crs-syl-note {
    margin: 20px 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.crs-syl-note i {
    color: var(--primary);
    margin-right: 6px;
}

.crs-inline-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding: 20px 24px;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
}

.crs-inline-cta p {
    margin: 0;
    color: var(--text-primary);
    font-weight: 500;
}

/* Setup sheet */
.crs-setup {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.crs-setup > div {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 4px 14px;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.crs-setup > div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.crs-setup i {
    grid-row: span 2;
    padding-top: 2px;
    text-align: center;
    color: var(--primary);
}

.crs-setup dt {
    font-family: var(--font-menu);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.crs-setup dd {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

@media (max-height: 720px) {
    .crs-book {
        position: static;
    }
}

@media (max-width: 1024px) {
    .crs-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .crs-aside {
        grid-column: 1;
        grid-row: auto;
        margin: 0 0 56px;
    }

    .crs-book {
        position: static;
    }

    /* The hero chips already show these facts. */
    .crs-book-facts > div:not(.crs-book-modules) {
        display: none;
    }
}

@media (max-width: 600px) {
    .crs-body {
        padding: 48px 0 64px;
    }

    .crs-section {
        margin-bottom: 48px;
        padding-bottom: 48px;
    }

    .crs-section h2 {
        font-size: 1.5rem;
    }

    .crs-outcomes,
    .crs-modules,
    .crs-setup {
        grid-template-columns: minmax(0, 1fr);
    }

    .crs-module:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .crs-part > summary {
        flex-wrap: wrap;
        padding: 14px 16px;
    }

    .crs-part-name {
        flex-basis: 100%;
        order: 3;
        font-size: 1rem;
    }

    .crs-part .crs-modules {
        padding: 4px 12px 12px;
    }

    .crs-book {
        padding: 20px;
    }

    .crs-inline-cta .btn {
        width: 100%;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .crs-part-chev {
        transition: none;
    }
}

@media (max-width: 991px) {
    .course-cards-grid,
    .course-cards-grid.four-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .course-cards-grid,
    .course-cards-grid.four-cols {
        grid-template-columns: 1fr;
    }
}

/* Contact page: the footer-top contact bar is replaced by the office map
   (the page body already lists phone, email and address). */
.footer-top.footer-map {
    padding: 0;
}

.footer-map iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}

@media (max-width: 768px) {
    .footer-map iframe {
        height: 320px;
    }
}

/* Contact page: the Cyber Park photo right under the address, social icons
   below it (same image and frame as About > Who We Are). */
.contact-figure {
    margin: 28px 0 28px;
}

/* Course page: sample certificate of completion. */
.crs-cert {
    margin: 20px 0 0;
    max-width: 760px;
}

.crs-cert a {
    display: block;
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.crs-cert img {
    display: block;
    width: 100%;
    height: auto;
}

.crs-cert figcaption {
    margin-top: 10px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ====================== MOBILE HERO FOCUS ======================
   On a phone the hero is taller than it is wide, so a landscape banner
   either shrinks to a thin strip (`contain`) or loses its subject to a
   centre crop. Fill the hero and move the crop onto each banner's main
   object. The x value is the share of the image width the crop slides
   to; the comment names the object it lands on. Banners set inline
   (training courses) are matched on their file name. */
@media (max-width: 768px) {
    .service-hero-bg {
        background-size: cover;
    }

    .ad-review-hero-bg              { background-position: 92% center; }  /* chess pieces */
    .adversary-hero-bg              { background-position: 92% center; }  /* kendo mask */
    .application-security-hero-bg   { background-position: 64% center; }  /* code review sheet */
    .compromise-assessment-hero-bg  { background-position: 50% center; }  /* office rows */
    .detection-engineering-hero-bg  { background-position: 50% center; }  /* binoculars */
    .incident-response-hero-bg      { background-position: 35% center; }  /* hard drive, marker 2 */
    .mdr-hero-bg                    { background-position: 90% center; }  /* "7/24" */
    .pentest-hero-bg                { background-position: 93% center; }  /* spear */
    .playbook-development-hero-bg   { background-position: 57% center; }  /* playbook title */
    .redteam-hero-bg                { background-position: 89% center; }  /* arrowheads */
    .response-readiness-hero-bg     { background-position: 78% center; }  /* stopwatch */
    .security-architecture-hero-bg  { background-position: 60% top; }     /* logo on blueprint */
    .controls-review-hero-bg        { background-position: 75% center; }  /* lock cubes */
    .security-solutions-hero-bg     { background-position: 79% center; }  /* block castle */
    .threat-modeling-hero-bg        { background-position: 95% center; }  /* scorpion */
    .trainings-hero-bg              { background-position: 86% center; }  /* boxing gloves */
    .vuln-assessment-hero-bg        { background-position: 50% center; }  /* red racks */

    .service-hero-bg[style*="detection-enginnering-course"] { background-position: 43% center; }  /* laptop */
    .service-hero-bg[style*="forensic-course"]              { background-position: 35% center; }  /* hard drive */
    .service-hero-bg[style*="redteam-banner"]               { background-position: 89% center; }  /* arrowheads */
}
