/*!
Theme Name: csa-inc
Theme URI: https://underscores.me/
Author: ENX2 Marketing
Author URI: https://enx2marketing.com/
Description: Custom WordPress theme for Community Solutions Alliance (CSA). Built on Underscores (_s) with ACF Flexible Content architecture. Vanilla CSS with CSS custom properties, jQuery-only JS, Slick Slider (CDN), Google Fonts (Montserrat CDN).
Version: 1.0.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: csa-inc
Tags: custom-menu, featured-images, threaded-comments, translation-ready

csa-inc is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# 1. Design System (:root)
# 2. Reset & Base
# 3. Typography
# 4. Container
# 5. Utility Classes
# 6. Buttons
# 7. Global Elements
# 8. WordPress Alignments
# 9. Screen Reader / Accessibility
# 10. Responsive Overrides
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# 1. Design System (:root)
--------------------------------------------------------------*/
:root {
    /* Fonts */
    --font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;
    --font-body: 'Montserrat', system-ui, -apple-system, sans-serif;

    /* Brand Colors (from CSA HTML palette) */
    --color-blue: #0041A0;
    --color-blue-deep: #00307a;
    --color-blue-soft: #e7eefa;
    --color-blue-tint: #f3f7fd;
    --color-green: #6EBE3C;
    --color-green-deep: #5aa52f;
    --color-green-soft: #eef7e6;
    --color-purple: #90278E;
    --color-gray-d: #75787B;
    --color-gray-l: #BBBCBC;
    --color-ink: #23262b;
    --color-white: #ffffff;
    --color-black: #000000;

    /* Semantic Colors */
    --color-primary: var(--color-blue);
    --color-secondary: var(--color-green);
    --color-accent: var(--color-purple);
    --color-text: var(--color-ink);
    --color-text-muted: var(--color-gray-d);

    --font-size-18px: 18.8px;
    --font-size-20px: 20px;
    --font-size-22px: 22.5px;


    --heading-font-size-48px: clamp(1.875rem, 0.9231rem + 1.7308vw, 3rem); /*min-30 max-48*/
    --heading-font-size-44px: clamp(1.875rem, 1.1346rem + 1.3462vw, 2.75rem); /*min-30 max-44*/
    --heading-font-size-40px: clamp(1.75rem, 1.1154rem + 1.1538vw, 2.5rem); /*min-28 max-40*/
    --heading-font-size-36px: clamp(1.625rem, 1.0962rem + 0.9615vw, 2.25rem); /*min-26 max-36*/
    --heading-font-size-34px: clamp(1.625rem, 1.2019rem + 0.7692vw, 2.125rem); /*min-26 max-34*/
    --heading-font-size-32px: clamp(1.5rem, 1.0769rem + 0.7692vw, 2rem); /*min-24 max-32*/

    
    /* Font Weights */
    --fw-400: 400;
    --fw-500: 500;
    --fw-600: 600;
    --fw-700: 700;
    --fw-800: 800;

    /* Radius & Shadows */
    --radius: 16px;
    --radius-sm: 8px;
    --radius-pill: 999px;
    --shadow: 0 18px 50px rgba(0, 65, 160, 0.14);
    --shadow-sm: 0 8px 24px rgba(0, 65, 160, 0.09);

    /* Layout */
    --container-max: 1416px;
    --container-pad-x: 24px;

    /* Section spacing (fluid) */
    /*--section-py: clamp(60px, 6vw, 120px);*/
    --section-py: clamp(45px, 6vw, 74px);
}

@media (max-width: 1200px) {
    :root{
        --font-size-18px: 17px;
        --font-size-20px: 18px;
        --font-size-22px: 20px;
    }

}
@media (max-width: 920px) {
    :root{
        --font-size-18px: 16px;
        --font-size-22px: 19px;
    }
}

/*--------------------------------------------------------------
# 2. Reset & Base
--------------------------------------------------------------*/
*,
*::before,
*::after {
    box-sizing: border-box;
}
* {
    margin: 0;
    padding: 0;
}
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-body);
    font-weight: var(--fw-400);
    font-size: 16px;
    font-size: var(--font-size-18px);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img,
