:root {
    /* Brand Colors - The Pristine Curator Palette */
    --primary: #005a9c;
    --primary-container: #1e73be;
    --primary-hover: #004880;
    --on-primary: #ffffff;
    --secondary: #48607e;
    --secondary-container: #c4dcff;
    --tertiary: #12661e;
    /* Organic Growth */
    --tertiary-container: #318035;
    --on-tertiary: #ffffff;

    /* Surface Hierarchy (The "No-Line" Rule) */
    --surface: #f8f9ff;
    --surface-bright: #f8f9ff;
    --surface-dim: #d8dae1;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #f2f3fa;
    --surface-container: #eceef4;
    --surface-container-high: #e6e8ef;
    --surface-container-highest: #e0e2e9;

    /* Legacy aliases (keep for backwards compatibility with older sections) */
    --white: #ffffff;
    --neutral-dark: #0F172A;
    --grey-light: #f2f3fa;
    --grey-text: #475569;

    /* Text & UI */
    --on-surface: #191c21;
    --on-surface-variant: #414751;
    --outline: #717782;
    --outline-variant: rgba(113, 119, 130, 0.2);
    /* Ghost Border */

    /* Typography */
    --font-headline: 'Manrope', sans-serif;
    --font-body: 'Work Sans', sans-serif;
    --font-heading: 'Manrope', sans-serif;
    /* legacy alias */

    /* Spacing & Roundness */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-full: 9999px;

    --section-spacing: 80px;
    --inner-spacing: 60px;
    --container: 1320px;
}

button.submenu-toggle {
    display: none;
}

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--on-surface);
    background-color: var(--surface);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

.split-text p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}

.features-grid p {
    display: none;
}

.features-grid .feature-box p {
    display: block;
}

.feature-box {
    text-align: center;
}

.rich-text-content p {
    margin-bottom: 31px;
}


section.cs-shortcode-section {
    max-width: 1100px;
    margin: auto;
    text-align: center;
}

.cs-gallery-masonry {
    max-width: 1100px;
    margin: auto;
}

span.work-label {
    display: none;
}

input[type=date],
input[type=email],
input[type=number],
input[type=password],
input[type=search],
input[type=tel],
input[type=text],
input[type=url],
select,
textarea {
    width: 100%;
    border: 1px solid #666;
    border-radius: 3px;
    padding: .5rem 1rem;
    transition: all .3s;
    margin-bottom: 20px;
    font-size: 18px;
}

#wpcf7-f322-o1 {
    max-width: 500px;
    margin: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headline);
    color: var(--on-surface);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 1.5rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.9rem;
}

h3 {
    font-size: 1.25rem;
}

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

/* High-Performance Responsive Header */
.main-header {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--outline-variant) !important;
    position: sticky;
    top: 0;
    z-index: 2000;
    /* Ensure it's above everything */
    padding: 0.75rem 0 !important;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 60px;
    /* Force sanity on logo size */
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -1px;
}

/* Global Content Sanity */
img,
svg {
    max-width: 100%;
    height: auto;
}

i.fas.fa-shield-check::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    /* required for solid icons */
    content: "\f3ed";
    /* shield-halved */
    margin-right: 8px;
    display: inline-block;
    position: relative;
    left: 4px;
}

svg:not([width]) {
    width: 64px;
    /* Defensive default for uncontained icons */
}

.label-md {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
}

/* Modern Display Typography */
.display-lg {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -3px;
}

.display-md {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
}

.headline-lg {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.headline-md {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
}

.body-lg {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--on-surface-variant);
}

.body-md {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--on-surface-variant);
}

/* Typography Sanity */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headline);
    color: var(--on-surface);
}

/* Fix for 'n' artifacts from legacy icon fonts */
/* Removed overly aggressive i:empty to not break FontAwesome */
/* Buttons - Custom Gradient */

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-container));
    color: var(--on-primary);
    border-radius: 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 90, 156, 0.15);
}

.btn-secondary {
    background-color: var(--surface-container-high);
    color: var(--primary);
    border-radius: 0;
}

.btn-secondary:hover {
    background-color: var(--surface-container-highest);
}

/* Sectioning - The "No-Line" Rule */
section {
    padding: var(--section-spacing) 0;
}

.section-alt {
    background-color: var(--surface-container-low);
}

.card {
    background-color: var(--surface-container-lowest);
    border-radius: var(--radius-lg);
    padding: var(--inner-spacing);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.btn-xl {
    font-size: 1.2rem;
    padding: 18px 45px;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

/* Admin Bar Fix */
body.admin-bar .main-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .main-header {
        top: 46px;
    }

    .gs-item-icon {
        margin: auto;
    }
}

@media screen and (max-width: 600px) {
    body.admin-bar .main-header {
        top: 0;
    }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    padding: 0 40px;
}

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

#primary-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
    flex-direction: row;
}

#primary-menu li {
    position: relative;
}

#primary-menu a {
    text-decoration: none;
    color: var(--neutral-dark);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
}

