/* =====================================================
   SHARED INNER LAYOUT - FINAL
   Homepage untouched.
   Supports both:
   1) Overview pages: .inner-hero-new / .inner-hero-layout
   2) Detail pages: .inner-hero / .inner-hero-grid
===================================================== */

:root {
    --inner-ref-width: 1380px;
    --inner-ref-gap: 55px;
    --brand-red: #c40018;
    --brand-dark: #080d18;
    --brand-muted: #5d6778;
    --brand-border: #e7e9ee;
}

/* Basic font fix */
body.inner-page {
    margin: 0 !important;
    font-family: "Manrope", Arial, sans-serif !important;
    color: var(--brand-dark) !important;
    background: #ffffff !important;
}

/* Shared container width */
.inner-container,
.inner-nav-wrap,
.inner-header > .container,
.inner-header .container,
.inner-hero > .container,
.inner-hero .container,
.inner-section .container,
.inner-cta-section .container,
.service-best-section .container {
    width: min(calc(100% - var(--inner-ref-gap)), var(--inner-ref-width)) !important;
    max-width: var(--inner-ref-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Header */
.inner-header {
    height: 86px !important;
    min-height: 86px !important;
    background: #ffffff !important;
    border-bottom: 1px solid var(--brand-border) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
}

.inner-nav-wrap,
.inner-header > .container,
.inner-header .container {
    height: 86px !important;
    min-height: 86px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.inner-brand img {
    width: 118px !important;
    height: auto !important;
    display: block !important;
}

.inner-nav {
    display: flex !important;
    align-items: center !important;
    gap: 28px !important;
    margin-left: auto !important;
}

.inner-nav a,
.inner-nav .nav-link {
    color: var(--brand-dark) !important;
    text-decoration: none !important;
    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
}

.inner-nav .inner-cta {
    min-height: 52px !important;
    padding: 0 28px !important;
    border-radius: 4px !important;
    background: var(--brand-red) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* =====================================================
   OVERVIEW HERO: ai-solutions.php
===================================================== */

.inner-hero-new {
    padding: 54px 0 58px !important;
    background:
        radial-gradient(circle at 88% 20%, rgba(196, 0, 24, 0.08), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #fff7f7 100%) !important;
    border-bottom: 1px solid var(--brand-border) !important;
}

.inner-hero-layout {
    display: grid !important;
    grid-template-columns: 1.05fr 0.85fr !important;
    gap: 72px !important;
    align-items: center !important;
}

.inner-hero-new h1 {
    margin: 0 !important;
    max-width: 780px !important;
    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 58px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.05em !important;
    font-weight: 800 !important;
    color: var(--brand-dark) !important;
}

.inner-hero-new p {
    margin: 24px 0 32px !important;
    max-width: 680px !important;
    color: var(--brand-muted) !important;
    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 17px !important;
    line-height: 1.75 !important;
    font-weight: 600 !important;
}

/* =====================================================
   DETAIL HERO: rag-systems.php and AI/service detail pages
===================================================== */

.inner-hero,
.service-detail-hero,
.ai-detail-hero,
.ai-standard-hero {
    min-height: 560px !important;
    padding: 54px 0 58px !important;
    display: flex !important;
    align-items: center !important;
    background:
        radial-gradient(circle at 88% 20%, rgba(196, 0, 24, 0.08), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #fff7f7 100%) !important;
    border-bottom: 1px solid var(--brand-border) !important;
}

.inner-hero-grid {
    width: 100% !important;
    max-width: none !important;
    display: grid !important;
    grid-template-columns: 1.05fr 0.85fr !important;
    gap: 72px !important;
    align-items: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.inner-hero-content {
    max-width: 780px !important;
}

.inner-hero-content h1,
.inner-hero h1,
.service-detail-hero h1,
.ai-detail-hero h1 {
    margin: 0 !important;
    max-width: 780px !important;
    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 58px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.05em !important;
    font-weight: 800 !important;
    color: var(--brand-dark) !important;
}

.inner-hero-content > p,
.inner-hero > .container p,
.service-detail-hero p,
.ai-detail-hero p {
    max-width: 680px !important;
    color: var(--brand-muted) !important;
    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 17px !important;
    line-height: 1.75 !important;
    font-weight: 600 !important;
}

/* Eyebrow */
.inner-eyebrow {
    margin: 0 0 18px !important;
    color: var(--brand-red) !important;
    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: 0.22em !important;
    text-transform: uppercase !important;
}

/* Buttons */
.inner-btn-row,
.inner-hero-actions {
    margin-top: 28px !important;
    display: flex !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
}

.inner-btn,
.inner-hero-actions .btn-primary,
.inner-hero-actions .btn-secondary,
a.btn-primary,
a.btn-secondary {
    min-height: 52px !important;
    padding: 0 26px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Right visual cards */
.inner-visual-card,
.service-detail-card,
.ai-detail-card,
.services-overview-card {
    width: 100% !important;
    max-width: 560px !important;
    min-height: 360px !important;
    justify-self: end !important;
    padding: 28px !important;
    border: 1px solid var(--brand-border) !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,0.9) !important;
    box-shadow: 0 24px 70px rgba(7,17,31,0.08) !important;
}

.inner-visual-top {
    min-height: 260px !important;
    padding: 28px !important;
    border-radius: 14px !important;
}

/* Sections */
.inner-section,
.inner-section-new {
    padding: 64px 0 !important;
    background: #ffffff !important;
}

.inner-title,
.inner-section-heading {
    text-align: center !important;
    margin-bottom: 30px !important;
}

.inner-title h2,
.inner-section-heading h2 {
    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 34px !important;
    line-height: 1.18 !important;
    letter-spacing: -0.04em !important;
    font-weight: 800 !important;
    color: var(--brand-dark) !important;
}

.inner-title p,
.inner-section-heading p {
    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    font-weight: 600 !important;
    color: var(--brand-muted) !important;
}

/* Cards/grid */
.inner-card-grid,
.inner-service-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

.inner-card,
.inner-service-card {
    padding: 28px !important;
    border: 1px solid var(--brand-border) !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    font-family: "Manrope", Arial, sans-serif !important;
}

/* Tablet */
@media (max-width: 1100px) {
    :root {
        --inner-ref-gap: 64px;
    }

    .inner-nav {
        display: none !important;
    }

    .inner-menu {
        display: block !important;
    }

    .inner-hero-layout,
    .inner-hero-grid {
        grid-template-columns: 1fr !important;
        gap: 38px !important;
    }

    .inner-visual-card,
    .service-detail-card,
    .ai-detail-card,
    .services-overview-card {
        max-width: 100% !important;
        justify-self: stretch !important;
    }

    .inner-card-grid,
    .inner-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Mobile */
@media (max-width: 650px) {
    :root {
        --inner-ref-gap: 64px;
    }

    .inner-header,
    .inner-nav-wrap {
        height: 78px !important;
        min-height: 78px !important;
    }

    .inner-brand img {
        width: 98px !important;
    }

    .inner-hero-new,
    .inner-hero,
    .service-detail-hero,
    .ai-detail-hero,
    .ai-standard-hero {
        min-height: auto !important;
        padding: 48px 0 44px !important;
    }

    .inner-hero-new h1,
    .inner-hero-content h1,
    .inner-hero h1,
    .service-detail-hero h1,
    .ai-detail-hero h1 {
        font-size: 35px !important;
    }

    .inner-hero-new p,
    .inner-hero-content > p,
    .service-detail-hero p,
    .ai-detail-hero p {
        font-size: 14px !important;
    }

    .inner-btn-row,
    .inner-hero-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .inner-btn,
    .inner-hero-actions .btn-primary,
    .inner-hero-actions .btn-secondary {
        width: 100% !important;
    }

    .inner-card-grid,
    .inner-service-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =====================================================
   FIX: Service cards should not look like default links
===================================================== */

.inner-service-card,
.inner-service-card:visited,
.inner-service-card:hover,
.inner-service-card:focus {
    text-decoration: none !important;
    color: inherit !important;
}

.inner-service-card h3,
.inner-service-card h3:visited,
.inner-service-card h3:hover {
    color: #080d18 !important;
    text-decoration: none !important;
}

.inner-service-card p,
.inner-service-card p:visited,
.inner-service-card p:hover {
    color: #5d6778 !important;
    text-decoration: none !important;
}

.inner-service-card:hover {
    transform: translateY(-2px);
    border-color: rgba(196, 0, 24, 0.28) !important;
    box-shadow: 0 18px 42px rgba(7, 17, 31, 0.07) !important;
}


/* =====================================================
   FIX: Services page vertical gap after hero
===================================================== */

body.inner-page .inner-hero-new + .inner-section-new {
    padding-top: 48px !important;
}

body.inner-page .inner-section-new {
    padding-top: 56px !important;
    padding-bottom: 64px !important;
}

body.inner-page .inner-title {
    margin-bottom: 30px !important;
}

body.inner-page .inner-cta-box .btn-primary {
    min-height: 48px !important;
    padding: 0 26px !important;
    border-radius: 8px !important;
    background: #c40018 !important;
    color: #ffffff !important;
    border: 1px solid #c40018 !important;
    box-shadow: 0 14px 28px rgba(196, 0, 24, 0.18) !important;
    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body.inner-page .inner-cta-box .btn-primary:hover,
body.inner-page .inner-cta-box .btn-primary:focus {
    background: #a90015 !important;
    border-color: #a90015 !important;
    transform: translateY(-1px) !important;
}

body.inner-page .inner-title .inner-eyebrow {
    margin-bottom: 14px !important;
}

body.inner-page .inner-service-grid {
    margin-top: 0 !important;
}


/* =====================================================
   FIX: Section eyebrow text should be red like homepage
===================================================== */

body.inner-page .inner-eyebrow,
body.inner-page .inner-title .inner-eyebrow,
body.inner-page .inner-section-heading .inner-eyebrow,
body.inner-page p.inner-eyebrow {
    color: #c40018 !important;
    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    letter-spacing: 0.32em !important;
    text-transform: uppercase !important;
}

body.inner-page .inner-title > .inner-eyebrow,
body.inner-page .inner-section-heading > .inner-eyebrow {
    margin-bottom: 14px !important;
}


/* =====================================================
   FIX: Inner section label same as homepage WHAT WE BUILD
===================================================== */

body.inner-page .inner-title .inner-eyebrow,
body.inner-page .inner-section-heading .inner-eyebrow,
body.inner-page .inner-section-new .inner-eyebrow,
body.inner-page .inner-section .inner-eyebrow {
    display: block !important;
    width: 100% !important;
    margin: 0 0 14px !important;
    text-align: center !important;
    color: #c40018 !important;
    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    letter-spacing: 0.32em !important;
    text-transform: uppercase !important;
}

/* Hero eyebrow should stay left aligned */
body.inner-page .inner-hero-new .inner-eyebrow,
body.inner-page .inner-hero .inner-eyebrow,
body.inner-page .service-detail-hero .inner-eyebrow,
body.inner-page .ai-detail-hero .inner-eyebrow {
    text-align: left !important;
    width: auto !important;
    display: inline-block !important;
    color: #c40018 !important;
}
/* =====================================================
   RESTORE: Normal inner header layout
   Logo left, nav and CTA in same row
===================================================== */

body.inner-page .inner-nav-wrap {
    position: static !important;
}

body.inner-page .inner-nav {
    position: static !important;
    transform: none !important;
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 28px !important;
}

body.inner-page .inner-nav .inner-cta {
    position: static !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    margin-left: 18px !important;
}


/* =====================================================
   FINAL CLEAN DROPDOWN SYSTEM
   All inner page dropdowns, no arrows
===================================================== */

body.inner-page .inner-nav {
    display: flex !important;
    align-items: center !important;
    gap: 28px !important;
    margin-left: auto !important;
}

body.inner-page .inner-nav .nav-dropdown {
    position: relative !important;
}

body.inner-page .inner-nav .nav-link {
    display: inline-flex !important;
    align-items: center !important;
    color: #080d18 !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

/* No red arrow */
body.inner-page .inner-nav .nav-link::after,
body.inner-page .inner-nav .nav-link::before {
    content: none !important;
    display: none !important;
}

body.inner-page .inner-nav .dropdown-menu {
    position: absolute !important;
    top: calc(100% + 18px) !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(10px) !important;
    width: 292px !important;
    padding: 12px !important;
    border: 1px solid #e7e9ee !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 24px 60px rgba(7, 17, 31, 0.12) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: all 0.18s ease !important;
    z-index: 99999 !important;
}

body.inner-page .inner-nav .dropdown-menu::before {
    content: "" !important;
    position: absolute !important;
    top: -18px !important;
    left: 0 !important;
    right: 0 !important;
    height: 18px !important;
}

body.inner-page .inner-nav .nav-dropdown:hover .dropdown-menu,
body.inner-page .inner-nav .nav-dropdown:focus-within .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
}

body.inner-page .inner-nav .dropdown-menu a {
    display: block !important;
    padding: 12px 12px !important;
    border-radius: 8px !important;
    color: #080d18 !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

body.inner-page .inner-nav .dropdown-menu a:hover {
    background: #fff1f3 !important;
    color: #c40018 !important;
}

body.inner-page .inner-nav .inner-cta {
    margin-left: 18px !important;
}

@media (max-width: 1100px) {
    body.inner-page .inner-nav {
        display: none !important;
    }
}



/* =====================================================
   FINAL MATCH: Inner section heading same as homepage
   Example: WHAT WE BUILD section
===================================================== */

body.inner-page .inner-hero-new + .inner-section-new,
body.inner-page .inner-hero + .inner-section,
body.inner-page .service-detail-hero + .inner-section,
body.inner-page .ai-detail-hero + .inner-section {
    padding-top: 58px !important;
}

body.inner-page .inner-title,
body.inner-page .inner-section-heading {
    max-width: 820px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 38px !important;
    text-align: center !important;
}

body.inner-page .inner-title .inner-eyebrow,
body.inner-page .inner-section-heading .inner-eyebrow,
body.inner-page .inner-title > p.inner-eyebrow,
body.inner-page .inner-section-heading > p.inner-eyebrow {
    display: block !important;
    margin: 0 0 14px !important;
    color: #c40018 !important;
    text-align: center !important;
    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    letter-spacing: 0.34em !important;
    text-transform: uppercase !important;
}

body.inner-page .inner-title h2,
body.inner-page .inner-section-heading h2 {
    margin: 0 !important;
    color: #080d18 !important;
    text-align: center !important;
    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 30px !important;
    line-height: 1.18 !important;
    letter-spacing: -0.035em !important;
    font-weight: 900 !important;
}

body.inner-page .inner-title p:not(.inner-eyebrow),
body.inner-page .inner-section-heading p:not(.inner-eyebrow) {
    max-width: 680px !important;
    margin: 12px auto 0 !important;
    color: #5d6778 !important;
    text-align: center !important;
    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.65 !important;
    font-weight: 650 !important;
}

body.inner-page .inner-service-grid,
body.inner-page .inner-card-grid {
    margin-top: 0 !important;
}

/* Contact page form has its own layout; it must not inherit the service CTA grid. */
body.inner-page .contact-form-card {
    margin-top: 34px;
    padding: 42px 48px;
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
    gap: 48px;
    align-items: start;
    border: 1px solid var(--brand-border);
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #fff7f8 100%);
    box-shadow: 0 22px 60px rgba(7, 17, 31, 0.06);
}

body.inner-page .contact-form-intro .inner-eyebrow {
    width: auto !important;
    margin: 0 0 14px !important;
    display: inline-block !important;
    text-align: left !important;
}

body.inner-page .contact-form-intro h2 {
    margin: 0;
    color: var(--brand-dark);
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

body.inner-page .contact-form-intro > p:not(.inner-eyebrow) {
    margin: 14px 0 0;
    color: var(--brand-muted);
    font-size: 14px;
    line-height: 1.65;
    font-weight: 600;
}

body.inner-page .contact-project-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

body.inner-page .contact-project-form input,
body.inner-page .contact-project-form textarea {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid #dfe3ea;
    border-radius: 8px;
    background: #ffffff;
    color: var(--brand-dark);
    font: 600 14px/1.5 "Manrope", Arial, sans-serif;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

body.inner-page .contact-project-form textarea {
    grid-column: 1 / -1;
    min-height: 126px;
    padding-top: 14px;
    resize: vertical;
}

body.inner-page .contact-project-form input[name="company"] {
    grid-column: 1 / -1;
}

body.inner-page .contact-project-form input:focus,
body.inner-page .contact-project-form textarea:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(196, 0, 24, 0.1);
}

body.inner-page .contact-project-form .btn-primary {
    grid-column: 1 / -1;
    min-height: 50px;
    border: 1px solid var(--brand-red);
    border-radius: 8px;
    background: var(--brand-red);
    color: #ffffff;
    font: 900 14px/1 "Manrope", Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(196, 0, 24, 0.18);
}

@media (max-width: 820px) {
    body.inner-page .contact-form-card {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 34px;
    }
}

@media (max-width: 560px) {
    body.inner-page .contact-form-card {
        padding: 26px 22px;
    }

    body.inner-page .contact-project-form {
        grid-template-columns: 1fr;
    }

    body.inner-page .contact-project-form textarea,
    body.inner-page .contact-project-form input[name="company"],
    body.inner-page .contact-project-form .btn-primary {
        grid-column: 1;
    }
}

/* =====================================================
   Shared hero visual system
   Used by Services, AI Solutions, Industries, Resources,
   industry pages, and other overview pages.
===================================================== */

body.inner-page .inner-visual-card:not(.service-detail-card):not(.case-study-visual) {
    min-height: 0 !important;
    padding: 18px !important;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96) !important;
}

body.inner-page .inner-visual-card:not(.service-detail-card):not(.case-study-visual) .inner-visual-top {
    position: relative;
    min-height: 220px !important;
    padding: 72px 28px 28px !important;
    overflow: hidden;
    isolation: isolate;
    justify-content: flex-end;
    background:
        radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.18), transparent 24%),
        linear-gradient(135deg, #101827 0%, #660c1b 58%, #c40018 100%) !important;
}

body.inner-page .inner-visual-card:not(.service-detail-card):not(.case-study-visual) .inner-visual-top::before {
    content: "ILYTiX  /  DELIVERY OVERVIEW";
    position: absolute;
    top: 24px;
    left: 28px;
    z-index: -1;
    color: rgba(255, 255, 255, 0.68);
    font-size: 9px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.16em;
}

body.inner-page .inner-visual-card:not(.service-detail-card):not(.case-study-visual) .inner-visual-top::after {
    content: "";
    position: absolute;
    top: -50px;
    right: -38px;
    z-index: -2;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    box-shadow:
        0 0 0 34px rgba(255, 255, 255, 0.035),
        0 0 0 68px rgba(255, 255, 255, 0.025);
}

body.inner-page .inner-hero-new .inner-visual-top h3 {
    position: relative;
    z-index: 1;
    max-width: 420px !important;
    margin: 0 0 12px !important;
    color: #ffffff !important;
    font-size: 27px !important;
    line-height: 1.16 !important;
    letter-spacing: -0.035em !important;
}

body.inner-page .inner-hero-new .inner-visual-top p {
    position: relative;
    z-index: 1;
    max-width: 430px !important;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 13px !important;
    line-height: 1.62 !important;
    font-weight: 600 !important;
}

body.inner-page .inner-visual-card:not(.service-detail-card):not(.case-study-visual) .inner-mini-grid {
    margin-top: 12px !important;
    gap: 10px !important;
}

body.inner-page .inner-visual-card:not(.service-detail-card):not(.case-study-visual) .inner-mini-card {
    position: relative;
    min-width: 0;
    min-height: 76px;
    padding: 15px 14px 14px 48px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-color: #e5e8ee !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body.inner-page .inner-visual-card:not(.service-detail-card):not(.case-study-visual) .inner-mini-card::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    border-radius: 7px;
    background:
        linear-gradient(135deg, transparent 45%, rgba(196, 0, 24, 0.18) 46% 54%, transparent 55%),
        #fff1f3;
    box-shadow: inset 0 0 0 1px rgba(196, 0, 24, 0.08);
}

body.inner-page .inner-visual-card:not(.service-detail-card):not(.case-study-visual) .inner-mini-card:hover {
    transform: translateY(-2px);
    border-color: rgba(196, 0, 24, 0.28) !important;
    box-shadow: 0 10px 24px rgba(7, 17, 31, 0.06);
}

body.inner-page .inner-visual-card:not(.service-detail-card):not(.case-study-visual) .inner-mini-card strong {
    overflow: hidden;
    margin: 0 0 4px !important;
    color: #111827 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.inner-page .inner-visual-card:not(.service-detail-card):not(.case-study-visual) .inner-mini-card span {
    overflow: hidden;
    color: #6b7484 !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Detail-page version used by Predictive Analytics and service/AI pages. */
body.inner-page .service-detail-card {
    min-height: 0 !important;
    padding: 30px !important;
    border-color: #e4e7ed !important;
    background:
        radial-gradient(circle at 100% 0, rgba(196, 0, 24, 0.08), transparent 34%),
        linear-gradient(145deg, #ffffff 0%, #fffafb 100%) !important;
}

body.inner-page .service-detail-card > span {
    margin-bottom: 16px !important;
    border: 1px solid rgba(196, 0, 24, 0.1);
}

body.inner-page .service-detail-card h3 {
    max-width: 460px;
    margin-bottom: 22px !important;
    font-size: 28px !important;
}

body.inner-page .service-detail-card .service-mini-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px !important;
    margin-top: 0 !important;
}

body.inner-page .service-detail-card .service-mini-list p {
    position: relative;
    min-height: 58px;
    padding: 13px 12px 13px 42px !important;
    display: flex;
    align-items: center;
    border-color: #e5e8ee !important;
    background: #ffffff !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}

body.inner-page .service-detail-card .service-mini-list p::before {
    content: "✓" !important;
    position: absolute;
    left: 12px;
    width: 21px;
    height: 21px;
    margin: 0 !important;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: #fff1f3;
    color: #c40018;
    font-size: 10px;
}

@media (max-width: 560px) {
    body.inner-page .inner-visual-card:not(.service-detail-card):not(.case-study-visual) {
        padding: 14px !important;
    }

    body.inner-page .inner-visual-card:not(.service-detail-card):not(.case-study-visual) .inner-visual-top {
        min-height: 205px !important;
        padding: 64px 22px 24px !important;
    }

    body.inner-page .inner-visual-card:not(.service-detail-card):not(.case-study-visual) .inner-visual-top::before {
        top: 22px;
        left: 22px;
    }

    body.inner-page .inner-hero-new .inner-visual-top h3 {
        font-size: 23px !important;
    }

    body.inner-page .inner-visual-card:not(.service-detail-card):not(.case-study-visual) .inner-mini-grid,
    body.inner-page .service-detail-card .service-mini-list {
        grid-template-columns: 1fr;
    }

    body.inner-page .service-detail-card {
        padding: 24px !important;
    }

    body.inner-page .service-detail-card h3 {
        font-size: 24px !important;
    }
}

/* Case studies: a product-delivery UI instead of the generic photo card. */
body.inner-page .case-study-visual {
    min-height: 0 !important;
    padding: 22px !important;
    overflow: hidden;
    background: #ffffff !important;
}

body.inner-page .case-ui-header {
    padding: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    border-radius: 12px;
    background:
        radial-gradient(circle at 92% 5%, rgba(255, 255, 255, 0.13), transparent 28%),
        linear-gradient(135deg, #101827 0%, #770b1c 58%, #c40018 100%);
    color: #ffffff;
}

body.inner-page .case-ui-header div > span {
    display: block;
    margin-bottom: 9px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body.inner-page .case-ui-header h3 {
    max-width: 360px;
    margin: 0;
    font-size: 25px;
    line-height: 1.18;
    letter-spacing: -0.03em;
}

body.inner-page .case-ui-status {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.inner-page .case-ui-status::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 6px;
    display: inline-block;
    border-radius: 50%;
    background: #7bf1a8;
    box-shadow: 0 0 0 3px rgba(123, 241, 168, 0.14);
}

body.inner-page .case-ui-flow {
    margin: 14px 0;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    border: 1px solid #e7e9ee;
    border-radius: 12px;
    background: #f8f9fb;
}

body.inner-page .case-ui-flow > div {
    position: relative;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.inner-page .case-ui-flow > div:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 14px;
    right: -4px;
    width: 8px;
    height: 1px;
    background: #d5dae3;
}

body.inner-page .case-ui-flow b {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    border: 1px solid #dfe3ea;
    border-radius: 8px;
    background: #ffffff;
    color: #8a94a4;
    font-size: 9px;
}

body.inner-page .case-ui-flow .is-complete b {
    border-color: #c9efda;
    background: #eafaf1;
    color: #16834c;
}

body.inner-page .case-ui-flow .is-active b {
    border-color: #c40018;
    background: #c40018;
    color: #ffffff;
    box-shadow: 0 7px 16px rgba(196, 0, 24, 0.2);
}

body.inner-page .case-ui-flow span {
    min-width: 0;
    color: #111827;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 900;
}

body.inner-page .case-ui-flow small {
    margin-top: 3px;
    display: block;
    overflow: hidden;
    color: #7a8494;
    font-size: 8px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.inner-page .case-ui-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

body.inner-page .case-ui-grid > div {
    min-width: 0;
    padding: 14px 15px;
    border: 1px solid #e7e9ee;
    border-radius: 10px;
    background: #ffffff;
}

body.inner-page .case-ui-grid span,
body.inner-page .case-ui-grid strong {
    display: block;
}

body.inner-page .case-ui-grid span {
    margin-bottom: 5px;
    color: #c40018;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 900;
}

body.inner-page .case-ui-grid strong {
    overflow: hidden;
    color: #667085;
    font-size: 10px;
    line-height: 1.35;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 560px) {
    body.inner-page .case-study-visual {
        padding: 16px !important;
    }

    body.inner-page .case-ui-header {
        padding: 20px;
    }

    body.inner-page .case-ui-header h3 {
        font-size: 22px;
    }

    body.inner-page .case-ui-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.inner-page .case-ui-flow > div::after {
        display: none;
    }
}

/* ── Contact form feedback messages ── */
.contact-feedback {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 18px;
}

body.inner-page .contact-feedback[hidden],
body.inner-page .contact-project-form[hidden] {
    display: none !important;
}

body.inner-page .contact-form-intro {
    grid-column: 1;
    grid-row: 1 / span 2;
}

body.inner-page .contact-feedback,
body.inner-page .contact-project-form {
    grid-column: 2;
}

.contact-feedback svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.contact-feedback-success {
    background: #eafaf1;
    border: 1px solid #a8dfc1;
    color: #166534;
}

.contact-feedback-error {
    background: #fff1f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

@media (max-width: 820px) {
    body.inner-page .contact-form-intro,
    body.inner-page .contact-feedback,
    body.inner-page .contact-project-form {
        grid-column: 1;
        grid-row: auto;
    }
}

/* ===== Sticky pill header for inner pages only ===== */
/* Homepage keeps its existing header design */

body.inner-page-sticky-header {
    padding-top: 108px;
}

body.inner-page-sticky-header .site-header,
body.inner-page-sticky-header header {
    /* Geometry comes from the shared homepage header rules. */
}

body.inner-page-sticky-header .nav-wrap {
    /* Geometry comes from the shared homepage header rules. */
}

body.inner-page-sticky-header .brand,
body.inner-page-sticky-header .logo,
body.inner-page-sticky-header .site-logo {
    display: inline-flex !important;
    align-items: center !important;
}

body.inner-page-sticky-header .brand img,
body.inner-page-sticky-header .logo img,
body.inner-page-sticky-header .site-logo img,
body.inner-page-sticky-header .nav-logo img {
    /* Size comes from the homepage header rule. */
}

body.inner-page-sticky-header .main-nav,
body.inner-page-sticky-header nav {
    align-items: center !important;
}

body.inner-page-sticky-header .nav-link {
    /* Link metrics come from the homepage header rule. */
}

body.inner-page-sticky-header .nav-link:hover {
    /* Hover appearance comes from the homepage header rule. */
}

body.inner-page-sticky-header .nav-cta {
    /* CTA metrics come from the homepage header rule. */
}

body.inner-page-sticky-header .nav-cta:hover {
    /* Hover appearance comes from the homepage header rule. */
}

body.inner-page-sticky-header .dropdown {
    /* Dropdown alignment comes from the homepage header rule. */
}

/* Prevent anchor sections hiding behind sticky pill header */
body.inner-page-sticky-header section[id],
body.inner-page-sticky-header article[id] {
    scroll-margin-top: 130px;
}

/* Mobile keeps normal sticky behavior without oversized pill */
@media (max-width: 991px) {
    body.inner-page-sticky-header {
        padding-top: 86px;
    }

    body.inner-page-sticky-header .site-header,
    body.inner-page-sticky-header header {
        top: 12px !important;
        width: min(100% - 24px, 760px) !important;
    }

    body.inner-page-sticky-header .nav-wrap {
        min-height: 62px !important;
        padding: 0 16px !important;
        border-radius: 24px !important;
    }
}

@media (max-width: 640px) {
    body.inner-page-sticky-header {
        padding-top: 78px;
    }

    body.inner-page-sticky-header .site-header,
    body.inner-page-sticky-header header {
        top: 8px !important;
        width: calc(100% - 18px) !important;
    }

    body.inner-page-sticky-header .nav-wrap {
        border-radius: 20px !important;
    }
}


/* =====================================================
   FINAL TYPOGRAPHY WEIGHT CALIBRATION — INNER PAGES
   This file loads last on inner pages. Weight-only overrides.
===================================================== */

body.inner-page h1,
body.inner-page .inner-hero h1,
body.inner-page .inner-hero-new h1,
body.inner-page .svc-hero-content h1,
body.inner-page .ai-hero-content h1,
body.inner-page .ind-hero-content h1,
body.inner-page .res-hero-content h1,
body.inner-page .co-hero-content h1,
body.inner-page .ct-hero h1 {
    font-weight: 200 !important;
}

body.inner-page h2,
body.inner-page main[class] h2,
body.inner-page .section-title h2,
body.inner-page .svc-section-head h2,
body.inner-page .svc-detail-content h2,
body.inner-page .res-section-head h2,
body.inner-page .co-section-head h2 {
    font-weight: 450 !important;
}

body.inner-page h3,
body.inner-page main[class] h3,
body.inner-page .inner-card h3,
body.inner-page .svc-card h3,
body.inner-page .res-card h3,
body.inner-page .co-card h3,
body.inner-page .build-card h3,
body.inner-page .problem-card h3,
body.inner-page .ct-touch-card h3 {
    font-weight: 450 !important;
}

body.inner-page main p,
body.inner-page main[class] p,
body.inner-page .inner-hero p,
body.inner-page .inner-hero-new p,
body.inner-page .svc-hero-desc,
body.inner-page .ai-hero-desc,
body.inner-page .ind-hero-desc,
body.inner-page .res-hero-desc,
body.inner-page .co-hero-desc,
body.inner-page .ct-hero-desc {
    font-weight: 400 !important;
}

body.inner-page .site-header .site-nav .nav-link,
body.inner-page .site-header .dropdown a,
body.inner-page .mobile-menu a,
body.inner-page .mobile-menu summary,
body.inner-page-sticky-header .nav-link {
    font-weight: 450 !important;
}

body.inner-page .nav-cta,
body.inner-page .inner-btn,
body.inner-page .svc-btn,
body.inner-page .ai-btn,
body.inner-page .ind-btn,
body.inner-page .res-btn,
body.inner-page .co-btn,
body.inner-page .ct-panel-cta,
body.inner-page button,
body.inner-page input[type="submit"] {
    font-weight: 450 !important;
}

body.inner-page .inner-eyebrow,
body.inner-page .svc-eyebrow,
body.inner-page .ai-eyebrow,
body.inner-page .ind-eyebrow,
body.inner-page .res-eyebrow,
body.inner-page .co-eyebrow,
body.inner-page .ct-eyebrow,
body.inner-page .svc-detail-tag,
body.inner-page .res-tag {
    font-weight: 450 !important;
}

body.inner-page main[class] strong,
body.inner-page .ct-touch-card strong,
body.inner-page .ct-cta-panel strong,
body.inner-page .site-footer strong,
body.inner-page .site-footer a,
body.inner-page label {
    font-weight: 600 !important;
}

body.inner-page .svc-stat-list strong,
body.inner-page .ai-stat-list strong,
body.inner-page .ind-stat-list strong,
body.inner-page .res-stat-list strong,
body.inner-page .co-stat-list strong,
body.inner-page .ct-stat strong {
    font-weight: 600 !important;
}

body.inner-page .services-single-page .svc-card-top h3 {
    color: #ffffff !important;
}

/* ===== FINAL FIX: Services dark cards white text ===== */
body.inner-page .services-single-page .svc-detail-visual,
body.inner-page .services-single-page .svc-detail-visual *,
body.inner-page-sticky-header .services-single-page .svc-detail-visual,
body.inner-page-sticky-header .services-single-page .svc-detail-visual * {
    color: #ffffff !important;
}

body.inner-page .services-single-page .svc-detail-visual h1,
body.inner-page .services-single-page .svc-detail-visual h2,
body.inner-page .services-single-page .svc-detail-visual h3,
body.inner-page .services-single-page .svc-detail-visual h4,
body.inner-page .services-single-page .svc-detail-visual p,
body.inner-page .services-single-page .svc-detail-visual span,
body.inner-page .services-single-page .svc-detail-visual li,
body.inner-page-sticky-header .services-single-page .svc-detail-visual h1,
body.inner-page-sticky-header .services-single-page .svc-detail-visual h2,
body.inner-page-sticky-header .services-single-page .svc-detail-visual h3,
body.inner-page-sticky-header .services-single-page .svc-detail-visual h4,
body.inner-page-sticky-header .services-single-page .svc-detail-visual p,
body.inner-page-sticky-header .services-single-page .svc-detail-visual span,
body.inner-page-sticky-header .services-single-page .svc-detail-visual li {
    color: #ffffff !important;
}

body.inner-page .services-single-page .svc-detail-visual .svc-visual-tag,
body.inner-page .services-single-page .svc-detail-visual .svc-eyebrow,
body.inner-page-sticky-header .services-single-page .svc-detail-visual .svc-visual-tag,
body.inner-page-sticky-header .services-single-page .svc-detail-visual .svc-eyebrow {
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.25) !important;
    background: rgba(255,255,255,0.10) !important;
}


/* ===== FINAL TYPOGRAPHY SOFTENING ===== */
/* Make the full website typography lighter, premium, and cleaner */

body,
p,
li,
span {
    font-weight: 400 !important;
}

h1,
.hero-content h1,
.svc-hero-content h1,
.ai-hero-content h1,
.ind-hero-content h1,
.res-hero-content h1,
.co-hero-content h1 {
    font-weight: 600 !important;
    letter-spacing: -0.035em !important;
}

h2,
.section-title h2,
.hp-section-head h2,
.svc-section-head h2,
.res-section-head h2,
.co-section-head h2,
.svc-detail-content h2 {
    font-weight: 600 !important;
    letter-spacing: -0.025em !important;
}

h3,
h4,
.card h3,
.hp-pillar-card h3,
.svc-feature-card h3,
.svc-card h3,
.res-card h3,
.co-card h3 {
    font-weight: 600 !important;
}

.nav-link,
.dropdown a,
.mobile-menu a {
    font-weight: 600 !important;
}

.btn,
.nav-cta,
button,
input[type="submit"] {
    font-weight: 650 !important;
}

.eyebrow,
.hp-eyebrow,
.svc-eyebrow,
.ai-eyebrow,
.ind-eyebrow,
.res-eyebrow,
.co-eyebrow {
    font-weight: 650 !important;
}

/* Keep dark cards and CTA text white after typography softening */
.svc-detail-visual,
.svc-detail-visual *,
.hp-cta,
.hp-cta *,
.svc-cta-strip,
.svc-cta-strip *,
.ai-cta-strip,
.ai-cta-strip *,
.ind-cta-strip,
.ind-cta-strip *,
.res-cta-strip,
.res-cta-strip *,
.co-cta-strip,
.co-cta-strip *,
.site-footer,
.site-footer * {
    color: #ffffff !important;
}

/* Keep light/white buttons readable */
.btn-light,
.hp-cta .btn-light,
.svc-cta-strip .btn-light,
.ai-cta-strip .btn-light,
.ind-cta-strip .btn-light,
.res-cta-strip .btn-light,
.co-cta-strip .btn-light {
    color: #0f172a !important;
}

/* ===== FINAL FIX: Resources dark panel size + white text ===== */
html body.inner-page main.resources-single-page #case-studies .res-detail-grid,
html body.inner-page-sticky-header main.resources-single-page #case-studies .res-detail-grid,
html body.inner-page main.resources-single-page #faqs .res-detail-grid,
html body.inner-page-sticky-header main.resources-single-page #faqs .res-detail-grid {
    width: min(100% - 56px, 1360px) !important;
    max-width: 1360px !important;
    margin: 0 auto !important;
    grid-template-columns: minmax(560px, 0.95fr) minmax(560px, 1.05fr) !important;
    gap: 70px !important;
}

html body.inner-page main.resources-single-page .res-detail-card,
html body.inner-page-sticky-header main.resources-single-page .res-detail-card {
    width: 100% !important;
    max-width: 680px !important;
    min-height: 430px !important;
    padding: 62px !important;
    border-radius: 34px !important;
    background: linear-gradient(145deg, #08111f, #160a12 45%, #c40018) !important;
}

html body.inner-page main.resources-single-page .res-detail-card,
html body.inner-page main.resources-single-page .res-detail-card *,
html body.inner-page-sticky-header main.resources-single-page .res-detail-card,
html body.inner-page-sticky-header main.resources-single-page .res-detail-card * {
    color: #ffffff !important;
}

html body.inner-page main.resources-single-page .res-detail-card span,
html body.inner-page-sticky-header main.resources-single-page .res-detail-card span {
    color: rgba(255,255,255,0.78) !important;
}

html body.inner-page main.resources-single-page .res-detail-card h3,
html body.inner-page-sticky-header main.resources-single-page .res-detail-card h3 {
    color: #ffffff !important;
    font-size: clamp(30px, 2.6vw, 46px) !important;
    line-height: 1.12 !important;
    font-weight: 600 !important;
}

html body.inner-page main.resources-single-page .res-detail-card li,
html body.inner-page-sticky-header main.resources-single-page .res-detail-card li {
    color: rgba(255,255,255,0.9) !important;
}

@media (max-width: 1150px) {
    html body.inner-page main.resources-single-page #case-studies .res-detail-grid,
    html body.inner-page-sticky-header main.resources-single-page #case-studies .res-detail-grid,
    html body.inner-page main.resources-single-page #faqs .res-detail-grid,
    html body.inner-page-sticky-header main.resources-single-page #faqs .res-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 36px !important;
    }

    html body.inner-page main.resources-single-page .res-detail-card,
    html body.inner-page-sticky-header main.resources-single-page .res-detail-card {
        max-width: 100% !important;
    }
}


/* ===== FINAL POLISH: Resources case/FAQ balanced layout ===== */
html body.inner-page main.resources-single-page #case-studies .res-detail-grid,
html body.inner-page-sticky-header main.resources-single-page #case-studies .res-detail-grid,
html body.inner-page main.resources-single-page #faqs .res-detail-grid,
html body.inner-page-sticky-header main.resources-single-page #faqs .res-detail-grid {
    width: min(100% - 56px, 1400px) !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: minmax(560px, 1fr) minmax(560px, 1fr) !important;
    gap: 56px !important;
    align-items: center !important;
}

html body.inner-page main.resources-single-page .res-detail-content,
html body.inner-page-sticky-header main.resources-single-page .res-detail-content {
    max-width: 720px !important;
}

html body.inner-page main.resources-single-page .res-detail-card,
html body.inner-page-sticky-header main.resources-single-page .res-detail-card {
    max-width: 720px !important;
    min-height: 420px !important;
}

@media (max-width: 1150px) {
    html body.inner-page main.resources-single-page #case-studies .res-detail-grid,
    html body.inner-page-sticky-header main.resources-single-page #case-studies .res-detail-grid,
    html body.inner-page main.resources-single-page #faqs .res-detail-grid,
    html body.inner-page-sticky-header main.resources-single-page #faqs .res-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 36px !important;
    }
}

/* ===== FINAL FIX: Resources right panel same height alignment ===== */
html body.inner-page main.resources-single-page #case-studies .res-detail-grid,
html body.inner-page-sticky-header main.resources-single-page #case-studies .res-detail-grid,
html body.inner-page main.resources-single-page #faqs .res-detail-grid,
html body.inner-page-sticky-header main.resources-single-page #faqs .res-detail-grid {
    align-items: stretch !important;
}

html body.inner-page main.resources-single-page #case-studies .res-detail-content,
html body.inner-page-sticky-header main.resources-single-page #case-studies .res-detail-content,
html body.inner-page main.resources-single-page #faqs .res-detail-content,
html body.inner-page-sticky-header main.resources-single-page #faqs .res-detail-content,
html body.inner-page main.resources-single-page #case-studies .res-detail-card,
html body.inner-page-sticky-header main.resources-single-page #case-studies .res-detail-card,
html body.inner-page main.resources-single-page #faqs .res-detail-card,
html body.inner-page-sticky-header main.resources-single-page #faqs .res-detail-card {
    height: 100% !important;
    align-self: stretch !important;
}

html body.inner-page main.resources-single-page .res-detail-card,
html body.inner-page-sticky-header main.resources-single-page .res-detail-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-height: 100% !important;
}


/* ===== FINAL POLISH: Resources dark card inner spacing ===== */
html body.inner-page main.resources-single-page .res-detail-card,
html body.inner-page-sticky-header main.resources-single-page .res-detail-card {
    justify-content: center !important;
    gap: 26px !important;
}

html body.inner-page main.resources-single-page .res-detail-card span,
html body.inner-page-sticky-header main.resources-single-page .res-detail-card span {
    display: inline-block !important;
    margin-bottom: 8px !important;
}

html body.inner-page main.resources-single-page .res-detail-card h3,
html body.inner-page-sticky-header main.resources-single-page .res-detail-card h3 {
    margin: 0 0 16px 0 !important;
}

html body.inner-page main.resources-single-page .res-detail-card ul,
html body.inner-page-sticky-header main.resources-single-page .res-detail-card ul {
    margin-top: 12px !important;
    gap: 16px !important;
}

html body.inner-page main.resources-single-page .res-detail-card li,
html body.inner-page-sticky-header main.resources-single-page .res-detail-card li {
    line-height: 1.55 !important;
}

/* ===== HARD FIX: Resources dark card visible inner gaps ===== */
html body.inner-page main.resources-single-page .res-detail-card,
html body.inner-page-sticky-header main.resources-single-page .res-detail-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    row-gap: 0 !important;
    padding: 72px 64px !important;
}

html body.inner-page main.resources-single-page .res-detail-card > span,
html body.inner-page-sticky-header main.resources-single-page .res-detail-card > span {
    display: block !important;
    margin: 0 0 34px 0 !important;
}

html body.inner-page main.resources-single-page .res-detail-card > h3,
html body.inner-page-sticky-header main.resources-single-page .res-detail-card > h3 {
    display: block !important;
    margin: 0 0 42px 0 !important;
    max-width: 560px !important;
    font-size: clamp(30px, 2.15vw, 40px) !important;
    line-height: 1.18 !important;
}

html body.inner-page main.resources-single-page .res-detail-card > ul,
html body.inner-page-sticky-header main.resources-single-page .res-detail-card > ul {
    display: grid !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body.inner-page main.resources-single-page .res-detail-card > ul > li,
html body.inner-page-sticky-header main.resources-single-page .res-detail-card > ul > li {
    line-height: 1.65 !important;
}


/* ===== FORCE FIX: Resources dark card content spacing ===== */
html body.inner-page main.resources-single-page .res-detail-card > span,
html body.inner-page-sticky-header main.resources-single-page .res-detail-card > span {
    margin-bottom: 32px !important;
}

html body.inner-page main.resources-single-page .res-detail-card > h3,
html body.inner-page-sticky-header main.resources-single-page .res-detail-card > h3 {
    margin-top: 0 !important;
    margin-bottom: 44px !important;
}

html body.inner-page main.resources-single-page .res-detail-card > ul,
html body.inner-page-sticky-header main.resources-single-page .res-detail-card > ul {
    margin-top: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
}

html body.inner-page main.resources-single-page .res-detail-card > *,
html body.inner-page-sticky-header main.resources-single-page .res-detail-card > * {
    gap: unset !important;
}


/* ===== FINAL FIX: Resources dark panels like Services card ===== */

/* Resources hero dark card text white */
html body.inner-page main.resources-single-page .res-hero-card,
html body.inner-page main.resources-single-page .res-hero-card *,
html body.inner-page-sticky-header main.resources-single-page .res-hero-card,
html body.inner-page-sticky-header main.resources-single-page .res-hero-card * {
    color: #ffffff !important;
}

/* Resources case/FAQ dark card - make it closer to services card */
html body.inner-page main.resources-single-page .res-detail-card,
html body.inner-page-sticky-header main.resources-single-page .res-detail-card {
    max-width: 640px !important;
    min-height: 420px !important;
    padding: 56px 58px !important;
    border-radius: 30px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    background: linear-gradient(145deg, #08111f 0%, #160a12 45%, #c40018 100%) !important;
}

/* Force visible spacing between label, heading and list */
html body.inner-page main.resources-single-page .res-detail-card > span,
html body.inner-page-sticky-header main.resources-single-page .res-detail-card > span {
    display: block !important;
    color: rgba(255,255,255,0.75) !important;
    margin: 0 0 24px 0 !important;
    letter-spacing: 0.18em !important;
}

html body.inner-page main.resources-single-page .res-detail-card > h3,
html body.inner-page-sticky-header main.resources-single-page .res-detail-card > h3 {
    color: #ffffff !important;
    font-size: clamp(30px, 2.1vw, 38px) !important;
    line-height: 1.16 !important;
    font-weight: 600 !important;
    max-width: 520px !important;
    margin: 0 0 34px 0 !important;
}

html body.inner-page main.resources-single-page .res-detail-card > ul,
html body.inner-page-sticky-header main.resources-single-page .res-detail-card > ul {
    display: grid !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body.inner-page main.resources-single-page .res-detail-card > ul > li,
html body.inner-page-sticky-header main.resources-single-page .res-detail-card > ul > li {
    color: rgba(255,255,255,0.9) !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
}

/* Balance left and right columns */
html body.inner-page main.resources-single-page #case-studies .res-detail-grid,
html body.inner-page-sticky-header main.resources-single-page #case-studies .res-detail-grid,
html body.inner-page main.resources-single-page #faqs .res-detail-grid,
html body.inner-page-sticky-header main.resources-single-page #faqs .res-detail-grid {
    grid-template-columns: minmax(520px, 0.95fr) minmax(520px, 1fr) !important;
    gap: 64px !important;
    align-items: stretch !important;
}


/* ===== FINAL HARD FIX: Resources dark card inner spacing like Services ===== */
html body.inner-page main.resources-single-page .res-detail-card,
html body.inner-page-sticky-header main.resources-single-page .res-detail-card {
    display: grid !important;
    grid-template-rows: auto auto auto !important;
    align-content: center !important;
    justify-content: start !important;
    row-gap: 100px !important;
    padding: 64px 58px !important;
}

html body.inner-page main.resources-single-page .res-detail-card > span,
html body.inner-page-sticky-header main.resources-single-page .res-detail-card > span {
    margin: 0 !important;
    padding: 0 !important;
}

html body.inner-page main.resources-single-page .res-detail-card > h3,
html body.inner-page-sticky-header main.resources-single-page .res-detail-card > h3 {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 540px !important;
    font-size: clamp(30px, 2.05vw, 38px) !important;
    line-height: 1.18 !important;
}

html body.inner-page main.resources-single-page .res-detail-card > ul,
html body.inner-page-sticky-header main.resources-single-page .res-detail-card > ul {
    display: grid !important;
    gap: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body.inner-page main.resources-single-page .res-detail-card > ul > li,
html body.inner-page-sticky-header main.resources-single-page .res-detail-card > ul > li {
    line-height: 1.6 !important;
}


/* ===== FINAL FIX: Wider pill navbar on all pages ===== */
body.inner-page-sticky-header .site-header,
body.inner-page .site-header {
    width: min(100% - 56px, 1320px) !important;
}

body.inner-page-sticky-header .site-header .nav-wrap,
body.inner-page .site-header .nav-wrap {
    width: 100% !important;
    max-width: 1320px !important;
    padding: 0 34px !important;
    gap: 36px !important;
}

body.inner-page-sticky-header .site-header .site-nav,
body.inner-page .site-header .site-nav {
    gap: 34px !important;
    flex: 1 1 auto !important;
    justify-content: center !important;
}

body.inner-page-sticky-header .site-header .nav-link,
body.inner-page .site-header .nav-link {
    white-space: nowrap !important;
}

body.inner-page-sticky-header .site-header .brand,
body.inner-page .site-header .brand {
    flex: 0 0 auto !important;
}

body.inner-page-sticky-header .site-header .nav-cta,
body.inner-page .site-header .nav-cta {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}

@media (max-width: 1100px) {
    body.inner-page-sticky-header .site-header,
    body.inner-page .site-header {
        width: min(100% - 28px, 100%) !important;
    }

    body.inner-page-sticky-header .site-header .nav-wrap,
    body.inner-page .site-header .nav-wrap {
        padding: 0 20px !important;
        gap: 18px !important;
    }
}


/* ===== FINAL FIX: Industries hero dark card inner spacing ===== */
html body.inner-page main.industry-single-page .ind-hero-card,
html body.inner-page-sticky-header main.industry-single-page .ind-hero-card {
    padding: 42px !important;
    display: grid !important;
    gap: 28px !important;
}

html body.inner-page main.industry-single-page .ind-hero-card-top,
html body.inner-page-sticky-header main.industry-single-page .ind-hero-card-top {
    padding: 28px !important;
    border-radius: 24px !important;
    margin-bottom: 8px !important;
}

html body.inner-page main.industry-single-page .ind-hero-card-top h3,
html body.inner-page-sticky-header main.industry-single-page .ind-hero-card-top h3 {
    margin: 16px 0 16px !important;
    line-height: 1.25 !important;
}

html body.inner-page main.industry-single-page .ind-hero-card-top p,
html body.inner-page-sticky-header main.industry-single-page .ind-hero-card-top p {
    line-height: 1.6 !important;
}

html body.inner-page main.industry-single-page .ind-hero-stats,
html body.inner-page-sticky-header main.industry-single-page .ind-hero-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

html body.inner-page main.industry-single-page .ind-hero-stat,
html body.inner-page-sticky-header main.industry-single-page .ind-hero-stat {
    padding: 24px !important;
    border-radius: 20px !important;
}

html body.inner-page main.industry-single-page .ind-hero-stat strong,
html body.inner-page-sticky-header main.industry-single-page .ind-hero-stat strong {
    display: block !important;
    margin-bottom: 12px !important;
}


/* ===== FINAL FIX: Bigger logo inside inner page pill navbar ===== */
body.inner-page-sticky-header .site-header .brand img,
body.inner-page .site-header .brand img {
    height: 54px !important;
    max-width: 165px !important;
    object-fit: contain !important;
}

body.inner-page-sticky-header .site-header .brand,
body.inner-page .site-header .brand {
    min-width: 150px !important;
}


/* ===== FINAL RESET: Remove pill navbar effect from all inner pages ===== */
body.inner-page,
body.inner-page-sticky-header {
    padding-top: 92px !important;
}

body.inner-page .site-header,
body.inner-page-sticky-header .site-header,
body.home-page.header-scrolled .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    z-index: 9999 !important;
    background: #ffffff !important;
    border-bottom: 1px solid rgba(8,13,24,0.08) !important;
    box-shadow: none !important;
}

body.inner-page .site-header .nav-wrap,
body.inner-page-sticky-header .site-header .nav-wrap,
body.home-page.header-scrolled .site-header .nav-wrap {
    width: min(100% - 48px, 1320px) !important;
    max-width: 1320px !important;
    min-height: 88px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

body.inner-page .site-header .brand img,
body.inner-page-sticky-header .site-header .brand img,
body.home-page.header-scrolled .site-header .brand img {
    height: 58px !important;
    max-width: 170px !important;
    object-fit: contain !important;
}

body.inner-page .site-header .site-nav,
body.inner-page-sticky-header .site-header .site-nav,
body.home-page.header-scrolled .site-header .site-nav {
    gap: 34px !important;
    justify-content: center !important;
}

body.inner-page .site-header .nav-link,
body.inner-page-sticky-header .site-header .nav-link,
body.home-page.header-scrolled .site-header .nav-link {
    white-space: nowrap !important;
}

body.inner-page .site-header .nav-cta,
body.inner-page-sticky-header .site-header .nav-cta,
body.home-page.header-scrolled .site-header .nav-cta {
    border-radius: 6px !important;
    padding: 15px 28px !important;
    white-space: nowrap !important;
}


/* ===== FINAL FIX: Bigger logo on all fixed navbars ===== */
.site-header .brand {
    display: flex !important;
    align-items: center !important;
    min-width: 180px !important;
    height: 88px !important;
}

.site-header .brand img {
    display: block !important;
    width: 150px !important;
    max-width: 150px !important;
    height: auto !important;
    max-height: 72px !important;
    object-fit: contain !important;
}

.site-header .nav-wrap {
    align-items: center !important;
}

@media (max-width: 768px) {
    .site-header .brand {
        min-width: 130px !important;
    }

    .site-header .brand img {
        width: 120px !important;
        max-width: 120px !important;
    }
}

/* Light service-detail hero cards need dark copy across every dedicated page. */
body.inner-page .inner-visual-card.service-detail-card h3 {
    color: #080d18 !important;
}

body.inner-page .inner-visual-card.service-detail-card > span {
    color: #c40018 !important;
}

body.inner-page .inner-visual-card.service-detail-card .service-mini-list p {
    color: #687386 !important;
}

/* Inner-page desktop header: keep the CTA on the right edge and baseline-align it. */
@media (min-width: 981px) {
    body.inner-page .site-header > .nav-wrap,
    body.inner-page-sticky-header .site-header > .nav-wrap {
        display: flex !important;
        align-items: center !important;
    }

    body.inner-page .site-header > .nav-wrap > .site-nav,
    body.inner-page-sticky-header .site-header > .nav-wrap > .site-nav {
        flex: 1 1 auto !important;
        margin-left: auto !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 34px !important;
    }

    body.inner-page .site-header .nav-cta,
    body.inner-page-sticky-header .site-header .nav-cta {
        height: 44px !important;
        min-height: 44px !important;
        padding: 0 28px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
        margin-left: 16px !important;
    }
}

@media (min-width: 981px) and (max-width: 1200px) {
    body.inner-page .site-header > .nav-wrap > .site-nav,
    body.inner-page-sticky-header .site-header > .nav-wrap > .site-nav {
        gap: 18px !important;
    }

    body.inner-page .site-header .nav-cta,
    body.inner-page-sticky-header .site-header .nav-cta {
        margin-left: 8px !important;
        padding-inline: 22px !important;
    }
}

/* Stable desktop dropdown hover: remove the dead zone below each nav trigger. */
@media (min-width: 981px) {
    body.inner-page .site-header .nav-item.has-dropdown,
    body.inner-page-sticky-header .site-header .nav-item.has-dropdown {
        padding-bottom: 0;
        margin-bottom: -18px;
    }

    body.inner-page .site-header .nav-item.has-dropdown > .dropdown,
    body.inner-page-sticky-header .site-header .nav-item.has-dropdown > .dropdown {
        top: calc(100% - 6px) !important;
    }

    body.inner-page .site-header .dropdown::before,
    body.inner-page-sticky-header .site-header .dropdown::before {
        top: -28px;
        height: 32px;
    }
}


/* ===== HARD FIX: Scale SVG logo because SVG has extra whitespace ===== */
.site-header .brand {
    min-width: 190px !important;
    width: 190px !important;
    height: 88px !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
}

.site-header .brand img {
    width: 170px !important;
    max-width: 170px !important;
    height: 70px !important;
    max-height: 70px !important;
    object-fit: contain !important;
    transform: scale(2.25) !important;
    transform-origin: left center !important;
}


/* ===== FINAL FIX: Logo left alignment after SVG scaling ===== */
.site-header .brand {
    justify-content: flex-start !important;
    min-width: 210px !important;
    width: 210px !important;
    overflow: visible !important;
}

.site-header .brand img {
    transform: translateX(-42px) scale(2.25) !important;
    transform-origin: left center !important;
}

.site-header .nav-wrap {
    width: min(100% - 64px, 1420px) !important;
    max-width: 1420px !important;
}


/* ===== FINAL FIX: Balanced logo size on all navbars ===== */
.site-header .brand {
    min-width: 185px !important;
    width: 185px !important;
    height: 88px !important;
    overflow: visible !important;
    justify-content: flex-start !important;
    align-items: center !important;
}

.site-header .brand img {
    width: 155px !important;
    max-width: 155px !important;
    height: 64px !important;
    max-height: 64px !important;
    object-fit: contain !important;
    transform: translateX(-28px) scale(1.65) !important;
    transform-origin: left center !important;
}

/* Header logo: neutralise the older scale/translate fixes on inner pages. */
body.inner-page .site-header > .nav-wrap > .brand,
body.inner-page-sticky-header .site-header > .nav-wrap > .brand {
    flex: 0 0 120px !important;
    width: 120px !important;
    min-width: 120px !important;
    height: 88px !important;
    overflow: hidden !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

body.inner-page .site-header > .nav-wrap > .brand img,
body.inner-page-sticky-header .site-header > .nav-wrap > .brand img {
    width: 82px !important;
    max-width: 82px !important;
    height: 82px !important;
    max-height: 82px !important;
    object-fit: contain !important;
    transform: none !important;
}

@media (max-width: 768px) {
    body.inner-page .site-header > .nav-wrap > .brand,
    body.inner-page-sticky-header .site-header > .nav-wrap > .brand {
        flex-basis: 92px !important;
        width: 92px !important;
        min-width: 92px !important;
    }

    body.inner-page .site-header > .nav-wrap > .brand img,
    body.inner-page-sticky-header .site-header > .nav-wrap > .brand img {
        width: 72px !important;
        max-width: 72px !important;
        height: 72px !important;
        max-height: 72px !important;
    }
}

/* ===== MOBILE FIX: Inner page navbar responsive ===== */
@media (max-width: 768px) {
    body.inner-page,
    body.inner-page-sticky-header {
        padding-top: 76px !important;
    }

    body.inner-page .site-header,
    body.inner-page-sticky-header .site-header {
        top: 10px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px) !important;
        background: transparent !important;
        border-bottom: 0 !important;
    }

    body.inner-page .site-header .nav-wrap,
    body.inner-page-sticky-header .site-header .nav-wrap {
        min-height: 58px !important;
        height: 58px !important;
        padding: 0 14px !important;
        border-radius: 999px !important;
        background: rgba(255,255,255,0.96) !important;
        border: 1px solid rgba(8,13,24,0.08) !important;
        box-shadow: 0 16px 42px rgba(8,13,24,0.12) !important;
        justify-content: space-between !important;
    }

    body.inner-page .site-header .brand,
    body.inner-page-sticky-header .site-header .brand {
        width: 120px !important;
        min-width: 120px !important;
        height: 58px !important;
    }

    body.inner-page .site-header .brand img,
    body.inner-page-sticky-header .site-header .brand img {
        width: 105px !important;
        max-width: 105px !important;
        height: 42px !important;
        max-height: 42px !important;
        transform: translateX(-10px) scale(1.35) !important;
        transform-origin: left center !important;
    }

    body.inner-page .site-header .site-nav,
    body.inner-page-sticky-header .site-header .site-nav,
    body.inner-page .site-header .nav-cta,
    body.inner-page-sticky-header .site-header .nav-cta {
        display: none !important;
    }

    body.inner-page .site-header .nav-toggle,
    body.inner-page-sticky-header .site-header .nav-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 42px !important;
        height: 42px !important;
        border-radius: 999px !important;
        background: #c40018 !important;
        color: #ffffff !important;
        border: 0 !important;
    }
}

@media (max-width: 480px) {
    body.inner-page .site-header,
    body.inner-page-sticky-header .site-header {
        width: calc(100% - 16px) !important;
        max-width: calc(100% - 16px) !important;
        top: 8px !important;
    }

    body.inner-page .site-header .nav-wrap,
    body.inner-page-sticky-header .site-header .nav-wrap {
        min-height: 54px !important;
        height: 54px !important;
        padding: 0 12px !important;
    }

    body.inner-page .site-header .brand,
    body.inner-page-sticky-header .site-header .brand {
        width: 108px !important;
        min-width: 108px !important;
        height: 54px !important;
    }

    body.inner-page .site-header .brand img,
    body.inner-page-sticky-header .site-header .brand img {
        width: 96px !important;
        max-width: 96px !important;
        height: 38px !important;
        max-height: 38px !important;
        transform: translateX(-8px) scale(1.32) !important;
    }
}


/* ===== GLOBAL NAVBAR FINAL: same navbar on all pages ===== */
body.home-page,
body.inner-page,
body.inner-page-sticky-header {
    padding-top: 88px !important;
}

.site-header,
body.home-page .site-header,
body.home-page.header-scrolled .site-header,
body.inner-page .site-header,
body.inner-page-sticky-header .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    z-index: 9999 !important;
    background: #ffffff !important;
    border-bottom: 1px solid rgba(8,13,24,0.08) !important;
    box-shadow: none !important;
}

.site-header .nav-wrap,
body.home-page .site-header .nav-wrap,
body.home-page.header-scrolled .site-header .nav-wrap,
body.inner-page .site-header .nav-wrap,
body.inner-page-sticky-header .site-header .nav-wrap {
    width: min(100% - 64px, 1320px) !important;
    max-width: 1320px !important;
    min-height: 88px !important;
    height: 88px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 34px !important;
}

.site-header .brand,
body.home-page .site-header .brand,
body.home-page.header-scrolled .site-header .brand,
body.inner-page .site-header .brand,
body.inner-page-sticky-header .site-header .brand {
    width: 180px !important;
    min-width: 180px !important;
    height: 88px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: visible !important;
}

.site-header .brand img,
body.home-page .site-header .brand img,
body.home-page.header-scrolled .site-header .brand img,
body.inner-page .site-header .brand img,
body.inner-page-sticky-header .site-header .brand img {
    width: 145px !important;
    max-width: 145px !important;
    height: 58px !important;
    max-height: 58px !important;
    object-fit: contain !important;
    transform: translateX(-18px) scale(1.45) !important;
    transform-origin: left center !important;
}

.site-header .site-nav,
body.home-page .site-header .site-nav,
body.home-page.header-scrolled .site-header .site-nav,
body.inner-page .site-header .site-nav,
body.inner-page-sticky-header .site-header .site-nav {
    flex: 1 1 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 34px !important;
    margin-left: 0 !important;
}

.site-header .nav-link,
body.home-page .site-header .nav-link,
body.home-page.header-scrolled .site-header .nav-link,
body.inner-page .site-header .nav-link,
body.inner-page-sticky-header .site-header .nav-link {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    white-space: nowrap !important;
}

.site-header .nav-cta,
body.home-page .site-header .nav-cta,
body.home-page.header-scrolled .site-header .nav-cta,
body.inner-page .site-header .nav-cta,
body.inner-page-sticky-header .site-header .nav-cta {
    flex: 0 0 auto !important;
    border-radius: 6px !important;
    padding: 15px 30px !important;
    background: #6d151f !important;
    color: #ffffff !important;
    box-shadow: none !important;
    white-space: nowrap !important;
}

/* Remove homepage pill hero offset */
body.home-page .hero-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Mobile keeps compact navbar */
@media (max-width: 768px) {
    body.home-page,
    body.inner-page,
    body.inner-page-sticky-header {
        padding-top: 72px !important;
    }

    .site-header,
    body.home-page .site-header,
    body.home-page.header-scrolled .site-header,
    body.inner-page .site-header,
    body.inner-page-sticky-header .site-header {
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: none !important;
        background: #ffffff !important;
        border-bottom: 1px solid rgba(8,13,24,0.08) !important;
    }

    .site-header .nav-wrap,
    body.home-page .site-header .nav-wrap,
    body.home-page.header-scrolled .site-header .nav-wrap,
    body.inner-page .site-header .nav-wrap,
    body.inner-page-sticky-header .site-header .nav-wrap {
        width: min(100% - 28px, 100%) !important;
        min-height: 72px !important;
        height: 72px !important;
        padding: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        justify-content: space-between !important;
    }

    .site-header .brand,
    body.home-page .site-header .brand,
    body.inner-page .site-header .brand,
    body.inner-page-sticky-header .site-header .brand {
        width: 130px !important;
        min-width: 130px !important;
        height: 72px !important;
    }

    .site-header .brand img,
    body.home-page .site-header .brand img,
    body.inner-page .site-header .brand img,
    body.inner-page-sticky-header .site-header .brand img {
        width: 105px !important;
        max-width: 105px !important;
        height: 42px !important;
        max-height: 42px !important;
        transform: translateX(-8px) scale(1.25) !important;
    }

    .site-header .site-nav,
    .site-header .nav-cta {
        display: none !important;
    }

    .site-header .nav-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 42px !important;
        height: 42px !important;
        border-radius: 999px !important;
        background: #c40018 !important;
        color: #ffffff !important;
        border: 0 !important;
    }
}


/* ===== GLOBAL FINAL: Pill navbar on whole site ===== */
body.home-page,
body.inner-page,
body.inner-page-sticky-header {
    padding-top: 112px !important;
}

.site-header,
body.home-page .site-header,
body.home-page.header-scrolled .site-header,
body.inner-page .site-header,
body.inner-page-sticky-header .site-header {
    position: fixed !important;
    top: 18px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: min(100% - 80px, 1500px) !important;
    max-width: 1500px !important;
    z-index: 9999 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.site-header .nav-wrap,
body.home-page .site-header .nav-wrap,
body.home-page.header-scrolled .site-header .nav-wrap,
body.inner-page .site-header .nav-wrap,
body.inner-page-sticky-header .site-header .nav-wrap {
    width: 100% !important;
    max-width: 1500px !important;
    min-height: 72px !important;
    height: 72px !important;
    margin: 0 auto !important;
    padding: 0 32px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(8, 13, 24, 0.08) !important;
    box-shadow: 0 20px 55px rgba(8, 13, 24, 0.12) !important;
    backdrop-filter: blur(18px) !important;
    display: flex !important;
    align-items: center !important;
    gap: 34px !important;
}

.site-header .brand,
body.home-page .site-header .brand,
body.home-page.header-scrolled .site-header .brand,
body.inner-page .site-header .brand,
body.inner-page-sticky-header .site-header .brand {
    width: 170px !important;
    min-width: 170px !important;
    height: 72px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: visible !important;
}

.site-header .brand img,
body.home-page .site-header .brand img,
body.home-page.header-scrolled .site-header .brand img,
body.inner-page .site-header .brand img,
body.inner-page-sticky-header .site-header .brand img {
    width: 135px !important;
    max-width: 135px !important;
    height: 54px !important;
    max-height: 54px !important;
    object-fit: contain !important;
    transform: translateX(-16px) scale(1.42) !important;
    transform-origin: left center !important;
}

.site-header .site-nav,
body.home-page .site-header .site-nav,
body.home-page.header-scrolled .site-header .site-nav,
body.inner-page .site-header .site-nav,
body.inner-page-sticky-header .site-header .site-nav {
    flex: 1 1 auto !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 34px !important;
    margin-left: auto !important;
}

.site-header .nav-link,
body.home-page .site-header .nav-link,
body.home-page.header-scrolled .site-header .nav-link,
body.inner-page .site-header .nav-link,
body.inner-page-sticky-header .site-header .nav-link {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    white-space: nowrap !important;
}

.site-header .nav-cta,
body.home-page .site-header .nav-cta,
body.home-page.header-scrolled .site-header .nav-cta,
body.inner-page .site-header .nav-cta,
body.inner-page-sticky-header .site-header .nav-cta {
    flex: 0 0 auto !important;
    margin-left: 22px !important;
    border-radius: 999px !important;
    padding: 13px 30px !important;
    background: #72141f !important;
    color: #ffffff !important;
    box-shadow: 0 14px 30px rgba(196,0,24,0.18) !important;
    white-space: nowrap !important;
}

/* Mobile pill navbar */
@media (max-width: 768px) {
    body.home-page,
    body.inner-page,
    body.inner-page-sticky-header {
        padding-top: 78px !important;
    }

    .site-header,
    body.home-page .site-header,
    body.home-page.header-scrolled .site-header,
    body.inner-page .site-header,
    body.inner-page-sticky-header .site-header {
        top: 10px !important;
        width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px) !important;
    }

    .site-header .nav-wrap,
    body.home-page .site-header .nav-wrap,
    body.home-page.header-scrolled .site-header .nav-wrap,
    body.inner-page .site-header .nav-wrap,
    body.inner-page-sticky-header .site-header .nav-wrap {
        height: 58px !important;
        min-height: 58px !important;
        padding: 0 14px !important;
        border-radius: 999px !important;
        justify-content: space-between !important;
    }

    .site-header .brand,
    body.home-page .site-header .brand,
    body.inner-page .site-header .brand,
    body.inner-page-sticky-header .site-header .brand {
        width: 115px !important;
        min-width: 115px !important;
        height: 58px !important;
    }

    .site-header .brand img,
    body.home-page .site-header .brand img,
    body.inner-page .site-header .brand img,
    body.inner-page-sticky-header .site-header .brand img {
        width: 96px !important;
        max-width: 96px !important;
        height: 38px !important;
        max-height: 38px !important;
        transform: translateX(-8px) scale(1.28) !important;
    }

    .site-header .site-nav,
    .site-header .nav-cta {
        display: none !important;
    }

    .site-header .nav-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 42px !important;
        height: 42px !important;
        border-radius: 999px !important;
        background: #c40018 !important;
        color: #ffffff !important;
        border: 0 !important;
    }
}


/* ===== FINAL FIX: Navbar logo clean fit inside pill ===== */
.site-header .brand,
body.home-page .site-header .brand,
body.home-page.header-scrolled .site-header .brand,
body.inner-page .site-header .brand,
body.inner-page-sticky-header .site-header .brand {
    width: 145px !important;
    min-width: 145px !important;
    height: 72px !important;
    max-height: 72px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
}

.site-header .brand img,
body.home-page .site-header .brand img,
body.home-page.header-scrolled .site-header .brand img,
body.inner-page .site-header .brand img,
body.inner-page-sticky-header .site-header .brand img {
    display: block !important;
    width: 118px !important;
    max-width: 118px !important;
    height: auto !important;
    max-height: 54px !important;
    object-fit: contain !important;
    transform: translateX(-4px) scale(1.22) !important;
    transform-origin: left center !important;
}

/* =====================================================
   FINAL SITE-WIDE RESPONSIVE SAFETY LAYER
   Kept last so older overrides cannot re-enable desktop UI.
===================================================== */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip !important;
}

img,
video,
canvas,
iframe {
    max-width: 100%;
}

img,
video,
canvas {
    height: auto;
}

main,
section,
article,
.container,
.inner-container,
.svc-container,
.ai-container,
.ind-container,
.res-container,
.co-container,
.ct-container {
    min-width: 0;
}

@media (max-width: 1100px) {
    body.inner-page,
    body.inner-page-sticky-header {
        padding-top: 78px !important;
    }

    body.inner-page .site-header,
    body.inner-page-sticky-header .site-header {
        position: fixed !important;
        top: 10px !important;
        left: 50% !important;
        width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px) !important;
        transform: translateX(-50%) !important;
        background: transparent !important;
        border: 0 !important;
    }

    body.inner-page .site-header .nav-wrap,
    body.inner-page-sticky-header .site-header .nav-wrap {
        width: 100% !important;
        max-width: 100% !important;
        height: 58px !important;
        min-height: 58px !important;
        padding: 0 14px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        border: 1px solid rgba(8,13,24,.08) !important;
        border-radius: 999px !important;
        background: rgba(255,255,255,.97) !important;
        box-shadow: 0 14px 38px rgba(8,13,24,.12) !important;
    }

    body.inner-page .site-header .site-nav,
    body.inner-page-sticky-header .site-header .site-nav,
    body.inner-page .site-header .nav-cta,
    body.inner-page-sticky-header .site-header .nav-cta {
        display: none !important;
    }

    body.inner-page .site-header .nav-toggle,
    body.inner-page-sticky-header .site-header .nav-toggle {
        width: 42px !important;
        height: 42px !important;
        padding: 10px !important;
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        border: 0 !important;
        border-radius: 50% !important;
        background: #c40018 !important;
    }

    body.inner-page .site-header .nav-toggle span,
    body.inner-page-sticky-header .site-header .nav-toggle span {
        width: 20px !important;
        height: 2px !important;
        display: block !important;
        background: #ffffff !important;
    }

    .calendly-badge-widget {
        display: none !important;
    }

    .svc-hero-card,
    .ai-hero-card,
    .ind-hero-card,
    .res-hero-card,
    .co-hero-card,
    .inner-visual-card,
    .ct-hero-right {
        width: min(100%, 620px) !important;
        margin-inline: auto !important;
        justify-self: center !important;
    }
}

@media (max-width: 600px) {
    .inner-hero-actions,
    .svc-hero-actions,
    .ai-hero-actions,
    .ind-hero-actions,
    .res-hero-actions,
    .co-hero-actions {
        width: 100%;
        align-items: stretch !important;
        flex-direction: column !important;
    }

    .inner-hero-actions a,
    .svc-hero-actions a,
    .ai-hero-actions a,
    .ind-hero-actions a,
    .res-hero-actions a,
    .co-hero-actions a {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }
}

/* ===== FINAL FIX: Stop logo shifting on scroll ===== */
.site-header .nav-wrap {
    display: flex !important;
    align-items: center !important;
}

.site-header .brand,
.site-header.header-scrolled .brand,
body.header-scrolled .site-header .brand,
body.home-page.header-scrolled .site-header .brand {
    flex: 0 0 190px !important;
    width: 190px !important;
    min-width: 190px !important;
    height: 82px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    transform: none !important;
    overflow: visible !important;
}

.site-header .brand img,
.site-header.header-scrolled .brand img,
body.header-scrolled .site-header .brand img,
body.home-page.header-scrolled .site-header .brand img {
    width: 138px !important;
    max-width: 138px !important;
    height: auto !important;
    max-height: 62px !important;
    object-fit: contain !important;
    display: block !important;
    transform: translateX(-18px) scale(1.35) !important;
    transform-origin: left center !important;
    margin: 0 !important;
}

/* Make desktop nav stay centered without pushing logo */
.site-header .site-nav {
    flex: 1 1 auto !important;
    justify-content: center !important;
}

.site-header .nav-cta {
    flex: 0 0 auto !important;
}

/* Mobile logo should not be oversized */
@media (max-width: 768px) {
    .site-header .brand,
    .site-header.header-scrolled .brand,
    body.header-scrolled .site-header .brand,
    body.home-page.header-scrolled .site-header .brand {
        flex: 0 0 135px !important;
        width: 135px !important;
        min-width: 135px !important;
        height: 68px !important;
    }

    .site-header .brand img,
    .site-header.header-scrolled .brand img,
    body.header-scrolled .site-header .brand img,
    body.home-page.header-scrolled .site-header .brand img {
        width: 105px !important;
        max-width: 105px !important;
        max-height: 48px !important;
        transform: translateX(-10px) scale(1.18) !important;
    }
}


/* ===== GLOBAL SAFETY: Keep logo stable inside pill navbar ===== */
.site-header .nav-wrap {
    position: relative !important;
}

@media (min-width: 901px) {
    .site-header .brand {
        flex-shrink: 0 !important;
    }

    .site-header .brand img {
        object-fit: contain !important;
        margin: 0 !important;
    }
}


/* =========================================================
   HOME PAGE ONLY — FINAL LOGO POSITION LOCK
   Normal + scrolled state must look exactly same
========================================================= */

html body.home-page header.site-header#siteHeader .nav-wrap,
html body.home-page.header-scrolled header.site-header#siteHeader .nav-wrap,
html body.home-page header.site-header#siteHeader.header-scrolled .nav-wrap,
html body.home-page.header-scrolled header.site-header#siteHeader.header-scrolled .nav-wrap {
    position: relative !important;
}

/* Lock logo container */
html body.home-page header.site-header#siteHeader .brand,
html body.home-page.header-scrolled header.site-header#siteHeader .brand,
html body.home-page header.site-header#siteHeader.header-scrolled .brand,
html body.home-page.header-scrolled header.site-header#siteHeader.header-scrolled .brand {
    position: absolute !important;
    left: 42px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;

    width: 145px !important;
    min-width: 145px !important;
    max-width: 145px !important;

    height: 70px !important;
    min-height: 70px !important;
    max-height: 70px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    overflow: visible !important;
    flex: none !important;
    z-index: 20 !important;
}

/* Lock actual logo image */
html body.home-page header.site-header#siteHeader .brand img,
html body.home-page.header-scrolled header.site-header#siteHeader .brand img,
html body.home-page header.site-header#siteHeader.header-scrolled .brand img,
html body.home-page.header-scrolled header.site-header#siteHeader.header-scrolled .brand img {
    width: 104px !important;
    min-width: 104px !important;
    max-width: 104px !important;

    height: auto !important;
    min-height: auto !important;
    max-height: 54px !important;

    object-fit: contain !important;
    object-position: left center !important;

    transform: none !important;
    translate: none !important;
    scale: none !important;

    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* Nav center should not push logo */
html body.home-page header.site-header#siteHeader .site-nav,
html body.home-page.header-scrolled header.site-header#siteHeader .site-nav,
html body.home-page header.site-header#siteHeader.header-scrolled .site-nav,
html body.home-page.header-scrolled header.site-header#siteHeader.header-scrolled .site-nav {
    flex: 1 1 auto !important;
    justify-content: center !important;
    padding-left: 160px !important;
    padding-right: 185px !important;
}

/* CTA right lock */
html body.home-page header.site-header#siteHeader .nav-cta,
html body.home-page.header-scrolled header.site-header#siteHeader .nav-cta,
html body.home-page header.site-header#siteHeader.header-scrolled .nav-cta,
html body.home-page.header-scrolled header.site-header#siteHeader.header-scrolled .nav-cta {
    position: absolute !important;
    right: 42px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
}

/* Mobile: don't use absolute logo */
@media (max-width: 900px) {
    html body.home-page header.site-header#siteHeader .brand,
    html body.home-page.header-scrolled header.site-header#siteHeader .brand,
    html body.home-page header.site-header#siteHeader.header-scrolled .brand,
    html body.home-page.header-scrolled header.site-header#siteHeader.header-scrolled .brand {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;

        width: 118px !important;
        min-width: 118px !important;
        max-width: 118px !important;
        height: 62px !important;
        min-height: 62px !important;
        max-height: 62px !important;
    }

    html body.home-page header.site-header#siteHeader .brand img,
    html body.home-page.header-scrolled header.site-header#siteHeader .brand img,
    html body.home-page header.site-header#siteHeader.header-scrolled .brand img,
    html body.home-page.header-scrolled header.site-header#siteHeader.header-scrolled .brand img {
        width: 92px !important;
        max-width: 92px !important;
        max-height: 44px !important;
    }

    html body.home-page header.site-header#siteHeader .site-nav,
    html body.home-page.header-scrolled header.site-header#siteHeader .site-nav,
    html body.home-page header.site-header#siteHeader.header-scrolled .site-nav,
    html body.home-page.header-scrolled header.site-header#siteHeader.header-scrolled .site-nav {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    html body.home-page header.site-header#siteHeader .nav-cta,
    html body.home-page.header-scrolled header.site-header#siteHeader .nav-cta,
    html body.home-page header.site-header#siteHeader.header-scrolled .nav-cta,
    html body.home-page.header-scrolled header.site-header#siteHeader.header-scrolled .nav-cta {
        position: static !important;
        transform: none !important;
    }
}


