/*
Theme Name: 5 Kings Marketing Native
Theme URI: https://5kingsmarketing.com
Author: 5 Kings Marketing
Author URI: https://5kingsmarketing.com
Description: Hand-crafted native classic PHP theme. Dark cinematic surfaces with orange accent (Shopify-inspired). Custom post types for case studies / services / platforms / team / testimonials / clients / SEO audits. Integrates with Mautic + SuiteCRM8.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
Text Domain: fivekings
Tags: business, portfolio, marketing, dark, e-commerce
*/

/* =========================================================================
   1. RESET + BASE
   ========================================================================= */

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

:root {
    /* Colors — Shopify-inspired dark cinematic, orange accent */
    --black:        #0a0a0a;
    --black-800:    #101418;
    --black-700:    #161b22;
    --black-600:    #1f2630;
    --black-500:    #2a323d;
    --black-400:    #3a4250;
    --orange:       #f56300;
    --orange-bright:#ff7a1a;
    --orange-soft:  #ffb380;
    --orange-dark:  #c44d00;
    --orange-muted: #5a2814;
    --orange-glow:  rgba(245, 99, 0, 0.18);
    --orange-glow-strong: rgba(245, 99, 0, 0.35);
    --white:        #ffffff;

    /* Semantic colors — dark cinematic surfaces */
    --color-bg:       #0a0a0a;  /* Page background */
    --color-surface:  #111418;  /* Section background — slightly lighter than bg */
    --color-surface-2:#1a1f27;  /* Card / elevated surface */
    --color-border:   #2a323d;

    /* Neutral scale — readable on dark backgrounds */
    --neutral-50:   #fafafa;  /* Highest contrast white — used for headings */
    --neutral-100:  #e8eaed;  /* Body text on dark — high contrast */
    --neutral-200:  #c7ccd4;  /* Secondary body text */
    --neutral-300:  #9aa3b0;  /* Tertiary text, captions */
    --neutral-400:  #6f7785;  /* Muted text */
    --neutral-500:  #4b5563;  /* Very muted */
    --neutral-600:  #2a323d;  /* Borders, dividers */
    --neutral-700:  #1f2937;
    --success:      #10b981;
    --warning:      #f59e0b;
    --danger:       #ef4444;
    --info:         #3b82f6;

    /* Typography — Inter, monumental display */
    --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:    ui-monospace, SFMono-Regular, Menlo, monospace;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --container:    1240px;
    --section-pad:  120px;

    /* Effects */
    --transition:   all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --radius:       8px;
    --radius-lg:    14px;
    --radius-xl:    20px;
    --shadow-sm:    0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow:       0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg:    0 16px 40px rgba(0, 0, 0, 0.12);
    --shadow-orange: 0 0 0 4px var(--orange-glow), 0 8px 24px rgba(245, 99, 0, 0.25);

    /* === Kumo-compatible semantic aliases =====================================
       Cloudflare Kumo (@cloudflare/kumo v2.8.0) token names aliased to 5kings vars.
       Two-way compat: Kumo Figma components map 1:1 to our CSS, and any future
       React app can drop in @cloudflare/kumo with zero token translation.
       All values are var() references — change 5kings side, Kumo side updates.
       Reference: /home/oschino/projects/5kings-design-system/reference/kumo-vs-5kings-tokens.md
       ======================================================================== */

    /* Surface hierarchy (Kumo canvas → elevated → recessed → base) */
    --color-kumo-canvas:     var(--color-bg);
    --color-kumo-elevated:   var(--color-surface);
    --color-kumo-recessed:   var(--color-surface-2);
    --color-kumo-base:       var(--color-surface-2);
    --color-kumo-tint:       var(--black-600);
    --color-kumo-control:    var(--color-surface-2);
    --color-kumo-overlay:    var(--black-700);

    /* Lines / hairlines */
    --color-kumo-line:       var(--color-border);
    --color-kumo-hairline:   var(--black-500);
    --color-kumo-focus:      var(--orange);

    /* Text hierarchy */
    --text-color-kumo-default:  var(--neutral-100);
    --text-color-kumo-strong:   var(--neutral-50);
    --text-color-kumo-subtle:   var(--neutral-300);
    --text-color-kumo-inactive: var(--neutral-400);
    --text-color-kumo-inverse:  var(--black);
    --text-color-kumo-brand:    var(--orange);

    /* Brand + state colors (Kumo uses #f6821f — we use #f56300, same family) */
    --color-kumo-brand:        var(--orange);
    --color-kumo-brand-hover:  var(--orange-bright);
    --color-kumo-success:      var(--success);
    --color-kumo-warning:      var(--warning);
    --color-kumo-danger:       var(--danger);
    --color-kumo-info:         var(--info);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--neutral-100);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "ss01", "cv11";
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--orange); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--neutral-50);
    margin-bottom: 0.5em;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1, h2, h3, h4, h5, h6 a {
    color: var(--neutral-50);
}

h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
    color: var(--orange);
}

h1 { font-size: 3rem; line-height: 1.1; }
h2 { font-size: 2.25rem; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

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

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}

.section {
    padding: var(--section-pad) 0;
}

.section--dark {
    background: var(--black);
    color: rgba(255, 255, 255, 0.85);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }

.section--gray { background: var(--neutral-50); color: var(--neutral-700); }
.section--gray h1, .section--gray h2, .section--gray h3, .section--gray h4 {
    color: var(--black);
}
.section--orange-tint { background: var(--orange-muted); color: var(--white); }

/* =========================================================================
   2. BUTTONS
   ========================================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    border: 1.5px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
}

.site-nav > li {
    display: inline-flex;
    align-items: center;
}

.btn--primary {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
    box-shadow: 0 4px 16px rgba(245, 99, 0, 0.25);
}
.btn--primary:hover {
    background: var(--orange-bright);
    border-color: var(--orange-bright);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-orange);
}

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

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

.btn--white {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}
.btn--white:hover {
    background: var(--neutral-100);
    color: var(--black);
}

.btn--ghost {
    background: transparent;
    color: var(--orange);
    border: none;
    padding: 10px 0;
}
.btn--ghost:hover {
    color: var(--orange-bright);
}

.btn--lg { padding: 18px 36px; font-size: 1.05rem; }
.btn--sm { padding: 10px 18px; font-size: 0.85rem; }

/* =========================================================================
   3. HEADER
   ========================================================================= */

.site-header {
    background: rgba(10, 10, 10, 0.85);
    color: var(--white);
    border-bottom: 1px solid var(--black-600);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.site-header.is-scrolled {
    background: rgba(10, 10, 10, 0.95);
    border-bottom-color: var(--orange);
    /* Push the orange line BELOW the logo. Logo is 56px tall + needs ~12px clearance + 1px border. */
    height: 92px;
    padding-top: 12px;
    padding-bottom: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.site-header.is-scrolled .site-header__inner {
    height: 80px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    gap: 32px;
    align-items: center;
    padding: 16px 28px;
    padding-bottom: 32px;
    max-width: var(--container);
    margin: 0 auto;
}

/* Site logo — references external SVG (no more base64 data URI) */
.site-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
    /* Light backdrop so the black MARKETING wordmark in the new PNG
       stays legible against the dark frosted header (rgba(10,10,10,0.85)). */
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.site-logo:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 1);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.site-logo img,
.fivekings-logo {
    height: 44px !important;
    width: auto !important;
    max-width: 220px !important;
    min-width: 120px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

/* The main brand SVG file is 360x100 — at height 44px the width computes to ~158px */
@media (max-width: 1100px) {
    .site-logo img,
    .fivekings-logo { height: 38px; }
    /* Submenu falls back to inline list on mobile (no hover) */
    .site-nav .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin: 8px 0 0 0;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.3);
    }
    .site-nav .site-nav__caret { display: none; }
}

@media (max-width: 640px) {
    .site-logo img,
    .fivekings-logo { height: 32px; }
}

/* Main nav */
.site-nav {
    display: flex;
    gap: 28px;
    list-style: none;
    align-items: center;
}

.site-nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}



.site-nav a:hover,
.site-nav .current-menu-item a {
    color: var(--orange);
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: var(--transition);
}

.site-nav a:hover::after,
.site-nav .current-menu-item a::after { width: 100%; }

/* ═══ Nav submenu (Platforms) ═══ */
.site-nav .has-submenu {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.site-nav .site-nav__has-children {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.site-nav .site-nav__caret {
    transition: transform 0.2s ease;
    opacity: 0.7;
    flex-shrink: 0;
    margin-top: 1px; /* slight optical alignment */
}
.site-nav .has-submenu:hover .site-nav__caret,
.site-nav .has-submenu:focus-within .site-nav__caret {
    transform: rotate(180deg);
    opacity: 1;
}

.site-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: -16px;
    margin-top: 12px;
    list-style: none;
    padding: 10px;
    margin: 0;
    min-width: 260px;
    background: #161a21;
    border: 1px solid #2a2d34;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 1100;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
}
.site-nav .has-submenu:hover > .sub-menu,
.site-nav .has-submenu:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-nav .sub-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.15s ease;
}
.site-nav .sub-menu li a::after {
    content: none; /* no underline animation in dropdown */
}
.site-nav .sub-menu li a:hover {
    background: rgba(245, 99, 0, 0.12);
    color: var(--orange);
}
.platform-submenu__icon {
    width: 28px;
    height: 28px;
    background: #fff;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.platform-submenu__icon img,
.platform-submenu__icon svg {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
}
.platform-submenu__label {
    line-height: 1;
}

/* ═══ Services submenu (mirrors Platforms) ═══ */
.services-submenu {
    min-width: 300px;
    grid-template-columns: 1fr;
}
.services-submenu__icon {
    width: 28px;
    height: 28px;
    background: rgba(245, 99, 0, 0.12);
    border: 1px solid rgba(245, 99, 0, 0.3);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.services-submenu__icon svg {
    width: 18px;
    height: 18px;
    display: block;
}
.services-submenu li a:hover .services-submenu__icon {
    background: rgba(245, 99, 0, 0.22);
    border-color: var(--orange);
}
.services-submenu__label {
    line-height: 1;
}

/* Verticals submenu — same visual treatment as Services so the
   two sister menus (Services / Verticals / Platforms) feel like
   one family. */
.verticals-submenu {
    min-width: 300px;
    grid-template-columns: 1fr;
}
.verticals-submenu__icon {
    width: 28px;
    height: 28px;
    background: rgba(245, 99, 0, 0.12);
    border: 1px solid rgba(245, 99, 0, 0.3);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.verticals-submenu__icon svg {
    width: 18px;
    height: 18px;
    display: block;
}
.verticals-submenu li a:hover .verticals-submenu__icon {
    background: rgba(245, 99, 0, 0.22);
    border-color: var(--orange);
}
.verticals-submenu__label {
    line-height: 1;
}

/* ═══ Support icon (replaces platform-icons row) ═══ */
.site-support {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--orange);
    border-radius: 8px;
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    flex-shrink: 0;
}
.site-support:hover {
    background: var(--orange);
    color: #fff;
    transform: translateY(-1px);
}
.site-support__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
@media (max-width: 1100px) {
    .site-support__label { display: none; }
    .site-support { padding: 8px 10px; }
}

/* Platform icon row — header gtranslate-style */
.platform-icons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}

.platform-icons a {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
    text-decoration: none;
}

.platform-icons a:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 99, 0, 0.35), 0 0 0 1px var(--orange);
}

.platform-icons svg,
.platform-icons img,
.fivekings-platform-logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* Phone */
.site-phone {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: var(--transition);
}

.site-phone:hover { color: var(--orange); }

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--black-500);
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: border-color .15s ease, color .15s ease;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle[aria-expanded="true"] {
    border-color: var(--orange);
    color: var(--orange);
}

@media (max-width: 1100px) {
    /* === MOBILE HEADER: Logo LEFT, Toggle RIGHT, same row === */
    .site-header__inner {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        padding: 10px 14px !important;
        padding-bottom: 28px !important;
        min-height: 60px !important;
        grid-template-columns: none !important;
        max-width: 100% !important;
    }
    .site-nav,
    .platform-icons,
    .site-support__label,
    .site-phone,
    .site-header__inner > .btn,
    .site-support,
    .site-nav-primary { display: none !important; }

    /* Logo: compact, properly sized */
    .site-logo {
        flex: 0 1 auto !important;
        min-width: 0 !important;
        max-width: 65vw !important;
        padding: 4px 8px !important;
    }
    .site-logo img,
    .fivekings-logo {
        height: 32px !important;
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* Hamburger toggle: orange, compact, vertically centered with logo */
    .mobile-menu-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        padding: 0 !important;
        margin: 0 !important;
        font-size: 1.4rem !important;
        line-height: 1 !important;
        flex: 0 0 auto !important;
        background: var(--orange) !important;
        color: #fff !important;
        border: none !important;
        border-radius: 8px !important;
        cursor: pointer !important;
    }
    .mobile-menu-toggle:hover,
    .mobile-menu-toggle[aria-expanded="true"] {
        background: var(--orange) !important;
        color: #fff !important;
        border: none !important;
    }

    /* Mobile open state — apply to BOTH the wrapper and the inner <ul>
       because the JS toggles both classes for robustness. Original code
       only toggled the wrapper, leaving the <ul> hidden by display:none. */
    .site-nav-primary.site-nav--mobile-open,
    .site-nav.site-nav--mobile-open {
        display: flex !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--black);
        flex-direction: column;
        padding: 24px 28px 28px;
        gap: 0;
        border-bottom: 2px solid var(--orange);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
        z-index: 9999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    .site-nav.site-nav--mobile-open li {
        width: 100%;
        border-bottom: 1px solid var(--black-600);
    }
    .site-nav.site-nav--mobile-open li:last-child {
        border-bottom: none;
    }
    .site-nav.site-nav--mobile-open a {
        display: block;
        padding: 16px 4px;
        font-size: 1.05rem;
        color: var(--white);
        text-decoration: none;
        font-weight: 500;
    }
    .site-nav.site-nav--mobile-open a:hover,
    .site-nav.site-nav--mobile-open .current-menu-item a {
        color: var(--orange);
    }
    /* The CTA + platform icons become part of the open menu on mobile */
    .site-header__inner .btn--primary {
        display: none;
    }
}