picture,
video,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}
ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Default styling for content <ul> lists: green checkmark bullets.
   Scoped to UNCLASSED <ul> only — matches WYSIWYG-inserted lists (TinyMCE
   produces bare `<ul>`) but leaves menus, .info-list, .path-list, and every
   other classed layout list untouched. No opt-out list needed. */
ul:not([class]) > li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
    line-height: 1.5;
}
ul:not([class]) > li:last-child {
    margin-bottom: 0;
}
ul:not([class]) > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.28em;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12l4 4 10-10' stroke='%235aa52f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/*--------------------------------------------------------------
# 3. Typography (h1-h6 aliased to .font-*)
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6,
.font-24, .font-30, .font-40,
.font-50, .font-60, .font-70 {
    font-family: var(--font-heading);
    font-weight: var(--fw-700);
    line-height: 1.15;
    color: var(--color-ink);
}
h1, .font-70 { font-size: clamp(40px, 5vw, 70px); }
h2, .font-60 { font-size: clamp(36px, 4vw, 60px); }
h3, .font-50 { font-size: clamp(30px, 3vw, 50px); }
h4, .font-40 { font-size: clamp(26px, 2.5vw, 40px); }
h5, .font-30 { font-size: clamp(22px, 2vw, 30px); }
h6, .font-24 { font-size: clamp(20px, 1.5vw, 24px); }

/* Reusable section heading — apply to any section-level heading element. */
.section_heading,
.section_heading-small,
.section_heading-medium {
    font-family: var(--font-heading);
    font-weight: var(--fw-800);
    line-height: 1.17;
    letter-spacing: -0.5px;
    color: var(--color-blue-deep);
}
.section_heading-small { font-size: var(--heading-font-size-32px); }
.section_heading { font-size: var(--heading-font-size-40px); }
.section_heading-medium{ font-size: var(--heading-font-size-44px); }

p { line-height: 1.6; }
p + p { margin-top: 1em; }

/*--------------------------------------------------------------
# 4. Container
--------------------------------------------------------------*/
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-left: var(--container-pad-x);
    padding-right: var(--container-pad-x);
}

/*--------------------------------------------------------------
# 5. Utility Classes
--------------------------------------------------------------*/
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.align-items-start { align-items: flex-start; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }
.justify-content-start { justify-content: flex-start; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-around { justify-content: space-around; }
.justify-content-end { justify-content: flex-end; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }

/*--------------------------------------------------------------
# 6. Buttons
--------------------------------------------------------------*/
.btn {
    display: inline-block;
    border-radius: var(--radius-pill);
    outline: 1px dashed transparent;
    outline-offset: 4px;
    border: none;
    padding: 18px 30px;
    font-family: var(--font-heading);
    font-weight: var(--fw-700);
    font-size: 20px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.2;
}
.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}
.btn-primary:hover {
    background-color: var(--color-blue-deep);
    color: var(--color-white);
    transform: translateY(-3px);
}
.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    box-shadow: 0 10px 22px rgba(110,190,60,.32);
}
.btn-secondary:hover {
    background-color: var(--color-green-deep);
    color: var(--color-white);
    transform: translateY(-3px);
}
.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}
.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}
.btn-linkedin {
    background-color: #0A66C2;
    color: var(--color-white);
}
.btn-linkedin:hover {
    background-color: #084e96;
    color: var(--color-white);
    transform: translateY(-3px);
}

@media (max-width: 1200px) {
    .btn{
        font-size: 18px;
        padding: 16px 26px;
    }
}

@media (max-width: 920px) {
    .btn{
        font-size: 16px;
        padding: 14px 22px;
    }
}

/* Pill badge — used in Hero and Page Banner (icon + label chip). */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-white);
    border: 1px solid #dfe8f5;
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 17px;
    font-weight: 700;
    color: var(--color-blue-deep);
    box-shadow: var(--shadow-sm);
}
.pill svg {
    width: 18px;
    height: 18px;
    color: var(--color-blue);
    flex-shrink: 0;
}
.page-banner .pill{
    font-size: 16px;
}