/* ===== FINAL FIX: Footer social buttons dark blue old effect ===== */
.site-footer .footer-social,
.site-footer .footer-socials,
.site-footer .social-links,
.site-footer .footer-social-links {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.site-footer .footer-social a,
.site-footer .footer-socials a,
.site-footer .social-links a,
.site-footer .footer-social-links a,
.site-footer a.footer-social-btn,
.site-footer a.footer-social-upwork {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 12px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: #0b1220 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    box-shadow: 0 12px 28px rgba(0,0,0,0.24) !important;

    text-decoration: none !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease !important;
}

.site-footer .footer-social a i,
.site-footer .footer-socials a i,
.site-footer .social-links a i,
.site-footer .footer-social-links a i,
.site-footer a.footer-social-btn i,
.site-footer a.footer-social-upwork i {
    color: #ffffff !important;
    font-size: 15px !important;
    line-height: 1 !important;
}

.site-footer .footer-social a:hover,
.site-footer .footer-socials a:hover,
.site-footer .social-links a:hover,
.site-footer .footer-social-links a:hover,
.site-footer a.footer-social-btn:hover,
.site-footer a.footer-social-upwork:hover {
    background: #111b31 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 18px 36px rgba(0,0,0,0.32) !important;
}

/* Upwork text/icon also white */
.site-footer a.footer-social-upwork,
.site-footer a.footer-social-upwork span {
    color: #ffffff !important;
    font-weight: 800 !important;
}


/* ===== FINAL FIX: Footer social hover like live site ===== */

.site-footer .footer-social-btn,
.site-footer .footer-social-upwork,
.site-footer a.footer-social-btn,
.site-footer a.footer-social-upwork {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border-radius: 8px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: #071120 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    box-shadow: 0 10px 24px rgba(0,0,0,0.22) !important;

    text-decoration: none !important;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease !important;
}

.site-footer .footer-social-btn i,
.site-footer .footer-social-upwork i,
.site-footer .footer-social-upwork svg,
.site-footer .footer-social-upwork svg path,
.site-footer .footer-social-btn svg,
.site-footer .footer-social-btn svg path {
    color: #ffffff !important;
    fill: currentColor !important;
    stroke: currentColor !important;
}

.site-footer .footer-social-btn:hover,
.site-footer a.footer-social-btn:hover {
    background: #0A66C2 !important;
    border-color: #0A66C2 !important;
    color: #ffffff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 16px 34px rgba(10,102,194,0.36) !important;
}

.site-footer .footer-social-upwork:hover,
.site-footer a.footer-social-upwork:hover {
    background: #14A800 !important;
    border-color: #14A800 !important;
    color: #ffffff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 16px 34px rgba(20,168,0,0.34) !important;
}

.site-footer .footer-social-upwork:hover svg,
.site-footer .footer-social-upwork:hover svg path,
.site-footer .footer-social-btn:hover svg,
.site-footer .footer-social-btn:hover svg path {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
}


/* ===== FINAL FIX: Dark footer theme with white text ===== */
html body .site-footer {
    background: #071120 !important;
    background-color: #071120 !important;
    color: #ffffff !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
}

html body .site-footer *,
html body .site-footer p,
html body .site-footer h1,
html body .site-footer h2,
html body .site-footer h3,
html body .site-footer h4,
html body .site-footer span,
html body .site-footer small,
html body .site-footer li,
html body .site-footer a {
    color: #ffffff !important;
}

html body .site-footer .footer-tagline,
html body .site-footer .footer-brand p,
html body .site-footer .footer-contact-col p,
html body .site-footer .footer-bottom,
html body .site-footer .footer-bottom * {
    color: rgba(255,255,255,0.78) !important;
}

html body .site-footer .footer-nav-col h4,
html body .site-footer .footer-contact-col h4 {
    color: #ffffff !important;
    letter-spacing: 0.16em !important;
}

html body .site-footer .footer-nav-col a:hover,
html body .site-footer .footer-bottom a:hover {
    color: #ffffff !important;
    opacity: 0.78 !important;
}

html body .site-footer .footer-inner,
html body .site-footer .footer-bottom {
    border-color: rgba(255,255,255,0.10) !important;
}

html body .site-footer .footer-social-btn,
html body .site-footer .footer-social-upwork {
    background: #0b1220 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
}

html body .site-footer .footer-social-btn:hover {
    background: #0A66C2 !important;
    border-color: #0A66C2 !important;
    color: #ffffff !important;
}

html body .site-footer .footer-social-upwork:hover {
    background: #14A800 !important;
    border-color: #14A800 !important;
    color: #ffffff !important;
}

html body .site-footer .footer-social-btn svg,
html body .site-footer .footer-social-btn svg path,
html body .site-footer .footer-social-upwork svg,
html body .site-footer .footer-social-upwork svg path {
    color: #ffffff !important;
    fill: currentColor !important;
    stroke: currentColor !important;
}

/* =====================================================
   SITE-WIDE HEADER + FOOTER AUTHORITY
   Loaded after page CSS from header.php. Keep homepage and
   inner pages visually identical from this point down.
===================================================== */

html body.home-page,
html body.inner-page,
html body.inner-page-sticky-header {
    padding-top: 112px !important;
}

html body header.site-header#siteHeader {
    width: min(calc(100% - 80px), 1500px) !important;
    max-width: 1500px !important;
    height: auto !important;
    min-height: 0 !important;
    position: fixed !important;
    top: 18px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    z-index: 9999 !important;
}