/* =========================================================================
   4. HERO (Shopify-inspired cinematic, BFCM globe background)
   ========================================================================= */

.hero {
    background: var(--black);
    color: var(--white);
    padding: 120px 0 140px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero::before {
    /* Orange radial glow bottom-left */
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, var(--orange-glow-strong) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.hero::after {
    /* Subtle grid texture overlay */
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(245, 99, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 99, 0, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: -1px -1px;
    pointer-events: none;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}

.hero__globe {
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    width: 60%;
    max-width: 760px;
    z-index: -1;
    pointer-events: none;
    animation: hero-globe-float 8s ease-in-out infinite;
    opacity: 0.85;
}

.hero__globe img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 80px rgba(245, 99, 0, 0.25));
}

@keyframes hero-globe-float {
    0%, 100% { transform: translateY(-50%) rotate(0deg); }
    50%      { transform: translateY(-52%) rotate(0.5deg); }
}

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

.hero__content {
    max-width: 720px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(245, 99, 0, 0.08);
    color: var(--orange-soft);
    border: 1px solid var(--orange-dark);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 28px;
}

.hero__eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--orange);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--orange);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 12px var(--orange); }
    50%      { opacity: 0.6; box-shadow: 0 0 24px var(--orange); }
}

.hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    color: var(--white);
    line-height: 1.0;
    letter-spacing: -0.04em;
    margin-bottom: 28px;
    font-weight: 700;
}

.hero h1 .accent {
    color: var(--orange);
    background: linear-gradient(135deg, var(--orange-bright) 0%, var(--orange) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero__sub {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.55;
    margin-bottom: 40px;
    max-width: 580px;
}

.hero__ctas {
    display: flex;
    gap: 14px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.hero__trust {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    padding-top: 28px;
    border-top: 1px solid var(--black-600);
}

.hero__trust-item {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero__trust-item::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--orange);
    border-radius: 50%;
}

/* Hero visual: stat cards (replaces globe-side stats since globe is in background) */
.hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hero__stat {
    background: rgba(22, 27, 34, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--black-600);
    border-radius: var(--radius-lg);
    padding: 24px 22px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-slow);
}

.hero__stat:hover {
    border-color: var(--orange);
    transform: translateY(-4px);
}

.hero__stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--orange-bright), var(--orange));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-slow);
}

.hero__stat:hover::before { transform: scaleX(1); }

.hero__stat-value {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.hero__stat-value .unit {
    color: var(--orange);
}

.hero__stat-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@media (max-width: 900px) {
    .hero { padding: 80px 0; }
    .hero__inner { grid-template-columns: 1fr; gap: 48px; }
    .hero__globe { width: 100%; right: -20%; top: 20%; opacity: 0.4; }
    .hero h1 { font-size: 2.4rem; }
    .hero__stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .hero__stat-value { font-size: 1.8rem; }
}

/* =========================================================================
   5. SECTIONS — Generic
   ========================================================================= */

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 72px;
}

.section-head__eyebrow {
    display: inline-block;
    color: var(--orange);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 20px;
    position: relative;
    padding-left: 32px;
}

.section-head__eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 1.5px;
    background: var(--orange);
}

.section-head h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.section-head p {
    font-size: 1.125rem;
    color: var(--neutral-500);
    line-height: 1.6;
}

/* =========================================================================
   6. SERVICES GRID
   ========================================================================= */

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

.service-card {
    background: var(--white);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: var(--transition);
    text-decoration: none;
    color: var(--neutral-700);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--orange-bright), var(--orange));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--orange);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(245, 99, 0, 0.12);
    color: var(--neutral-700);
}

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

.service-card__icon {
    width: 60px;
    height: 60px;
    background: var(--black-700);
    color: var(--orange);
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.6rem;
    transition: var(--transition);
    overflow: hidden;
    flex-shrink: 0;
}

.service-card__icon img,
.service-card__icon svg,
.service-card__icon .fivekings-platform-logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.service-card:hover .service-card__icon {
    background: var(--orange);
    color: var(--white);
}

/* Platform cards use a softer surface so colored logo.dev PNGs render well */
.services-grid a.service-card[href*="/platforms/"] .service-card__icon {
    background: var(--white);
    border: 1px solid var(--black-500);
    padding: 6px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--black);
}

.service-card p {
    color: var(--neutral-500);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex: 1;
}

.service-card__cta {
    color: var(--orange-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: var(--transition);
}

.service-card__cta::after { content: ' →'; }

.service-card:hover .service-card__cta { color: var(--orange); }

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

/* =========================================================================
   7. CASE STUDIES GRID
   ========================================================================= */

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.case-study-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition-slow);
    text-decoration: none;
    color: var(--neutral-700);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--neutral-200);
}

.case-study-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.15);
    border-color: var(--orange);
    color: var(--neutral-700);
}

.case-study-card__image {
    height: 240px;
    background: linear-gradient(135deg, var(--black) 0%, var(--black-700) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    position: relative;
    overflow: hidden;
}

.case-study-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, var(--orange-glow), transparent 60%);
    pointer-events: none;
}

.case-study-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.case-study-card__image.has-logo .case-study-card__client-name {
    display: none;
}
.case-study-card__image .case-study-card__logo:-moz-broken {
    opacity: 0;
}
.case-study-card__image .case-study-card__logo[src=""],
.case-study-card__image .case-study-card__logo:not([src]) {
    display: none;
}
/* Use a noscript-like fallback for img error states in headless browsers */
/* Chrome shows "broken image" placeholder when src fails to load - use a smaller height so it doesn't dominate */

.case-study-card__image .case-study-card__logo:not([src]) {
    display: none;
}

.case-study-card__image img.case-study-card__logo[src*="logo.dev"]:not(.loaded) {
    /* Logo img will become visible when it loads */
}

/* If the logo img fails to load, the alt text or the client-name underneath shows through.
   We use object-fit:contain and a max-height so a failed load collapses gracefully. */

.case-study-card__client-name {
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--white);
    z-index: 1;
    position: relative;
    text-align: center;
    line-height: 1.2;
    align-items: center;
    justify-content: center;
}

.case-study-card__industry {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--orange);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    z-index: 1;
}

.case-study-card__cms {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--black);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    z-index: 1;
    backdrop-filter: blur(8px);
}

.case-study-card__body {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-study-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    line-height: 1.25;
    color: var(--black);
}

.case-study-card p {
    color: var(--neutral-700);
}

.case-study-card__client {
    font-size: 0.85rem;
    color: var(--orange);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.case-study-card__excerpt {
    color: var(--neutral-500);
    margin-bottom: 24px;
    flex: 1;
    font-size: 0.95rem;
}

.case-study-card__results {
    display: flex;
    gap: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--neutral-200);
}

.case-study-card__result {
    flex: 1;
}

.case-study-card__result-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--orange);
    line-height: 1;
    letter-spacing: -0.02em;
}

.case-study-card__result-label {
    font-size: 0.78rem;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
}

@media (max-width: 700px) {
    .case-studies-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   8. PLATFORM ICON STRIP
   ========================================================================= */

.platform-strip {
    background: var(--black);
    padding: 64px 0;
    border-top: 1px solid var(--black-600);
    border-bottom: 1px solid var(--black-600);
}

.platform-strip__inner {
    text-align: center;
}

.platform-strip h3 {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 36px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
}

.platform-strip__row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 56px;
    flex-wrap: wrap;
}

.platform-strip__item {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
}

.platform-strip__item:hover {
    color: var(--orange);
    transform: translateY(-2px);
}

.platform-strip__icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.platform-strip__icon svg,
.platform-strip__icon img,
.platform-strip__icon .fivekings-platform-logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.platform-strip__item:hover .platform-strip__icon {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(245, 99, 0, 0.2);
}

/* =========================================================================
   9. TRUST BAR
   ========================================================================= */

.trust-bar {
    background: var(--neutral-50);
    padding: 48px 0;
    border-top: 1px solid var(--neutral-200);
    border-bottom: 1px solid var(--neutral-200);
    color: var(--neutral-700);
}

.trust-bar h1, .trust-bar h2, .trust-bar h3, .trust-bar h4 {
    color: var(--black);
}

.trust-bar__inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.trust-bar__badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--neutral-600);
    font-weight: 600;
    font-size: 0.92rem;
}

.trust-bar__icon {
    width: 36px;
    height: 36px;
    background: var(--white);
    color: var(--white);
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    overflow: hidden;
    padding: 2px;
    border: 1px solid rgba(245, 99, 0, 0.25);
}

/* =========================================================================
   10. CTA SECTION
   ========================================================================= */

.cta-section {
    background: var(--black);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 100%, var(--orange-glow-strong) 0%, transparent 60%);
    z-index: -1;
}

.cta-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(245, 99, 0, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 99, 0, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black 20%, transparent 70%);
    opacity: 0.5;
}

.cta-section h2 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 18px;
    letter-spacing: -0.03em;
    position: relative;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.15rem;
    margin-bottom: 40px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.cta-section .btn { position: relative; }

/* =========================================================================
   11. FOOTER
   ========================================================================= */

.site-footer {
    background: var(--black-700);
    color: rgba(255, 255, 255, 0.65);
    padding: 80px 0 0;
    border-top: 1px solid var(--black-600);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--black-600);
}

.site-footer__brand { color: var(--white); }

.site-footer__logo {
    display: inline-block;
    margin-bottom: 20px;
    transition: var(--transition);
}

.site-footer__logo:hover { transform: scale(1.02); }

.site-footer__logo img {
    height: 50px;
    width: auto;
}

.site-footer__about {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.65;
    max-width: 320px;
}

.site-footer__social {
    display: flex;
    gap: 10px;
}

.site-footer__social a {
    width: 38px;
    height: 38px;
    background: var(--black-600);
    color: var(--white);
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.site-footer__social a:hover {
    background: var(--orange);
    color: var(--white);
    transform: translateY(-2px);
}

.site-footer__col h4 {
    color: var(--white);
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 22px;
    font-weight: 700;
}

.site-footer__col ul { list-style: none; }

.site-footer__col li { margin-bottom: 10px; }

.site-footer__col a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.92rem;
    transition: var(--transition);
}

.site-footer__col a:hover { color: var(--orange); }

.site-footer__bottom {
    padding: 28px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.site-footer__bottom a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    margin-left: 16px;
}

.site-footer__bottom a:hover { color: var(--orange); }

@media (max-width: 900px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .site-footer__brand { grid-column: 1 / -1; }
}

/* =========================================================================
   12. PAGES — Generic
   ========================================================================= */

.page-header {
    background: var(--black);
    color: var(--white);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 100%, var(--orange-glow) 0%, transparent 60%);
    pointer-events: none;
}

.page-header h1 {
    color: var(--white);
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    margin-bottom: 18px;
    letter-spacing: -0.03em;
    position: relative;
}

.page-header p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.15rem;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
}

.entry-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 64px 28px;
}

.entry-content h2 {
    margin-top: 1.5em;
    font-size: 1.9rem;
    letter-spacing: -0.02em;
}

.entry-content h3 {
    margin-top: 1.2em;
    color: var(--orange-dark);
}

.entry-content ul, .entry-content ol {
    margin: 1em 0 1.5em 1.5em;
}

.entry-content li { margin-bottom: 0.5em; }

.entry-content blockquote {
    border-left: 4px solid var(--orange);
    padding: 18px 28px;
    margin: 1.8em 0;
    background: var(--neutral-50);
    font-style: italic;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.entry-content a {
    color: var(--orange-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.entry-content a:hover { color: var(--orange); }

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--neutral-200);
}

.entry-content th,
.entry-content td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--neutral-200);
}

.entry-content th {
    background: var(--neutral-50);
    font-weight: 700;
    color: var(--neutral-700);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =========================================================================
   13. SINGLE CASE STUDY
   ========================================================================= */

.cs-hero {
    background: var(--black);
    color: var(--white);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.cs-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 50%, var(--orange-glow), transparent 60%);
}

.cs-hero__inner {
    position: relative;
    z-index: 1;
}

.cs-hero__breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.cs-hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.cs-hero__breadcrumb a:hover { color: var(--orange); }

.cs-hero__industry {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.cs-hero h1 {
    color: var(--white);
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    margin-bottom: 16px;
    max-width: 900px;
}

.cs-hero__client {
    display: flex;
    align-items: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.cs-hero__client strong { color: var(--orange); }

.cs-hero__client a {
    color: var(--orange);
    text-decoration: none;
}

.cs-hero__metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 56px;
    padding-top: 48px;
    border-top: 1px solid var(--black-600);
}

.cs-hero__metric {
    background: var(--black-700);
    border: 1px solid var(--black-600);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    transition: var(--transition);
}

.cs-hero__metric:hover {
    border-color: var(--orange);
    transform: translateY(-4px);
}

.cs-hero__metric-value {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--orange);
    line-height: 1;
    letter-spacing: -0.03em;
}

.cs-hero__metric-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 8px;
}

.cs-body {
    max-width: 920px;
    margin: 0 auto;
    padding: 80px 28px;
}

.cs-body h2 {
    font-size: 1.85rem;
    margin-top: 56px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--orange);
    display: inline-block;
    letter-spacing: -0.02em;
}

.cs-body h2:first-child { margin-top: 0; }

.cs-services-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 1.5em 0;
}

.cs-service-tag {
    background: rgba(245, 99, 0, 0.1);
    color: var(--orange-dark);
    border: 1px solid var(--orange);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
}

.cs-testimonial {
    background: var(--black);
    color: var(--white);
    padding: 60px 48px;
    border-radius: var(--radius-xl);
    margin: 64px 0;
    border-left: 6px solid var(--orange);
    position: relative;
    overflow: hidden;
}

.cs-testimonial::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 12rem;
    color: var(--orange);
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
}