@media (max-width: 1200px) {
    .pill{
        font-size: 15px; gap: 6px;
    }
    .page-banner .pill{
        font-size: 15px;
    }
}

/*--------------------------------------------------------------
# 7. Global Elements
--------------------------------------------------------------*/
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--color-blue-deep);
}
button {
    font-family: inherit;
    cursor: pointer;
}

/* Flexible section base — every flex layout inherits this */
.flexible-section {
    padding-top: var(--section-py);
    padding-bottom: var(--section-py);
    position: relative;
}
.padding-t74{
    padding-top: var(--section-py);
}
.padding-b74{
    padding-bottom: var(--section-py);
}
/* Section head (shared by every section that opens with an eyebrow + h2 + intro) */
.section-heading-wrap {
    text-align: center;
    max-width: 680px;
    max-width: 815px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 58px;
    margin-bottom: clamp(30px, calc(4.24px + 2.8vw), 58px);
}

/* .section-heading-wrap h2 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.17;
    letter-spacing: -0.5px;
    color: var(--color-blue-deep);
    margin: 0;
} */
.section-heading-wrap h2 em {
    font-style: normal;
    color: var(--color-green-deep);
}
.section-heading-wrap p {
    color: #4a4f57;
    font-size: var(--font-size-22px);
    margin-top: 15px;
    line-height: 1.55;
    letter-spacing: -0.2px;
}

@media (max-width: 1200px) {
    .section-heading-wrap p{
        font-size: 19px;
    }
}

@media (max-width: 480px) {
    .section-heading-wrap {
        margin-bottom: 32px;
    }
    /* .section-heading-wrap h2 {
        font-size: 30px;
    } */
    .section-heading-wrap p {
        font-size: 16px;
    }
}

/*--------------------------------------------------------------
# 8. WordPress Alignments
--------------------------------------------------------------*/
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/*--------------------------------------------------------------
# 9. Screen Reader / Accessibility
--------------------------------------------------------------*/
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    background-color: #f1f1f1;
    clip: auto !important;
    -webkit-clip-path: none;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/*--------------------------------------------------------------
# 10. Responsive Overrides
--------------------------------------------------------------*/
@media (max-width: 991px) {
    :root {
        --section-py: clamp(50px, 5vw, 90px);
    }
}
@media (max-width: 767px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    :root {
        --section-py: clamp(50px, 4vw, 70px);
    }
}

/*--------------------------------------------------------------
# 11. Top Bar
--------------------------------------------------------------*/
.topbar {
    background: var(--color-blue-deep);
    color: #cfddf4;
    font-size: 17px;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}
.topbar-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--color-green);
}
.topbar-badge > span {
    color: #cfddf4;
}
.topbar-badge svg {
	width: 18px;
}
.topbar-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.topbar-contact-label,
.topbar-hours {
    color: #cfddf4;
}
.topbar-phone,
.topbar a {
    color: var(--color-white);
    font-weight: 700;
    text-decoration: none;
}
.topbar-phone:hover {
    color: var(--color-green);
}
.topbar-linkedin {
    display: inline-flex;
    align-items: center;
    color: var(--color-white);
    line-height: 0;
}
.topbar-linkedin svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 1440px) {
    .topbar{
        font-size: 16px;
    }
}

@media (max-width: 1359px) {
    .topbar{
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .topbar {
        font-size: 14px;
    }
    .topbar .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/*--------------------------------------------------------------
# 12. Site Header (sticky)
--------------------------------------------------------------*/
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid #eef1f5;
}
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 13px;
    padding-bottom: 13px;
    gap: 16px;
}
.site-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--color-ink);
    text-decoration: none;
    line-height: 0;
}
.site-logo-img {
    height: 76px;
    width: auto;
    display: block;
}
.site-logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-blue-deep);
    font-size: 19.2px;
    line-height: 1.1;
}
.main-navigation {
    min-width: 0;
    flex: 1;
    display: flex;
    justify-content: center;
}
.main-navigation .menu-close {
    display: none;
    background: transparent;
    border: none;
    font-size: 32px;
    color: var(--color-white);
    cursor: pointer;
    line-height: 1;
    align-self: flex-end;
    padding: 0;
}
.header-menu {
    display: flex;
    gap: 0 18px;
    list-style: none;
    font-weight: 600;
    font-size: 17px;
    white-space: nowrap;
    margin: 0;
    padding: 0;
}
.header-menu li a {
    color: var(--color-ink);
    text-decoration: none;
    padding: 6px 6px;
    transition: color .2s ease;
}
.header-menu li a:hover,
.header-menu li.current-menu-item a {
    color: var(--color-green-deep);
}