#primary-menu a:hover {
    color: var(--primary);
}

/* Sub-menu (Dropdown) styling */
#primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-width: 240px;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: 8px;
    z-index: 100;
}

#primary-menu li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#primary-menu .sub-menu li {
    width: 100%;
    border-bottom: 1px solid #e3e4e6;
}

#primary-menu .sub-menu a {
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#primary-menu .sub-menu li:last-child a {
    border-bottom: none;
}

#primary-menu .sub-menu a:hover {
    background: var(--surface-container-low);
    color: var(--primary);
}

/* Hero Section Enhancements */
.hero-section {
    padding: 240px 0 160px;
    background-color: #f8f9ff;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 80vh;
}

/* Editorial Heritage Utilities */
.asymmetric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
    align-items: center;
}

.asymmetric-grid.reverse {
    direction: rtl;
}

.asymmetric-grid.reverse>* {
    direction: ltr;
}

.editorial-spacing {
    margin-bottom: 80px;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Glassmorphism Utility */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark .glass {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Typography Refinement */
.headline-sm {
    font-weight: 700;
    font-family: var(--font-headline);
    letter-spacing: -0.01em;
}

.label-sm {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--on-surface-variant);
}

/* Animation Keyframes */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: float 4s ease-in-out infinite;
}

/* Hero Section */
.hero-section {
    padding: 180px 0 120px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-label {
    display: block;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

#hero-heading {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 700;
    color: var(--neutral-dark);
}

#hero-subtext {
    font-size: 1.2rem;
    color: var(--grey-text);
    margin-bottom: 40px;
    max-width: 600px;
}

/* Services */
.services-section {
    background: var(--grey-light);
}

#services-heading {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    transition: all 0.3s;
    text-align: center;
}

.service-card:hover {
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.service-icon img {
    width: 60px;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--neutral-dark);
}

/* Partners Section */
.partner-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 40px;
    border-radius: 12px;
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    transition: all 0.3s;
}

.partner-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

.relationship-tag {
    display: inline-block;
    background: var(--secondary);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Ninja Forms Styling */
.form-wrapper,
.cta-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.nf-form-content {
    background: transparent;
    padding: 0 !important;
}

.nf-field-element input,
.nf-field-element textarea {
    width: 100% !important;
    padding: 15px !important;
    border-radius: 6px !important;
    border: 1px solid #E5E7EB !important;
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
}

.nf-field-element input:focus,
.nf-field-element textarea:focus {
    border-color: var(--primary) !important;
    outline: none !important;
}

.nf-field-label {
    font-family: var(--font-heading) !important;
    font-weight: 600 !important;
    color: var(--neutral-dark) !important;
    margin-bottom: 10px !important;
}

.nf-field-container.submit-container input {
    background: var(--primary) !important;
    color: white !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
}

.nf-field-container.submit-container input:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-2px) !important;
}

/* Why Choose Us */
.why-choose-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.why-choose-content {
    flex: 1;
}

.why-choose-image {
    flex: 1;
}

.why-choose-image img {
    width: 100%;
    border-radius: 12px;
}

.why-choose-points {
    list-style: none;
    margin-top: 30px;
}

.why-choose-points li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.why-choose-points i {
    color: var(--primary);
    font-size: 1.3rem;
}

/* Process */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-num {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Coverage */
.coverage-section {
    background: var(--neutral-dark);
    color: white;
    text-align: center;
}

.locations-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.location-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 25px;
    border-radius: 50px;
}

/* Final CTA */
.final-cta-section {
    background: var(--primary);
    color: white;
    text-align: center;
}

.final-cta-section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.final-cta-section p {
    margin-bottom: 40px;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --section-spacing: 80px;
    }

    .asymmetric-grid {
        gap: 60px;
    }
}