.cs-testimonial blockquote {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.cs-testimonial cite {
    display: block;
    margin-top: 24px;
    font-style: normal;
    color: var(--orange);
    font-weight: 700;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .cs-hero__metrics { grid-template-columns: repeat(2, 1fr); }
    .cs-testimonial { padding: 40px 28px; }
    .cs-testimonial blockquote { font-size: 1.2rem; }
}

/* =========================================================================
   14. SINGLE PLATFORM (in-depth)
   ========================================================================= */

.platform-hero {
    background: var(--black);
    color: var(--white);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.platform-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, var(--orange-glow), transparent 60%);
}

.platform-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 32px;
    align-items: center;
}

.platform-hero__icon {
    width: 96px;
    height: 96px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    background: var(--white);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.platform-hero__icon svg,
.platform-hero__icon img,
.platform-hero__icon .fivekings-platform-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.platform-hero h1 {
    color: var(--white);
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.platform-hero__vendor {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
}

.platform-hero__vendor a {
    color: var(--orange);
    text-decoration: none;
}

.platform-body {
    max-width: 920px;
    margin: 0 auto;
    padding: 80px 28px;
}

.platform-body h2 {
    font-size: 1.9rem;
    margin-top: 56px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--orange);
    display: inline-block;
    letter-spacing: -0.02em;
}

.platform-body h2:first-child { margin-top: 0; }

.platform-body h3 {
    margin-top: 1.6em;
    color: var(--orange-dark);
    font-size: 1.3rem;
}

.platform-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 32px 0;
}

.platform-feature {
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}

.platform-feature:hover {
    border-color: var(--orange);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.platform-feature__icon {
    width: 44px;
    height: 44px;
    background: var(--orange);
    color: var(--white);
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.platform-feature h3 {
    margin-top: 0;
    font-size: 1.15rem;
    color: var(--black);
    margin-bottom: 8px;
}

.platform-feature p {
    color: var(--neutral-600);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.platform-faq {
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 40px 0;
    color: var(--neutral-700);
}

.platform-faq h2 {
    border: none;
    display: block;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 24px;
    color: var(--black);
}

.platform-faq__item {
    border-bottom: 1px solid var(--neutral-200);
    padding: 18px 0;
}

.platform-faq__item:last-child { border-bottom: none; }

.platform-faq__q {
    font-weight: 700;
    color: var(--neutral-700);
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.platform-faq__a {
    color: var(--neutral-600);
    margin: 0;
}

.platform-cta-row {
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius-xl);
    padding: 56px 48px;
    margin: 64px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.platform-cta-row::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 100%, var(--orange-glow-strong), transparent 60%);
}

.platform-cta-row h2 {
    color: var(--white);
    border: none;
    display: block;
    padding: 0;
    margin: 0 0 16px;
    font-size: 1.8rem;
}

.platform-cta-row p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 28px;
    position: relative;
}

.platform-cta-row .btn { position: relative; }

@media (max-width: 700px) {
    .platform-hero__inner { grid-template-columns: 1fr; }
    .platform-hero__icon { width: 80px; height: 80px; }
    .platform-features { grid-template-columns: 1fr; }
    .platform-cta-row { padding: 40px 24px; }
}

/* =========================================================================
   15. SEO AUDIT FORM — multi-step (allstar-inspired)
   ========================================================================= */

.audit-form-wrap {
    max-width: 860px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    padding: 56px;
    border: 1px solid var(--neutral-200);
}

.audit-form-wrap h2 {
    font-size: 2.1rem;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    color: var(--black);
}

.audit-form-wrap .form-intro {
    color: var(--neutral-500);
    margin-bottom: 36px;
    font-size: 1.05rem;
    line-height: 1.55;
}

/* ----- Progress indicator (3 steps) ----- */
.raq-progress {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin: 0 0 40px;
    padding: 0 4px;
}

.raq-progress::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 32px;
    right: 32px;
    height: 3px;
    background: var(--neutral-200);
    z-index: 0;
    border-radius: 3px;
}

.raq-progress-bar {
    position: absolute;
    top: 18px;
    left: 32px;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--orange-bright));
    z-index: 1;
    border-radius: 3px;
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.raq-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    text-align: center;
}

.raq-step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--neutral-200);
    color: var(--neutral-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
}

.raq-step.active .raq-step-circle {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
    box-shadow: 0 0 0 6px rgba(245, 99, 0, 0.15);
    transform: scale(1.05);
}

.raq-step.completed .raq-step-circle {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
}

.raq-step.completed .raq-step-circle::before {
    content: '✓';
    font-size: 1.05rem;
}

.raq-step.completed .raq-step-circle > * {
    display: none;
}

.raq-step-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--neutral-500);
    transition: var(--transition);
}

.raq-step.active .raq-step-label,
.raq-step.completed .raq-step-label {
    color: var(--orange-dark);
}

/* ----- Step panes ----- */
.raq-step-pane {
    display: none;
    animation: raq-pane-in 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.raq-step-pane.active {
    display: block;
}

@keyframes raq-pane-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.raq-step-title {
    font-size: 1.55rem;
    color: var(--orange-dark);
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.raq-step-sub {
    color: var(--neutral-500);
    font-size: 0.95rem;
    margin-bottom: 28px;
    line-height: 1.5;
}

/* ----- Service tile grid (Step 1) ----- */
.raq-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.raq-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 22px 12px;
    background: var(--white);
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    user-select: none;
    position: relative;
    color: var(--black);
}

.raq-tile h3, .raq-tile h4 {
    color: var(--black);
}

.raq-tile input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.raq-tile-icon {
    font-size: 1.8rem;
    line-height: 1;
    transition: var(--transition);
    filter: grayscale(0.2);
}

.raq-tile-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neutral-700);
    line-height: 1.2;
}

.raq-tile:hover {
    border-color: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 99, 0, 0.12);
    background: rgba(245, 99, 0, 0.02);
}

.raq-tile:hover .raq-tile-icon {
    filter: grayscale(0);
    transform: scale(1.1);
}

.raq-tile:has(input:checked) {
    border-color: var(--orange);
    background: rgba(245, 99, 0, 0.06);
    box-shadow: 0 8px 24px rgba(245, 99, 0, 0.18);
}

.raq-tile:has(input:checked)::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background: var(--orange);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
}

.raq-tile:has(input:checked) .raq-tile-name {
    color: var(--orange-dark);
}

/* Validation state — clear visible feedback */
.raq-tile.invalid {
    border-color: var(--danger) !important;
    background: rgba(239, 68, 68, 0.04) !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
    animation: raq-shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.raq-step-pane.has-error {
    animation: raq-shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes raq-shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}

/* Inline error message that appears below the tile grid */
.raq-error-msg {
    display: none;
    margin: 12px 0 24px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger);
    border: 1px solid var(--danger);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
}

.raq-error-msg.show {
    display: block;
    animation: raq-pane-in 0.3s ease;
}

.raq-error-msg::before {
    content: '⚠ ';
    font-weight: 800;
    margin-right: 4px;
}

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

/* ----- Field rows (Step 2 & 3) ----- */
.raq-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.raq-field {
    margin-bottom: 16px;
}

.raq-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--neutral-700);
}

.raq-field label .raq-req {
    color: var(--orange);
    font-weight: 700;
}

.raq-field-hint {
    font-size: 0.8rem;
    color: var(--neutral-500);
    margin-top: 6px;
    line-height: 1.4;
}

.raq-field input[type="text"],
.raq-field input[type="email"],
.raq-field input[type="tel"],
.raq-field input[type="url"],
.raq-field input[type="number"],
.raq-field select,
.raq-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--neutral-300);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--neutral-700);
    background: var(--white);
    transition: var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

.raq-field select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23f56300' d='M6 8L0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.raq-field input:focus,
.raq-field select:focus,
.raq-field textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 4px var(--orange-glow);
}

.raq-field input.invalid,
.raq-field select.invalid {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.04);
}

.raq-field textarea { min-height: 120px; resize: vertical; }

.raq-field-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.raq-field-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--orange);
    cursor: pointer;
    flex-shrink: 0;
}

.raq-field-checkbox label {
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: var(--neutral-600);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0;
    cursor: pointer;
}

/* ----- Honeypot (off-screen) ----- */
.raq-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ----- Buttons (next/prev/submit) ----- */
.raq-btn-row {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--neutral-200);
    align-items: center;
    flex-wrap: wrap;
}

.raq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: 2px solid transparent;
    line-height: 1.2;
    letter-spacing: -0.005em;
}

.raq-btn-primary {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
    box-shadow: 0 4px 16px rgba(245, 99, 0, 0.25);
    margin-left: auto;
}

.raq-btn-primary:hover {
    background: var(--orange-bright);
    border-color: var(--orange-bright);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 99, 0, 0.35);
}

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

.raq-btn-primary:disabled {
    background: var(--neutral-500);
    border-color: var(--neutral-500);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.raq-btn-secondary {
    background: transparent;
    color: var(--neutral-600);
    border-color: var(--neutral-300);
}

.raq-btn-secondary:hover {
    background: var(--neutral-100);
    color: var(--black);
    border-color: var(--neutral-500);
}

/* When only one button (Step 1, no back), the primary should still be right-aligned */
.raq-btn-row:not(:has(.raq-btn-secondary)) .raq-btn-primary {
    margin-left: auto;
}

/* Form note at bottom */
.raq-form-note {
    margin-top: 24px;
    padding: 16px 20px;
    background: var(--neutral-50);
    border-radius: var(--radius);
    color: var(--neutral-700);
    font-size: 0.82rem;
    line-height: 1.5;
    text-align: center;
    border: 1px solid var(--neutral-200);
}

.raq-form-note h3, .raq-form-note h4, .raq-form-note a {
    color: var(--black);
}

.raq-form-note a:hover {
    color: var(--orange);
}

.raq-form-note .raq-lock {
    color: var(--orange);
    font-weight: 600;
}

/* ----- Notices ----- */
.form-notice {
    grid-column: 1 / -1;
    padding: 16px 20px;
    border-radius: var(--radius);
    font-size: 0.92rem;
    margin-bottom: 24px;
}

.form-notice--success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
    font-size: 1.05rem;
    line-height: 1.6;
    padding: 24px 28px;
}

.form-notice--error {
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger);
    border: 1px solid var(--danger);
}

@media (max-width: 600px) {
    .audit-form-wrap { padding: 32px 24px; }
    .raq-field-row { grid-template-columns: 1fr; gap: 0; }
    .raq-progress::before,
    .raq-progress-bar { left: 16px; right: 16px; }
    .raq-step-label { font-size: 0.7rem; }
    .raq-step-circle { width: 32px; height: 32px; font-size: 0.85rem; }
    .raq-btn-row { flex-direction: column-reverse; }
    .raq-btn { width: 100%; }
    .raq-btn-row:not(:has(.raq-btn-secondary)) .raq-btn-primary,
    .raq-btn-primary { margin-left: 0; }
}

/* =========================================================================
   16. UTILITIES
   ========================================================================= */

.text-center { text-align: center; }
.text-orange { color: var(--orange); }
.bg-black { background: var(--black); color: var(--white); }
.bg-orange { background: var(--orange); color: var(--white); }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mb-4 { margin-bottom: 32px !important; }
.mb-6 { margin-bottom: 48px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-4 { margin-top: 32px !important; }
.mt-6 { margin-top: 48px !important; }

.entry-header { display: none; }
.page .entry-header { display: none; }

.no-hero .site-header { box-shadow: none; }

.alignwide { max-width: var(--container); margin: 0 auto; }
.alignfull { max-width: 100%; }

.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
    .admin-bar .site-header { top: 46px; }
}

/* Inline SVG accent treatment */
.svg-orange { color: var(--orange); }


/* =========================================================================
   17. ABOUT PAGE
   ========================================================================= */

.about-hero {
    padding: 80px 0 64px;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
}

.about-hero__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-hero__text .section-eyebrow {
    display: inline-block;
    color: var(--orange);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.about-hero__text h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.text-orange { color: var(--orange); }

.about-hero__text .lead {
    font-size: 1.15rem;
    line-height: 1.65;
    color: var(--neutral-300);
    margin-bottom: 32px;
}

.about-hero__ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.about-hero__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stat-card {
    padding: 24px;
    background: var(--color-surface-2);
    border: 1px solid var(--neutral-800);
    border-radius: var(--radius);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--neutral-400);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* Story section */
.about-story {
    padding: 80px 0;
    background: var(--color-bg);
}

.about-story__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-story__content h2 {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.about-story__content p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--neutral-200);
    margin-bottom: 20px;
}

.about-story__content p:last-child {
    color: var(--orange);
    font-weight: 500;
}

.quote-card {
    padding: 32px;
    background: var(--color-surface-2);
    border-left: 4px solid var(--orange);
    border-radius: var(--radius);
    position: sticky;
    top: 120px;
}

.quote-card__mark {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 12px;
}

.quote-card p {
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.65;
    margin-bottom: 24px;
    color: var(--neutral-50);
}

.quote-card footer {
    font-size: 0.9rem;
    color: var(--neutral-200);
}

.quote-card footer strong {
    color: var(--neutral-50);
    font-size: 1rem;
}

@media (max-width: 900px) {
    .about-story__grid { grid-template-columns: 1fr; }
    .quote-card { position: static; }
}

/* Values */
.about-values {
    padding: 80px 0;
    background: var(--color-surface);
}

.about-values__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.value-card {
    padding: 32px;
    background: var(--color-surface-2);
    border: 1px solid var(--neutral-800);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

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

.value-card__num {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.value-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neutral-50);
    margin-bottom: 12px;
}

.value-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--neutral-200);
}

@media (max-width: 700px) {
    .about-values__grid { grid-template-columns: 1fr; }
}

/* Team */
.about-team {
    padding: 80px 0;
    background: var(--color-bg);
}

.about-team__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.team-card {
    padding: 24px;
    background: var(--color-surface-2);
    border: 1px solid var(--neutral-800);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    border-color: var(--orange);
}

.team-card__avatar {
    margin-bottom: 16px;
}