/* --- Header submenu (dropdown) --- */
.header-menu li.menu-item-has-children {
    position: relative;
}
.header-menu li.menu-item-has-children > a {
    padding-right: 20px;
}
.header-menu li.menu-item-has-children > a::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 6px;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
    transition: transform .2s ease;
}
.header-menu li.menu-item-has-children:hover > a::after,
.header-menu li.menu-item-has-children:focus-within > a::after {
    transform: translateY(-30%) rotate(-135deg);
}
.header-menu .sub-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: var(--color-white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index: 50;
}
.header-menu li.menu-item-has-children:hover > .sub-menu,
.header-menu li.menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.header-menu .sub-menu li {
    display: block;
}
.header-menu .sub-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: var(--fw-600);
    color: var(--color-blue-deep);
    white-space: nowrap;
    line-height: 1.35;
    transition: background .18s ease, color .18s ease;
}
.header-menu .sub-menu li a:hover,
.header-menu .sub-menu li.current-menu-item a {
    background: var(--color-blue-soft);
    color: var(--color-blue-deep);
}

/* --- Level 3 flyout (sub-menu inside a sub-menu) --- */
/* Level-2 parent items get a right-pointing chevron in place of the down one. */
.header-menu .sub-menu li.menu-item-has-children > a::after {
    top: 50%;
    right: 12px;
    transform: translateY(-50%) rotate(-45deg);
}
.header-menu .sub-menu li.menu-item-has-children:hover > a::after,
.header-menu .sub-menu li.menu-item-has-children:focus-within > a::after {
    transform: translateY(-50%) rotate(-45deg);
}
.header-menu .sub-menu li.menu-item-has-children > a {
    padding-right: 32px;
}
/* Flyout: opens to the right of the parent list, aligned to its top. */
.header-menu .sub-menu .sub-menu {
    top: -8px;
    left: 100%;
    transform: translateX(6px);
    margin-left: 4px;
}
.header-menu .sub-menu li.menu-item-has-children:hover > .sub-menu,
.header-menu .sub-menu li.menu-item-has-children:focus-within > .sub-menu {
    transform: translateX(0);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}
.asksue-link {
    font-weight: 700;
    font-size: 16px;
    color: #0A66C2;
    white-space: nowrap;
    text-decoration: none;
    transition: color .2s ease;
}
.asksue-link:hover {
    color: var(--color-blue-deep);
}
.li-btn {
    width: 48px;
    height: 48px;
    border-radius: 11px;
    border: 1.5px solid #dfe8f5;
    display: grid;
    place-items: center;
    transition: all .2s ease;
    flex-shrink: 0;
    color: #0A66C2;
    background: transparent;
}
.li-btn:hover {
    background: #eaf2fc;
    border-color: #0A66C2;
    color: #0A66C2;
}
.li-btn svg {
    width: 23px;
    height: 23px;
}
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    transition: background .2s ease;
}
.menu-toggle:hover {
    background: #eaf2fc;
}
.menu-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-ink);
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
}
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 48, 122, .55);
    background: #00307a;
    z-index: 45;
    opacity: 0;
    transition: opacity .3s ease;
}
body.menu-open {
    overflow: hidden;
}
body.menu-open .menu-overlay {
    display: block;
    opacity: 1;
}

/*=======================================================*/
@media (max-width: 1360px) {
    .header-menu {
        gap: 0 8px;
        font-size: 15px;
    }
    body .custom-logo-link img, body .custom-logo, body .site-logo img, body .site-branding img{
        width: 275px !important; max-width: 275px !important;
    }
}