html body header.site-header#siteHeader > .nav-wrap {
    width: 100% !important;
    max-width: 1500px !important;
    height: 72px !important;
    min-height: 72px !important;
    margin: 0 auto !important;
    padding: 0 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 30px !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(8, 13, 24, 0.08) !important;
    border-radius: 999px !important;
    box-shadow: 0 20px 55px rgba(8, 13, 24, 0.12) !important;
    backdrop-filter: blur(18px) !important;
}

html body header.site-header#siteHeader .brand,
html body.home-page header.site-header#siteHeader .brand,
html body.home-page.header-scrolled header.site-header#siteHeader .brand,
html body header.site-header#siteHeader.header-scrolled .brand {
    position: static !important;
    flex: 0 0 150px !important;
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    height: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: visible !important;
    transform: none !important;
}

html body header.site-header#siteHeader .brand img,
html body.home-page header.site-header#siteHeader .brand img,
html body.home-page.header-scrolled header.site-header#siteHeader .brand img,
html body header.site-header#siteHeader.header-scrolled .brand img {
    width: 118px !important;
    min-width: 118px !important;
    max-width: 118px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 54px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform: translateX(-4px) scale(1.22) !important;
    transform-origin: left center !important;
}

html body header.site-header#siteHeader .site-nav,
html body.home-page header.site-header#siteHeader .site-nav,
html body.home-page.header-scrolled header.site-header#siteHeader .site-nav,
html body header.site-header#siteHeader.header-scrolled .site-nav {
    position: static !important;
    flex: 1 1 auto !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 32px !important;
}