.avatar-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin: 0 auto;
}

.team-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neutral-50);
    margin-bottom: 4px;
}

.team-card__role {
    display: block;
    font-size: 0.85rem;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.team-card p {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--neutral-200);
    margin-bottom: 16px;
}

.team-card__social {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.team-card__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--neutral-300);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.team-card__social a:hover {
    background: var(--orange);
    color: white;
}

@media (max-width: 1100px) { .about-team__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .about-team__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .about-team__grid { grid-template-columns: 1fr; } }

/* Credentials */
.about-credentials {
    padding: 80px 0;
    background: var(--color-surface);
}

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

.credential-card {
    padding: 32px;
    background: var(--color-surface-2);
    border: 1px solid var(--neutral-800);
    border-radius: var(--radius);
    text-align: center;
}

.credential-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--orange);
    margin: 0 auto 16px;
}

.credential-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--neutral-50);
    margin-bottom: 8px;
}

.credential-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--neutral-200);
}

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

/* Process */
.about-process {
    padding: 80px 0;
    background: var(--color-bg);
}

.about-process__timeline {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.about-process__timeline::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    z-index: 0;
}

.timeline-item {
    padding: 24px;
    background: var(--color-surface-2);
    border: 1px solid var(--neutral-800);
    border-radius: var(--radius);
    position: relative;
    z-index: 1;
}

.timeline-item__week {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(245, 99, 0, 0.1);
    border-radius: 999px;
}

.timeline-item h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--neutral-50);
    margin-bottom: 8px;
}

.timeline-item p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--neutral-200);
}

@media (max-width: 900px) {
    .about-process__timeline { grid-template-columns: repeat(2, 1fr); }
    .about-process__timeline::before { display: none; }
}

@media (max-width: 600px) {
    .about-process__timeline { grid-template-columns: 1fr; }
}

/* Awards */
.about-awards {
    padding: 80px 0;
    background: var(--color-surface);
}

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

.award-card {
    padding: 24px;
    background: var(--color-surface-2);
    border-left: 4px solid var(--orange);
    border-radius: var(--radius);
}

.award-card__year {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.award-card__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
}

.award-card__source {
    font-size: 0.85rem;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* =========================================================================
   18. BLOG
   ========================================================================= */

.blog-hero {
    padding: 80px 0 40px;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
    text-align: center;
}

.blog-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    color: var(--neutral-50);
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.blog-hero .lead {
    font-size: 1.15rem;
    color: var(--neutral-200);
    max-width: 700px;
    margin: 0 auto 32px;
}

.blog-hero .section-eyebrow {
    display: inline-block;
    color: var(--orange);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.blog-categories {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.blog-category {
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--color-surface-2);
    color: var(--neutral-300);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.blog-category:hover, .blog-category.is-active {
    background: var(--orange);
    color: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 64px 0;
}

.blog-card {
    background: var(--color-surface-2);
    border: 1px solid var(--neutral-800);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: var(--orange);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(245, 99, 0, 0.1);
}

.blog-card__image {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-card__image-placeholder {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--orange);
    opacity: 0.3;
}

.blog-card__body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__meta {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--neutral-300);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.blog-card__category {
    color: var(--orange);
}

.blog-card h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

.blog-card h2 a {
    color: var(--neutral-50);
    text-decoration: none;
}

.blog-card h2 a:hover {
    color: var(--orange);
}

.blog-card__excerpt {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--neutral-100);
    margin-bottom: 16px;
    flex: 1;
}

.blog-card__readmore {
    color: var(--orange);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.blog-card__readmore:hover {
    color: var(--orange-bright);
}

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

/* Single post */
.single-post {
    padding: 64px 0;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

.single-post__inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 28px;
}

@media (max-width: 800px) {
    .single-post__inner {
        padding: 0 20px;
    }
}

.single-post__meta {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.single-post__category {
    color: var(--orange);
}

.single-post h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.single-post__lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--neutral-300);
    margin-bottom: 40px;
}

.single-post__body h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--neutral-50);
    margin: 40px 0 16px;
}

.single-post__body h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--neutral-50);
    margin: 32px 0 12px;
}

.single-post__body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--neutral-100);
    margin-bottom: 20px;
}

.single-post__body ul, .single-post__body ol {
    margin: 0 0 24px 24px;
    color: var(--neutral-100);
    line-height: 1.8;
}

.single-post__body li {
    margin-bottom: 10px;
}

.single-post__body blockquote {
    border-left: 4px solid var(--orange);
    padding: 20px 24px;
    margin: 32px 0;
    background: var(--color-surface-2);
    border-radius: var(--radius);
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.65;
    color: var(--neutral-50);
}

.single-post__body code {
    background: var(--color-surface-2);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.95em;
    color: var(--orange);
    font-family: var(--font-mono);
}

.single-post__body a {
    color: var(--orange);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.single-post__body a:hover {
    color: var(--orange-bright);
}

.single-post__body strong {
    color: var(--neutral-50);
    font-weight: 600;
}

.single-post__author {
    margin-top: 48px;
    padding: 24px;
    background: var(--color-surface-2);
    border-radius: var(--radius);
    display: flex;
    gap: 16px;
    align-items: center;
}

.single-post__author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    color: white;
}

.single-post__author-info h4 {
    font-size: 1rem;
    margin: 0 0 4px;
}

.single-post__author-info p {
    font-size: 0.85rem;
    color: var(--neutral-500);
    margin: 0;
}

/* Pagination */
.blog-pagination {
    padding: 32px 0 64px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.blog-pagination a, .blog-pagination span {
    padding: 8px 14px;
    border-radius: var(--radius);
    background: var(--color-surface-2);
    color: var(--neutral-300);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.blog-pagination a:hover, .blog-pagination .current {
    background: var(--orange);
    color: white;
}
/* =========================================================================
   18. PLATFORM HERO ENHANCEMENTS
   ========================================================================= */

.platform-hero {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
    border-bottom: 1px solid var(--color-border);
}

.platform-hero__inner {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.platform-hero__icon {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 18px;
}

.platform-hero__icon svg {
    width: 100%;
    height: 100%;
}

.platform-hero__eyebrow {
    display: inline-block;
    color: var(--orange);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.platform-hero__subheading {
    font-size: 1.15rem;
    color: var(--neutral-200);
    margin-top: 8px;
    margin-bottom: 12px;
    font-weight: 400;
    font-style: italic;
}

.platform-hero__vendor {
    font-size: 0.95rem;
    color: var(--neutral-300);
    margin-top: 8px;
}

.platform-hero__vendor a {
    color: var(--orange);
    text-decoration: none;
}

.platform-hero__vendor a:hover {
    color: var(--orange-bright);
}

/* Platform hero facts grid */
.platform-hero__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 28px 0 24px;
    padding: 24px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.platform-hero__fact {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.platform-hero__fact-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--neutral-300);
    font-weight: 600;
}

.platform-hero__fact-value {
    font-size: 0.95rem;
    color: var(--neutral-50);
    font-weight: 500;
    line-height: 1.4;
}

.platform-hero__fact-value a {
    color: var(--orange);
    text-decoration: none;
}

.platform-hero__fact-value a:hover {
    color: var(--orange-bright);
}

/* Platform hero links */
.platform-hero__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
}

.platform-hero__link {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: var(--color-surface-2);
    color: var(--neutral-50) !important;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: var(--transition);
}

.platform-hero__link:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white) !important;
    transform: translateY(-2px);
}

.platform-hero__link--github {
    background: var(--white);
    color: #1f2937 !important;
    border-color: var(--white);
    font-weight: 600;
}

.platform-hero__link--github:hover {
    background: var(--orange);
    color: var(--white) !important;
    border-color: var(--orange);
}

/* Platform hero public summary */
.platform-hero__summary {
    margin-top: 32px;
    padding: 28px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--orange);
    border-radius: var(--radius);
}

.platform-hero__summary-heading {
    font-size: 1rem;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-weight: 700;
}

.platform-hero__summary p {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--neutral-100);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .platform-hero {
        padding: 48px 0 32px;
    }

    .platform-hero__inner {
        flex-direction: column;
        gap: 24px;
    }

    .platform-hero__icon {
        width: 80px;
        height: 80px;
        padding: 14px;
    }

    .platform-hero__facts {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 16px;
    }

    .platform-hero__links {
        gap: 8px;
    }

    .platform-hero__link {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

/* =========================================================================
   19. SERVICES DETAIL PAGE
   ========================================================================= */

.service-detail {
    padding: 64px 0;
}

.service-detail__header {
    margin-bottom: 48px;
    text-align: center;
}

.service-detail__header h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--neutral-50);
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.service-detail__lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--neutral-200);
    max-width: 760px;
    margin: 0 auto;
}

.service-detail__partner {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    margin: 24px auto 0;
}
.service-detail__header {
    text-align: center;
}
.service-detail__partner {
    margin-left: auto;
    margin-right: auto;
}
.service-detail__partner-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--neutral-400);
}
.service-detail__partner-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}
.service-detail__partner-link:hover {
    opacity: 0.75;
}
.service-detail__partner-logo {
    height: 28px;
    width: auto;
    display: block;
}
.service-detail__partner-name {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}
.service-detail__partner-url {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--neutral-300);
}
@media (max-width: 600px) {
    .service-detail__partner {
        flex-wrap: wrap;
        padding: 10px 12px;
    }
    .service-detail__partner-url { display: none; }
}

.service-detail__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 16px;
}

.service-detail__icon svg {
    width: 100%;
    height: 100%;
    color: var(--orange);
}

.service-detail__body {
    max-width: 820px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--neutral-100);
}

.service-detail__body h2 {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--neutral-50);
    margin: 56px 0 20px;
    letter-spacing: -0.02em;
}

.service-detail__body h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--orange);
    margin: 32px 0 12px;
}

.service-detail__body p {
    margin-bottom: 20px;
    color: var(--neutral-100);
}

.service-detail__cta {
    margin-top: 64px;
    padding: 48px 40px;
    text-align: center;
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
}

.service-detail__cta h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--neutral-50);
    margin-bottom: 16px;
}

.service-detail__cta p {
    font-size: 1.05rem;
    color: var(--neutral-200);
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .service-detail {
        padding: 32px 0;
    }
    .service-detail__cta {
        padding: 32px 20px;
    }
}

/* =========================================================================
   20. FOOTER PAYMENTS + OPEN SOURCE NARRATIVE
   ========================================================================= */

.site-footer__payments {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
    flex-wrap: wrap;
}

.site-footer__payments-label {
    font-size: 0.8rem;
    color: var(--neutral-300);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-right: 8px;
}

.site-footer__payment-icon {
    width: 48px;
    height: 32px;
    background: var(--white);
    border-radius: 6px;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.site-footer__payment-icon:hover {
    transform: translateY(-2px);
    border-color: var(--orange);
}

.site-footer__payment-icon svg {
    width: 100%;
    height: 100%;
}

.site-footer__opensource {
    padding: 48px 0;
    background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.site-footer__opensource-inner {
    max-width: 760px;
    margin: 0 auto;
}

.site-footer__opensource-eyebrow {
    color: var(--orange);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.site-footer__opensource h3 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--neutral-50);
    margin-bottom: 16px;
    line-height: 1.2;
}

.site-footer__opensource p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--neutral-200);
    margin-bottom: 20px;
}

.site-footer__opensource p strong {
    color: var(--neutral-50);
    font-weight: 600;
}

.site-footer__opensource-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.site-footer__opensource-stat {
    padding: 20px 12px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.site-footer__opensource-stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--orange);
    margin-bottom: 4px;
}

.site-footer__opensource-stat-label {
    font-size: 0.78rem;
    color: var(--neutral-300);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-footer__opensource-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--orange);
    color: var(--white);
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    margin-top: 16px;
    transition: var(--transition);
}

.site-footer__opensource-cta:hover {
    background: var(--orange-bright);
    transform: translateY(-2px);
    color: var(--white);
}

@media (max-width: 600px) {
    .site-footer__payments {
        padding: 16px 0;
        gap: 10px;
    }
    .site-footer__payment-icon {
        width: 40px;
        height: 28px;
    }
}

/* =========================================================================
   21. NEWSLETTER FORM (Mautic Campaign signup)
   ========================================================================= */

.newsletter-form {
    padding: 64px 0;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-surface) 50%, var(--color-bg) 100%);
    text-align: center;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.newsletter-form__inner {
    max-width: 640px;
    margin: 0 auto;
}

.newsletter-form__eyebrow {
    display: inline-block;
    color: var(--orange);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.newsletter-form h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--neutral-50);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.newsletter-form__lead {
    font-size: 1.05rem;
    color: var(--neutral-200);
    margin-bottom: 28px;
    line-height: 1.6;
}

.newsletter-form__fields {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto 16px;
    flex-wrap: wrap;
}

.newsletter-form__input {
    flex: 1;
    min-width: 240px;
    padding: 14px 18px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--neutral-50);
    font-size: 1rem;
    font-family: inherit;
}

.newsletter-form__input::placeholder {
    color: var(--neutral-400);
}

.newsletter-form__input:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 4px var(--orange-glow);
}

.newsletter-form__submit {
    padding: 14px 32px;
    background: var(--orange);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.newsletter-form__submit:hover {
    background: var(--orange-bright);
    transform: translateY(-2px);
}

.newsletter-form__note {
    font-size: 0.82rem;
    color: var(--neutral-400);
    line-height: 1.5;
}

.newsletter-form__note strong {
    color: var(--neutral-200);
}

.newsletter-form__opensource-line {
    margin-top: 20px;
    padding: 16px 20px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--neutral-200);
    line-height: 1.6;
}

.newsletter-form__opensource-line strong {
    color: var(--orange);
    font-weight: 600;
}
/* =========================================================================
   19. CASE STUDY ICONS + ENHANCED CARDS
   ========================================================================= */

/* Single case study hero — icon next to title */
.cs-hero__top {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
}

.cs-hero__icon-wrap {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    border-radius: 16px;
    background: var(--neutral-50);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.cs-hero__icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    display: block;
}