@media (max-width: 1200px) {
    .site-logo-img { height: 52px; }
    .header-menu { gap: 6px; font-size: 14px; }
    .li-btn{
        width: 40px; height: 40px;
    }
    body .custom-logo-link img, body .custom-logo, body .site-logo img, body .site-branding img{
        width: 200px !important; max-width: 200px !important;
    }
}

@media (max-width: 1199px) {
    .topbar-badge,
    .topbar-contact {
        width: 100%; justify-content: center; line-height: 1.3; text-align: center;
    }
    .topbar-badge svg{
        display: none;
    }
}

@media (max-width: 1080px) {
    .nav-cta { gap: 8px; }
    .asksue-link { display: none; }
}

@media (max-width: 991px) {
    .li-btn { display: none; }
    .menu-toggle {
        display: inline-flex;
    }
    nav.main-navigation{
        display: none !important;
    }
    /* .main-navigation {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 88vw);
        background: var(--color-blue-deep);
        color: var(--color-white);
        z-index: 60;
        padding: 24px 28px;
        transform: translateX(100%);
        transition: transform .3s ease;
        flex-direction: column;
        justify-content: flex-start;
        gap: 14px;
        box-shadow: -18px 0 40px rgba(0, 48, 122, .3);
    }
    .main-navigation.is-open {
        transform: translateX(0);
    }
    .main-navigation .menu-close {
        display: block;
    } */
    .header-menu {
        flex-direction: column;
        gap: 6px;
        font-size: 16px;
        margin-top: 20px;
    }
    .header-menu li a {
        color: var(--color-white);
        padding: 10px 4px;
        display: block;
    }
    .header-menu li a:hover,
    .header-menu li.current-menu-item a {
        color: var(--color-green);
    }
}

@media (max-width: 768px) {
    body .custom-logo-link img, body .custom-logo, body .site-logo img, body .site-branding img{
        width: 210px !important; max-width: 210px !important;
    }
} 

@media (max-width: 640px) {
    .site-header-inner { gap: 8px; }
    .nav-cta .btn { padding: 10px 20px; font-size: 14.4px; }

    .topbar-linkedin svg { width: 15px; height: 15px; }

}

@media (max-width: 479px) {
    body .custom-logo-link img, body .custom-logo, body .site-logo img, body .site-branding img{
        width: 150px !important; max-width: 150px !important;
    }
}

/*=====================================
    Mobile Menu
=====================================*/
.mobile-drawer {
	position: fixed;
	top: 0;
	right: 0;
	width: min(86vw, 360px);
	height: 100%;
	background: var(--color-blue-deep);
	z-index: 95;
	padding: 18px;
	transform: translateX(100%);
	transition: transform .28s ease;
	overflow-y: auto;
}
body.menu-open .mobile-drawer {
	transform: translateX(0);
}
.drawer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(16,50,47,.5);
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease;
	z-index: 90;
}
body.menu-open .drawer-overlay {
	opacity: 1;
	visibility: visible;
}
.drawer-close {
	width: 36px;
  height: 36px;
	border: 0;
	background: #fff;
	font-size: 30px;
	line-height: 1;
	color: #000;
	cursor: pointer;
	border-radius: 8px;
	display: flex;
	align-items: center;
	padding: 0;
	justify-content: center;
	margin: 0 0 15px auto;
    transition: all 0.4s;
}
.drawer-close:hover{
    opacity: 0.8;
}
.mobile-menu, .mobile-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}
ul.mobile-menu{
    border-top: 1px solid #0242a5;
}
.mobile-menu li {
	border-bottom: 1px solid #0242a5;
}
.mobile-menu a {
	display: block;
	padding: 13px 6px;
	color: #fff;
	text-decoration: none;
	font-weight: var(--fw-600);
	font-size: 17px;
    line-height: 1.25;
}
.mobile-menu a:hover,
.mobile-menu .current-menu-item a {
    color: var(--color-green);
}

/* Mobile submenu accordion. navigation.js wraps each parent's anchor + chevron
   button in a `.item-row` flex row, then toggles `.is-open` on the parent <li>
   to expand its `.sub-menu`. */