@media (max-width: 991px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    #hero-heading {
        font-size: 2.8rem;
    }

    .why-choose-container {
        flex-direction: column;
    }

    /* Mobile Navigation */
    .main-header {
        height: auto;
    }

    .header-container {
        flex-wrap: wrap;
        height: auto;
        padding: 1rem 1.5rem;
        gap: 1rem;
    }

    #primary-menu {
        display: none !important;
        /* toggled by JS */
        flex-direction: column;
        width: 100%;
        gap: 0;
        border-top: 1px solid var(--outline-variant);
        padding-top: 1rem;
        padding-bottom: 0.5rem;
    }

    #primary-menu.is-open {
        display: flex !important;
    }

    button.submenu-toggle {
        display: block;
    }

    .top-bar {
        margin-top: 54px;
    }

    .top-bar-social span {
        display: none;
    }

    #primary-menu li {
        width: 100%;
    }

    .top-bar-contact {
        margin: auto;
    }

    #primary-menu a {
        display: block;
        padding: 0.75rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--outline-variant);
    }

    /* Mobile submenu accordion behavior */
    #primary-menu .sub-menu {
        display: none;
        padding-left: 1rem;
        margin-top: 0.5rem;
    }

    #primary-menu li.open>.sub-menu {
        display: block;
        padding: 0;
    }

    /* Ensure sub-menus behave as full-width accordions inside the mobile menu
       (avoid desktop-style absolute dropdown overlay on touch devices) */
    #primary-menu .sub-menu {
        position: static;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        width: 100%;
    }

    /* Make submenu items align and fill the mobile menu width */
    #primary-menu .sub-menu a {
        padding-left: 0;
        border-bottom: none;
        display: block;
    }

    #primary-menu li.has-children>a::after,
    #primary-menu li.menu-item-has-children>a::after {
        content: '\25BC';
        float: right;
        transform: translateY(2px);
        opacity: 0.8;
        font-size: 0.7rem;
    }

    /* submenu toggle button styling */
    #primary-menu .submenu-toggle {
        background: none;
        border: none;
        color: var(--neutral-dark);
        font-size: 1rem;
        padding: 0.5rem;
        float: right;
    }

    #primary-menu .submenu-toggle .chev {
        font-size: 0.95rem;
    }

    #primary-menu a::after {
        display: none;
    }

    .nav-toggle {
        display: flex !important;
        /* show hamburger */
    }

    /* Tidy mobile header */
    .logo img {
        max-height: 44px;
    }

    .logo-text {
        display: none;
    }

    .header-container {
        padding: 0.6rem 1rem;
        gap: .5rem;
    }

    .nav-menu {
        order: 2;
        width: 100%;
    }

    .nav-toggle {
        order: 1;
    }

    /* Two-column grids → single column */
    .asymmetric-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .asymmetric-grid.reverse {
        direction: ltr;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .partner-card {
        flex-direction: column;
        gap: 1.5rem;
    }

    .why-choose-image {
        display: none;
        /* fold image on mobile */
    }
}

@media (max-width: 640px) {
    :root {
        --section-spacing: 60px;
        --inner-spacing: 24px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.35rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 0.9rem 1.5rem;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .final-cta-section h2 {
        font-size: 2rem;
    }

    .final-cta-section p {
        font-size: 1rem;
    }

    .coverage-section .locations-list {
        gap: 10px;
    }

    .location-tag {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Make typical 50/50 sections full-bleed (edge-to-edge) on larger viewports */
@media (min-width: 768px) {

    .asymmetric-grid,
    .split-content,
    .icon_grid_50,
    .icon-grid-50 {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding-inline: min(2rem, env(safe-area-inset-left));
        padding-right: min(2rem, env(safe-area-inset-right));
        box-sizing: border-box;
    }
}


/* Make the split-content image full-bleed on mobile */
.split-content-section .image-box {
    width: calc(100% + 4rem);
    margin-left: -2rem;
    margin-right: -2rem;
    max-width: none;
}

.split-content-section .image-box img {
    height: auto !important;
    width: 100%;
    object-fit: cover;
}

section.inner-hero h1 {
    color: white;
}

/* Inner Page Polish */
.page-builder-wrapper {
    min-height: 60vh;
}

.fallback-inner-page {
    padding: 100px 0;
    background: var(--surface);
}

.fallback-inner-page h1 {
    color: var(--primary);
    font-size: 4rem;
    margin-bottom: 2.5rem;
    letter-spacing: -3px;
    text-align: center;
}

/* Fix for 'stupid icons' and mangled list artifacts */
.entry-content img[src*="elementor"],
.entry-content img[src*="placeholder"],
.entry-content img[width="1"],
.entry-content img[height="1"] {
    display: none !important;
}

.entry-content ul li i.fas {
    margin-right: 10px;
}

.entry-content {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--on-surface-variant);
}

.entry-content ul,
.rich-text-content ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.entry-content li,
.rich-text-content li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    display: block;
    /* Removed flex since absolute ::before handles positioning cleanly */
}

.entry-content li::before,
.rich-text-content li::before {
    /* Use an inline SVG background for a reliable check-circle icon
       This avoids dependency on Font Awesome webfonts which may be missing
       or blocked by plugins. The color matches --primary (encoded).
    */
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 18px;
    height: 18px;
    display: block;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path fill='%23005a9c' d='M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm124.1 166.1l-144 192c-4.5 6-12.6 9.9-20.5 9.9-8.1 0-16.2-3.9-20.8-9.9L131.9 278.1c-12.5-16.6-8.1-40.1 8.5-52.6 16.6-12.5 40.1-8.1 52.6 8.5L256 328.6l132.1-176c12.5-16.6 35.9-21 52.6-8.5 16.7 12.5 21.1 35.9 8.4 52.5z'/></svg>");
}

.entry-content img {
    border-radius: var(--radius-lg);
    margin: 3rem 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Mobile Nav Toggle (hamburger) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    border: none;
    background: none;
    padding: 6px;
    z-index: 2001;
    /* Above sticky header content */
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--on-surface);
    border-radius: 2px;
    transition: all 0.3s ease;
}