.cs-hero__icon--initials {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-hero__head {
    flex: 1;
    min-width: 0;
}

.cs-hero__industry {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--orange);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.cs-hero__client {
    margin-top: 12px;
    font-size: 0.95rem;
    color: var(--neutral-300);
}

.cs-hero__client a {
    color: var(--orange);
    text-decoration: none;
}

.cs-hero__client a:hover {
    color: var(--orange-light);
    text-decoration: underline;
}

/* Case study card — icon + client info at top */
.case-study-card {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--color-surface-2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.case-study-card:hover {
    transform: translateY(-4px);
    border-color: var(--orange);
    box-shadow: 0 12px 28px rgba(245, 99, 0, 0.15);
}

.case-study-card__top {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--color-surface-2);
    background: var(--color-surface-2);
}

.case-study-card__icon-wrap {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.case-study-card__icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    display: block;
}

.case-study-card__icon--initials {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-study-card__client-info {
    flex: 1;
    min-width: 0;
}

.case-study-card__client-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--neutral-50);
    line-height: 1.2;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.case-study-card__client-url {
    font-size: 0.78rem;
    color: var(--orange);
    text-decoration: none;
    font-weight: 500;
}

.case-study-card__client-url:hover {
    color: var(--orange-light);
    text-decoration: underline;
}

.case-study-card__body {
    padding: 20px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* industry pill styled by the rule above (orange bg, white text) */

.case-study-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--neutral-50);
    margin-bottom: 10px;
}

.case-study-card__excerpt {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--neutral-200);
    margin-bottom: 16px;
    flex: 1;
}

.case-study-card__results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--color-surface-2);
    margin-bottom: 14px;
}

.case-study-card__result {
    text-align: center;
}

.case-study-card__result-value {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 4px;
}

.case-study-card__result-label {
    font-size: 0.72rem;
    color: var(--neutral-300);
    line-height: 1.3;
}

.case-study-card__cta {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--orange);
    margin-top: auto;
}

.case-study-card:hover .case-study-card__cta {
    color: var(--orange-light);
}

/* =========================================================================
   20. HOMEPAGE SERVICE CARDS WITH CALLOUTS
   ========================================================================= */

/* Promote services section heading contrast */
.section--services h2,
.section--services h3 {
    color: var(--neutral-50);
}

.service-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--color-surface-2);
    border-radius: var(--radius-lg);
    padding: 32px 28px 28px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(245, 99, 0, 0.18);
    border-color: var(--orange);
}

/* Service card callout badges — orange-dark for WCAG AA contrast (5.5:1) */
/* Service card badge — moved out of overlap zone; sits inline with eyebrow */
.service-card {
    position: relative;
}

.service-card__badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1.4px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--orange-dark, #c44d00);
    color: var(--white);
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(196, 77, 0, 0.45);
}

.service-card__badge--ghost {
    background: transparent;
    color: var(--orange);
    border: 1.5px solid var(--orange);
    box-shadow: none;
}

/* Service card icon */
.service-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(245, 99, 0, 0.12) 0%, rgba(245, 99, 0, 0.04) 100%);
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
    margin-bottom: 16px;
    font-size: 1.6rem;
    font-weight: 700;
}

.service-card__eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--orange);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--black);
    margin-bottom: 12px;
}

.service-card__summary {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--neutral-700);
    margin-bottom: 16px;
}

.service-card__stats {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    margin-bottom: 16px;
    border-top: 1px solid var(--neutral-100);
    border-bottom: 1px solid var(--neutral-100);
}

.service-card__stat {
    flex: 1;
}

.service-card__stat-value {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1;
    margin-bottom: 3px;
}

.service-card__stat-label {
    font-size: 0.72rem;
    color: var(--neutral-500);
    line-height: 1.2;
}

.service-card__stat-divider {
    width: 1px;
    height: 24px;
    background: var(--neutral-200);
}

.service-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.service-card__features li {
    position: relative;
    padding-left: 22px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--neutral-700);
    margin-bottom: 8px;
}

.service-card__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--orange);
    font-weight: 800;
}

.service-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--orange);
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.service-card:hover .service-card__cta {
    gap: 10px;
    color: var(--orange-dark);
}

/* =========================================================================
   21. UX FIXES — Service Cards Expand + Case Study Contrast + Footer Width
   ========================================================================= */

/* Service cards: convert to <div> not <a>, add expand details */
.service-card {
    background: var(--white);
    color: var(--neutral-700);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -10px rgba(245,99,0,0.25), 0 8px 16px -8px rgba(0,0,0,0.1);
    border-color: var(--orange);
}

.service-card h3 {
    color: var(--black);
    font-size: 1.35rem;
    line-height: 1.25;
    margin: 8px 0 12px;
    font-weight: 700;
}

.service-card__summary {
    color: var(--neutral-700);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Stats row */
.service-card__stats {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 18px;
}

.service-card__stat-value {
    color: var(--orange);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.service-card__stat-label {
    color: var(--neutral-300);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.service-card__stat-divider {
    width: 1px;
    height: 32px;
    background: var(--neutral-700);
}

/* Features */
.service-card__features {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.service-card__features li {
    position: relative;
    padding: 6px 0 6px 24px;
    color: var(--neutral-700);
    font-size: 0.85rem;
    line-height: 1.4;
    border-bottom: 1px solid var(--neutral-200);
}

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

.service-card__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 6px;
    color: var(--orange);
    font-weight: 800;
}

/* Expand details — click-to-show */
.service-card__expand {
    margin: 0 0 16px;
    border-top: 1px dashed var(--neutral-200);
    border-bottom: 1px dashed var(--neutral-200);
    padding: 0;
}

.service-card__expand summary {
    cursor: pointer;
    padding: 12px 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--orange);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    transition: color .2s ease;
}

.service-card__expand summary::-webkit-details-marker { display: none; }

.service-card__expand summary::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 700;
    transition: transform .25s ease;
}

.service-card__expand[open] summary::after {
    transform: rotate(45deg);
}

.service-card__expand summary:hover { color: var(--black); }

.service-card__expand-content {
    padding: 0 0 16px;
    color: var(--neutral-700);
    font-size: 0.85rem;
    line-height: 1.6;
}

.service-card__expand-content p { margin: 0; }

/* CTA at bottom — keep it at bottom via mt-auto */
.service-card__cta {
    margin-top: auto;
    color: var(--orange);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap .2s ease;
    padding-top: 8px;
}

.service-card__cta:hover {
    gap: 12px;
    color: var(--black);
}

/* Featured dark variant */
.service-card--featured {
    background: linear-gradient(160deg, var(--black) 0%, var(--black-700) 100%);
    border-color: var(--orange);
    color: var(--neutral-100);
}

.service-card--featured h3 { color: var(--neutral-50); }
.service-card--featured .service-card__summary { color: var(--neutral-200); }
.service-card--featured .service-card__features li { color: var(--neutral-200); border-color: var(--neutral-700); }
.service-card--featured .service-card__features li::before { color: var(--orange); }
.service-card--featured .service-card__expand { border-color: var(--neutral-700); }
.service-card--featured .service-card__expand summary { color: var(--orange); }
.service-card--featured .service-card__expand-content { color: var(--neutral-200); }
.service-card--featured .service-card__cta { color: var(--orange); }
.service-card--featured .service-card__cta:hover { color: var(--neutral-50); }
.service-card--featured .service-card__stats { background: rgba(255,255,255,0.04); }
.service-card--featured .service-card__stat-divider { background: var(--neutral-700); }



/* Eyebrow */
.service-card__eyebrow {
    color: var(--orange);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.service-card--featured .service-card__eyebrow { color: var(--orange); }

/* Icon */
.service-card__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(245,99,0,0.12) 0%, rgba(245,99,0,0.04) 100%);
    color: var(--orange);
    font-size: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 14px;
}

.service-card--featured .service-card__icon {
    background: linear-gradient(135deg, rgba(245,99,0,0.25) 0%, rgba(245,99,0,0.1) 100%);
}

/* =========================================================================
   22. CASE STUDY CARDS ON HOMEPAGE — Full color contrast
   ========================================================================= */

.case-study-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--neutral-200);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: var(--neutral-700);
    text-decoration: none;
}

.case-study-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -10px rgba(245,99,0,0.2);
    border-color: var(--orange);
}

.case-study-card h3 {
    color: var(--black);
    font-size: 1.15rem;
    line-height: 1.3;
    margin: 0 0 12px;
    font-weight: 700;
}

.case-study-card__excerpt {
    color: var(--neutral-700);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-study-card__image {
    height: 180px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-50);
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 24px;
}

.case-study-card__image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(245,99,0,0.25), transparent 50%);
    pointer-events: none;
}

.case-study-card__client-name {
    position: relative;
    z-index: 1;
    color: var(--neutral-50);
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.case-study-card__body {
    padding: 24px 24px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.case-study-card__results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px 0;
    margin-top: auto;
    border-top: 1px solid var(--neutral-200);
}

.case-study-card__result-value {
    color: var(--orange);
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.case-study-card__result-label {
    color: var(--neutral-700);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.case-study-card__cta {
    color: var(--orange);
    font-weight: 600;
    font-size: 0.88rem;
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap .2s ease;
}

.case-study-card:hover .case-study-card__cta { gap: 12px; }

/* =========================================================================
   23. FOOTER — Full width + better grid
   ========================================================================= */

.site-footer {
    background: linear-gradient(180deg, var(--color-bg) 0%, #050505 100%);
    color: var(--neutral-200);
    border-top: 1px solid var(--neutral-700);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--orange) 50%, transparent 100%);
}

.site-footer > .container {
    max-width: 1400px;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    padding: 64px 0 48px;
}

.site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.site-footer__brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--neutral-50);
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    margin-bottom: 4px;
    /* Light backdrop so the black MARKETING wordmark in the new PNG
       stays legible against the dark footer background. Matches the
       header logo treatment for visual consistency. */
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    width: fit-content;
    transition: var(--transition);
}

.site-footer__brand-logo:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 1);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.site-footer__brand-logo img {
    display: block;
    height: 44px !important;
    width: auto !important;
    max-width: 200px !important;
    min-width: 120px;
    object-fit: contain;
}

.site-footer__brand-tagline {
    color: var(--neutral-300);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 320px;
}

.site-footer__brand-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--neutral-700);
}

.site-footer__brand-stat-value {
    color: var(--orange);
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
}

.site-footer__brand-stat-label {
    color: var(--neutral-300);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
}

.site-footer__col h4 {
    color: var(--neutral-50);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 18px;
    font-weight: 700;
}

.site-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer__col li a {
    color: var(--neutral-300);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color .15s ease, padding-left .15s ease;
}

.site-footer__col li a:hover {
    color: var(--orange);
    padding-left: 4px;
}

.site-footer__opensource {
    background: linear-gradient(135deg, rgba(245,99,0,0.06) 0%, rgba(245,99,0,0.02) 100%);
    border-top: 1px solid var(--neutral-700);
    border-bottom: 1px solid var(--neutral-700);
    padding: 56px 0;
}

.site-footer__opensource-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.site-footer__opensource-eyebrow {
    color: var(--orange);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: 16px;
}

.site-footer__opensource h3 {
    color: var(--neutral-50);
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.25;
    margin: 0 auto 20px;
    max-width: 800px;
    font-weight: 700;
}

.site-footer__opensource p {
    color: var(--neutral-300);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 auto 14px;
    max-width: 740px;
}

.site-footer__opensource p strong {
    color: var(--neutral-50);
    font-weight: 600;
}

.site-footer__opensource-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 32px;
    margin: 32px auto;
    max-width: 800px;
}

.site-footer__opensource-stat {
    text-align: center;
}

.site-footer__opensource-stat-num {
    display: block;
    color: var(--orange);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.site-footer__opensource-stat-label {
    color: var(--neutral-300);
    font-size: 0.78rem;
    line-height: 1.4;
}

.site-footer__newsletter {
    background: var(--color-surface);
    border-top: 1px solid var(--neutral-700);
    padding: 48px 0;
}

.site-footer__newsletter-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.site-footer__newsletter h4 {
    color: var(--neutral-50);
    font-size: 1.4rem;
    margin: 0 0 8px;
    font-weight: 700;
}

.site-footer__newsletter p {
    color: var(--neutral-300);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0 0 24px;
}

.site-footer__newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 520px;
    margin: 0 auto;
}

.site-footer__newsletter-input {
    flex: 1;
    padding: 14px 18px;
    background: var(--color-bg);
    border: 1px solid var(--neutral-700);
    border-radius: var(--radius);
    color: var(--neutral-50);
    font-size: 0.95rem;
    font-family: inherit;
}

.site-footer__newsletter-input:focus {
    outline: none;
    border-color: var(--orange);
}

.site-footer__newsletter-submit {
    padding: 14px 24px;
    background: var(--orange);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease;
}

.site-footer__newsletter-submit:hover {
    background: var(--black);
    color: var(--orange);
}

.site-footer__payments {
    padding: 24px 0;
    border-top: 1px solid var(--neutral-700);
    text-align: center;
}

.site-footer__payments-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer__payments-label {
    color: var(--neutral-300);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-right: 8px;
}