html body header.site-header#siteHeader .site-nav > .nav-item,
html body header.site-header#siteHeader .site-nav > a {
    flex: 0 0 auto !important;
    margin: 0 !important;
}

html body header.site-header#siteHeader .nav-link,
html body header.site-header#siteHeader .site-nav > .nav-item > .nav-link {
    height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #111827 !important;
    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    text-transform: none !important;
    white-space: nowrap !important;
}

html body header.site-header#siteHeader .nav-chevron {
    width: 10px !important;
    height: 6px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
}

html body header.site-header#siteHeader .site-nav > a.nav-cta,
html body.home-page header.site-header#siteHeader .site-nav > a.nav-cta,
html body.home-page.header-scrolled header.site-header#siteHeader .site-nav > a.nav-cta,
html body header.site-header#siteHeader.header-scrolled .site-nav > a.nav-cta {
    position: static !important;
    flex: 0 0 auto !important;
    min-width: 158px !important;
    height: 46px !important;
    margin: 0 0 0 6px !important;
    padding: 0 26px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #72141f !important;
    color: #ffffff !important;
    box-shadow: 0 14px 30px rgba(196, 0, 24, 0.18) !important;
    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    text-transform: none !important;
    white-space: nowrap !important;
    transform: none !important;
}

html body header.site-header#siteHeader .dropdown {
    top: calc(100% + 12px) !important;
}

