:root {
    --color-black: #1a1a1a;
    --color-gray: #6b7280;
    --color-gray-light: #afbcd5;

    /* Primary (High Street green palette, from hscllc.net) */
    --color-primary: #0E7D38;
    --color-primary-dark: #0A5E2A;
    --color-primary-light: #f3f8f4;

    /* Secondary & accents */
    --color-secondary: #9EC642;   /* lime, used on dark backgrounds */
    --color-tertiary: #61CE70;
    --color-lime: #9EC642;
    --color-dark: #073D1C;        /* deep green: footer, dark bands, dark buttons */

    /* Accent & States */
    --color-accent: #F59E0B;
    --color-error: #EF4444;
    --color-success: #10B981;
    --color-warning: #F59E0B;

    /* Backgrounds (dark mode) */
    --color-bg: #0F172A;
    --color-surface: #1E293B;
    --color-surface-light: #334155;

    /* Text */
    --color-text-primary: #F8FAFC;
    --color-text-secondary: #94A3B8;
    --color-text-muted: #64748B;

    /* Borders */
    --color-border: #475569;
    --color-border-light: #334155;

    /* Logo gradient colors */
    --logo-gradient-start: #00c853;
    --logo-gradient-mid: #00bfa5;
    --logo-gradient-end: #0097a7;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: #ffffff;
    color: var(--color-black);
    overflow-x: hidden;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    padding: 1rem 0;
    background: transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

/* Mobile navbar */
@media (max-width: 991px) {
    .navbar {
        background: white;
    }

    .nav-logo-img {
        height: 34px;
    }

    .navbar-collapse {
        background: white;
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 8px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav {
        align-items: flex-start !important;
    }

    .navbar-nav .nav-item {
        width: 100%;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 0 !important;
    }

    .navbar-nav .dropdown-menu {
        box-shadow: none;
        padding-left: 1rem;
        border: none;
        background: transparent;
    }

    .navbar-nav .btn-contact {
        margin-top: 1rem;
        display: inline-block;
    }
}

@media (max-width: 576px) {
    .nav-logo-img {
        height: 30px;
    }
}

/* Navbar brand / Logo */
.navbar-brand {
    padding: 0;
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.navbar-brand.visible .nav-logo-img {
    opacity: 1;
    visibility: visible;
}

/* For non-homepage - always show logo */
body:not(.has-animation) .nav-logo-img {
    opacity: 1;
    visibility: visible;
}

.nav-link {
    color: var(--color-black) !important;
    font-weight: 500;
    padding: 0.5rem 1.25rem !important;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--color-primary) !important;
}

/* Dropdown Menus */
.dropdown-toggle::after {
    margin-left: 0.5rem;
    vertical-align: middle;
}

.dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: var(--color-black);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.dropdown-item:active {
    background: var(--color-primary);
    color: white;
}

.btn-contact {
    background: var(--color-dark);
    color: white;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

/* ==================== LOGO ANIMATION ==================== */
.animated-logo {
    font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(2.0rem, 6vw, 3.0rem);
    font-weight: 700;
    display: inline-flex;
    align-items: baseline;
    position: absolute;
    z-index: 10;
    top: 140px;
    left: 0;
    padding-left: calc((100% - min(100% - 24px, 1320px)) / 2);
    transition: opacity 0.4s ease;
    will-change: opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.animated-logo .word {
    display: inline-flex;
    overflow: hidden;
}

.animated-logo .letter {
    display: inline-block;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: max-width, opacity;
    transform: translateZ(0);
}

/* H, S, T are black */
.animated-logo .first-letter {
    color: var(--color-black);
}

/* Remaining letters are blue */
.animated-logo .collapsible {
    color: var(--color-primary);
    max-width: 0.6em;
    opacity: 1;
}

.animated-logo.collapsed .collapsible {
    max-width: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
}

.animated-logo .space {
    width: 0.3em;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animated-logo.collapsed .space {
    width: 0;
}

/* Hide text after collapse */
.animated-logo.hidden {
    opacity: 0;
    visibility: hidden;
}

/* PNG logo that appears after text collapse */
.animated-logo-img-wrapper {
    position: absolute;
    z-index: 10;
    top: 130px;
    left: 0;
    padding-left: calc((100% - min(100% - 24px, 1320px)) / 2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.animated-logo-img-wrapper.visible {
    opacity: 1;
    visibility: visible;
}

.animated-logo-img {
    height: 2.5rem;
    width: auto;
}

@media (max-width: 768px) {
    .animated-logo-img {
        height: 1.35rem;
    }
}

@media (max-width: 480px) {
    .animated-logo-img {
        height: 1.25rem;
    }
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: auto;
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-top: 100px;
    padding-bottom: 4rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(14, 125, 56, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-black);
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.hero h1.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

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

.hero-tagline {
    font-size: 1.25rem;
    color: var(--color-gray);
    max-width: 540px;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.hero-tagline.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.hero-accent-bar {
    width: 60px;
    height: 4px;
    opacity: 0;
    background: var(--color-primary);
    margin-bottom: 1rem;
    visibility: hidden;
    transform: translate3d(0, 20px, 0);
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease;
    will-change: opacity, transform;
}

.hero-accent-bar.visible {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
}

.hero-buttons {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.hero-buttons.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* ==================== BUTTONS ==================== */
.btn-primary-hst {
    background: var(--color-primary);
    color: white;
    padding: 0.9rem 1.6rem;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary-hst:hover {
    background: var(--color-primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(14, 125, 56, 0.3);
}

.btn-secondary-hst {
    background: transparent;
    color: var(--color-black);
    padding: 0.9rem 1.6rem;
    border: 1.5px solid var(--color-dark);
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.btn-secondary-hst:hover {
    background: var(--color-dark);
    color: white;
}

/* ==================== STATS BAR ==================== */
.stats-bar {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.stats-bar.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

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

.stat-number {
    font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-black);
    line-height: 1;
}

.stat-number span {
    color: var(--color-primary);
}

.stat-label {
    color: var(--color-gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ==================== SERVICES SECTION ==================== */
.services {
    padding: 6rem 0;
    background: var(--color-primary-light);
}

.section-label {
    font-size: 0.85rem;
    font-weight: 600;
    /* text-transform: uppercase; */
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--color-black);
}

.section-subtitle {
    color: var(--color-gray);
    font-size: 1.1rem;
    max-width: 600px;
}

.section-text {
    font-size: 1.1rem;
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

a.service-card {
    display: block;
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    height: 100%;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

a.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--color-primary);
    transition: height 0.3s ease;
}

a.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

a.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--color-primary-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.service-card h3 {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-black);
}

.service-card p {
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ==================== MARKETS SECTION ==================== */
.markets {
    padding: 6rem 0;
    background: white;
}

a.market-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--color-primary-light);
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

a.market-item:hover {
    background: var(--color-dark);
    color: white;
}

a.market-item:hover .market-icon {
    background: var(--color-primary);
    color: white;
}

.market-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-black);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.market-text h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.market-text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ==================== CTA SECTION ==================== */
.cta {
    padding: 6rem 0;
    background: white;
    text-align: center;
}

.cta-box {
    background: var(--color-primary-light);
    padding: 5rem 3rem;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(14, 125, 56, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta h2 {
    font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta p {
    color: var(--color-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ==================== FOOTER ==================== */
.site-footer {
    background: var(--color-dark);
    color: white;
    padding: 3rem 0 1.25rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
}

.footer-brand p {
    margin: 0.9rem 0 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
    max-width: 320px;
    line-height: 1.5;
}

.footer-logo {
    display: inline-flex;
}

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

.footer-divisions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-divisions a {
    display: inline-flex;
    align-items: center;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.footer-divisions a:hover {
    opacity: 1;
}

.footer-divisions img {
    height: 26px;
    width: auto;
}

.footer-col h5 {
    font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-lime);
    margin: 0 0 0.9rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.footer-nav a,
.footer-col a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-col a:hover {
    color: var(--color-lime);
}

.footer-office {
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.7);
    margin: 0 0 0.9rem;
}

.footer-office strong {
    display: block;
    color: #ffffff;
    font-weight: 600;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-bottom p {
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    margin: 0;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 575px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==================== SHARED: section labels ==================== */
.section-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* ==================== SHARED: solid navbar + dark hero ==================== */
/* Pages whose hero starts dark right under the navbar */
body.nav-solid .navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* Dark hero */
.hero-dark {
    padding: 132px 0 44px;
    background:
        radial-gradient(800px 500px at 85% 0%, rgba(14, 125, 56, 0.35), transparent 70%),
        var(--color-black);
    color: #ffffff;
}

.hero-dark-content {
    max-width: 860px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
}

.hero-dark-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #9EC642;
}

.hero-dark h1 {
    font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(2rem, 4.2vw, 3.375rem);
    font-weight: 700;
    line-height: 1.08;
    color: #ffffff;
    margin: 0;
    text-wrap: balance;
}

.hero-dark h1 span {
    color: #9EC642;
}

.hero-dark-tagline {
    font-size: 1.0625rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.7);
    max-width: 620px;
    margin: 0;
}

.hero-dark-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.4rem;
}

.hero-dark-buttons .btn-secondary-hst {
    margin-left: 0;
}

.btn-secondary-light {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-secondary-light:hover {
    background: #ffffff;
    color: var(--color-black);
    border-color: #ffffff;
}


@media (max-width: 991px) {
    .hero-dark {
        padding-top: 110px;
    }
}


/* ==================== NAV: dropdown menus ==================== */
body.nav-solid .navbar,
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.navbar .container {
    min-height: 56px;
}

.nav-item.has-menu {
    position: relative;
}

.nav-item.has-menu > .nav-link::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin: 0 0 3px 8px;
    opacity: 0.6;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 6px;
    color: var(--color-black);
    text-decoration: none;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.nav-menu a b {
    display: block;
    font-weight: 600;
}

.nav-menu a span {
    display: block;
    font-size: 0.8rem;
    color: var(--color-gray);
}

.nav-menu .nav-menu-group {
    font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-primary);
    padding: 0.6rem 0.75rem 0.2rem;
}

@media (min-width: 992px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 300px;
        background: #ffffff;
        border: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
        border-radius: 10px;
        padding: 0.6rem;
        display: none;
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .nav-menu.wide {
        min-width: 640px;
        grid-template-columns: 1fr 1fr;
    }

    .nav-menu .nav-menu-group {
        grid-column: 1 / -1;
    }

    .nav-item.has-menu:hover > .nav-menu,
    .nav-item.has-menu:focus-within > .nav-menu {
        display: grid;
    }

    .nav-link {
        padding: 0.5rem 0.9rem !important;
        border-radius: 6px;
    }

    .nav-link:hover {
        background: var(--color-primary-light);
    }
}

@media (max-width: 991px) {
    .nav-menu {
        padding: 0 0 0.5rem 0.75rem;
    }

    .nav-menu a {
        padding: 0.4rem 0.5rem;
    }

    .nav-menu a span {
        display: none;
    }
}

/* ==================== SHARED: editorial hero (deep green + muted photo) ==================== */
.hero-editorial {
    position: relative;
    padding: 148px 0 6.5rem;
    background: #073D1C;
    color: #ffffff;
    overflow: hidden;
}

.hero-editorial-photo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 62%;
    background-position: center 30%;
    background-size: cover;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 35%, rgba(0,0,0,1) 65%);
    mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 35%, rgba(0,0,0,1) 65%);
    opacity: 1;
    pointer-events: none;
}

.hero-editorial .container {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-lime);
    margin-bottom: 1.5rem;
}

.hero-editorial h1 {
    font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(2.4rem, 4.6vw, 4rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin: 0 0 1.5rem;
    text-wrap: balance;
}

.hero-editorial h1 span {
    color: var(--color-lime);
}

.hero-editorial-lead {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    max-width: 520px;
    margin: 0 0 2rem;
}

.hero-editorial-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-editorial-actions .btn-secondary-hst {
    margin-left: 0;
}

.hero-editorial-actions .btn-primary-hst {
    background: var(--color-lime);
    color: var(--color-black);
}

.hero-editorial-actions .btn-secondary-light {
    border-color: rgba(255, 255, 255, 0.85);
}

.hero-editorial-actions .btn-primary-hst:hover {
    background: #b5d95a;
    color: var(--color-black);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

@media (max-width: 991px) {
    .hero-editorial {
        padding-top: 120px;
    }

    .hero-editorial-photo {
        width: 100%;
        opacity: 0.5;
        -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,1) 100%);
        mask-image: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,1) 100%);
    }

}

.hero-photo-briefing { background-image: url(../images/hsc/hero/briefing-soft.jpg); }
.hero-photo-training { background-image: url(../images/hsc/hero/training-soft.jpg); }
.hero-photo-flood    { background-image: url(../images/hsc/hero/flood-soft.jpg); background-position: center 45%; }
.hero-photo-pa       { background-image: url(../images/hsc/hero/pa-soft.jpg); background-position: center 40%; }

/* ==================== SHARED: contact modal + form ==================== */
.contact-modal {
    border: none;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.contact-modal .modal-header {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid #e5e7eb;
    align-items: center;
}

.contact-modal .modal-title {
    font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-black);
    margin: 0;
}

.contact-modal .modal-subtitle {
    font-size: 0.85rem;
    color: var(--color-gray);
    margin: 0.2rem 0 0;
}

.contact-modal .modal-body {
    padding: 1.5rem 1.75rem 1.25rem;
}

.form-group {
    margin-bottom: 0.9rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
}

.form-group .required {
    color: var(--color-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--color-black);
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(14, 125, 56, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.25rem;
    cursor: pointer;
}

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

.error-text {
    display: block;
    color: var(--color-error);
    font-size: 0.8rem;
    margin-top: 0.35rem;
}

.alert-wrapper {
    margin-bottom: 1rem;
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.recaptcha-wrapper {
    flex: none;
}

.g-recaptcha {
    transform-origin: left top;
}

.btn-submit {
    flex: 1;
    justify-content: center;
    min-width: 200px;
    border: none;
}

.form-alt {
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-gray);
    margin: 1rem 0 0;
}

.error-text:empty {
    display: none;
}

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
    border-color: var(--color-error);
}

@media (max-width: 768px) {
    .contact-modal .modal-body {
        padding: 1.25rem 1.1rem;
    }

    .g-recaptcha {
        transform: scale(0.9);
    }
}

@media (max-width: 400px) {
    .g-recaptcha {
        transform: scale(0.77);
    }
}

/* ==================== ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .animated-logo .letter,
    .animated-logo .space,
    .hero h1,
    .hero-tagline,
    .hero-accent-bar,
    .hero-buttons,
    .stats-bar {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }
}

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

/* Tablet and below */
@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        text-align: center;
    }

    .hero-tagline {
        margin-left: auto;
        margin-right: auto;
        font-size: 1.1rem;
    }

    .hero-accent-bar {
        margin-left: auto;
        margin-right: auto;
    }

    .btn-secondary-hst {
        margin-left: 0;
        margin-top: 1rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .stats-bar {
        text-align: center;
    }

    .stat-item {
        text-align: center;
        margin-bottom: 2rem;
    }

    .animated-logo {
        font-size: 1.75rem;
        padding-left: 12px;
        top: 110px;
    }

    .animated-logo-img-wrapper {
        padding-left: 12px;
        top: 105px;
    }

    /* Improve touch targets */
    .btn-primary-hst,
    .btn-secondary-hst {
        min-height: 48px;
        padding: 0.875rem 1.75rem;
    }

    /* Service cards on mobile */
    .service-card {
        margin-bottom: 1rem;
    }

    /* Market items on mobile */
    a.market-item {
        padding: 1.25rem;
    }

    /* Section padding adjustments */
    .services,
    .markets,
    .cta {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    /* CTA box mobile */
    .cta-box {
        padding: 3rem 1.5rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .hero {
        padding-top: 90px;
        padding-bottom: 2rem;
    }

    .hero h1 {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }

    .hero-tagline {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .animated-logo {
        font-size: 1.25rem;
        top: 100px;
    }

    .animated-logo-img-wrapper {
        top: 95px;
    }

    /* Stats bar - stack on very small screens */
    .stats-bar .row {
        flex-direction: column;
    }

    .stats-bar .col-4 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .stat-item {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid #e5e7eb;
    }

    .stat-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Buttons full width on small phones */
    .hero-buttons {
        width: 100%;
    }

    .btn-primary-hst,
    .btn-secondary-hst {
        width: 100%;
        justify-content: center;
    }

    /* Section spacing */
    .services,
    .markets,
    .cta {
        padding: 3rem 0;
    }

    .section-label {
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* Service cards */
    a.service-card {
        padding: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.95rem;
    }

    /* Market items */
    .market-text h4 {
        font-size: 1rem;
    }

    .market-text p {
        font-size: 0.85rem;
    }

    /* CTA */
    .cta-box {
        padding: 2rem 1.25rem;
        border-radius: 12px;
    }

    .cta h2 {
        font-size: 1.35rem;
    }

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

/* ==================== SAFE AREA INSETS (notched devices) ==================== */
@supports (padding: max(0px)) {
    .navbar {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .hero {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }

    footer {
        padding-bottom: max(1.25rem, calc(1.25rem + env(safe-area-inset-bottom)));
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }

    .container {
        padding-left: max(0.75rem, env(safe-area-inset-left));
        padding-right: max(0.75rem, env(safe-area-inset-right));
    }
}

/* ==================== MOBILE NAVIGATION IMPROVEMENTS ==================== */
@media (max-width: 991px) {
    .navbar-toggler {
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 2px var(--color-primary);
    }

    .dropdown-item {
        padding: 0.875rem 1.5rem;
        min-height: 44px;
    }

    .navbar-nav .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* ==================== PAGE STYLES (merged from pages.css) ==================== */

/* Page Hero */
.page-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    padding-bottom: 4rem;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, var(--color-primary-light) 100%);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(158, 198, 66, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.page-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-dark);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.page-badge svg {
    color: var(--color-primary);
}

.page-hero h1 {
    font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-black);
}

/* Title highlight underline - matches beehive page style */
.page-hero h1 .highlight {
    position: relative;
    display: inline-block;
}

.page-hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(14, 125, 56, 0.3);
    z-index: -1;
}

.page-hero .lead {
    font-size: 1.25rem;
    color: var(--color-gray);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Hero Icon */
.hero-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px var(--color-primary-dark);
}

.hero-icon svg {
    width: 60px;
    height: 60px;
}

/* Overview Section */
.overview-section {
    padding: 6rem 0;
    background: white;
}

.overview-section .section-text {
    font-size: 1.1rem;
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Capabilities Section */
.capabilities-section {
    padding: 6rem 0;
    background: var(--color-primary-light);
}

.capability-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.capability-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--color-primary);
}

.capability-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.5rem;
}

.capability-card h3 {
    font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-black);
}

.capability-card p {
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Benefits Section */
.benefits-section {
    padding: 6rem 0;
    background: var(--color-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.benefits-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(158, 198, 66, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.benefits-section .section-label {
    color: var(--color-primary);
}

.benefits-section .section-title {
    color: white;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background: var(--color-primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-light);
    flex-shrink: 0;
}

.benefit-content h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: white;
}

.benefit-content p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Use Cases / Industries Section */
.use-cases-section {
    padding: 6rem 0;
    background: white;
}

.use-case-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--color-primary-light);
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.use-case-card:hover {
    background: var(--color-dark);
    color: white;
}

.use-case-card:hover .use-case-icon {
    background: var(--color-primary);
    color: white;
}

.use-case-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-black);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.use-case-text h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.use-case-text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Page CTA Section */
.page-cta {
    padding: 6rem 0;
    background: var(--color-primary-light);
}

.page-cta-box {
    background: white;
    border-radius: 16px;
    padding: 4rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.page-cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-primary);
}

.page-cta-box h2 {
    font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-black);
}

.page-cta-box p {
    font-size: 1.1rem;
    color: var(--color-gray);
    margin-bottom: 2rem;
}

/* Page Styles Responsive */
@media (max-width: 768px) {
    .page-hero {
        padding-top: 100px;
        min-height: auto;
        text-align: center;
    }

    .page-hero h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .page-hero .lead {
        margin-left: auto;
        margin-right: auto;
        font-size: 1.05rem;
    }

    .page-cta-box {
        padding: 2.5rem 1.5rem;
    }

    .hero-icon {
        width: 80px;
        height: 80px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-icon svg {
        width: 40px;
        height: 40px;
    }

    .page-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.875rem;
    }

    /* Section spacing */
    .overview-section,
    .capabilities-section,
    .benefits-section,
    .use-cases-section,
    .page-cta {
        padding: 4rem 0;
    }

    .capability-card {
        padding: 1.5rem;
    }

    .capability-card h3 {
        font-size: 1.1rem;
    }

    .benefit-item {
        margin-bottom: 1.25rem;
    }

    .benefit-icon {
        width: 36px;
        height: 36px;
    }

    .use-case-card {
        padding: 1.25rem;
    }

    .use-case-icon {
        width: 44px;
        height: 44px;
    }

    .use-case-text h4 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding-top: 90px;
        padding-bottom: 2rem;
    }

    .page-hero h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .page-hero .lead {
        font-size: 1rem;
    }

    .hero-icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
        margin-bottom: 1.5rem;
    }

    .hero-icon svg {
        width: 32px;
        height: 32px;
    }

    /* Section spacing */
    .overview-section,
    .capabilities-section,
    .benefits-section,
    .use-cases-section,
    .page-cta {
        padding: 3rem 0;
    }

    .capability-card {
        padding: 1.25rem;
    }

    .capability-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
    }

    .page-cta-box {
        padding: 2rem 1.25rem;
        border-radius: 12px;
    }

    .page-cta-box h2 {
        font-size: 1.35rem;
    }

    .page-cta-box p {
        font-size: 1rem;
    }

    .use-case-text p {
        font-size: 0.8rem;
    }
}