.site-footer__payment-icon {
    height: 32px;
    width: auto;
    border-radius: 6px;
    background: var(--white);
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-footer__bottom {
    padding: 24px 0;
    border-top: 1px solid var(--neutral-700);
}

.site-footer__bottom-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.site-footer__copy {
    color: var(--neutral-300);
    font-size: 0.82rem;
    margin: 0;
}

.site-footer__legal {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.site-footer__legal a {
    color: var(--neutral-300);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color .15s ease;
}

.site-footer__legal a:hover {
    color: var(--orange);
}

/* =========================================================================
   24. BLOG DATA HUB — Modern, advanced
   ========================================================================= */

.blog-hub-hero {
    background: linear-gradient(160deg, var(--black) 0%, var(--black-700) 50%, var(--color-surface-2) 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.blog-hub-hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(245,99,0,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.blog-hub-hero::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(245,99,0,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.blog-hub-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.blog-hub-hero__eyebrow {
    display: inline-block;
    background: rgba(245,99,0,0.15);
    border: 1px solid rgba(245,99,0,0.3);
    color: var(--orange);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 24px;
}

.blog-hub-hero h1 {
    color: var(--neutral-50);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin: 0 0 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.blog-hub-hero h1 span { color: var(--orange); }

.blog-hub-hero p {
    color: var(--neutral-200);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.65;
    max-width: 740px;
    margin: 0 auto 40px;
}

.blog-hub-hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 0;
    border-top: 1px solid var(--neutral-700);
    border-bottom: 1px solid var(--neutral-700);
}

.blog-hub-hero__stat-num {
    color: var(--orange);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    display: block;
}

.blog-hub-hero__stat-label {
    color: var(--neutral-300);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 6px;
    display: block;
}

/* Data hub filter bar */
.blog-hub-filter {
    background: var(--color-surface);
    border-bottom: 1px solid var(--neutral-700);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(20px);
}

.blog-hub-filter__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.blog-hub-filter__label {
    color: var(--neutral-300);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.blog-hub-filter__btn {
    background: transparent;
    border: 1px solid var(--neutral-700);
    color: var(--neutral-200);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-hub-filter__btn:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.blog-hub-filter__btn--active,
.blog-hub-filter__btn--active:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
}

.blog-hub-filter__count {
    background: var(--color-bg);
    color: var(--neutral-300);
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Featured grid — 1 big + 3 small */
.blog-hub-featured {
    padding: 56px 0 24px;
}

.blog-hub-featured__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.blog-hub-featured__main {
    grid-row: span 2;
}

.blog-hub-featured__main .blog-hub-card--featured { height: 100%; }

.blog-hub-card {
    background: var(--color-surface);
    border: 1px solid var(--neutral-700);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: var(--neutral-200);
    text-decoration: none;
}

.blog-hub-card:hover {
    transform: translateY(-4px);
    border-color: var(--orange);
    box-shadow: 0 16px 32px -12px rgba(245,99,0,0.2);
}

.blog-hub-card__image {
    height: 220px;
    background: linear-gradient(135deg, var(--black) 0%, var(--black-700) 100%);
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    overflow: hidden;
}

.blog-hub-card__image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(245,99,0,0.18), transparent 50%);
}

.blog-hub-card--featured .blog-hub-card__image {
    height: 360px;
}

.blog-hub-card__category {
    position: relative;
    z-index: 1;
    background: var(--orange);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-block;
}

.blog-hub-card__body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-hub-card__meta {
    color: var(--neutral-300);
    font-size: 0.78rem;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.blog-hub-card__meta strong {
    color: var(--orange);
    font-weight: 700;
}

.blog-hub-card h3 {
    color: var(--neutral-50);
    font-size: 1.25rem;
    line-height: 1.3;
    margin: 0 0 12px;
    font-weight: 700;
}

.blog-hub-card--featured h3 {
    font-size: 1.6rem;
}

.blog-hub-card p {
    color: var(--neutral-300);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-hub-card__footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--neutral-700);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-hub-card__author {
    color: var(--neutral-300);
    font-size: 0.78rem;
}

.blog-hub-card__author strong {
    color: var(--neutral-100);
    font-weight: 600;
}

.blog-hub-card__read {
    color: var(--orange);
    font-size: 0.85rem;
    font-weight: 600;
    transition: gap .2s ease;
}

/* Data insights section */
.blog-hub-insights {
    padding: 64px 0;
    background: var(--color-surface);
    border-top: 1px solid var(--neutral-700);
    border-bottom: 1px solid var(--neutral-700);
}

.blog-hub-insights h2 {
    color: var(--neutral-50);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 0 0 12px;
    text-align: center;
    font-weight: 800;
}

.blog-hub-insights__sub {
    color: var(--neutral-300);
    font-size: 1rem;
    text-align: center;
    margin: 0 auto 48px;
    max-width: 640px;
    line-height: 1.55;
}

.blog-hub-insights__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.blog-hub-insight {
    background: var(--color-bg);
    border: 1px solid var(--neutral-700);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color .2s ease, transform .2s ease;
}

.blog-hub-insight:hover {
    border-color: var(--orange);
    transform: translateY(-2px);
}

.blog-hub-insight__icon {
    width: 48px;
    height: 48px;
    background: rgba(245,99,0,0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--orange);
    font-size: 1.4rem;
}

.blog-hub-insight__label {
    color: var(--neutral-300);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 8px;
}

.blog-hub-insight__value {
    color: var(--orange);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 12px;
}

.blog-hub-insight__detail {
    color: var(--neutral-200);
    font-size: 0.88rem;
    line-height: 1.55;
}

/* Latest articles grid */
.blog-hub-latest {
    padding: 64px 0;
}

.blog-hub-latest h2 {
    color: var(--neutral-50);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 32px;
    font-weight: 800;
}

.blog-hub-latest__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* =========================================================================
   25. CONTACT PAGE — Modern sleek form
   ========================================================================= */

.contact-hero {
    background: linear-gradient(160deg, var(--black) 0%, var(--black-700) 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: -40%; right: -10%;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(245,99,0,0.12) 0%, transparent 50%);
    pointer-events: none;
}

.contact-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.contact-hero__eyebrow {
    color: var(--orange);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

.contact-hero h1 {
    color: var(--neutral-50);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin: 0 0 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.contact-hero h1 span { color: var(--orange); }

.contact-hero p {
    color: var(--neutral-200);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.65;
    max-width: 640px;
    margin: 0 auto;
}

.contact-form-section {
    padding: 80px 0;
    background: var(--color-surface);
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h2 {
    color: var(--neutral-50);
    font-size: 1.5rem;
    margin: 0 0 16px;
    font-weight: 700;
}

.contact-info > p {
    color: var(--neutral-300);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 32px;
}

.contact-info__item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--neutral-700);
}

.contact-info__item:last-of-type { border-bottom: none; }

.contact-info__item-icon {
    width: 44px;
    height: 44px;
    background: rgba(245,99,0,0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info__item-label {
    color: var(--neutral-300);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 4px;
    font-weight: 600;
}

.contact-info__item-value {
    color: var(--neutral-50);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: block;
}

.contact-info__item-value:hover { color: var(--orange); }

.contact-info__item-detail {
    color: var(--neutral-300);
    font-size: 0.85rem;
    margin: 4px 0 0;
    line-height: 1.5;
}

.contact-info__channels {
    margin-top: 32px;
    padding: 24px;
    background: var(--color-bg);
    border: 1px solid var(--neutral-700);
    border-radius: var(--radius-lg);
}

.contact-info__channels h3 {
    color: var(--neutral-50);
    font-size: 1rem;
    margin: 0 0 12px;
    font-weight: 700;
}

.contact-info__channels p {
    color: var(--neutral-300);
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0;
}

.contact-form {
    background: var(--color-bg);
    border: 1px solid var(--neutral-700);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contact-form__title {
    color: var(--neutral-50);
    font-size: 1.4rem;
    margin: 0 0 8px;
    font-weight: 700;
}

.contact-form__sub {
    color: var(--neutral-300);
    font-size: 0.92rem;
    margin: 0 0 28px;
    line-height: 1.5;
}

.contact-form__field {
    margin-bottom: 20px;
}

.contact-form__label {
    color: var(--neutral-100);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.contact-form__label .req {
    color: var(--orange);
    margin-left: 2px;
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--color-surface);
    border: 1px solid var(--neutral-700);
    border-radius: var(--radius);
    color: var(--neutral-50);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color .15s ease, background .15s ease;
}

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
    outline: none;
    border-color: var(--orange);
    background: var(--color-surface-2);
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
    color: var(--neutral-700);
}

.contact-form__textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.55;
}

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

.contact-form__row > .contact-form__field { margin-bottom: 0; }

.contact-form__submit {
    width: 100%;
    padding: 16px 24px;
    background: var(--orange);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-form__submit:hover {
    background: var(--black);
    color: var(--orange);
    transform: translateY(-1px);
}

.contact-form__privacy {
    color: var(--neutral-300);
    font-size: 0.78rem;
    margin: 16px 0 0;
    line-height: 1.5;
    text-align: center;
}

.contact-form__privacy a {
    color: var(--orange);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .contact-form { padding: 28px 24px; }
    .contact-form__row { grid-template-columns: 1fr; }
    .blog-hub-featured__grid { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 600px) {
    .site-footer__grid { grid-template-columns: 1fr; }
    .site-footer__newsletter-form { flex-direction: column; }
}

/* =========================================================================
   26. CASE STUDIES ARCHIVE — Polished, unified card design
   ========================================================================= */

.case-studies-hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
    margin: 32px auto 0;
    max-width: 800px;
    padding: 24px 0 0;
    border-top: 1px solid var(--neutral-700);
}

.case-studies-hero__stat-num {
    color: var(--orange);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.case-studies-hero__stat-label {
    color: var(--neutral-300);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 6px;
}

/* Filter bar */
.case-studies-filter {
    background: var(--color-surface);
    border-bottom: 1px solid var(--neutral-700);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.case-studies-filter__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.case-studies-filter__group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.case-studies-filter__label {
    color: var(--neutral-300);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.case-studies-filter__btn {
    background: transparent;
    border: 1px solid var(--neutral-700);
    color: var(--neutral-200);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s ease;
    text-decoration: none;
}

.case-studies-filter__btn:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.case-studies-filter__btn--active,
.case-studies-filter__btn--active:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
}

/* Polished card grid */
.case-studies-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 28px;
    margin-top: 16px;
}

@media (max-width: 700px) {
    .case-studies-grid-v2 { grid-template-columns: 1fr; }
}

.cs-card-v2 {
    background: var(--color-surface);
    border: 1px solid var(--neutral-700);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    height: 100%;
}

.cs-card-v2:hover {
    transform: translateY(-4px);
    border-color: var(--orange);
    box-shadow: 0 18px 40px -12px rgba(245,99,0,0.25);
}

.cs-card-v2__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Dark hero strip with client identity */
.cs-card-v2__hero {
    background: linear-gradient(135deg, var(--black) 0%, var(--black-700) 100%);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

.cs-card-v2__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 30%, rgba(245,99,0,0.15), transparent 55%);
    pointer-events: none;
}

.cs-card-v2__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--white);
    padding: 8px;
    flex-shrink: 0;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.cs-card-v2__icon--initials {
    background: linear-gradient(135deg, var(--orange) 0%, #D54F00 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    padding: 0;
}

.cs-card-v2__hero-meta {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.cs-card-v2__client {
    color: var(--neutral-50);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-card-v2__domain {
    color: var(--neutral-300);
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cs-card-v2__domain::before {
    content: '↗';
    color: var(--orange);
}

.cs-card-v2__industry {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--orange);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    z-index: 2;
}

/* Body */
.cs-card-v2__body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cs-card-v2__title {
    color: var(--neutral-50);
    font-size: 1.2rem;
    line-height: 1.3;
    margin: 0 0 12px;
    font-weight: 700;
}

.cs-card-v2__excerpt {
    color: var(--neutral-200);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cs-card-v2__services {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
}

.cs-card-v2__service {
    background: var(--color-bg);
    border: 1px solid var(--neutral-700);
    color: var(--neutral-300);
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Footer with metrics */
.cs-card-v2__footer {
    border-top: 1px solid var(--neutral-700);
    padding: 18px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 16px;
    align-items: center;
    background: linear-gradient(180deg, transparent 0%, rgba(245,99,0,0.03) 100%);
}

.cs-card-v2__metric {
    min-width: 0;
}

.cs-card-v2__metric-value {
    color: var(--orange);
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-card-v2__metric-label {
    color: var(--neutral-300);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    line-height: 1.3;
}

.cs-card-v2__cta {
    color: var(--orange);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 8px 16px;
    border: 1px solid var(--orange);
    border-radius: 100px;
    transition: background .2s ease, color .2s ease;
    white-space: nowrap;
}

.cs-card-v2:hover .cs-card-v2__cta {
    background: var(--orange);
    color: var(--white);
}

/* =========================================================================
   PAGE TEMPLATE — Legal (Privacy, Terms) and standard pages
   ========================================================================= */

.page-masthead {
    position: relative;
    padding: 96px 0 64px;
    background:
        radial-gradient(ellipse at 80% 0%, rgba(245, 99, 0, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 0% 100%, rgba(245, 99, 0, 0.10) 0%, transparent 50%),
        linear-gradient(180deg, var(--black-800) 0%, var(--black) 100%);
    border-bottom: 1px solid var(--black-500);
    overflow: hidden;
}
.page-masthead::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--orange) 0%, var(--orange-bright) 50%, var(--orange) 100%);
}
.page-masthead__inner {
    max-width: 800px;
}
.page-masthead__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 99, 0, 0.12);
    border: 1px solid rgba(245, 99, 0, 0.35);
    color: var(--orange);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 24px;
}
.page-masthead__pulse {
    width: 8px; height: 8px;
    background: var(--orange);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(245, 99, 0, 0.7);
    animation: page-pulse 2s infinite;
}
@keyframes page-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(245, 99, 0, 0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(245, 99, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 99, 0, 0); }
}
.page-masthead__title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.05;
    margin: 0 0 24px;
    letter-spacing: -0.02em;
}
.page-masthead__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    color: var(--neutral-300);
    font-size: 13px;
    margin-bottom: 24px;
    font-family: var(--font-mono);
}
.page-masthead__meta strong {
    color: var(--neutral-100);
    font-weight: 600;
}
.page-masthead__dot {
    color: var(--orange);
}
.page-masthead__lead {
    font-size: 16px;
    line-height: 1.65;
    color: var(--neutral-200);
    max-width: 720px;
    margin: 0;
    padding: 16px 20px;
    border-left: 3px solid var(--orange);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 6px 6px 0;
}
.page-masthead__lead a {
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
}
.page-masthead__lead a:hover {
    text-decoration: underline;
}

.page-body {
    padding: 64px 0 96px;
    background: var(--black);
}
.page-body__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 56px;
    align-items: start;
}
.page-body__single {
    max-width: 800px;
    margin: 0 auto;
}

.page-body__article {
    color: var(--neutral-100);
    font-size: 16px;
    line-height: 1.75;
}
.page-body__article > * + * {
    margin-top: 1.1em;
}
.page-body__article h2 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 56px 0 16px;
    padding-top: 24px;
    border-top: 1px solid var(--black-500);
    letter-spacing: -0.01em;
    scroll-margin-top: 100px;
}
.page-body__article h2:first-child {
    margin-top: 8px;
    padding-top: 0;
    border-top: none;
}
.page-body__article h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--orange);
    margin-right: 12px;
    vertical-align: -2px;
    border-radius: 2px;
}
.page-body__article h3 {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 32px 0 8px;
}
.page-body__article p {
    color: var(--neutral-200);
}
.page-body__article a {
    color: var(--orange);
    text-decoration: none;
    border-bottom: 1px solid rgba(245, 99, 0, 0.35);
    transition: border-color 0.15s ease;
}
.page-body__article a:hover {
    border-bottom-color: var(--orange);
}
.page-body__article ul, .page-body__article ol {
    padding-left: 24px;
    color: var(--neutral-200);
}
.page-body__article li {
    margin-bottom: 8px;
    padding-left: 4px;
}
.page-body__article li::marker {
    color: var(--orange);
}
.page-body__article strong {
    color: var(--white);
    font-weight: 600;
}
.page-body__article code {
    background: var(--black-700);
    color: var(--orange-soft);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.92em;
    border: 1px solid var(--black-500);
}

.page-body__toc {
    position: relative;
}
.page-body__toc-sticky {
    position: sticky;
    top: 100px;
    background: var(--black-800);
    border: 1px solid var(--black-500);
    border-radius: 12px;
    padding: 24px 22px;
}
.page-body__toc-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--orange);
    margin-bottom: 16px;
}
.page-body__toc ol {
    list-style: none;
    counter-reset: toc;
    padding: 0;
    margin: 0 0 20px;
}
.page-body__toc li {
    counter-increment: toc;
    padding: 6px 0 6px 28px;
    position: relative;
    border-bottom: 1px solid var(--black-600);
    font-size: 13px;
    line-height: 1.5;
}
.page-body__toc li:last-child {
    border-bottom: none;
}
.page-body__toc li::before {
    content: counter(toc, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--orange);
    font-weight: 700;
}
.page-body__toc a {
    color: var(--neutral-200);
    text-decoration: none;
    transition: color 0.15s ease;
}
.page-body__toc a:hover {
    color: var(--orange);
}
.page-body__toc-cta {
    display: block;
    text-align: center;
    background: rgba(245, 99, 0, 0.12);
    border: 1px solid rgba(245, 99, 0, 0.4);
    color: var(--orange);
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease;
}
.page-body__toc-cta:hover {
    background: var(--orange);
    color: var(--white);
}

/* Responsive — collapse to single column on tablet, hide TOC on mobile */
@media (max-width: 960px) {
    .page-body__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .page-body__toc {
        order: -1;
    }
    .page-body__toc-sticky {
        position: static;
    }
}
@media (max-width: 640px) {
    .page-masthead { padding: 64px 0 40px; }
    .page-body { padding: 40px 0 64px; }
    .page-body__article h2 { font-size: 1.25rem; margin-top: 40px; }
    .page-body__article h3 { font-size: 1.05rem; }
}


/* Screen reader only — hide visually but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* Platform icon link — reset text-decoration */
.platform-icons__link {
    text-decoration: none !important;
    color: transparent !important;
    line-height: 0;
    font-size: 0;
}


/* Logo image fills the entire case-study-card__image area as a background.
   Renders behind a dark gradient overlay so badges and text remain readable. */
.case-study-card__logo-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
    background-color: var(--black-700);
}

/* Dark gradient overlay on top of the logo image for badge/text readability */
.case-study-card__image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,0.65) 0%,
        rgba(0,0,0,0.30) 35%,
        rgba(0,0,0,0.30) 65%,
        rgba(0,0,0,0.75) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Push overlays (badges + client name) above the logo + gradient */