html body header.site-header#siteHeader .dropdown a {
    color: #111827 !important;
    font-family: "Manrope", Arial, sans-serif !important;
    text-transform: none !important;
}

html body .site-footer {
    margin-top: 0 !important;
    padding: 72px 0 28px !important;
}

html body .site-footer .footer-inner {
    width: min(calc(100% - 48px), 1320px) !important;
    max-width: 1320px !important;
    margin: 0 auto !important;
}

html body .site-footer .footer-grid {
    display: grid !important;
    grid-template-columns: minmax(220px, 1.2fr) repeat(5, minmax(130px, 1fr)) !important;
    gap: 36px !important;
    align-items: start !important;
}

html body .site-footer .footer-logo-icon {
    width: 118px !important;
    max-width: 118px !important;
    height: auto !important;
    display: block !important;
}

html body .site-footer .footer-socials {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

html body .site-footer .footer-bottom {
    margin-top: 44px !important;
    padding-top: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.10) !important;
}

@media (max-width: 1180px) {
    html body header.site-header#siteHeader .site-nav {
        gap: 20px !important;
    }

    html body header.site-header#siteHeader .nav-link,
    html body header.site-header#siteHeader .site-nav > a.nav-cta {
        font-size: 14px !important;
    }

    html body header.site-header#siteHeader .site-nav > a.nav-cta {
        min-width: 144px !important;
        padding: 0 20px !important;
    }

    html body .site-footer .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 900px) {
    html body.home-page,
    html body.inner-page,
    html body.inner-page-sticky-header {
        padding-top: 78px !important;
    }

    html body header.site-header#siteHeader {
        top: 10px !important;
        width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px) !important;
    }

    html body header.site-header#siteHeader > .nav-wrap {
        height: 58px !important;
        min-height: 58px !important;
        padding: 0 14px !important;
        justify-content: space-between !important;
        gap: 12px !important;
    }

    html body header.site-header#siteHeader .brand,
    html body.home-page header.site-header#siteHeader .brand,
    html body.home-page.header-scrolled header.site-header#siteHeader .brand {
        flex: 0 0 118px !important;
        width: 118px !important;
        min-width: 118px !important;
        max-width: 118px !important;
        height: 58px !important;
        min-height: 58px !important;
        max-height: 58px !important;
    }

    html body header.site-header#siteHeader .brand img,
    html body.home-page header.site-header#siteHeader .brand img,
    html body.home-page.header-scrolled header.site-header#siteHeader .brand img {
        width: 92px !important;
        min-width: 92px !important;
        max-width: 92px !important;
        max-height: 44px !important;
        transform: translateX(-8px) scale(1.18) !important;
    }

    html body header.site-header#siteHeader .site-nav,
    html body header.site-header#siteHeader .site-nav > a.nav-cta {
        display: none !important;
    }

    html body header.site-header#siteHeader .nav-toggle {
        width: 42px !important;
        height: 42px !important;
        padding: 10px !important;
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        border: 0 !important;
        border-radius: 50% !important;
        background: #c40018 !important;
    }

    html body header.site-header#siteHeader .nav-toggle span {
        width: 20px !important;
        height: 2px !important;
        display: block !important;
        background: #ffffff !important;
    }

    html body .site-footer {
        padding-top: 52px !important;
    }

    html body .site-footer .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 30px !important;
    }
}