.mobile-menu .item-row {
    display: flex;
    align-items: stretch;
}
.mobile-menu .item-row > a {
    flex: 1;
    min-width: 0;
}
.mobile-menu .sub-menu {
    padding-left: 16px;
    background: rgba(0, 0, 0, .12);
    border-top: 1px solid #0242a5;
    display: none;
}
.mobile-menu .menu-item-has-children.is-open > .sub-menu {
    display: block;
}
.mobile-menu .sub-menu li:last-child {
    border-bottom: 0;
}
.mobile-menu .sub-menu a {
    font-size: 17px;
    padding: 13px 6px;
    color: rgba(255, 255, 255, .88);
    font-weight: var(--fw-500);
}
/* Level 3 in the drawer: deeper indent, slightly smaller, darker overlay. */
.mobile-menu .sub-menu .sub-menu {
    padding-left: 16px;
    background: rgba(0, 0, 0, .18);
}
.mobile-menu .sub-menu .sub-menu a {
    font-size: 17px;
    padding: 13px 6px;
    color: rgba(255, 255, 255, .78);
}

/* Chevron toggle — sits next to the parent link inside .item-row. */
.mobile-menu .submenu-toggle {
    flex: 0 0 auto;
    width: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--color-white);
    cursor: pointer;
}
.mobile-menu .submenu-toggle:focus-visible {
    outline: 2px solid var(--color-green);
    outline-offset: -4px;
    border-radius: 6px;
}
.mobile-menu .submenu-toggle-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-25%) rotate(45deg);
    transition: transform .2s ease;
}
.mobile-menu .menu-item-has-children.is-open > .item-row .submenu-toggle-icon {
    transform: translateY(15%) rotate(-135deg);
}
/* Level 3 toggle: smaller hit area to match compact rows. */
.mobile-menu .sub-menu .submenu-toggle {
    width: 44px;
}


/*=====================================
    END Mobile Menu
=====================================*/

/*--------------------------------------------------------------
# 13. Site Footer
--------------------------------------------------------------*/
.site-footer {
    background: var(--color-blue-deep);
    color: #a9c0e0;
    padding: 60px 0 30px;
    font-size: 17px;
}
.site-footer .container{
    max-width: 1475px;
}
.foot-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 34px;
}
.foot-col-brand p {
    max-width: 32ch;
}
.foot-logo-wrap {
    display: inline-block;
  background: var(--color-white);
  border-radius: 12px;
  padding: 12px 20px;
  margin-bottom: 18px;
}
.foot-logo-wrap .flogo {
    height: 48px;
    width: auto;
    display: block;
}
.site-footer h4 {
    color: var(--color-white);
    font-size: 17.5px;
    letter-spacing: .03em;
    margin-bottom: 17px;
    text-transform: uppercase;
    font-weight: var(--fw-800);
}
.site-footer ul,
.footer-menu,
.footer-services-menu,
.foot-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 0;
}
.site-footer a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}
.site-footer a:hover {
    color: var(--color-green);
}
.footer-menu .menu-item.current-menu-item a{
    color: var(--color-green);
}
.foot-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a9c0e0;
}
.foot-social svg {
   width: 18px;
  height: 18px;
}
.foot-form {
    margin-top: 16px;
}
.foot-bottom {
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .13);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 15.8px;
    color: #a9c0e0;
}

@media (max-width: 1199px) {
    .foot-grid{
        grid-template-columns: 1fr 0.7fr 0.7fr 0.7fr;
    }
    .site-footer{
        padding: 45px 0 30px;
        font-size: 16px;
    }
    .foot-bottom{
        font-size: 15px;
    }
}