.case-study-card__image .case-study-card__industry,
.case-study-card__image .case-study-card__cms,
.case-study-card__image .case-study-card__client-name {
    z-index: 2;
}

/* Hide client name when a logo is loaded — the logo IS the visual */
.case-study-card__logo-bg.has-logo + .case-study-card__client-name {
    display: none;
}

/* ─────────────────────────────────────────────────────────
   Services Grid — updated card markup (v2 with SVG icons,
   badges, features list, and metric display)
   ───────────────────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid rgba(245, 99, 0, 0.15);
    border-radius: 16px;
    padding: 28px 26px 26px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--orange) 50%, transparent 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(245, 99, 0, 0.20);
    border-color: var(--orange);
}

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

.service-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.service-card__icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(245, 99, 0, 0.18) 0%, rgba(245, 99, 0, 0.04) 100%);
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
    margin-bottom: 16px;
    transition: transform 0.25s ease, background 0.25s ease;
}

.service-card__icon svg {
    width: 30px;
    height: 30px;
    stroke-width: 2;
}

.service-card:hover .service-card__icon {
    transform: scale(1.08) rotate(-4deg);
    background: linear-gradient(135deg, var(--orange) 0%, #ff7a1f 100%);
    color: var(--white);
}

.service-card__icon img,
.service-card__icon .fivekings-platform-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.service-card__badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1.4px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--orange-dark, #c44d00);
    color: var(--white);
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(196, 77, 0, 0.45);
    max-width: 50%;
    text-align: right;
    line-height: 1.2;
}

.service-card__title {
    font-family: var(--font-display, system-ui);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
    color: #161b22;
    margin: 0 0 10px 0;
    letter-spacing: -0.01em;
}

.service-card__summary {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #4a5568;
    margin: 0 0 16px 0;
}

.service-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
}

.service-card__features li {
    position: relative;
    padding-left: 22px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #2d3748;
    margin-bottom: 6px;
    font-weight: 500;
}

.service-card__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 14px;
    height: 14px;
    background: var(--orange);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
}

.service-card__metric {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 12px 14px;
    margin: auto 0 14px 0;
    background: linear-gradient(135deg, rgba(245, 99, 0, 0.08) 0%, rgba(245, 99, 0, 0.02) 100%);
    border-left: 3px solid var(--orange);
    border-radius: 0 8px 8px 0;
}

.service-card__metric-value {
    font-family: var(--font-display, system-ui);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--orange);
    line-height: 1;
    letter-spacing: -0.02em;
}

.service-card__metric-label {
    font-size: 0.78rem;
    color: #4a5568;
    font-weight: 600;
    line-height: 1.2;
    flex: 1;
}

.service-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
    align-self: flex-start;
    margin-top: 4px;
}

.service-card:hover .service-card__cta {
    gap: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; gap: 16px; }
    .service-card { padding: 22px 20px 20px; }
}

.trust-bar__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.trust-bar__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}
.trust-bar__icon--fallback {
    background: var(--orange) !important;
    color: var(--white) !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
}

/* ═══════════════════════════════════════════════════════════════════
   Service card FEATURED variant — used for "MOST POPULAR" cards.
   Premium dark card with high-contrast text + orange accent UI.
   ═══════════════════════════════════════════════════════════════════ */
.service-card--featured {
    position: relative;
    background: linear-gradient(160deg, #0a0a0a 0%, #161b22 60%, #1f1410 100%);
    border: 2px solid var(--orange-dark, #c44d00);
    box-shadow:
        0 16px 40px rgba(196, 77, 0, 0.35),
        0 0 0 1px rgba(245, 99, 0, 0.15) inset;
    overflow: hidden;
    transform: scale(1.02);
    transition: transform .3s ease, box-shadow .3s ease;
}

.service-card--featured:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow:
        0 24px 60px rgba(196, 77, 0, 0.45),
        0 0 0 1px rgba(245, 99, 0, 0.25) inset;
}

/* Decorative orange glow in top-right corner */
.service-card--featured::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 99, 0, 0.35) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.service-card--featured > * {
    position: relative;
    z-index: 1;
}

/* Larger, more prominent icon */
.service-card--featured .service-card__icon {
    width: 64px;
    height: 64px;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--orange) 0%, #ff7a1a 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(245, 99, 0, 0.4);
}

/* High-contrast headline (15:1 ratio — AAA) */
.service-card--featured h3 {
    color: #ffffff;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Eyebrow — orange, brand-styled */
.service-card--featured .service-card__eyebrow {
    color: var(--orange-bright, #ff7a1a);
    font-weight: 700;
}

/* Summary text — high contrast (12:1 ratio) */
.service-card--featured .service-card__summary {
    color: #e6e8eb;
    font-size: 0.98rem;
    line-height: 1.6;
}

/* Stats block — bright + readable */
.service-card--featured .service-card__stats {
    background: rgba(245, 99, 0, 0.08);
    border: 1px solid rgba(245, 99, 0, 0.2);
    border-radius: 10px;
    padding: 16px 14px;
}

.service-card--featured .service-card__stat-value {
    color: var(--orange-bright, #ff7a1a);
    font-size: 1.5rem;
    font-weight: 800;
}

.service-card--featured .service-card__stat-label {
    color: #c8cdd3;
    font-weight: 500;
}

.service-card--featured .service-card__stat-divider {
    background: rgba(245, 99, 0, 0.3);
}

/* Feature bullets — clear, scannable */
.service-card--featured .service-card__features li {
    color: #ffffff;
    font-weight: 500;
    padding-left: 24px;
}

.service-card--featured .service-card__features li::before {
    color: var(--orange-bright, #ff7a1a);
    font-size: 1rem;
}

/* Expand details — accessible on dark bg */
.service-card--featured .service-card__expand summary {
    color: var(--orange-bright, #ff7a1a);
    background: rgba(245, 99, 0, 0.1);
    border: 1px solid rgba(245, 99, 0, 0.25);
    border-radius: 6px;
    padding: 8px 12px;
}

.service-card--featured .service-card__expand-content {
    color: #c8cdd3;
}

/* CTA — bold, clear */
.service-card--featured .service-card__cta {
    color: var(--white);
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark, #c44d00) 100%);
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: auto;
    box-shadow: 0 4px 12px rgba(245, 99, 0, 0.3);
    transition: transform .2s ease, box-shadow .2s ease;
    display: block;
}

.service-card--featured .service-card__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 99, 0, 0.45);
}
.service-card--featured .service-card__badge {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark, #c44d00) 100%);
    box-shadow: 0 4px 12px rgba(245, 99, 0, 0.5);
}












/* ─────────────────────────────────────────────────────────
   Footer Trust Credentials — matches design.md trust-bar
   spec but adapted for footer: transparent background,
   muted text, footer-link typography. Each item is a
   logo + name styled as a footer link, aligned with
   other menu items in the Company column.
   ───────────────────────────────────────────────────────── */
.site-footer__trust {
    list-style: none;
    margin: 24px 0 0 0;
    padding: 22px 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.site-footer__trust-item {
    line-height: 1.4;
    font-size: 0.85rem;
}

.site-footer__trust-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.4;
    transition: color .15s ease;
}

.site-footer__trust-link:hover {
    color: var(--orange);
}

/* Logo icon container: fixed box, icons fit within.
   24px height keeps badges in line with footer text. */
.site-footer__trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: transparent;
    border: 0;
    padding: 0;
    overflow: hidden;
    line-height: 0;
}

/* BBB seal has 3.5:1 aspect — use auto width with fixed height */
.site-footer__trust-item:first-child .site-footer__trust-icon {
    width: auto;
    height: 26px;
}

/* ─────────────────────────────────────────────────────────
   Footer trust icons — Microsoft + Sunrise both at 36x36,
   BBB seal at height 26px (preserves 3.5:1 aspect).
   Microsoft SVG scales up from 24x24 viewBox to 36x36.
   Sunrise img scales down from 100x100 to 36x36.
   Both square icons match in visual weight.
   ───────────────────────────────────────────────────────── */

/* Microsoft SVG: render at 36x36 */
.site-footer__trust-icon svg {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    display: block;
    flex-shrink: 0;
}

/* Sunrise Chamber img: scale to 36x36 with contain */
.site-footer__trust-icon img:not([width="200"]) {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    object-fit: contain;
    object-position: center;
    display: block;
    flex-shrink: 0;
}

/* BBB seal (ruvtbus): match Microsoft + Sunrise at 36x36 */
.site-footer__trust-icon img {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    object-fit: contain;
    object-position: center;
    display: block;
    flex-shrink: 0;
}

/* BBB seal (ruvtbus) — match size with other square icons */


/* BBB seal: preserves 3.5:1 ratio (height 22px → width ~77px) */
.site-footer__trust-icon img[width="200"] {
    width: auto !important;
    height: 22px !important;
    min-width: 0;
    min-height: 22px;
    max-height: 22px;
    max-width: 100px;
    display: block;
}

/* Wide BBB seal: scale by height only, preserve 3.5:1 ratio */
.site-footer__trust-icon img[width="200"] {
    width: auto;
    height: 22px;
    display: block;
}

.site-footer__trust-icon--fallback {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    display: inline-flex;
}

.site-footer__trust-label {
    color: inherit;
    line-height: 1.4;
    font-size: inherit;
}

/* =========================================================================
   MOBILE OPTIMIZATION PATCH — iPhone-safe menu, container, footer
   Applied: June 2026
   Replaces the prior hanging-dropdown mobile nav with a proper full-screen
   drawer overlay, fixes container overflow, tightens the header layout,
   collapses the footer to a single column on phones, and gives every tap
   target a minimum 44x44 hit area.
   ========================================================================= */

/* ─── Global: prevent horizontal scroll from rogue elements ─────────── */
/* Use overflow: clip instead of overflow: hidden — overflow-x: hidden on the
   scroll container breaks position: sticky on iOS Safari. overflow: clip is
   CSS Overflow Level 3 and behaves the same for visual clipping but doesn't
   become the containing block / scroll container for descendants. */
html { overflow-x: clip; }
body { -webkit-text-size-adjust: 100%; overflow-x: clip; }

/* ─── Container: tighter padding on phones so content fills the screen ─ */
@media (max-width: 640px) {
    .container,
    .site-header__inner { padding-left: 16px; padding-right: 16px; }
    .site-main { overflow-x: clip; }
}

/* ─── Header: simplify to logo + hamburger on phones ─────────────────── */
@media (max-width: 1100px) {
    .site-header__inner {
        grid-template-columns: 1fr auto;
        gap: 12px;
        padding: 12px 16px;
        padding-bottom: 32px;
    }
    /* Hide non-essential header items on mobile — they move into the drawer */
    .site-support,
    .site-phone,
    .site-header__inner .btn--primary { display: none !important; }

    /* The nav-primary sits in column 2 with width 0; that's fine, it's
       display:none on mobile anyway. */
}

/* ─── Hamburger button: 44x44 hit area, animated bars → X ──────────── */
.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    /* Orange hamburger so it's clearly visible against the white logo card */
    background: var(--orange);
    border: 1px solid var(--orange);
    border-radius: 10px;
    color: #0a0a0a;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    z-index: 10020;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    align-items: center;
    justify-content: center;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
    background: #fff;
    border-color: #fff;
    color: var(--orange);
    transform: translateY(-50%) scale(1.05);
    outline: none;
}
.site-header__inner { position: relative; }
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus,
.mobile-menu-toggle[aria-expanded="true"] {
    background: rgba(245, 99, 0, 0.18);
    border-color: var(--orange);
    color: var(--orange);
    outline: none;
}
.mobile-menu-toggle__bars,
.mobile-menu-toggle__bars::before,
.mobile-menu-toggle__bars::after {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    /* Dark bars so the hamburger is visible on the orange button */
    background: #0a0a0a;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.mobile-menu-toggle__bars {
    position: relative;
}
.mobile-menu-toggle__bars::before { position: absolute; top: -7px; left: 0; }
.mobile-menu-toggle__bars::after  { position: absolute; top:  7px; left: 0; }
.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__bars { background: transparent; }
.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__bars::before { top: 0; transform: rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__bars::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 1100px) {
    .mobile-menu-toggle { display: inline-flex; }
}

/* ─── Mobile drawer: full-screen overlay, replaces the hanging dropdown ─ */
.site-nav-primary {
    /* When opened on mobile, become a fixed full-screen overlay */
}
@media (max-width: 1100px) {
    .site-nav-primary.site-nav--mobile-open {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--black);
        flex-direction: column;
        padding: 0;
        gap: 0;
        border-bottom: 0;
        box-shadow: none;
        z-index: 10010;
        max-height: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        animation: mob-drawer-in 0.2s ease-out;
    }
    @keyframes mob-drawer-in {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .site-nav-primary.site-nav--mobile-open .site-nav {
        display: flex !important;
        flex-direction: column;
        padding: 80px 20px 100px;
        gap: 0;
        position: static;
        width: 100%;
        max-width: none;
        background: transparent;
    }

    .site-nav-primary.site-nav--mobile-open .site-nav > li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        list-style: none;
    }
    .site-nav-primary.site-nav--mobile-open .site-nav > li:last-child {
        border-bottom: 0;
    }

    .site-nav-primary.site-nav--mobile-open .site-nav a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 4px;
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.92);
        text-decoration: none;
        font-weight: 500;
        min-height: 56px;          /* tap target */
        letter-spacing: -0.005em;
    }
    .site-nav-primary.site-nav--mobile-open .site-nav a:hover,
    .site-nav-primary.site-nav--mobile-open .site-nav a:focus,
    .site-nav-primary.site-nav--mobile-open .current-menu-item > a {
        color: var(--orange);
    }

    /* Caret rotation indicator */
    .site-nav-primary.site-nav--mobile-open .site-nav__caret {
        display: inline-block !important;
        transition: transform 0.2s ease;
    }
    .site-nav-primary.site-nav--mobile-open .has-submenu.is-open > a > .site-nav__caret {
        transform: rotate(180deg);
    }

    /* Submenus — collapsed by default; expand inline when parent has .is-open */
    .site-nav-primary.site-nav--mobile-open .sub-menu {
        display: none;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin: 0;
        padding: 0 0 12px 14px;
        background: transparent;
        box-shadow: none;
        list-style: none;
    }
    .site-nav-primary.site-nav--mobile-open .has-submenu.is-open > .sub-menu {
        display: block;
    }
    .site-nav-primary.site-nav--mobile-open .sub-menu li {
        width: 100%;
        border: 0;
    }
    .site-nav-primary.site-nav--mobile-open .sub-menu a {
        padding: 12px 4px;
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.7);
        font-weight: 400;
        min-height: 44px;
    }
    .site-nav-primary.site-nav--mobile-open .services-submenu__icon,
    .site-nav-primary.site-nav--mobile-open .platform-submenu__icon {
        width: 22px;
        height: 22px;
        margin-right: 10px;
        flex-shrink: 0;
        display: inline-flex;
    }
    .site-nav-primary.site-nav--mobile-open .services-submenu__label,
    .site-nav-primary.site-nav--mobile-open .platform-submenu__label {
        flex: 1;
    }

    /* Drawer footer — phone, CTA, support (was hidden in header) */
    .site-nav-primary.site-nav--mobile-open::after {
        content: '';
        display: block;
        min-height: 20px;
    }

    /* Drawer bottom CTA bar (pinned) — for .drawer-cta injected by JS below */
    /* Hidden by default — only shown when the drawer is open */