@media (max-width: 640px) {
    html body .site-footer .footer-inner {
        width: min(calc(100% - 32px), 100%) !important;
    }

    html body .site-footer .footer-grid {
        grid-template-columns: 1fr !important;
    }

    html body .site-footer .footer-bottom {
        align-items: flex-start !important;
        flex-direction: column !important;
    }
}

/* =====================================================
   INDEX MATCH: HEADER + FOOTER ACROSS THE WHOLE SITE
   Mirrors the final index.php/product-homepage.css header
   and footer rules for every page.
===================================================== */

html body.home-page {
    padding-top: 0 !important;
}

html body.inner-page,
html body.inner-page-sticky-header {
    padding-top: 108px !important;
}

html body header.site-header#siteHeader,
html body.home-page.header-scrolled header.site-header#siteHeader,
html body header.site-header#siteHeader.header-scrolled {
    position: fixed !important;
    top: 14px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    z-index: 9999 !important;
}

html body header.site-header#siteHeader > .nav-wrap,
html body.home-page.header-scrolled header.site-header#siteHeader > .nav-wrap,
html body header.site-header#siteHeader.header-scrolled > .nav-wrap {
    width: min(100% - 38px, 1690px) !important;
    max-width: 1690px !important;
    height: 88px !important;
    min-height: 88px !important;
    margin: 0 auto !important;
    padding: 0 62px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0 !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.97) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 999px !important;
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.08),
        0 8px 24px rgba(196, 0, 24, 0.04) !important;
    backdrop-filter: blur(18px) !important;
}