@media (max-width: 1023px) {
    .foot-grid{
        display: flex; flex-wrap: wrap;
    }
    .foot-col{
        width: calc(33.33% - 23px);
    }
    .foot-col-brand {
        width: 100%;
    }

    .foot-col-brand p{
        max-width: 100%;
    }
    .foot-bottom div {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 780px) {
    .foot-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

}

@media (max-width: 767px) {
    .foot-col {
        width: 100%;
    }
    .footer-menu, 
    .footer-services-menu{
        flex-direction: inherit !important;
        flex-wrap: wrap;
    }
    .footer-menu li, 
    .footer-services-menu li{
        width: 48%;
    }
}

@media (max-width: 480px) {
    .foot-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .foot-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-menu li, 
    .footer-services-menu li{
        width: 100%;
    }
}

.eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-green-deep);
    margin-bottom: 5px;
}
.loc-hero .page-banner-crumbs {
    display: none;
}
/*===========================================
    Gravity Forms CSS
===========================================*/
.contact-form-embed {
	display: table;
	width: 100%;
}
.contact-form-embed .gform_heading,
.contact-form-embed .gform_validation_errors{
    display: none !important;
}
.contact-form-embed .gform_wrapper,
.contact-form-placeholder {
    font-size: 15.2px;
    color: var(--color-ink);
}
.contact-form-embed .gform_wrapper .gform_fields {
	row-gap: 22px !important;
    column-gap: 24px !important;
}
.contact-form-embed .gform_wrapper .gform_fields .gfield{
    margin: 0;
}
.contact-form-embed .gform_fields .gfield label,
.contact-form-embed .gform_fields .gfield .gfield_label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-blue-deep);
    margin-bottom: 10px;
    line-height: 1.2;
}
.contact-form-embed .gform_fields .gfield input[type="text"],
.contact-form-embed .gform_fields .gfield input[type="email"],
.contact-form-embed .gform_fields .gfield input[type="tel"],
.contact-form-embed .gform_fields .gfield input[type="url"],
.contact-form-embed .gform_fields .gfield textarea,
.contact-form-embed .gform_fields .gfield select {
    width: 100%;
    border: 1.5px solid #dfe8f5;
    border-radius: 10px;
    padding: 14px 20px;
    font-family: inherit;
    font-size: 18px;
    color: #23262b;
    transition: .2s;
    background: #fff;
    line-height: 1.25;
    min-height: inherit !important;
    height: auto !important;
}
.contact-form-embed .gform_fields .gfield input:focus,
.contact-form-embed .gform_fields .gfield textarea:focus,
.contact-form-embed .gform_fields .gfield select:focus {
    outline: none;
    border-color: var(--color-blue);
}
.contact-form-embed .gform_fields .gfield select{
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230041A0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}
.contact-form-embed .gform_wrapper .gform_fields .gfield  textarea{
    height: 100px !important;
}
.contact-form-embed .gform_footer{
    margin: 30px 0 0 0 !important;
}
.contact-form-embed .gform_footer .gform_button {
    margin-top: 6px;
    background-color: var(--color-secondary) !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(110,190,60,.32) !important;
    align-items: center !important;
    font-weight: 700 !important;
    font-size: 19px !important;
    line-height: 1.2 !important;
    font-family: inherit !important;
    padding: 15px 20px !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    border: none;
    transition: .2s !important;
    white-space: nowrap;
    min-width: 100% !important;
    width: 100%;
}

.contact-form-embed .gform_footer .gform_button:hover,
.contact-form-embed .gform_footer .gform_button:focus {
    background: var(--color-green-deep) !important;
    transform: translateY(-3px);
    outline: 0 !important;
    border-color: var(--color-green-deep) !important;
}
.contact-form-embed .gform-theme--framework ::placeholder, 
.contact-form-embed .gform-theme--framework option.gf_placeholder{
    color: inherit !important; opacity: 0.6 !important;
}
.contact-form-embed .gfield--type-phone .instruction {
    display: none !important;
}

@media (max-width: 1200px) {
    .contact-form-embed .gform_footer .gform_button{
        font-size: 17px !important;
    }
    .contact-form-embed .gform_fields .gfield input[type="text"], 
    .contact-form-embed .gform_fields .gfield input[type="email"], .contact-form-embed .gform_fields .gfield input[type="tel"], 
    .contact-form-embed .gform_fields .gfield input[type="url"], .contact-form-embed .gform_fields .gfield textarea, 
    .contact-form-embed .gform_fields .gfield select{
        font-size: 17px !important;
    }
}
/*===========================================
    END Gravity Forms CSS
===========================================*/