.mob-drawer-bottom { display: none; }

.site-nav-primary.site-nav--mobile-open .mob-drawer-bottom {
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, transparent 0%, var(--black) 30%);
        padding: 20px 20px max(20px, env(safe-area-inset-bottom));
        display: flex;
        flex-direction: column;
        gap: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: auto;
    }
    .mob-drawer-bottom a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 14px 18px;
        border-radius: 10px;
        font-weight: 700;
        text-decoration: none;
        font-size: 1rem;
        min-height: 48px;
    }
    .mob-drawer-bottom .mob-drawer-cta-primary {
        background: var(--orange);
        color: #0a0a0a;
    }
    .mob-drawer-bottom .mob-drawer-cta-secondary {
        background: rgba(245, 99, 0, 0.12);
        color: var(--orange);
        border: 1px solid rgba(245, 99, 0, 0.4);
    }
    .mob-drawer-bottom .mob-drawer-cta-secondary svg {
        stroke: var(--orange);
    }
}

/* ─── Hero / homepage fixes for mobile ──────────────────────────────── */
@media (max-width: 900px) {
    .hero__globe { opacity: 0.25 !important; }
}
@media (max-width: 640px) {
    .hero { padding: 64px 0 80px !important; }
    .hero h1 { font-size: clamp(1.9rem, 9vw, 2.4rem) !important; }
    .hero__stats { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
    .hero__stat { padding: 14px 10px !important; }
    .hero__stat-value { font-size: 1.4rem !important; }
}

/* ─── Platforms grid: 2-col on phones (was single-col vertical stack) ─ */
@media (max-width: 640px) {
    .platforms-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .platform-tile { padding: 14px 8px !important; }
    .platform-tile img,
    .platform-tile svg { max-height: 28px !important; }
}

/* ─── Footer: collapse to single column on phones ───────────────────── */
@media (max-width: 640px) {
    .site-footer__grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }
    .site-footer__brand { grid-column: 1 !important; text-align: left; }
    .site-footer__about { max-width: 100% !important; }
    .site-footer__logo { max-width: 180px !important; margin: 0 0 16px 0 !important; }
    .site-footer__col h4 {
        font-size: 0.95rem !important;
        letter-spacing: 0.08em !important;
        margin-bottom: 14px !important;
    }
    .site-footer__col li { margin-bottom: 12px !important; }
    .site-footer__col a { font-size: 0.95rem !important; }
    .site-footer__trust {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
    }
    .site-footer__trust-item {
        flex: 1 1 calc(50% - 12px) !important;
        min-width: 140px;
    }
    .site-footer__bottom {
        flex-direction: column !important;
        gap: 12px !important;
        text-align: center !important;
    }
}

/* ─── Generic overflow protection — anything oversized gets clipped ── */
img, svg, video { max-width: 100%; }

/* ─── Buttons & links inside page content: ensure tap targets on phones */
@media (max-width: 640px) {
    .btn { min-height: 44px; }
}

/* =========================================================================
   MOBILE MENU — Close bar + brand link inside the drawer
   The drawer is reparented to <body> by JS so position:fixed can escape the
   .site-header backdrop-filter containing block. The close bar sticks to
   the top of the drawer; the bottom bar (CTA + phone) sticks to the bottom.
   ========================================================================= */
/* Hidden by default — only shown when the drawer is open.
   The bar lives inside .site-nav-primary; we hide it unconditionally
   and re-show only when the parent nav has .site-nav--mobile-open. */
.mob-drawer-close-bar { display: none; }

.site-nav-primary.site-nav--mobile-open .mob-drawer-close-bar {
    position: sticky;
    top: 0;
    z-index: 10040;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    padding-top: max(12px, env(safe-area-inset-top));
    background: rgba(10, 10, 10, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-shrink: 0;
}

.site-nav-primary.site-nav--mobile-open .mob-drawer-brand {
    display: inline-flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    /* Same light-card treatment as the desktop .site-logo so the
       black MARKETING wordmark stays legible against the dark
       frosted drawer (rgba(10,10,10,0.92)). */
    padding: 4px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    transition: var(--transition);
}
.site-nav-primary.site-nav--mobile-open .mob-drawer-brand:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.site-nav-primary.site-nav--mobile-open .mob-drawer-brand img {
    height: 32px;
    width: auto;
    display: block;
}
.site-nav-primary.site-nav--mobile-open .mob-drawer-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--orange);
    color: #0a0a0a;
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1;
}
.site-nav-primary.site-nav--mobile-open .mob-drawer-brand-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.05;
}
.site-nav-primary.site-nav--mobile-open .mob-drawer-brand-text strong {
    font-size: 0.95rem;
    color: var(--white);
}
.site-nav-primary.site-nav--mobile-open .mob-drawer-brand-text small {
    font-size: 0.65rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.18em;
}
.site-nav-primary.site-nav--mobile-open .mob-drawer-close {
    width: 44px;
    height: 44px;
    padding: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: var(--white);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.site-nav-primary.site-nav--mobile-open .mob-drawer-close:hover,
.site-nav-primary.site-nav--mobile-open .mob-drawer-close:focus {
    background: rgba(245, 99, 0, 0.18);
    border-color: var(--orange);
    color: var(--orange);
    outline: none;
}
.site-nav-primary.site-nav--mobile-open .mob-drawer-close svg {
    display: block;
}

/* Make sure the .site-nav list leaves room for the sticky close bar
   (close bar is ~68px tall on most phones). */
.site-nav-primary.site-nav--mobile-open .site-nav {
    padding-top: 12px !important;
}

/* When the drawer is open, hide the header hamburger (the X is inside
   the drawer now). Also bump header z-index above drawer so the X
   inside the drawer is the only visible close affordance. */
body.mob-drawer-open .site-header { z-index: 1; }
body.mob-drawer-open .site-header .mobile-menu-toggle { opacity: 0; pointer-events: none; }

/* Sticky top-bar fix — make the header solidly sticky and ensure the
   iOS Safari inset safe-area is respected. */
@supports (padding-top: env(safe-area-inset-top)) {
    .site-header {
        padding-top: env(safe-area-inset-top);
        height: calc(80px + env(safe-area-inset-top));
    }
    .site-header__inner {
        height: 80px;
    }
}

/* Drawer slide-in animation — improved */
@keyframes mob-drawer-in {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Tablet/iPad: drawer takes full height but close bar stays smaller */
@media (min-width: 481px) and (max-width: 1100px) {
    .site-nav-primary.site-nav--mobile-open .mob-drawer-close-bar {
        padding: 16px 24px;
    }
}

/* =========================================================================
   PAGE-TEMPLATE OVERFLOW FIXES — about, services, contact, partner pages
   The about-hero, ct-hero, wd-hero, lt-hero, ows-hero, link-hero grids
   all use grid-template-columns: 1.4fr 1fr or similar. When the content
   inside one column is wider than its fractional share (e.g. a stat-grid
   that wants to be 400px wide), the column expands beyond the container.
   Forcing min-width: 0 on grid/flex items lets them shrink.
   ========================================================================= */
.about-hero__inner > *,
.ct-hero__inner > *,
.wd-hero__inner > *,
.lt-hero__inner > *,
.ows-hero__inner > *,
.link-hero__inner > * {
    min-width: 0;
}

/* On phones, hero grids should always be single-column even at 900px+,
   and any inline row should wrap. Make this explicit at 640px and below. */
@media (max-width: 900px) {
    .about-hero__inner,
    .ct-hero__inner,
    .wd-hero__inner,
    .lt-hero__inner,
    .ows-hero__inner,
    .link-hero__inner {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
}

/* Stat-card rows on hero blocks — at narrow widths they should stack */
@media (max-width: 640px) {
    .about-hero__stats,
    .ct-hero__stats,
    .wd-hero__stats,
    .lt-hero__stats,
    .ows-hero__stats,
    .link-hero__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
}

/* Eyebrow pills / h1 / lead text on hero — never overflow */
.about-hero__text,
.about-hero__text h1,
.about-hero__text .lead,
.ct-hero__text,
.ct-hero__text h1,
.wd-hero__text,
.wd-hero__text h1,
.lt-hero__text,
.lt-hero__text h1,
.ows-hero__text,
.ows-hero__text h1,
.link-hero__text,
.link-hero__text h1 {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Tighten about-hero__logo padding on phones */
@media (max-width: 640px) {
    .about-hero__logo {
        padding: 14px 24px !important;
        max-width: 280px !important;
        margin: 0 auto 28px !important;
    }
    .about-hero__logo img {
        height: 50px !important;
        max-width: 100% !important;
    }
}