html body header.site-header#siteHeader > .nav-wrap > .brand,
html body.home-page.header-scrolled header.site-header#siteHeader > .nav-wrap > .brand,
html body header.site-header#siteHeader.header-scrolled > .nav-wrap > .brand {
    position: absolute !important;
    left: 62px !important;
    top: 50% !important;
    flex: none !important;
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: visible !important;
    transform: translateY(-50%) !important;
}

html body header.site-header#siteHeader > .nav-wrap > .brand img,
html body.home-page.header-scrolled header.site-header#siteHeader > .nav-wrap > .brand img,
html body header.site-header#siteHeader.header-scrolled > .nav-wrap > .brand img {
    width: 112px !important;
    max-width: 98px !important;
    height: auto !important;
    max-height: 112px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform: none !important;
}

html body header.site-header#siteHeader > .nav-wrap > .site-nav,
html body.home-page.header-scrolled header.site-header#siteHeader > .nav-wrap > .site-nav,
html body header.site-header#siteHeader.header-scrolled > .nav-wrap > .site-nav {
    position: static !important;
    flex: 0 1 auto !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
}

html body header.site-header#siteHeader .site-nav > .nav-item,
html body header.site-header#siteHeader .site-nav > a {
    flex: 0 0 auto !important;
    margin: 0 !important;
}

html body header.site-header#siteHeader .site-nav > .nav-item > .nav-link,
html body header.site-header#siteHeader .site-nav a.nav-link {
    height: 52px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #111827 !important;
    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    text-transform: none !important;
    white-space: nowrap !important;
}

html body header.site-header#siteHeader .nav-chevron {
    width: 10px !important;
    height: 6px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
}

html body header.site-header#siteHeader > .nav-wrap > .site-nav > a.nav-cta,
html body.home-page.header-scrolled header.site-header#siteHeader > .nav-wrap > .site-nav > a.nav-cta,
html body header.site-header#siteHeader.header-scrolled > .nav-wrap > .site-nav > a.nav-cta {
    position: static !important;
    flex: 0 0 auto !important;
    min-width: 160px !important;
    height: 52px !important;
    margin: 0 0 0 18px !important;
    padding: 0 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #8f1020 !important;
    color: #ffffff !important;
    box-shadow: 0 12px 28px rgba(143, 16, 32, 0.18) !important;
    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    text-transform: none !important;
    white-space: nowrap !important;
    transform: none !important;
}

html body header.site-header#siteHeader .site-nav > a.nav-cta,
html body header.site-header#siteHeader .site-nav > a.nav-cta:visited,
html body header.site-header#siteHeader .site-nav > a.nav-cta:hover,
html body header.site-header#siteHeader .site-nav > a.nav-cta:focus,
html body header.site-header#siteHeader .site-nav > a.nav-cta * {
    color: #ffffff !important;
}

html body header.site-header#siteHeader .dropdown {
    top: calc(100% + 2px) !important;
}

html body header.site-header#siteHeader .dropdown a {
    display: block !important;
    height: auto !important;
    color: #111827 !important;
    font-family: "Manrope", Arial, sans-serif !important;
    line-height: 1.3 !important;
    text-transform: none !important;
}

html body .site-footer {
    padding: 34px 0 0 !important;
    background: #071120 !important;
    background-color: #071120 !important;
    color: #b8c4d4 !important;
    font-family: "Manrope", Arial, sans-serif !important;
}

html body .site-footer .footer-inner {
    width: min(1280px, calc(100% - 48px)) !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 52px 0 0 !important;
}

html body .site-footer .footer-grid {
    display: grid !important;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr 1.4fr !important;
    gap: 40px !important;
    padding-bottom: 44px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html body .site-footer .footer-logo-icon {
    width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    border-radius: 6px !important;
}

html body .site-footer .footer-tagline {
    max-width: 220px !important;
}

html body .site-footer .footer-bottom {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 38px !important;
    margin-top: 0 !important;
    padding: 18px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.10) !important;
}

html body .site-footer .footer-bottom-links,
html body .site-footer .footer-bottom div {
    display: flex !important;
    gap: 26px !important;
}

@media (max-width: 1180px) {
    html body header.site-header#siteHeader > .nav-wrap,
    html body.home-page.header-scrolled header.site-header#siteHeader > .nav-wrap,
    html body header.site-header#siteHeader.header-scrolled > .nav-wrap {
        width: calc(100% - 44px) !important;
        max-width: none !important;
        height: 74px !important;
        min-height: 74px !important;
        padding: 0 22px !important;
    }

    html body .site-footer .footer-grid {
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 32px !important;
    }

    html body .site-footer .footer-brand-col {
        grid-column: 1 / -1 !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        gap: 24px !important;
    }

    html body .site-footer .footer-tagline {
        max-width: 320px !important;
    }
}

@media (max-width: 980px) {
    html body.home-page,
    html body.inner-page,
    html body.inner-page-sticky-header {
        padding-top: 88px !important;
    }

    html body header.site-header#siteHeader > .nav-wrap,
    html body.home-page.header-scrolled header.site-header#siteHeader > .nav-wrap,
    html body header.site-header#siteHeader.header-scrolled > .nav-wrap {
        width: calc(100% - 24px) !important;
        height: 68px !important;
        min-height: 68px !important;
        padding: 0 18px !important;
        justify-content: space-between !important;
    }

    html body header.site-header#siteHeader > .nav-wrap > .brand,
    html body.home-page.header-scrolled header.site-header#siteHeader > .nav-wrap > .brand,
    html body header.site-header#siteHeader.header-scrolled > .nav-wrap > .brand {
        position: static !important;
        flex: 0 0 116px !important;
        width: 116px !important;
        min-width: 116px !important;
        max-width: 116px !important;
        height: 64px !important;
        min-height: 64px !important;
        max-height: 64px !important;
        transform: none !important;
    }

    html body header.site-header#siteHeader > .nav-wrap > .site-nav {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    html body header.site-header#siteHeader .nav-toggle {
        position: absolute !important;
        right: 18px !important;
        top: 50% !important;
        width: 42px !important;
        height: 42px !important;
        margin-left: auto !important;
        padding: 10px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        visibility: visible !important;
        pointer-events: auto !important;
        border: 0 !important;
        border-radius: 50% !important;
        background: #c40018 !important;
        transform: translateY(-50%) !important;
        z-index: 20 !important;
    }

    html body header.site-header#siteHeader .nav-toggle span {
        width: 20px !important;
        height: 2px !important;
        display: block !important;
        background: #ffffff !important;
    }
}

@media (max-width: 700px) {
    html body .site-footer .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 28px !important;
    }

    html body .site-footer .footer-brand-col {
        flex-direction: column !important;
        gap: 10px !important;
    }

    html body .site-footer .footer-bottom {
        flex-direction: column !important;
        gap: 10px !important;
        text-align: center !important;
    }

    html body .site-footer .footer-bottom-links {
        justify-content: center !important;
    }
}

@media (max-width: 420px) {
    html body .site-footer .footer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =====================================================
   ABSOLUTE LAST WORD: index header/footer on every page
   Fixes inner pages that were still inheriting narrow shells.
===================================================== */

@media (min-width: 981px) {
    html body.home-page header.site-header#siteHeader,
    html body.inner-page header.site-header#siteHeader,
    html body.inner-page-sticky-header header.site-header#siteHeader,
    html body.home-page.header-scrolled header.site-header#siteHeader,
    html body header.site-header#siteHeader.header-scrolled {
        position: fixed !important;
        inset: 14px 0 auto 0 !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        z-index: 99999 !important;
    }

    html body.home-page header.site-header#siteHeader > .nav-wrap,
    html body.inner-page header.site-header#siteHeader > .nav-wrap,
    html body.inner-page-sticky-header header.site-header#siteHeader > .nav-wrap,
    html body.home-page.header-scrolled header.site-header#siteHeader > .nav-wrap,
    html body header.site-header#siteHeader.header-scrolled > .nav-wrap {
        width: calc(100vw - 24px) !important;
        max-width: none !important;
        min-width: 0 !important;
        height: 88px !important;
        min-height: 88px !important;
        margin: 0 auto !important;
        padding: 0 62px !important;
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 0 !important;
        box-sizing: border-box !important;
        background: rgba(255, 255, 255, 0.97) !important;
        border: 1px solid rgba(15, 23, 42, 0.08) !important;
        border-radius: 999px !important;
        box-shadow:
            0 18px 45px rgba(15, 23, 42, 0.08),
            0 8px 24px rgba(196, 0, 24, 0.04) !important;
        backdrop-filter: blur(18px) !important;
    }

    html body.home-page header.site-header#siteHeader > .nav-wrap > .brand,
    html body.inner-page header.site-header#siteHeader > .nav-wrap > .brand,
    html body.inner-page-sticky-header header.site-header#siteHeader > .nav-wrap > .brand,
    html body.home-page.header-scrolled header.site-header#siteHeader > .nav-wrap > .brand,
    html body header.site-header#siteHeader.header-scrolled > .nav-wrap > .brand {
        position: absolute !important;
        left: 62px !important;
        top: 50% !important;
        width: 150px !important;
        min-width: 150px !important;
        max-width: 150px !important;
        height: 64px !important;
        min-height: 64px !important;
        max-height: 64px !important;
        flex: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        transform: translateY(-50%) !important;
    }

    html body.home-page header.site-header#siteHeader > .nav-wrap > .brand img,
    html body.inner-page header.site-header#siteHeader > .nav-wrap > .brand img,
    html body.inner-page-sticky-header header.site-header#siteHeader > .nav-wrap > .brand img,
    html body.home-page.header-scrolled header.site-header#siteHeader > .nav-wrap > .brand img,
    html body header.site-header#siteHeader.header-scrolled > .nav-wrap > .brand img {
        width: 112px !important;
        max-width: 98px !important;
        height: auto !important;
        max-height: 112px !important;
        display: block !important;
        object-fit: contain !important;
        object-position: left center !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
    }

    html body.home-page header.site-header#siteHeader > .nav-wrap > .site-nav,
    html body.inner-page header.site-header#siteHeader > .nav-wrap > .site-nav,
    html body.inner-page-sticky-header header.site-header#siteHeader > .nav-wrap > .site-nav,
    html body.home-page.header-scrolled header.site-header#siteHeader > .nav-wrap > .site-nav,
    html body header.site-header#siteHeader.header-scrolled > .nav-wrap > .site-nav {
        position: static !important;
        width: auto !important;
        max-width: none !important;
        flex: 0 1 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 12px !important;
        margin: 0 !important;
        padding: 0 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    html body.home-page header.site-header#siteHeader .site-nav > a.nav-cta,
    html body.inner-page header.site-header#siteHeader .site-nav > a.nav-cta,
    html body.inner-page-sticky-header header.site-header#siteHeader .site-nav > a.nav-cta {
        min-width: 160px !important;
        height: 52px !important;
        margin-left: 18px !important;
        padding: 0 28px !important;
        background: #8f1020 !important;
        color: #ffffff !important;
        border-radius: 999px !important;
        box-shadow: 0 12px 28px rgba(143, 16, 32, 0.18) !important;
    }
}

html body.inner-page,
html body.inner-page-sticky-header {
    padding-top: 108px !important;
}

html body .site-footer .footer-contact-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
}

html body .site-footer .footer-contact-item svg,
html body .site-footer a.footer-contact-item svg {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    margin-top: 2px !important;
    display: inline-block !important;
    color: rgba(255, 255, 255, 0.78) !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.5 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

html body .site-footer .footer-contact-item svg *,
html body .site-footer a.footer-contact-item svg * {
    fill: none !important;
    stroke: currentColor !important;
    opacity: 1 !important;
    visibility: visible !important;
}

html body .site-footer .footer-social-btn svg,
html body .site-footer .footer-social-upwork svg,
html body .site-footer .footer-social-btn svg *,
html body .site-footer .footer-social-upwork svg * {
    fill: currentColor !important;
    stroke: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* =====================================================
   POPUP STACKING FIX
   Header is high, so every modal/popup layer must be higher.
===================================================== */

html body .contact-modal,
html body #contactModal,
html body .co-contact-modal,
html body .modal,
html body .modal-backdrop,
html body .popup,
html body .popup-overlay,
html body .overlay,
html body [role="dialog"],
html body [aria-modal="true"] {
    z-index: 1000000 !important;
}

html body .contact-modal.active,
html body #contactModal.active,
html body .co-contact-modal.is-open {
    z-index: 1000000 !important;
}

html body .contact-modal-box,
html body .co-contact-modal > *,
html body .modal-dialog,
html body .modal-content {
    position: relative !important;
    z-index: 1000001 !important;
}

html body .mobile-backdrop,
html body #mobileBackdrop {
    z-index: 1000002 !important;
}

html body .mobile-menu,
html body #mobileMenu {
    z-index: 1000003 !important;
}

html body .calendly-overlay,
html body .calendly-popup,
html body .calendly-popup-content,
html body .calendly-badge-widget,
html body iframe[src*="calendly"] {
    z-index: 1000010 !important;
}

/* Keep index.php content below the fixed header on desktop. */
@media (min-width: 981px) {
    html body.home-page,
    html body.home-page.header-scrolled {
        padding-top: 108px !important;
    }
}

/* =====================================================
   FOOTER AUTHORITY: same footer on every page
===================================================== */

html body footer.site-footer,
html body .site-footer#site-footer {
    width: 100% !important;
    margin: 0 !important;
    padding: 34px 0 0 !important;
    display: block !important;
    background: #071120 !important;
    background-color: #071120 !important;
    background-image: none !important;
    border: 0 !important;
    border-top: 0 !important;
    color: #b8c4d4 !important;
    font-family: "Manrope", Arial, sans-serif !important;
    text-transform: none !important;
}

html body footer.site-footer *,
html body .site-footer#site-footer * {
    box-sizing: border-box !important;
    font-family: "Manrope", Arial, sans-serif !important;
    text-transform: none !important;
}

html body footer.site-footer .footer-inner,
html body .site-footer#site-footer .footer-inner {
    width: min(1280px, calc(100% - 48px)) !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 52px 0 0 !important;
    background: transparent !important;
}

html body footer.site-footer .footer-grid,
html body .site-footer#site-footer .footer-grid {
    display: grid !important;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr 1.4fr !important;
    gap: 40px !important;
    align-items: start !important;
    margin: 0 !important;
    padding: 0 0 44px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: transparent !important;
}

html body footer.site-footer .footer-brand-col,
html body .site-footer#site-footer .footer-brand-col,
html body footer.site-footer .footer-nav-col,
html body .site-footer#site-footer .footer-nav-col {
    background: transparent !important;
}

html body footer.site-footer .footer-brand-link,
html body .site-footer#site-footer .footer-brand-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    text-decoration: none !important;
    background: transparent !important;
}

html body footer.site-footer .footer-logo-icon,
html body .site-footer#site-footer .footer-logo-icon {
    width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    max-height: 36px !important;
    display: block !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    border-radius: 6px !important;
    transform: none !important;
}

html body footer.site-footer .footer-tagline,
html body .site-footer#site-footer .footer-tagline {
    max-width: 220px !important;
    margin: 0 0 20px !important;
    color: #8a96a8 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
}

html body footer.site-footer .footer-socials,
html body .site-footer#site-footer .footer-socials {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: auto !important;
}

html body footer.site-footer .footer-social-btn,
html body footer.site-footer .footer-social-upwork,
html body .site-footer#site-footer .footer-social-btn,
html body .site-footer#site-footer .footer-social-upwork {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    color: #b8c4d4 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease !important;
}

html body footer.site-footer .footer-social-btn:hover,
html body .site-footer#site-footer .footer-social-btn:hover {
    background: #0a66c2 !important;
    border-color: #0a66c2 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

html body footer.site-footer .footer-social-upwork:hover,
html body .site-footer#site-footer .footer-social-upwork:hover {
    background: #6fda44 !important;
    border-color: #6fda44 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

html body footer.site-footer .footer-social-btn svg,
html body footer.site-footer .footer-social-upwork svg,
html body footer.site-footer .footer-social-btn svg *,
html body footer.site-footer .footer-social-upwork svg *,
html body .site-footer#site-footer .footer-social-btn svg,
html body .site-footer#site-footer .footer-social-upwork svg,
html body .site-footer#site-footer .footer-social-btn svg *,
html body .site-footer#site-footer .footer-social-upwork svg * {
    width: 15px !important;
    height: 15px !important;
    color: currentColor !important;
    fill: currentColor !important;
    stroke: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

html body footer.site-footer .footer-nav-col h4,
html body .site-footer#site-footer .footer-nav-col h4 {
    margin: 0 0 16px !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
}

html body footer.site-footer .footer-nav-col a,
html body .site-footer#site-footer .footer-nav-col a {
    display: block !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    color: #8a96a8 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    background: transparent !important;
}

html body footer.site-footer .footer-nav-col a:hover,
html body .site-footer#site-footer .footer-nav-col a:hover {
    color: #ffffff !important;
}

html body footer.site-footer .footer-contact-item,
html body .site-footer#site-footer .footer-contact-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    color: #8a96a8 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    background: transparent !important;
}

html body footer.site-footer .footer-contact-item:hover,
html body .site-footer#site-footer .footer-contact-item:hover {
    color: #ffffff !important;
}

html body footer.site-footer .footer-contact-item svg,
html body .site-footer#site-footer .footer-contact-item svg {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    margin-top: 1px !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
    color: currentColor !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.5 !important;
    opacity: 0.7 !important;
    visibility: visible !important;
}

html body footer.site-footer .footer-contact-item svg *,
html body .site-footer#site-footer .footer-contact-item svg * {
    fill: none !important;
    stroke: currentColor !important;
    opacity: 1 !important;
    visibility: visible !important;
}

html body footer.site-footer .footer-address,
html body .site-footer#site-footer .footer-address {
    margin: 10px 0 0 !important;
    color: #6b7887 !important;
    font-size: 12px !important;
    line-height: 1.7 !important;
}

html body footer.site-footer .footer-bottom,
html body .site-footer#site-footer .footer-bottom {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 38px !important;
    margin: 0 !important;
    padding: 18px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.10) !important;
    background: transparent !important;
}

html body footer.site-footer .footer-bottom p,
html body .site-footer#site-footer .footer-bottom p {
    margin: 0 !important;
    color: #6b7887 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

html body footer.site-footer .footer-bottom-links,
html body footer.site-footer .footer-bottom div,
html body .site-footer#site-footer .footer-bottom-links,
html body .site-footer#site-footer .footer-bottom div {
    display: flex !important;
    gap: 26px !important;
    align-items: center !important;
}

html body footer.site-footer .footer-bottom a,
html body .site-footer#site-footer .footer-bottom a {
    margin: 0 !important;
    color: #6b7887 !important;
    font-size: 12px !important;
    text-decoration: none !important;
}

html body footer.site-footer .footer-bottom a:hover,
html body .site-footer#site-footer .footer-bottom a:hover {
    color: #ffffff !important;
}

@media (max-width: 1100px) {
    html body footer.site-footer .footer-grid,
    html body .site-footer#site-footer .footer-grid {
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 32px !important;
    }

    html body footer.site-footer .footer-brand-col,
    html body .site-footer#site-footer .footer-brand-col {
        grid-column: 1 / -1 !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        gap: 24px !important;
    }

    html body footer.site-footer .footer-tagline,
    html body .site-footer#site-footer .footer-tagline {
        max-width: 320px !important;
    }
}

@media (max-width: 700px) {
    html body footer.site-footer .footer-inner,
    html body .site-footer#site-footer .footer-inner {
        width: min(100% - 32px, 100%) !important;
    }

    html body footer.site-footer .footer-grid,
    html body .site-footer#site-footer .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 28px !important;
    }

    html body footer.site-footer .footer-brand-col,
    html body .site-footer#site-footer .footer-brand-col {
        flex-direction: column !important;
        gap: 10px !important;
    }

    html body footer.site-footer .footer-bottom,
    html body .site-footer#site-footer .footer-bottom {
        flex-direction: column !important;
        gap: 10px !important;
        text-align: center !important;
    }

    html body footer.site-footer .footer-bottom-links,
    html body .site-footer#site-footer .footer-bottom-links {
        justify-content: center !important;
    }
}

@media (max-width: 420px) {
    html body footer.site-footer .footer-grid,
    html body .site-footer#site-footer .footer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Contact icon authority: keep footer email/phone icons visible on every page. */
html body footer.site-footer .footer-contact-item,
html body .site-footer#site-footer .footer-contact-item {
    position: relative !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
}

html body footer.site-footer .footer-contact-item > svg,
html body .site-footer#site-footer .footer-contact-item > svg {
    display: none !important;
}

html body footer.site-footer .footer-contact-item::before,
html body .site-footer#site-footer .footer-contact-item::before {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 14px !important;
    min-width: 14px !important;
    height: 14px !important;
    margin-top: 1px !important;
    color: #8a96a8 !important;
    font-family: "Font Awesome 5 Free" !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

html body footer.site-footer .footer-contact-item[href^="mailto:"]::before,
html body .site-footer#site-footer .footer-contact-item[href^="mailto:"]::before {
    content: "\f0e0" !important;
}

html body footer.site-footer .footer-contact-item[href^="tel:"]::before,
html body .site-footer#site-footer .footer-contact-item[href^="tel:"]::before {
    content: "\f095" !important;
}

html body footer.site-footer .footer-contact-item:hover::before,
html body .site-footer#site-footer .footer-contact-item:hover::before {
    color: #ffffff !important;
}

/* Shared contact success confirmation: fixed and hidden on every page by default. */
html body.contact-confirmation-open {
    overflow: hidden !important;
}

html body .contact-confirm-dialog {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 24px !important;
    overflow-y: auto !important;
    background: rgba(8, 15, 29, 0.56) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
    opacity: 0;
    visibility: hidden;
}

html body .contact-confirm-dialog.is-visible {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    animation: contact-confirm-backdrop-in 220ms ease-out both;
}

html body .contact-confirm-dialog-panel {
    position: relative !important;
    width: min(500px, 100%) !important;
    margin: auto !important;
    padding: 38px 34px 34px !important;
    overflow: hidden !important;
    border: 1px solid rgba(137, 8, 16, 0.12) !important;
    border-radius: 28px !important;
    background: linear-gradient(145deg, #ffffff 0%, #fffafb 100%) !important;
    box-shadow: 0 35px 100px rgba(8, 15, 29, 0.32) !important;
    color: #0f172a !important;
    text-align: center !important;
    transform-origin: center center;
}

html body .contact-confirm-dialog.is-visible .contact-confirm-dialog-panel {
    animation: contact-confirm-panel-in 280ms cubic-bezier(.2, .85, .3, 1.15) both;
}

html body .contact-confirm-icon {
    display: grid !important;
    place-items: center !important;
    width: 78px !important;
    height: 78px !important;
    margin: 0 auto 20px !important;
    border: 1px solid rgba(15, 157, 88, 0.14) !important;
    border-radius: 50% !important;
    background: #eefaf2 !important;
    box-shadow: 0 12px 28px rgba(15, 157, 88, 0.12) !important;
}

html body .contact-confirm-icon svg {
    display: block !important;
    width: 52px !important;
    height: 52px !important;
}

html body .contact-confirm-content h2 {
    margin: 0 0 12px !important;
    color: #101827 !important;
    font: 800 30px/1.2 "Manrope", sans-serif !important;
    letter-spacing: -0.7px !important;
}

html body .contact-confirm-content p {
    max-width: 390px !important;
    margin: 0 auto 28px !important;
    color: #5d6879 !important;
    font: 500 15px/1.75 "Manrope", sans-serif !important;
}

html body .contact-confirm-close {
    min-width: 150px !important;
    min-height: 48px !important;
    padding: 12px 26px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #a10b1d, #790710) !important;
    box-shadow: 0 14px 28px rgba(137, 8, 16, 0.24) !important;
    color: #ffffff !important;
    font: 800 14px/1 "Manrope", sans-serif !important;
    cursor: pointer !important;
    transition: transform 180ms ease, box-shadow 180ms ease !important;
}

html body .contact-confirm-close:hover,
html body .contact-confirm-close:focus-visible {
    transform: translateY(-2px) !important;
    box-shadow: 0 18px 34px rgba(137, 8, 16, 0.3) !important;
    outline: none !important;
}

@keyframes contact-confirm-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes contact-confirm-panel-in {
    from { opacity: 0; transform: translateY(18px) scale(.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
    html body .contact-confirm-dialog {
        padding: 16px !important;
    }

    html body .contact-confirm-dialog-panel {
        padding: 30px 22px 26px !important;
        border-radius: 22px !important;
    }

    html body .contact-confirm-content h2 {
        font-size: 25px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html body .contact-confirm-dialog.is-visible,
    html body .contact-confirm-dialog.is-visible .contact-confirm-dialog-panel {
        animation: none !important;
    }
}
