/*
Theme Name: Hello Elementor Child
Description: Child theme for Hello Elementor - EHS Analytical Services Custom Post Type
Author: EHS Analytical
Template: hello-elementor
Version: 1.0.2
*/

/* ========================================
   DESIGN SYSTEM ARCHITECTURE
   ========================================
   
   ELEMENTOR INTEGRATION STRATEGY:
   --------------------------------
   This theme follows a strict separation of concerns:
   
   - ELEMENTOR: Structure, layout, widgets, content organization
   - THEME CSS: All visual styling (colors, typography, spacing, effects)
   
   HOW IT WORKS:
   ------------
   1. Elementor Site Settings (Theme Style) have been cleared
   2. All styling is controlled via theme CSS classes
   3. Apply CSS classes in Elementor via "Advanced → CSS Classes" field
   4. Leave Elementor Style tab colors/typography empty
   5. Use Style tab only for layout properties (width, alignment)
   
   DESIGN SYSTEM DOCUMENTATION:
   ----------------------------
   - Complete Style Guide: ../style-guide.html
   - Quick Reference: ../DESIGN_SYSTEM.md
   - Clear Elementor Settings: ../clear-elementor-site-settings.php
   
   CSS VARIABLES:
   ------------
   Use CSS variables for brand colors to ensure consistency:
   - var(--ehs-navy) - Primary navy blue (#003366)
   - var(--ehs-gold) - Primary gold (#FFB81C)
   - var(--ehs-light-gray) - Light gray background (#F5F5F5)
   - var(--ehs-dark-gray) - Dark gray text (#333333)
   - var(--ehs-white) - White (#FFFFFF)
   
   ADDING NEW STYLES:
   -----------------
   1. Add CSS with clear section comments
   2. Use design system colors and spacing scale
   3. Document CSS class in DESIGN_SYSTEM.md
   4. Add example to style-guide.html if needed
   5. Test in Elementor by applying CSS class
   
   SPACING SCALE:
   ------------
   Use these values consistently: 4px, 8px, 12px, 16px, 20px, 24px, 32px, 40px, 60px, 80px
   
   ======================================== */

/* ========================================
   TYPOGRAPHY - LOCAL FONTS
   ======================================== */

/* Maven Pro - loaded locally for performance (no external requests) */
@font-face {
    font-family: 'Maven Pro';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('./assets/fonts/maven-pro.woff2') format('woff2');
}

@font-face {
    font-family: 'Maven Pro';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('./assets/fonts/maven-pro.woff2') format('woff2');
}

@font-face {
    font-family: 'Maven Pro';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('./assets/fonts/maven-pro.woff2') format('woff2');
}

/* ========================================
   SERVICE PAGE STYLES
   ======================================== */

/* Color Variables */
:root {
    --ehs-navy: #003366;
    --ehs-gold: #FFB81C;
    --ehs-light-gray: #F5F5F5;
    --ehs-dark-gray: #333333;
    --ehs-white: #FFFFFF;
}

/* Global Typography - Ensure Maven Pro is used site-wide */
/* overflow: visible so header mega menu is not clipped on any page (e.g. service pages) */
body,
html {
    font-family: 'Maven Pro', sans-serif !important;
    font-weight: 400;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Maven Pro', sans-serif !important;
    font-weight: 700;
    color: var(--ehs-navy);
}

p, div, span, a, li {
    font-family: 'Maven Pro', sans-serif !important;
}

/* Default Link Styles */
/* Override any Elementor global styles with brand-consistent link colors */
a {
    color: var(--ehs-navy);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--ehs-gold);
}

/* Service Hero Section */
.service-hero {
    position: relative;
    width: 100%;
    min-height: 400px;
    background-size: cover;
    background-position: top top;
    background-repeat: no-repeat;
    background-color: rgba(255, 255, 255, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ehs-white);
    text-align: center;
    padding: 80px 20px;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 51, 102, 0.4);
    z-index: 1;
}

/* Credential single: solid navy hero, no background image */
.service-hero.credential-hero--solid {
    background-image: none;
    background-color: var(--ehs-navy);
}
.service-hero.credential-hero--solid::before {
    display: none;
}

.service-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.service-hero h1 {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--ehs-white);
}

.service-hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-wrap: break-word;
}

.service-hero-text {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}

.service-hero-stat {
    display: inline-block;
    margin: 1rem 0;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--ehs-navy);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.service-hero-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Service Hero Split (40/60: navy full-width left, photo right) - flexible height so content doesn't overflow into hero-below */
.service-hero-split {
    display: grid;
    grid-template-columns: 40% 60%;
    width: 100%;
    min-height: 400px;
    overflow: visible;
}

.service-hero-split__content {
    background: var(--ehs-navy);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 40px 60px max(40px, (100vw - 1280px) / 2 + 40px);
    text-align: left;
    color: var(--ehs-white);
    min-height: 0; /* allow grid cell to respect parent height */
}

.service-hero-split__heading {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    margin: 0 0 1rem;
    color: var(--ehs-white);
}

.service-hero-split__subtext {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    max-width: 500px;
}

.service-hero-split__media {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    overflow: hidden;
    background: var(--ehs-navy);
    min-height: 0; /* allow grid cell to respect parent height */
}

.service-hero-split__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border: none;
}

/* Home hero split: full-width stacked CTAs, phone button white bg + navy text */
.service-hero-split__content .hero-cta-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    gap: 12px;
    margin-top: 1.5rem;
}
.service-hero-split__content .hero-cta-group .ehs-btn {
    width: 100%;
    max-width: none;
    height: 56px;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: 'Maven Pro', sans-serif;
}
.service-hero-split__content .hero-cta-group a[href^="tel:"] {
    background-color: var(--ehs-white);
    color: var(--ehs-navy);
    border: none;
    box-shadow: 0 0 0 2px var(--ehs-navy);
}
.service-hero-split__content .hero-cta-group a[href^="tel:"]:hover,
.service-hero-split__content .hero-cta-group a[href^="tel:"]:focus {
    background-color: var(--ehs-navy);
    color: var(--ehs-white);
    box-shadow: 0 0 0 2px var(--ehs-navy);
}
.service-hero-split__content .hero-cta-group a[href^="tel:"]:visited {
    background-color: var(--ehs-white) !important;
    color: var(--ehs-navy) !important;
    box-shadow: 0 0 0 2px var(--ehs-navy);
}

.service-hero-split__content .hero-badges {
    justify-content: flex-start;
}

/* Hero below - badges & trust signals (centered, brand blue border/text, icons) */
.hero-below {
    padding: 32px 0 40px;
    background: var(--ehs-white);
    text-align: center;
}
.hero-below .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-below .hero-badges {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
    width: 100%;
    max-width: 100%;
}
.hero-below .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ehs-light-gray);
    color: var(--ehs-navy);
    border: 1px solid var(--ehs-navy);
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Maven Pro', sans-serif;
}
.hero-below .hero-badge__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
    /* Tint SVG (stroke) to brand navy when loaded as img */
    filter: brightness(0) saturate(100%) invert(15%) sepia(40%) saturate(2500%) hue-rotate(195deg) brightness(95%) contrast(95%);
}
.hero-below .hero-trust-signals {
    color: var(--ehs-dark-gray);
    text-align: center;
    margin-top: 0;
    max-width: 100%;
}

@media (max-width: 1100px) {
    .service-hero-split__content {
        padding-left: 24px;
    }
}

@media (max-width: 768px) {
    .service-hero-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    /* Image on top on mobile: swap column order */
    .service-hero-split__media {
        order: -1;
    }
    .service-hero-split__content {
        order: 0;
    }

    .service-hero-split__content {
        padding: 40px 20px;
    }

    .service-hero-split__heading {
        font-size: 1.75rem;
    }

    /* Full-width buttons inside content padding, no extra margin on group */
    .service-hero-split__content .hero-cta-group {
        margin-left: 0;
        margin-right: 0;
        margin-top: 1.5rem;
        width: 100%;
        padding: 0;
    }

    /* Hero-below badges: first two full width, last row 50/50 */
    .hero-below .hero-badges {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .hero-below .hero-badge:nth-child(1),
    .hero-below .hero-badge:nth-child(2) {
        grid-column: 1 / -1;
    }
}

/* Service Container */
.service-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Service Layout - Two Column */
.service-layout {
    display: flex;
    gap: 40px;
    margin: 40px 0;
}

.service-sidebar {
    flex: 0 0 280px;
    position: sticky;
    top: 100px; /* Offset for Elementor header */
    align-self: flex-start;
}

.service-content {
    flex: 1;
    min-width: 0;
}

/* Reduce top margin for first service section in main content */
.service-content > .service-section:first-child {
    margin-top: 0;
    padding-top: 0;
}

/* Service Meta Cards */
.service-meta-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.service-meta-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--ehs-white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-meta-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.service-meta-card__icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ehs-navy);
}

.service-meta-card__icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--ehs-navy);
}

.service-meta-card__content {
    flex: 1;
    min-width: 0;
}

.service-meta-card__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 4px;
    line-height: 1.2;
}

.service-meta-card__value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ehs-navy);
    line-height: 1.3;
    word-wrap: break-word;
}

/* Service Sidebar Navigation */
.service-sidebar-menu {
    background: var(--ehs-white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0;
    list-style: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.service-sidebar-menu li {
    border-bottom: 1px solid #e0e0e0;
}

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

.service-sidebar-menu a {
    display: block;
    padding: 15px 20px;
    color: var(--ehs-dark-gray);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-sidebar-menu a:hover {
    background: var(--ehs-light-gray);
    color: var(--ehs-navy);
    padding-left: 25px;
}

.service-sidebar-menu a.current {
    background: var(--ehs-navy);
    color: var(--ehs-white);
    font-weight: 700;
}

/* Service Section */
.service-section {
    margin: 60px 0;
    padding: 40px 32px;
}

.service-section h2 {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--ehs-navy);
    margin-bottom: 1.5rem;
}

.service-section h3 {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--ehs-navy);
    margin-bottom: 1rem;
}

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

/* Three Column Layout */
.service-section-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.service-col {
    text-align: center;
    padding: 30px 20px;
    background: var(--ehs-white);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-col:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.service-col-icon {
    font-size: 3rem;
    color: var(--ehs-navy);
    margin-bottom: 1.5rem;
}

.service-col-icon img {
    max-width: 80px;
    height: auto;
}

.service-col h3 {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--ehs-navy);
    margin-bottom: 1rem;
}

.service-col p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ehs-dark-gray);
}

/* Service column variant - left-aligned for detailed content */
.service-col-left {
    text-align: left !important;
}

.service-col-left h3,
.service-col-left h4,
.service-col-left p,
.service-col-left ul,
.service-col-left li {
    text-align: left !important;
}

/* ========================================
   FEDERAL AGENCIES SECTION (Homepage)
   ======================================== */

.federal-agencies-section .agency-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    align-items: stretch;
    margin-bottom: 40px;
}

.federal-agencies-section .agency-logo {
    display: flex;
    flex-direction: column;
    text-align: center;
    min-height: 140px;
}

/* Fixed-height logo area so all labels align evenly */
.federal-agencies-section .agency-logo-img-wrap {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.federal-agencies-section .agency-logo-img {
    max-width: 150px;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.federal-agencies-section .agency-logo-img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.federal-agencies-section .agency-logo-placeholder {
    height: 80px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--ehs-dark-gray);
    flex-shrink: 0;
}

.federal-agencies-section .agency-logo-label {
    margin-top: 12px;
    margin-bottom: 0;
    font-size: 0.85rem;
    color: var(--ehs-dark-gray);
    flex-shrink: 0;
}

/* Service List/Grid */
.service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.service-list-item {
    background: var(--ehs-light-gray);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--ehs-navy);
}

.service-list-item h4 {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--ehs-navy);
    margin-bottom: 0.75rem;
}

.service-list-item p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* FAQ Section */
.service-faq {
    margin: 60px 0;
}

.service-faq-item {
    background: var(--ehs-white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.service-faq-question {
    width: 100%;
    text-align: left;
    background: var(--ehs-white);
    border: none;
    padding: 20px 25px;
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ehs-navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.service-faq-question:hover {
    background: var(--ehs-light-gray);
}

.service-faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ehs-navy);
    transition: transform 0.3s ease;
}

.service-faq-question.active::after {
    content: '−';
}

.service-faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.service-faq-answer.active {
    padding: 0 25px 20px 25px;
    max-height: 1000px;
}

.service-faq-answer p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--ehs-dark-gray);
}

/* CTA Section */
.service-cta {
    background: var(--ehs-navy);
    color: var(--ehs-white);
    padding: 60px 40px;
    text-align: center;
    border-radius: 8px;
    margin: 60px 0;
}

.service-cta h2 {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--ehs-white);
    margin-bottom: 1.5rem;
}

.service-cta p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.service-cta-button {
    display: inline-block;
    background: var(--ehs-gold);
    color: var(--ehs-navy);
    padding: 15px 40px;
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 2px solid var(--ehs-gold);
}

.service-cta-button:hover {
    background: transparent;
    color: var(--ehs-white);
    border-color: var(--ehs-white);
}

/* In-content CTA section (e.g. Industrial Hygiene page) */
.service-cta-section {
    background: var(--ehs-navy);
    color: var(--ehs-white);
    padding: 60px 40px;
    text-align: center;
    border-radius: 8px;
    margin: 60px 0;
}
.service-cta-section h2 {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--ehs-white);
    margin-bottom: 0.75rem;
}
.service-cta-section h3 {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--ehs-gold);
    margin-bottom: 1rem;
}
.service-cta-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.service-cta-section .cta-button {
    display: inline-block;
    background: var(--ehs-gold);
    color: var(--ehs-navy);
    padding: 15px 40px;
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 2px solid var(--ehs-gold);
}
.service-cta-section .cta-button:hover {
    background: transparent;
    color: var(--ehs-white);
    border-color: var(--ehs-white);
}

/* ========================================
   SERVICE COMPONENTS
   ======================================== */

/* Video Component */
.service-component-video {
    margin: 40px 0;
}

.service-component-video__embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-component-video__embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.service-component-video__caption {
    margin-top: 16px;
    font-family: 'Maven Pro', sans-serif;
    font-size: 0.95rem;
    color: var(--ehs-dark-gray);
    text-align: center;
    font-style: italic;
}

/* Checklist Component */
.service-component-checklist {
    margin: 40px 0;
}

.service-component-checklist__title {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--ehs-navy);
    margin-bottom: 24px;
}

.service-component-checklist__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.service-component-checklist__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--ehs-light-gray);
    border-radius: 6px;
    transition: background 0.3s ease;
}

.service-component-checklist__item:hover {
    background: #e8e8e8;
}

.service-component-checklist__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--ehs-gold);
    margin-top: 2px;
}

.service-component-checklist__icon svg {
    width: 100%;
    height: 100%;
}

.service-component-checklist__text {
    font-family: 'Maven Pro', sans-serif;
    font-size: 1rem;
    color: var(--ehs-dark-gray);
    line-height: 1.6;
}

/* Timeline Component */
.service-component-timeline {
    margin: 40px 0;
}

.service-component-timeline__title {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--ehs-navy);
    margin-bottom: 32px;
}

.service-component-timeline__container {
    position: relative;
    padding-left: 40px;
}

.service-component-timeline__container::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--ehs-gold);
}

.service-component-timeline__item {
    position: relative;
    margin-bottom: 32px;
    display: flex;
    gap: 20px;
}

.service-component-timeline__item:last-child {
    margin-bottom: 0;
}

.service-component-timeline__step {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.service-component-timeline__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--ehs-gold);
    color: var(--ehs-navy);
    border-radius: 50%;
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.service-component-timeline__content {
    flex: 1;
    padding-top: 8px;
}

.service-component-timeline__step-title {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--ehs-navy);
    margin-bottom: 8px;
}

.service-component-timeline__step-description {
    font-family: 'Maven Pro', sans-serif;
    font-size: 1rem;
    color: var(--ehs-dark-gray);
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   Project Timeline - Vertical with Line & Calendar Icons
   ======================================== */
.service-component-projects {
    margin: 60px 0;
}

.service-component-projects__title {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--ehs-navy);
    margin-bottom: 40px;
    text-align: center;
}

/* Timeline Container */
.project-timeline {
    position: relative;
    padding-left: 100px;
}

/* Vertical Line */
.project-timeline__line {
    position: absolute;
    left: 35px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(0, 51, 102, 0.15);
    border-radius: 2px;
}

/* Progress Line (fills on scroll) */
.project-timeline__progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, var(--ehs-gold) 0%, var(--ehs-navy) 100%);
    border-radius: 2px;
    transition: height 0.3s ease-out;
}

/* Timeline Item */
.project-timeline__item {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-start;
    opacity: 0.6;
    transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.project-timeline__item.is-active {
    opacity: 1;
    transform: translateX(0);
}

.project-timeline__item:last-child {
    margin-bottom: 0;
}

/* Marker (Calendar Icon + Year) */
.project-timeline__marker {
    position: absolute;
    left: -100px;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 74px;
}

.project-timeline__icon {
    width: 52px;
    height: 52px;
    background: #fff;
    border: 3px solid var(--ehs-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.project-timeline__item.is-active .project-timeline__icon {
    background: var(--ehs-navy);
    border-color: var(--ehs-gold);
    box-shadow: 0 0 0 4px rgba(255, 184, 28, 0.3);
}

.project-timeline__icon svg {
    width: 24px;
    height: 24px;
    color: var(--ehs-navy);
    transition: color 0.3s ease;
}

.project-timeline__item.is-active .project-timeline__icon svg {
    color: var(--ehs-gold);
}

.project-timeline__year {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--ehs-navy);
    margin-top: 8px;
    text-align: center;
    white-space: nowrap;
}

/* Timeline Card */
.project-timeline__card {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 51, 102, 0.08);
    border: 1px solid rgba(0, 51, 102, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-timeline__item.is-active .project-timeline__card {
    box-shadow: 0 4px 16px rgba(0, 51, 102, 0.15);
    border-color: var(--ehs-gold);
}

.project-timeline__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.12);
}

.project-timeline__card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding: 16px 20px;
    background: var(--ehs-navy);
    color: #fff;
}

.project-timeline__card-year {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--ehs-navy);
    background: var(--ehs-gold);
    padding: 4px 12px;
    border-radius: 4px;
    white-space: nowrap;
}

.project-timeline__card-title {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff !important;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.project-timeline__card-value {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--ehs-gold);
    background: rgba(255, 184, 28, 0.15);
    padding: 4px 12px;
    border-radius: 4px;
    margin-left: 12px;
    white-space: nowrap;
}

.project-timeline__card-body {
    padding: 16px 20px;
}

.project-timeline__card-client {
    font-family: 'Maven Pro', sans-serif;
    font-size: 0.95rem;
    color: var(--ehs-dark-gray);
    margin: 0 0 8px 0;
}

.project-timeline__card-client strong {
    color: var(--ehs-navy);
}

.project-timeline__card-description {
    font-family: 'Maven Pro', sans-serif;
    font-size: 0.95rem;
    color: var(--ehs-dark-gray);
    line-height: 1.5;
    margin: 0;
}

.project-timeline__card-footer {
    padding: 12px 20px;
    background: var(--ehs-light-gray);
    border-top: 1px solid rgba(0, 51, 102, 0.08);
}

.project-timeline__card-service {
    font-family: 'Maven Pro', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ehs-navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Project Timeline Responsive */
@media (max-width: 768px) {
    .project-timeline {
        padding-left: 70px;
    }

    .project-timeline__line {
        left: 24px;
        width: 3px;
    }

    .project-timeline__marker {
        left: -70px;
        width: 52px;
    }

    .project-timeline__icon {
        width: 44px;
        height: 44px;
    }

    .project-timeline__icon svg {
        width: 20px;
        height: 20px;
    }

    .project-timeline__year {
        font-size: 0.75rem;
    }

    .project-timeline__card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .project-timeline__card-year {
        font-size: 0.8rem;
    }

    .project-timeline__card-value {
        margin-left: 0;
    }

    .project-timeline__card-title {
        font-size: 1rem;
        min-width: auto;
    }

    .service-component-projects__title {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }
}

/* Component Spacing */
.service-component {
    margin: 40px 0;
}

.service-component:first-child {
    margin-top: 0;
}

.service-component:last-child {
    margin-bottom: 0;
}

/* ========================================
   MIGRATED CONTENT STYLES
   For content migrated from live site
   ======================================== */

/* Section Headings */
.service-section-heading {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--ehs-navy);
    margin: 48px 0 24px 0;
    line-height: 1.3;
}

.service-section-heading:first-child {
    margin-top: 0;
}

/* Body Text */
.service-text {
    font-family: 'Maven Pro', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--ehs-dark-gray);
    margin-bottom: 24px;
}

.service-intro {
    font-family: 'Maven Pro', sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--ehs-dark-gray);
    margin-bottom: 32px;
}

/* Bullet Lists (Traditional Style) */
.service-content-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 32px 0;
}

.service-content-list > li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    font-family: 'Maven Pro', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ehs-dark-gray);
}

.service-content-list > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--ehs-gold);
    border-radius: 50%;
}

.service-content-list > li strong {
    color: var(--ehs-navy);
    font-weight: 700;
}

/* Nested Sub-lists */
.service-sublist {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
}

.service-sublist > li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-family: 'Maven Pro', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ehs-dark-gray);
}

.service-sublist > li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--ehs-navy);
    font-weight: 700;
}

/* ========================================
   IMPACTFUL CHECKLISTS
   ========================================
   Reusable checklist components for service pages.
   Two variants: Primary (orange checks) and Highlight (navy box with gold bullets)
*/

/* Primary Checklist - Orange Checkboxes on White */
.service-checklist-primary {
    list-style: none;
    padding: 0;
    margin: 24px 0 32px 0;
}

.service-checklist-primary > li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 14px;
    font-family: 'Maven Pro', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ehs-dark-gray);
}

.service-checklist-primary > li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ehs-gold);
    color: var(--ehs-white);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(255, 184, 28, 0.3);
}

/* Highlight Checklist - Navy Box with Gold Border */
.service-checklist-highlight {
    list-style: none;
    padding: 32px 40px;
    margin: 32px 0;
    background: var(--ehs-navy);
    border: 3px solid var(--ehs-gold);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 51, 102, 0.2);
}

/* Optional heading before highlight box */
h3.service-checklist-highlight-heading {
    font-family: 'Maven Pro', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ehs-white) !important;
    margin: 32px 0 16px 0;
    text-align: center;
    letter-spacing: 0.3px;
}

.service-checklist-highlight > li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 16px;
    font-family: 'Maven Pro', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--ehs-white);
}

.service-checklist-highlight > li:last-child {
    margin-bottom: 0;
}

.service-checklist-highlight > li::before {
    content: '⊕';
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--ehs-gold);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
}

/* Intro text before checklist (optional) */
.service-checklist-intro {
    font-family: 'Maven Pro', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ehs-dark-gray);
    margin: 32px 0 16px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-checklist-primary > li,
    .service-checklist-highlight > li {
        font-size: 1rem;
        padding-left: 36px;
    }

    .service-checklist-highlight {
        padding: 24px 20px;
    }

    .service-checklist-highlight-heading {
        font-size: 1.3rem;
    }
}

/* Images in Content */
.service-image-container {
    margin: 32px 0;
    text-align: center;
}

.service-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 51, 102, 0.12);
}

.service-image-caption {
    font-family: 'Maven Pro', sans-serif;
    font-size: 0.9rem;
    color: var(--ehs-dark-gray);
    text-align: center;
    margin-top: 12px;
    font-style: italic;
}

/* Video Embeds */
.service-video-container {
    margin: 32px 0;
    text-align: center;
}

.service-video-container iframe {
    max-width: 100%;
    width: 100%;
    max-width: 800px;
    height: 450px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 51, 102, 0.12);
    border: none;
}

@media (max-width: 768px) {
    .service-video-container iframe {
        height: 300px;
    }
}

/* Image Gallery Grid */
.service-image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 32px 0;
}

.service-gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 51, 102, 0.12);
}

.service-gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.service-gallery-item:hover .service-gallery-image {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .service-image-gallery {
        grid-template-columns: 1fr;
    }

    .service-gallery-image {
        height: 180px;
    }
}

/* Highlight Boxes */
.service-highlight-box {
    background: var(--ehs-light-gray);
    border-left: 4px solid var(--ehs-navy);
    padding: 24px 28px;
    margin: 32px 0;
    border-radius: 0 8px 8px 0;
}

.service-highlight-box p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Industry/Area List Grid */
.service-area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 32px 0;
}

.service-area-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--ehs-light-gray);
    border-radius: 6px;
    font-family: 'Maven Pro', sans-serif;
    font-size: 1rem;
    color: var(--ehs-dark-gray);
}

.service-area-item::before {
    content: '✓';
    color: var(--ehs-gold);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Responsive for Migrated Content */
@media (max-width: 768px) {
    .service-section-heading {
        font-size: 1.6rem;
        margin: 36px 0 20px 0;
    }

    .service-text,
    .service-intro {
        font-size: 1rem;
    }

    .service-content-list > li {
        font-size: 1rem;
        padding-left: 24px;
    }

    .service-area-grid {
        grid-template-columns: 1fr;
    }
}

/* Content Images */
.wp-block-image,
.service-content figure {
    margin: 40px 0;
}

.wp-block-image.aligncenter,
.service-content figure.aligncenter {
    text-align: center;
}

.wp-block-image img,
.service-content figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 51, 102, 0.12);
}

.wp-block-image figcaption,
.service-content figcaption {
    font-family: 'Maven Pro', sans-serif;
    font-size: 0.9rem;
    color: var(--ehs-dark-gray);
    text-align: center;
    margin-top: 12px;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 992px) {
    .service-layout {
        flex-direction: column;
    }
    
    .service-sidebar {
        position: static;
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }
    
    .service-meta-cards {
        flex-direction: row;
        flex-wrap: wrap;
        margin-bottom: 20px;
    }
    
    .service-meta-card {
        flex: 1;
        min-width: 200px;
    }
    
    .service-section-3col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .service-hero h1 {
        font-size: 2rem;
    }
    
    .service-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .service-hero-text {
        font-size: 1rem;
    }
    
    .service-hero-stat {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
    
    .service-section h2 {
        font-size: 2rem;
    }
    
    .service-meta-cards {
        flex-direction: column;
    }
    
    .service-meta-card {
        min-width: 100%;
    }
    
    .service-section-3col {
        grid-template-columns: 1fr;
    }
    
    /* Service Components Responsive */
    .service-component-checklist__list {
        grid-template-columns: 1fr;
    }
    
    .service-component-timeline__container {
        padding-left: 30px;
    }
    
    .service-component-timeline__number {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }
    
    .service-component-timeline__container::before {
        left: 15px;
    }
    
    .service-cta,
    .service-cta-section {
        padding: 40px 20px;
    }
    
    .service-cta h2,
    .service-cta-section h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .service-hero {
        min-height: 300px;
        padding: 80px 15px 60px;
        /* Extra top padding so hero H1 clears fixed header on mobile */
    }

    .service-hero h1 {
        font-size: 1.5rem;
    }
    
    .service-hero-stat {
        font-size: 0.85rem;
        padding: 0.5rem 0.85rem;
        margin: 0.75rem 0;
        max-width: 90%;
        text-align: center;
    }

    .service-container {
        padding: 0 15px;
    }

    .service-section {
        margin: 40px 0;
        padding: 20px 32px;
    }
}

/* ========================================
   TABLE OF CONTENTS SIDEBAR
   ======================================== */

/* ToC Container */
.service-toc {
    background: var(--ehs-white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* ToC Header */
.service-toc__header {
    background: var(--ehs-navy);
    padding: 15px 20px;
}

.service-toc__title {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--ehs-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ToC List */
.service-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: calc(100vh - 250px); /* Account for header + ToC header */
    overflow-y: auto;
}

.service-toc__item {
    border-bottom: 1px solid #e0e0e0;
}

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

/* Indentation for heading levels */
.service-toc__item--level-2 {
    /* Base level, no indent */
}

.service-toc__item--level-3 {
    padding-left: 15px;
}

.service-toc__item--level-4 {
    padding-left: 30px;
}

/* ToC Links */
.service-toc__link {
    display: block;
    padding: 12px 20px;
    color: var(--ehs-dark-gray);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.service-toc__link:hover {
    background: var(--ehs-light-gray);
    color: var(--ehs-navy);
    border-left-color: var(--ehs-gold);
}

.service-toc__link:focus {
    outline: 2px solid var(--ehs-gold);
    outline-offset: -2px;
    background: var(--ehs-light-gray);
}

.service-toc__link--active {
    background: rgba(0, 51, 102, 0.08);
    color: var(--ehs-navy);
    font-weight: 600;
    border-left-color: var(--ehs-navy);
}

/* Level-specific link styling */
.service-toc__item--level-3 .service-toc__link {
    font-size: 0.85rem;
    padding-top: 10px;
    padding-bottom: 10px;
}

.service-toc__item--level-4 .service-toc__link {
    font-size: 0.8rem;
    padding-top: 8px;
    padding-bottom: 8px;
    color: #666;
}

/* ========================================
   RELATED SERVICES CARDS
   ======================================== */

.service-related {
    margin: 60px 0;
    padding: 60px 32px;
    background: var(--ehs-light-gray);
}

.service-related__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-related__title {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--ehs-navy);
    text-align: center;
    margin-bottom: 40px;
}

.service-related__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Home page: Multi-column grid */
.ehs-services-section .service-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Vertical cards in related services (inner service pages) */
.service-related .service-card {
    flex-direction: column;
    align-items: stretch;
}

.service-related .service-card__image,
.service-related .service-card__icon {
    flex: none;
    width: 100%;
    height: 180px; /* Standard height for vertical cards */
}

.service-related .service-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 30px;
}

/* Home page: Tablet responsive - 2 columns */
@media (max-width: 1024px) {
    .ehs-services-section .service-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Related services mobile - single column */
@media (max-width: 768px) {
    .service-related__grid,
    .ehs-services-section .service-related__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-related .service-card {
        flex-direction: column;
    }

    .service-related .service-card__image,
    .service-related .service-card__icon {
        flex: none;
        width: 100%;
        height: 180px;
    }
}

/* Service Card */
.service-card {
    background: var(--ehs-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-card__image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card__image img {
    transform: scale(1.05);
}

.service-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    width: 100%;
    background: var(--ehs-light-gray);
    overflow: hidden;
}

.service-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card__content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card__title {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--ehs-navy);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.service-card__excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ehs-dark-gray);
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ehs-navy);
    text-decoration: none;
    transition: color 0.2s ease;
}

.service-card__link::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5l7 7l-7 7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.2s ease;
    vertical-align: middle;
}

.service-card:hover .service-card__link,
.service-card__link:hover {
    color: var(--ehs-gold);
}

.service-card:hover .service-card__link::after,
.service-card__link:hover::after {
    transform: translateX(4px);
}

.service-card:focus {
    outline: 2px solid var(--ehs-gold);
    outline-offset: 2px;
}

.service-card__link:focus {
    outline: 2px solid var(--ehs-gold);
    outline-offset: 2px;
}

/* ========================================
   SERVICES ARCHIVE PAGE
   ======================================== */

/* Archive Intro Text */
.service-archive-intro {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--ehs-dark-gray);
    max-width: 800px;
    margin: 0 auto 60px;
}

/* Category Section */
.service-category-section {
    margin-bottom: 80px;
}

.service-category-section:last-child {
    margin-bottom: 0;
}

/* Category Title (H3) */
.service-category-title {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--ehs-navy);
    margin: 0 0 40px 0;
    text-align: center;
}

/* Category Description */
.service-category-description {
    text-align: center;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--ehs-dark-gray);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Empty State Message */
.service-archive-empty {
    text-align: center;
    font-size: 1.1rem;
    color: var(--ehs-dark-gray);
    grid-column: 1 / -1;
    padding: 60px 20px;
}

/* CTA Button Container */
.service-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.service-cta-buttons .ehs-btn {
    margin: 0;
}

/* ========================================
   ARTICLE CARDS
   ======================================== */

.article-related {
    padding: 60px 32px;
}

.article-related__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-related__title {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--ehs-navy);
    margin: 0 0 40px 0;
    text-align: center;
}

.article-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Article Card */
.article-card {
    background: var(--ehs-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.article-card__image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.article-card__image a {
    display: block;
    width: 100%;
    height: 100%;
}

.article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-card__image img {
    transform: scale(1.05);
}

.article-card__content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card__category {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ehs-gold);
    margin: 0 0 10px 0;
}

.article-card__title {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--ehs-navy);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.article-card__title a {
    color: var(--ehs-navy);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-card__title a:hover {
    color: var(--ehs-gold);
}

.article-card__excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ehs-dark-gray);
    margin: 0 0 15px 0;
    flex-grow: 1;
}

.article-card__meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--ehs-dark-gray);
    margin: 0 0 15px 0;
    padding-top: 15px;
    border-top: 1px solid var(--ehs-light-gray);
}

.article-card__date,
.article-card__author {
    display: flex;
    align-items: center;
}

.article-card__date::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cpath d='M16 2v4'/%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    vertical-align: middle;
}

.article-card__author::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0 -4 -4h-8a4 4 0 0 0 -4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    vertical-align: middle;
}

.article-card__link {
    display: inline-flex;
    align-items: center;
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ehs-navy);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-card__link::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5l7 7l-7 7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.2s ease;
    vertical-align: middle;
}

.article-card__link:hover {
    color: var(--ehs-gold);
}

.article-card__link:hover::after {
    transform: translateX(4px);
}

.article-card__link:focus {
    outline: 2px solid var(--ehs-gold);
    outline-offset: 2px;
}

/* ========================================
   CREDENTIAL CARDS
   ======================================== */

.credential-card {
    background: var(--ehs-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.credential-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.credential-card__image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--ehs-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.credential-card__image::before,
.credential-card__image::after {
    display: none !important;
    content: none !important;
}

.credential-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.3s ease;
    background: transparent;
    opacity: 1 !important;
    filter: none !important;
    position: relative;
    z-index: 1;
}

.credential-card:hover .credential-card__image img {
    transform: scale(1.05);
}

.credential-card__content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.credential-card__acronym {
    display: inline-block;
    background: var(--ehs-gold);
    color: var(--ehs-navy);
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.credential-card__title {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--ehs-navy);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.credential-card__issuing-org {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--ehs-dark-gray);
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.credential-card__category {
    display: inline-block;
    font-family: 'Maven Pro', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 3px;
    margin-bottom: 12px;
}

.credential-card__category--professional {
    background: #2271b1;
    color: white;
}

.credential-card__category--business {
    background: #d63638;
    color: white;
}

.credential-card__category--license {
    background: #00a32a;
    color: white;
}

.credential-card__category--affiliation {
    background: #826eb4;
    color: white;
}

.credential-card__excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ehs-dark-gray);
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.credential-card__link {
    display: inline-flex;
    align-items: center;
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ehs-navy);
    text-decoration: none;
    transition: color 0.2s ease;
    margin-top: auto;
}

.credential-card__link::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5l7 7l-7 7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.2s ease;
    vertical-align: middle;
}

.credential-card__link:hover {
    color: var(--ehs-gold);
}

.credential-card__link:hover::after {
    transform: translateX(4px);
}

.credential-card__link:focus {
    outline: 2px solid var(--ehs-gold);
    outline-offset: 2px;
}

/* Simple credential card (footer and compact contexts) */
.ehs-credential-card-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: 'Maven Pro', sans-serif;
}

.ehs-credential-card-simple__image {
    margin-bottom: 16px;
    line-height: 0;
}

.ehs-credential-card-simple__image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.ehs-credential-card-simple__content {
    width: 100%;
}

.ehs-credential-card-simple__title {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ehs-navy);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.ehs-credential-card-simple__link {
    color: var(--ehs-navy);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ehs-credential-card-simple__link:hover {
    color: var(--ehs-gold);
}

.ehs-credential-card-simple__link:focus {
    outline: 2px solid var(--ehs-gold);
    outline-offset: 2px;
}

.ehs-credential-card-simple__description {
    font-family: 'Maven Pro', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ehs-dark-gray);
    margin: 0;
}

/* Footer credentials section (heading + grid) */
.ehs-footer-credentials-section {
    margin-bottom: 60px;
}

.ehs-footer-credentials-section .ehs-footer-heading {
    text-align: center;
    margin-bottom: 40px;
}

/* Footer credentials grid - equal-height rows */
.ehs-footer-credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 32px 24px;
    align-items: stretch;
}

/* Footer: white cards (for logos with white bg), equal height */
.ehs-footer .ehs-credential-card-simple {
    background: var(--ehs-white);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    padding: 24px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ehs-footer .ehs-credential-card-simple__image {
    flex-shrink: 0;
    margin-bottom: 16px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ehs-footer .ehs-credential-card-simple__image img {
    max-width: 100%;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.ehs-footer .ehs-credential-card-simple__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.ehs-footer .ehs-credential-card-simple__title {
    color: var(--ehs-navy);
    font-size: 1rem;
    margin: 0 0 8px 0;
}

.ehs-footer .ehs-credential-card-simple__title a,
.ehs-footer .ehs-credential-card-simple__link {
    color: var(--ehs-navy);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ehs-footer .ehs-credential-card-simple__title a:hover,
.ehs-footer .ehs-credential-card-simple__link:hover {
    color: var(--ehs-gold);
}

.ehs-footer .ehs-credential-card-simple__description {
    color: var(--ehs-dark-gray);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

@media (max-width: 991px) {
    .ehs-footer-credentials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 20px;
    }
}

@media (max-width: 480px) {
    .ehs-footer-credentials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Credential Cards Grid */
.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

@media (max-width: 991px) {
    .credentials-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }
    
    .credential-card__image {
        height: 160px;
    }
    
    .credential-card__content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .credentials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .credential-card__title {
        font-size: 1.1rem;
    }
    
    .credential-card__excerpt {
        font-size: 0.9rem;
    }
}

/* ========================================
   HORIZONTAL CARD VARIANT
   Full-width cards with image left, content right
   ======================================== */

.card-horizontal {
    flex-direction: row !important;
    align-items: stretch;
    width: 100%;
}

/* Image - fixed width left side */
.card-horizontal .service-card__image,
.card-horizontal .service-card__icon,
.card-horizontal .credential-card__image,
.card-horizontal .article-card__image,
.card-horizontal .ehs-post-card-image {
    flex: 0 0 280px;
    width: 280px;
    height: auto;
    min-height: 180px;
}

/* Content - fills remaining space */
.card-horizontal .service-card__content,
.card-horizontal .credential-card__content,
.card-horizontal .article-card__content,
.card-horizontal .ehs-post-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 30px;
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
    .card-horizontal {
        flex-direction: column !important;
    }

    .card-horizontal .service-card__image,
    .card-horizontal .service-card__icon,
    .card-horizontal .credential-card__image,
    .card-horizontal .article-card__image,
    .card-horizontal .ehs-post-card-image {
        flex: none;
        width: 100%;
        height: 200px;
    }
}

/* Credential Single Template */
.credential-single-logo {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ========================================
   MOBILE TOC STYLES
   ======================================== */

/* Mobile Toggle Button */
.service-toc__toggle {
    display: none;
    width: 100%;
    padding: 15px 20px;
    background: var(--ehs-navy);
    border: none;
    cursor: pointer;
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--ehs-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-items: center;
    justify-content: space-between;
}

.service-toc__toggle-icon {
    transition: transform 0.3s ease;
}

.service-toc--expanded .service-toc__toggle-icon {
    transform: rotate(180deg);
}

/* Mobile ToC State */
.service-toc--mobile {
    position: relative;
}

.service-toc--mobile .service-toc__toggle {
    display: flex;
}

.service-toc--mobile .service-toc__header {
    display: none;
}

.service-toc--mobile .service-toc__list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.service-toc--mobile.service-toc--expanded .service-toc__list {
    max-height: 400px;
    overflow-y: auto;
}

/* ========================================
   TOC & CARDS RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 992px) {
    /* ToC moves to top of content on tablet */
    .service-toc {
        position: static;
        margin-bottom: 30px;
    }

    /* Article Cards - 2 columns */
    .article-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .service-related__title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .service-related {
        padding: 40px 32px;
    }

    .service-card__image {
        height: 160px;
    }

    /* Archive Page Responsive */
    .service-category-title {
        font-size: 1.75rem;
        margin-bottom: 30px;
    }

    .service-category-section {
        margin-bottom: 60px;
    }

    .service-archive-intro {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .service-cta-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
    }

    .service-cta-buttons .ehs-btn {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center;
        box-sizing: border-box;
    }

    /* Article Cards - single column */
    .article-related__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-related__title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .article-related {
        padding: 40px 32px;
    }

    .article-card__image {
        height: 160px;
    }

    .service-card__content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .service-card__title {
        font-size: 1.1rem;
    }

    .service-card__excerpt {
        font-size: 0.9rem;
    }
}

/* Screen reader only class */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ========================================
   EHS BUTTON STYLES
   Standard button classes for Elementor buttons
   ======================================== */

/* Base Button Styles */
.ehs-btn {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

/* Allow line breaks in buttons that contain <br> tags */
.ehs-btn br {
    display: block;
}

.ehs-btn:has(br) {
    white-space: normal;
}

/* Prevent visited color changes on all buttons - maintain original colors */
.ehs-btn:visited {
    /* Color will be set by specific button type rules below */
}

.ehs-btn:focus {
    outline: 2px solid #FFB81C;
    outline-offset: 2px;
}

/* Solid Primary Button */
.ehs-btn-solid-primary {
    background-color: #003366;
    color: #ffffff;
    font-size: 16px;
    padding: 15px 30px;
    box-shadow: 0 5px 10px rgba(0, 51, 102, 0.3);
}

.ehs-btn-solid-primary:hover {
    background-color: #157537;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.4);
}

.ehs-btn-solid-primary:visited {
    color: #ffffff !important;
    background-color: #003366 !important;
}

/* Solid Secondary Button (Gold) */
.ehs-btn-solid-secondary {
    background-color: #FFB81C;
    color: #003366;
    font-size: 16px;
    padding: 20px 30px;
    box-shadow: 0 5px 10px rgba(30, 64, 90, 0.5);
}

.ehs-btn-solid-secondary:hover {
    background-color: #157537;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 184, 28, 0.4);
}

/* Solid Secondary Button (White Text) */
.ehs-btn-solid-secondary-white {
    background-color: #FFB81C;
    color: #ffffff;
    font-size: 16px;
    padding: 20px 30px;
    box-shadow: 0 5px 10px rgba(30, 64, 90, 0.5);
}

.ehs-btn-solid-secondary-white:hover {
    background-color: #157537;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 184, 28, 0.4);
}

/* Solid Green Button */
.ehs-btn-solid-green {
    background-color: #157537;
    color: #ffffff;
    font-size: 16px;
    padding: 15px 30px;
    box-shadow: 0 5px 10px rgba(21, 117, 55, 0.3);
}

.ehs-btn-solid-green:hover {
    background-color: #0d4d24;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(21, 117, 55, 0.4);
}

.ehs-btn-solid-green:visited {
    color: #ffffff !important;
    background-color: #157537 !important;
}

/* Solid Gold (Darker) */
.ehs-btn-solid-gold-dark {
    background-color: #d28c0e;
    color: #ffffff;
    font-size: 16px;
    padding: 20px 30px;
    box-shadow: 0 5px 10px rgba(30, 64, 90, 0.5);
}

.ehs-btn-solid-gold-dark:hover {
    background-color: #157537;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(210, 140, 14, 0.4);
}

/* Outline Primary Button */
.ehs-btn-outline-primary {
    background-color: transparent;
    color: #003366;
    border: 2px solid #003366;
    font-size: 16px;
    padding: 15px 30px;
}

.ehs-btn-outline-primary:hover {
    background-color: #003366;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 51, 102, 0.2);
}

/* Outline Primary (Green Hover) */
.ehs-btn-outline-primary-green {
    background-color: transparent;
    color: #003366;
    border: 2px solid #003366;
    font-size: 16px;
    padding: 15px 30px;
}

.ehs-btn-outline-primary-green:hover {
    background-color: #157537;
    border-color: #157537;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(21, 117, 55, 0.2);
}

/* Outline Secondary Button (Gold) */
.ehs-btn-outline-secondary {
    background-color: transparent;
    color: #003366;
    border: 2px solid #FFB81C;
    font-size: 16px;
    padding: 15px 30px;
}

.ehs-btn-outline-secondary:hover {
    background-color: #FFB81C;
    color: #003366;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 184, 28, 0.2);
}

/* Outline Secondary (Green Hover) */
.ehs-btn-outline-secondary-green {
    background-color: transparent;
    color: #FFB81C;
    border: 2px solid #FFB81C;
    font-size: 16px;
    padding: 15px 30px;
}

.ehs-btn-outline-secondary-green:hover {
    background-color: #157537;
    border-color: #157537;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(21, 117, 55, 0.2);
}

/* Outline White Button */
.ehs-btn-outline-white {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 16px;
    padding: 15px 30px;
}

.ehs-btn-outline-white:hover {
    background-color: #ffffff;
    color: #003366;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Outline White (Green Hover) */
.ehs-btn-outline-white-green {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 16px;
    padding: 15px 30px;
}

.ehs-btn-outline-white-green:hover {
    background-color: #157537;
    border-color: #157537;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(21, 117, 55, 0.3);
}

/* Button Sizes */
.ehs-btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.ehs-btn-md {
    padding: 15px 30px;
    font-size: 16px;
}

.ehs-btn-lg {
    padding: 20px 40px;
    font-size: 18px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ehs-btn {
        font-size: 14px;
        padding: 12px 24px;
    }
    
    .ehs-btn-sm {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .ehs-btn-lg {
        padding: 18px 36px;
        font-size: 16px;
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   ELEMENTOR BUTTON STYLES
   Replace Elementor's default button styles with brand colors
   ======================================== */

/* Base Elementor button styles */
.elementor-button,
.elementor-button-link {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Default Elementor button - Primary style (Navy) */
.elementor-button:not(.elementor-button-secondary):not([class*="outline"]):not([class*="text"]),
.elementor-button-link:not(.elementor-button-secondary):not([class*="outline"]):not([class*="text"]) {
    background-color: #003366;
    color: #ffffff;
    border: none;
    box-shadow: 0 5px 10px rgba(0, 51, 102, 0.3);
}

.elementor-button:not(.elementor-button-secondary):not([class*="outline"]):not([class*="text"]):hover,
.elementor-button-link:not(.elementor-button-secondary):not([class*="outline"]):not([class*="text"]):hover {
    background-color: #157537;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.4);
}

/* Secondary button style (Gold) */
.elementor-button.elementor-button-secondary,
.elementor-button-link.elementor-button-secondary {
    background-color: #FFB81C;
    color: #003366;
    border: none;
    box-shadow: 0 5px 10px rgba(30, 64, 90, 0.5);
}

.elementor-button.elementor-button-secondary:hover,
.elementor-button-link.elementor-button-secondary:hover {
    background-color: #157537;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 184, 28, 0.4);
}

/* ========================================
   FOOTER STYLES
   SEO-optimized footer with certifications and locations
   Uses design system variables and spacing scale
   ======================================== */

/* Main Footer Container */
.ehs-footer {
    background-color: var(--ehs-navy);
    color: var(--ehs-white);
    font-family: 'Maven Pro', sans-serif;
    padding: 60px 0 24px;
    margin-top: 80px;
}

.ehs-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer Grid Layout */
.ehs-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

/* Footer Sections */
.ehs-footer-section {
    display: flex;
    flex-direction: column;
}

/* Footer Typography */
.ehs-footer-heading {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--ehs-white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ehs-footer-text {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
}

.ehs-footer-link {
    color: var(--ehs-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.ehs-footer-link:hover {
    color: #157537;
    text-decoration: underline;
}

.ehs-footer-link:focus {
    outline: 2px solid var(--ehs-gold);
    outline-offset: 2px;
}

/* Footer Logo - Colored version (helmet + green visible on navy) */
.ehs-footer-logo {
    margin-bottom: 20px;
}

.ehs-footer-logo img {
    max-width: 180px;
    height: auto;
    /* No filter: show logo in brand color (helmet + green) instead of full white */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ehs-footer-logo a {
    display: inline-block;
}

.ehs-footer-logo a:hover img {
    opacity: 0.85;
    transform: scale(1.02);
}

/* Footer Social Links */
.ehs-footer-social {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.ehs-footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ehs-footer-social-link svg {
    width: 20px;
    height: 20px;
    stroke: rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ehs-footer-social-link:hover {
    background: var(--ehs-gold);
    transform: translateY(-3px);
}

.ehs-footer-social-link:hover svg {
    stroke: var(--ehs-navy);
}

/* Contact Information */
.ehs-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ehs-footer-contact li {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ehs-footer-contact li:last-child {
    margin-bottom: 0;
}

/* Footer Contact Icons - SVG styling (white, turns gold on hover) */
.ehs-footer-contact-icon {
    color: var(--ehs-white) !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.ehs-footer-contact-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--ehs-white) !important;
    fill: none !important;
    color: var(--ehs-white) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ehs-footer-contact li:hover .ehs-footer-contact-icon svg {
    stroke: var(--ehs-gold) !important;
    color: var(--ehs-gold) !important;
    transform: scale(1.1);
}

.ehs-footer-contact-text,
.ehs-footer-contact-text a,
.ehs-footer-contact li {
    color: var(--ehs-white) !important;
    font-size: 1rem;
    line-height: 1.6;
}

.ehs-footer-contact-text a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.ehs-footer-contact-text a:hover {
    color: var(--ehs-gold) !important;
}

/* Address Styling with Icon */
.ehs-footer-address-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ehs-footer-address {
    font-style: normal;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin: 0;
}

.ehs-footer-address strong {
    color: var(--ehs-white);
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

/* Certifications */
.ehs-footer-certifications {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ehs-footer-cert-item {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
}

.ehs-footer-cert-item:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--ehs-gold);
    font-weight: 700;
}

.ehs-footer-cert-item:last-child {
    margin-bottom: 0;
}

.ehs-footer-cert-item strong {
    color: var(--ehs-white);
    font-weight: 600;
}

/* Service Locations */
.ehs-footer-locations {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ehs-footer-locations li {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
}

.ehs-footer-locations li:last-child {
    margin-bottom: 0;
}

.ehs-footer-locations strong {
    color: var(--ehs-white);
    font-weight: 600;
}

/* Navigation Links */
.ehs-footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ehs-footer-nav li {
    margin-bottom: 8px;
}

.ehs-footer-nav li:last-child {
    margin-bottom: 0;
}

.ehs-footer-nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.ehs-footer-nav a:hover {
    color: var(--ehs-gold);
    padding-left: 8px;
}

/* Footer Divider */
.ehs-footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 40px 0 24px;
    padding-top: 24px;
}

/* Copyright */
.ehs-footer-copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ehs-footer-copyright a {
    color: var(--ehs-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.ehs-footer-copyright a:hover {
    color: #157537;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .ehs-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .ehs-footer {
        padding: 40px 0 20px;
    }
}

@media (max-width: 768px) {
    .ehs-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .ehs-footer {
        padding: 32px 0 20px;
    }
    
    .ehs-footer-heading {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }
    
    .ehs-footer-text {
        font-size: 0.95rem;
    }
    
    .ehs-footer-container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .ehs-footer {
        padding: 24px 0 16px;
        margin-top: 60px;
    }
    
    .ehs-footer-heading {
        font-size: 1rem;
    }
    
    .ehs-footer-text,
    .ehs-footer-contact-text,
    .ehs-footer-cert-item,
    .ehs-footer-locations li {
        font-size: 0.9rem;
    }
    
    .ehs-footer-copyright {
        font-size: 0.85rem;
    }
}

/* ========================================
   HEADER STYLES
   Sticky header with logo, navigation, and contact button
   Uses design system variables and spacing scale
   ======================================== */

/* Page wrappers - allow mega menu to extend outside (no clipping on service pages) */
#page,
.site,
.elementor-page {
    overflow-x: visible !important;
}

/* Main Header Container - overflow:visible so mega menu is not clipped */
.ehs-header,
#site-header.ehs-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background-color: var(--ehs-white) !important;
    box-shadow: 0 2px 20px rgba(0, 51, 102, 0.08) !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-bottom: 1px solid rgba(0, 51, 102, 0.06) !important;
    overflow: visible !important;
}

/* Scrolled state - compact header */
.ehs-header.scrolled,
#site-header.ehs-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 51, 102, 0.12) !important;
}

.ehs-header.scrolled .ehs-header-grid {
    min-height: 88px !important;
}

.ehs-header.scrolled .ehs-header-logo img {
    max-width: 110px !important;
}

.ehs-header.scrolled .ehs-header-contact {
    min-height: 88px !important;
}

.ehs-header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    overflow: visible;
}

/* Header Grid Layout - 3 columns - overflow:visible for mega menu */
.ehs-header-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    min-height: 100px;
    gap: 40px;
    width: 100%;
    transition: min-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

/* Header Logo */
.ehs-header-logo {
    display: flex;
    align-items: center;
}

.ehs-header-logo a {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.ehs-header-logo a:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.ehs-header-logo img {
    max-width: 140px;
    height: auto;
    display: block;
    transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header Navigation - Aligned Right - overflow:visible so mega menu dropdown is not clipped */
.ehs-header-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    overflow: visible;
}

.ehs-header-nav ul,
.ehs-header-nav .ehs-header-nav-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    flex-direction: row !important;
    overflow: visible !important;
    width: auto !important;
}

.ehs-header-nav li,
.ehs-header-nav .menu-item {
    margin: 0 !important;
    list-style: none !important;
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    flex-shrink: 0 !important;
    position: relative !important;
    vertical-align: middle !important;
}

/* Navigation Links - Refined Typography */
.ehs-header-nav a,
.ehs-header-nav .menu-item a {
    font-family: 'Maven Pro', sans-serif !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    color: var(--ehs-navy) !important;
    text-decoration: none !important;
    padding: 12px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    letter-spacing: 0.8px !important;
    height: 100% !important;
    position: relative !important;
}

/* Navigation Icons - Matching phone icon weight (stroke-width: 2) */
.ehs-header-nav > ul > .menu-item > a > .nav-icon,
.ehs-header-nav > .ehs-header-nav-menu > .menu-item > a > .nav-icon {
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    flex-shrink: 0 !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Services icon - Briefcase */
.nav-icon-services {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003366' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'%3E%3C/path%3E%3C/svg%3E") !important;
}

/* About icon - Users/team */
.nav-icon-about {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003366' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='9' cy='7' r='4'%3E%3C/circle%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'%3E%3C/path%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'%3E%3C/path%3E%3C/svg%3E") !important;
}

/* Contact icon - Mail */
.nav-icon-contact {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003366' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

/* Resources/Blog icon - File text */
.nav-icon-resources {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003366' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3Cline x1='16' y1='13' x2='8' y2='13'%3E%3C/line%3E%3Cline x1='16' y1='17' x2='8' y2='17'%3E%3C/line%3E%3Cpolyline points='10 9 9 9 8 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

/* Insights icon - Lightbulb */
.nav-icon-insights {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003366' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6'%3E%3C/path%3E%3Cpath d='M10 22h4'%3E%3C/path%3E%3Cpath d='M15.09 14c.18-.98.65-1.74 1.41-2.5A4.65 4.65 0 0 0 18 8 6 6 0 0 0 6 8c0 1 .23 2.23 1.5 3.5A4.61 4.61 0 0 1 8.91 14'%3E%3C/path%3E%3C/svg%3E") !important;
}

/* Icon hover states - change to gold */
.ehs-header-nav .menu-item > a:hover .nav-icon-services {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFB81C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'%3E%3C/path%3E%3C/svg%3E") !important;
}

.ehs-header-nav .menu-item > a:hover .nav-icon-about {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFB81C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='9' cy='7' r='4'%3E%3C/circle%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'%3E%3C/path%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'%3E%3C/path%3E%3C/svg%3E") !important;
}

.ehs-header-nav .menu-item > a:hover .nav-icon-contact {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFB81C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

.ehs-header-nav .menu-item > a:hover .nav-icon-resources {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFB81C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3Cline x1='16' y1='13' x2='8' y2='13'%3E%3C/line%3E%3Cline x1='16' y1='17' x2='8' y2='17'%3E%3C/line%3E%3Cpolyline points='10 9 9 9 8 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

.ehs-header-nav .menu-item > a:hover .nav-icon-insights {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFB81C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6'%3E%3C/path%3E%3Cpath d='M10 22h4'%3E%3C/path%3E%3Cpath d='M15.09 14c.18-.98.65-1.74 1.41-2.5A4.65 4.65 0 0 0 18 8 6 6 0 0 0 6 8c0 1 .23 2.23 1.5 3.5A4.61 4.61 0 0 1 8.91 14'%3E%3C/path%3E%3C/svg%3E") !important;
}

/* Animated underline effect - adjusted for icons */
.ehs-header-nav > ul > li > a::after,
.ehs-header-nav > .ehs-header-nav-menu > li > a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 8px !important;
    left: 16px !important;
    right: 16px !important;
    height: 2px !important;
    background: linear-gradient(90deg, var(--ehs-gold), #d28c0e) !important;
    transform: scaleX(0) !important;
    transform-origin: center !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 1px !important;
}

.ehs-header-nav > ul > li > a:hover::after,
.ehs-header-nav > .ehs-header-nav-menu > li > a:hover::after,
.ehs-header-nav > ul > li.current-menu-item > a::after,
.ehs-header-nav > .ehs-header-nav-menu > li.current-menu-item > a::after {
    transform: scaleX(1) !important;
}

.ehs-header-nav a:hover,
.ehs-header-nav a:focus {
    color: var(--ehs-navy) !important;
}

.ehs-header-nav .current-menu-item > a,
.ehs-header-nav .current_page_item > a {
    color: var(--ehs-navy) !important;
    font-weight: 600 !important;
}

/* Dropdown Menu Styles - Standard dropdown (not mega menu) */
/* Only apply to sub-menus that are direct children of li, not inside mega-menu-column */
.ehs-header-nav li > .sub-menu:not(.mega-menu .sub-menu) {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--ehs-white);
    min-width: 200px;
    box-shadow: 0 3px 10px rgba(30, 64, 90, 0.31);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 100;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    flex-direction: column;
    gap: 0;
}

.ehs-header-nav li:hover > .sub-menu:not(.mega-menu .sub-menu),
.ehs-header-nav li:focus-within > .sub-menu:not(.mega-menu .sub-menu) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Standard sub-menu items (not in mega menu) */
.ehs-header-nav li > .sub-menu:not(.mega-menu .sub-menu) li {
    width: 100%;
}

.ehs-header-nav li > .sub-menu:not(.mega-menu .sub-menu) a {
    font-size: 15px;
    padding: 20px 15px;
    color: #000000;
    text-transform: none;
    border-bottom: 1px solid #ededed;
    white-space: nowrap;
}

.ehs-header-nav li > .sub-menu:not(.mega-menu .sub-menu) a:hover {
    background: #ededed;
    color: #00ce1b;
}

.ehs-header-nav li > .sub-menu:not(.mega-menu .sub-menu) .current-menu-item > a {
    background: var(--ehs-navy);
    color: var(--ehs-white);
}

/* ============================================
   MEGA MENU STYLES
   ============================================ */

/* Mega Menu Container - Replaces standard dropdown for menu items with children */
.ehs-header-nav .menu-item-has-children {
    position: relative !important;
}

.ehs-header-nav .menu-item-has-children.has-mega-menu {
    position: static !important;
    overflow: visible !important;
}

.ehs-header-nav .menu-item-has-children .mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: min(1200px, calc(100vw - 80px));
    max-width: 100%;
    background-color: var(--ehs-navy);
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 8px 8px;
    display: none;
    z-index: 9999;
    /* Overlap nav item by 4px so hover doesn't break when moving from link to dropdown */
    margin-top: -4px;
    padding-top: 24px; /* extra top padding so content aligns; bridge is overlap + ::before */
    box-sizing: border-box;
}

/* Invisible bridge: extends into space between nav link and dropdown so hover stays active */
.ehs-header-nav .menu-item-has-children .mega-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    pointer-events: auto;
    background: transparent;
}

/* Mega menu visibility is controlled by JS (with delay) so it doesn't disappear
   when moving from Services link to dropdown. Keep focus-within for keyboard. */
.ehs-header-nav .menu-item-has-children:focus-within .mega-menu {
    display: block;
}

/* Mega Menu Grid Layout - 5 columns on desktop (per homepage guide) */
.ehs-header-nav .mega-menu-content {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Mega Menu Column - Force Equal Width */
.ehs-header-nav .mega-menu-column {
    padding: 0 10px;
    min-width: 0; /* Prevents content from expanding column */
    flex: 1;
    overflow: visible; /* Allow titles/links to wrap instead of clipping */
}

/* Category Headers - wrap so long titles don't clip; min-height keeps all titles even (1- or 2-line) */
.ehs-header-nav .mega-menu-column-title {
    color: var(--ehs-gold);
    font-family: 'Maven Pro', sans-serif;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255, 184, 28, 0.3);
    padding-bottom: 8px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-height: 2.6em; /* ~2 lines so single-line titles align with two-line ones */
    display: flex;
    align-items: flex-end; /* baseline at bottom so borders line up */
}

/* Menu Links in Mega Menu */
.ehs-header-nav .mega-menu-column .sub-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.ehs-header-nav .mega-menu-column .sub-menu li {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    visibility: visible !important;
    list-style: none !important;
}

.ehs-header-nav .mega-menu-column .sub-menu a {
    color: #FFFFFF !important;
    font-family: 'Maven Pro', sans-serif !important;
    font-size: 14px !important;
    padding: 10px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    white-space: normal !important; /* Allow text wrapping */
    text-transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 1.4 !important;
}

/* Service Icons in Mega Menu - stroke-width 2 matching header icons */
.ehs-header-nav .mega-menu-column .sub-menu a .service-icon {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
    stroke: rgba(255, 255, 255, 0.7) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.ehs-header-nav .mega-menu-column .sub-menu a .service-link-text {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.ehs-header-nav .mega-menu-column .sub-menu a:hover,
.ehs-header-nav .mega-menu-column .sub-menu a:focus {
    color: var(--ehs-gold) !important;
}

.ehs-header-nav .mega-menu-column .sub-menu a:hover .service-icon {
    stroke: var(--ehs-gold) !important;
    transform: scale(1.1) !important;
}

.ehs-header-nav .mega-menu-column .sub-menu a:hover .service-link-text {
    transform: translateX(4px) !important;
}

/* Responsive: Tablet (2 columns) */
@media (max-width: 991px) {
    .ehs-header-nav .mega-menu-content {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px;
    }
}

/* Responsive: Mobile (single column, accordion) */
@media (max-width: 767px) {
    .ehs-header-nav .menu-item-has-children .mega-menu {
        position: static;
        width: 100%;
        padding: 20px;
        border-radius: 0;
        transform: none;
        left: auto;
    }
    
    .ehs-header-nav .mega-menu-content {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    /* Mobile: Show as accordion */
    .ehs-header-nav .mega-menu-column-title {
        cursor: pointer;
        user-select: none;
    }
    
    .ehs-header-nav .mega-menu-column .sub-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .ehs-header-nav .mega-menu-column.active .sub-menu {
        max-height: 1000px;
    }
}

/* Header Contact Section */
.ehs-header-contact {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    min-height: 100px;
    transition: min-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Phone Number with Icon - ONLY applies to non-button phone links */
.ehs-header-phone,
.ehs-header-contact a[href^="tel:"]:not(.ehs-btn) {
    font-family: 'Maven Pro', sans-serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    color: var(--ehs-navy) !important;
    text-decoration: none !important;
    text-align: center !important;
    padding: 10px 0 !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    letter-spacing: 0.3px !important;
}

/* Phone Icon - SVG inline - ONLY for non-button phone links */
.ehs-header-phone::before,
.ehs-header-contact a[href^="tel:"]:not(.ehs-btn)::before {
    content: '' !important;
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003366' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    flex-shrink: 0 !important;
    transition: transform 0.25s ease !important;
}

.ehs-header-phone:hover,
.ehs-header-contact a[href^="tel:"]:not(.ehs-btn):hover {
    color: var(--ehs-gold) !important;
}

.ehs-header-phone:hover::before,
.ehs-header-contact a[href^="tel:"]:not(.ehs-btn):hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFB81C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E") !important;
    transform: scale(1.1) !important;
}

/* CTA Button Container */
.ehs-header-button {
    display: inline-block;
    padding-left: 10px;
    padding-right: 10px;
}

/* Phone as button: layout; color/padding come from .ehs-btn-solid-secondary below */
.ehs-header-button a[href^="tel:"].ehs-btn {
    display: inline-block !important;
    gap: 0 !important;
    white-space: nowrap !important;
}
.ehs-header-button a[href^="tel:"]::before {
    content: none !important;
    display: none !important;
}

/* Header CTA Button - Premium Styling */
.ehs-header-button .ehs-btn {
    background: linear-gradient(135deg, var(--ehs-navy) 0%, #1E405A 100%) !important;
    color: var(--ehs-white) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    letter-spacing: 0.8px !important;
    padding: 14px 28px !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    text-decoration: none !important;
    display: inline-block !important;
    cursor: pointer !important;
}

/* Shine effect on hover */
.ehs-header-button .ehs-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    transition: left 0.5s ease !important;
}

.ehs-header-button .ehs-btn:hover::before {
    left: 100% !important;
}

.ehs-header-button .ehs-btn:hover {
    background: linear-gradient(135deg, #157537 0%, #0d5c2a 100%) !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(21, 117, 55, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.ehs-header-button .ehs-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 4px 15px rgba(21, 117, 55, 0.3) !important;
}

/* Header phone button: white bg, blue text, blue outline, padding */
.ehs-header-button .ehs-btn-solid-secondary {
    background: var(--ehs-white) !important;
    color: var(--ehs-navy) !important;
    border: 2px solid var(--ehs-navy) !important;
    padding: 14px 28px !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.15) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.8px !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
}
.ehs-header-button .ehs-btn-solid-secondary:hover {
    background: var(--ehs-navy) !important;
    color: var(--ehs-white) !important;
    border-color: var(--ehs-navy) !important;
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.3) !important;
    transform: translateY(-2px) !important;
}
.ehs-header-button .ehs-btn-solid-secondary:active {
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.2) !important;
    transform: translateY(0) !important;
}

/* Mobile Toggle Button - Premium Hamburger Menu */
.ehs-header-mobile-toggle {
    display: none;
    background: transparent;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 10px;
    color: var(--ehs-navy);
    font-size: 30px;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    border-radius: 6px;
    width: 48px;
    height: 48px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ehs-header-mobile-toggle:hover,
.ehs-header-mobile-toggle:focus {
    color: var(--ehs-gold);
    background: rgba(0, 51, 102, 0.05);
    border-color: rgba(0, 51, 102, 0.1);
    outline: none;
}

.ehs-header-mobile-toggle .icon-bar {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: currentColor;
    margin: 4px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    transform-origin: center;
}

.ehs-header-mobile-toggle[aria-expanded="true"] {
    color: var(--ehs-gold);
}

.ehs-header-mobile-toggle[aria-expanded="true"] .icon-bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.ehs-header-mobile-toggle[aria-expanded="true"] .icon-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.ehs-header-mobile-toggle[aria-expanded="true"] .icon-bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.ehs-header-mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding-top: 0;
    padding-bottom: 0;
    background: var(--ehs-white);
    box-shadow: 0 3px 10px rgba(30, 64, 90, 0.31);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding-top 0.3s ease, padding-bottom 0.3s ease;
    z-index: 999;
}

.ehs-header-mobile-menu.active {
    max-height: 80vh;
    overflow-y: auto;
    padding-top: 16px;
    padding-bottom: 22px;
}

.ehs-header-mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ehs-header-mobile-menu li {
    border-bottom: 1px solid #e0e0e0;
}

.ehs-header-mobile-menu li:last-child {
    border-bottom: none;
}

.ehs-header-mobile-menu a {
    display: block;
    padding: 15px 20px;
    font-family: 'Maven Pro', sans-serif;
    font-weight: 400;
    font-size: 16px;
    text-transform: uppercase;
    color: var(--ehs-navy);
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.ehs-header-mobile-menu a:hover,
.ehs-header-mobile-menu a:focus {
    background: var(--ehs-navy);
    color: var(--ehs-white);
}

.ehs-header-mobile-menu .current-menu-item > a,
.ehs-header-mobile-menu .current_page_item > a {
    background: var(--ehs-navy);
    color: var(--ehs-white);
    font-weight: 600;
}

.ehs-header-mobile-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--ehs-light-gray);
    margin-left: 20px;
    padding: 0;
}

.ehs-header-mobile-menu .sub-menu a {
    font-size: 14px;
    text-transform: none;
    padding: 12px 20px;
    color: var(--ehs-navy);
    background: transparent;
}

.ehs-header-mobile-menu .sub-menu a:hover,
.ehs-header-mobile-menu .sub-menu a:focus {
    background: var(--ehs-navy);
    color: var(--ehs-white);
}

/* Responsive Design - Tablet */
@media (max-width: 1100px) {
    .ehs-header-container {
        padding: 0 24px;
    }

    .ehs-header-grid {
        gap: 24px;
    }

    .ehs-header-nav a,
    .ehs-header-nav .menu-item a {
        font-size: 13px !important;
        padding: 10px 12px !important;
        letter-spacing: 0.5px !important;
    }

    .ehs-header-contact {
        gap: 16px;
    }

    .ehs-header-phone,
    .ehs-header-contact a[href^="tel:"]:not(.ehs-btn) {
        font-size: 15px !important;
    }

    .ehs-header-button .ehs-btn-solid-primary {
        font-size: 13px !important;
        padding: 12px 20px !important;
    }
    
    .ehs-header-button .ehs-btn-solid-secondary {
        font-size: 13px !important;
        padding: 12px 20px !important;
    }
}

@media (max-width: 992px) {
    .ehs-header-grid {
        grid-template-columns: auto 1fr auto;
        min-height: 90px;
    }

    .ehs-header-nav a,
    .ehs-header-nav .menu-item a {
        font-size: 12px !important;
        padding: 10px !important;
    }

    /* Hide underline on smaller screens to save space */
    .ehs-header-nav > ul > li > a::after,
    .ehs-header-nav > .ehs-header-nav-menu > li > a::after {
        display: none !important;
    }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
    .ehs-header-container {
        padding: 0 20px;
    }

    .ehs-header-grid {
        grid-template-columns: auto 1fr auto;
        min-height: 70px;
        gap: 12px;
    }

    .ehs-header-logo {
        order: 1;
    }

    .ehs-header-logo img {
        max-width: 120px;
    }

    /* Scrolled state for mobile */
    .ehs-header.scrolled .ehs-header-grid {
        min-height: 66px !important;
    }

    .ehs-header.scrolled .ehs-header-logo img {
        max-width: 95px !important;
    }

    .ehs-header-mobile-toggle {
        display: block;
        order: 3;
    }

    .ehs-header-nav {
        display: none;
    }

    .ehs-header-contact {
        order: 2;
        flex-direction: row;
        gap: 12px;
        justify-content: flex-end;
        min-height: auto;
    }

    .ehs-header-phone,
    .ehs-header-contact a[href^="tel:"]:not(.ehs-btn) {
        font-size: 14px !important;
        padding: 8px 0 !important;
    }

    /* Hide phone text on mobile, show icon only */
    .ehs-header-phone {
        font-size: 0 !important;
    }

    .ehs-header-phone::before {
        width: 24px !important;
        height: 24px !important;
    }

    .ehs-header-button {
        display: none;
    }

    /* Show phone button on mobile, keep Get Started hidden (it's in mobile menu) */
    .ehs-header-contact .ehs-header-button:first-of-type {
        display: inline-block !important;
    }
    /* Phone button on mobile: same padding/size as desktop header button in this breakpoint */
    .ehs-header-contact .ehs-header-button:first-of-type a.ehs-btn {
        padding: 12px 20px !important;
        font-size: 13px !important;
    }
    .ehs-header-contact .ehs-header-button:last-of-type {
        display: none !important;
    }

    .ehs-header-mobile-menu {
        display: block;
    }

    /* Show button in mobile menu */
    .ehs-header-mobile-menu .hero-cta-group {
        display: block;
        margin-top: 20px;
        padding: 0 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .ehs-header-mobile-menu .hero-cta-group .ehs-btn {
        width: 100%;
        text-align: center;
        display: block;
        box-sizing: border-box;
        /* Blue bg, white text (primary) */
        background-color: var(--ehs-navy) !important;
        color: var(--ehs-white) !important;
        border: 2px solid var(--ehs-navy);
    }

    .ehs-header-mobile-menu .hero-cta-group .ehs-btn:hover,
    .ehs-header-mobile-menu .hero-cta-group .ehs-btn:focus {
        /* Inverse on hover */
        background-color: var(--ehs-white) !important;
        color: var(--ehs-navy) !important;
        border-color: var(--ehs-navy);
    }

    .ehs-header-mobile-menu .hero-cta-group .ehs-btn:visited {
        background-color: var(--ehs-navy) !important;
        color: var(--ehs-white) !important;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .ehs-header-container {
        padding: 0 16px;
    }

    .ehs-header-grid {
        min-height: 60px;
        gap: 8px;
    }

    .ehs-header-logo img {
        max-width: 100px;
    }

    .ehs-header-mobile-toggle {
        font-size: 24px;
        padding: 6px;
    }

    .ehs-header-mobile-toggle .icon-bar {
        width: 22px;
        height: 2px;
        margin: 4px 0;
    }
}

/* ========================================
   LAYOUT CONTAINERS
   ======================================== */

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Homepage Mission section - after hero, before services - normal flow */
.ehs-mission-section {
    background: var(--ehs-light-gray);
    padding: 60px 20px;
    text-align: center;
    margin-top: 0;
    clear: both;
}

.ehs-mission-section .container {
    max-width: 1000px;
}

.ehs-mission-section h2 {
    margin-bottom: 24px;
}

.ehs-mission-section p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--ehs-dark-gray);
    margin: 0;
}

/* Why Choose Us - 2x2 grid desktop, 1 col mobile */
.why-choose-us-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.why-column {
    text-align: center;
    padding: 30px;
    background: var(--ehs-light-gray);
    border-radius: 8px;
}

.why-column-icon {
    color: var(--ehs-green);
    margin-bottom: 20px;
}

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

.why-column h3 {
    color: var(--ehs-navy);
    margin-bottom: 15px;
}

.why-column p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ehs-dark-gray);
    margin: 0;
    text-align: left;
}

@media (max-width: 768px) {
    .why-choose-us-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   HOMEPAGE HERO SECTION
   ======================================== */

.ehs-hero-section {
    position: relative;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 51, 102, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    color: white;
}

.hero-content h1 {
    font-family: 'Maven Pro', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subheadline {
    font-family: 'Maven Pro', sans-serif;
    font-size: 1.25rem;
    color: var(--ehs-gold);
    margin: 20px 0;
    font-weight: 600;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 24px 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
    align-items: center;
}

/* Make primary CTA more prominent */
.hero-cta-group .ehs-btn-solid-green {
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(21, 117, 55, 0.4);
}

.hero-trust-signals {
    font-family: 'Maven Pro', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-top: 30px;
    font-weight: 400;
    letter-spacing: 0.3px;
    line-height: 1.6;
}

/* ========================================
   HOMEPAGE SECTIONS
   ======================================== */

.ehs-services-section,
.ehs-credentials-section,
.ehs-about-section,
.ehs-resources-section {
    padding: 80px 32px;
}

.ehs-services-section h2,
.ehs-credentials-section h2,
.ehs-about-section h2,
.ehs-resources-section h2 {
    font-family: 'Maven Pro', sans-serif;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ehs-navy);
    margin-bottom: 60px;
}

/* ========================================
   CREDENTIALS SECTION
   ======================================== */

.ehs-credentials-section {
    background: var(--ehs-light-gray);
}

.credentials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.credentials-content h2 {
    font-family: 'Maven Pro', sans-serif;
    text-align: left;
    margin-bottom: 20px;
}

.credentials-content p {
    font-family: 'Maven Pro', sans-serif;
    font-size: 1.25rem;
    color: var(--ehs-dark-gray);
    margin-bottom: 30px;
}

.metrics-row {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.metric {
    text-align: center;
}

.metric-value {
    font-family: 'Maven Pro', sans-serif;
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--ehs-navy);
    line-height: 1;
}

.metric-label {
    font-family: 'Maven Pro', sans-serif;
    display: block;
    font-size: 0.9rem;
    color: var(--ehs-dark-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
    font-weight: 600;
}

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

.badge-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 196px;
}

.badge-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.badge-item img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Contact (and other) credentials section: cert cards grid (simple cards from CPT) */
.ehs-credential-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.ehs-credentials-section .ehs-credential-cards-grid .ehs-credential-card-simple {
    background: var(--ehs-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ehs-credentials-section .ehs-credential-cards-grid .ehs-credential-card-simple:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.ehs-credentials-section .ehs-credential-cards-grid .ehs-credential-card-simple__image {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.ehs-credentials-section .ehs-credential-cards-grid .ehs-credential-card-simple__image img {
    max-width: 100%;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.ehs-credentials-section .ehs-credential-cards-grid .ehs-credential-card-simple__title {
    font-size: 1rem;
    margin: 0;
}

.ehs-credentials-section .ehs-credential-cards-grid .ehs-credential-card-simple__title a,
.ehs-credentials-section .ehs-credential-cards-grid .ehs-credential-card-simple__link {
    color: var(--ehs-navy);
    text-decoration: none;
}

.ehs-credentials-section .ehs-credential-cards-grid .ehs-credential-card-simple__title a:hover,
.ehs-credentials-section .ehs-credential-cards-grid .ehs-credential-card-simple__link:hover {
    color: var(--ehs-gold);
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.ehs-about-section {
    position: relative;
    background-color: var(--ehs-navy);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 51, 102, 0.85);
    z-index: 1;
}

.about-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 60px 20px;
    color: white;
    text-align: center;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.about-stats .stat {
    text-align: center;
}

.about-stats .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ehs-green);
}

.about-stats .stat-label {
    font-size: 1rem;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.95);
}

.about-content h2 {
    font-family: 'Maven Pro', sans-serif;
    color: white;
    margin-bottom: 30px;
}

.about-content p {
    font-family: 'Maven Pro', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: white;
}

/* ========================================
   RESPONSIVE STYLES - HOMEPAGE
   ======================================== */

@media (max-width: 992px) {
    .credentials-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .credentials-content h2 {
        text-align: center;
    }

    .badge-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Add padding-top to hero section to account for sticky header */
    .ehs-hero-section {
        padding-top: 70px;
        min-height: calc(600px - 70px);
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .hero-cta-group .ehs-btn {
        width: 100%;
        max-width: none;
        font-size: 15px;
        padding: 16px 20px;
        text-align: center;
    }

    .hero-badges {
        padding: 0 10px;
    }

    .hero-badge {
        font-size: 0.8rem !important;
        padding: 8px 12px !important;
    }

    .hero-trust-signals {
        font-size: 0.85rem;
        margin-top: 25px;
        padding: 0 20px;
    }

    /* Prevent ALL buttons from causing horizontal overflow on mobile */
    .ehs-btn {
        max-width: 100%;
        white-space: normal;
        word-wrap: break-word;
        box-sizing: border-box;
    }

    /* Section CTA buttons - full width on mobile */
    section .ehs-btn-outline,
    section .ehs-btn-solid-green,
    section .ehs-btn-solid-secondary {
        display: block;
        width: calc(100% - 40px);
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        font-size: 14px;
        padding: 16px 20px;
    }

    .badge-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .metrics-row {
        flex-direction: column;
        gap: 30px;
    }

    .ehs-services-section,
    .ehs-credentials-section,
    .ehs-about-section,
    .ehs-resources-section {
        padding: 60px 32px;
    }

    .about-stats {
        gap: 20px;
        padding: 30px 20px;
    }
}

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

    .metric-value {
        font-size: 2.5rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    /* Adjust hero section padding for smaller mobile header (60px) */
    .ehs-hero-section {
        padding-top: 60px;
        min-height: calc(600px - 60px);
    }
}

/* ========================================
   TEAM MEMBER STYLES
   ======================================== */

.team-member-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 0 auto 30px;
    display: block;
}

.team-member-card {
    text-align: center;
}

.team-member-card h3 {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--ehs-navy);
    margin-bottom: 10px;
}

.team-member-credentials {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ehs-gold);
    margin-bottom: 15px;
}

.team-member-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ehs-navy);
    margin-bottom: 20px;
}

.team-member-bio {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--ehs-dark-gray);
    margin-bottom: 20px;
    text-align: left;
}

.team-member-contact {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    margin-top: 30px;
}

.team-member-contact p {
    font-size: 0.95rem;
    color: var(--ehs-dark-gray);
    margin-bottom: 8px;
}

.team-member-contact strong {
    color: var(--ehs-navy);
}

.team-member-contact a {
    color: var(--ehs-navy);
    text-decoration: none;
    transition: color 0.2s ease;
}

.team-member-contact a:hover {
    color: var(--ehs-gold);
}

/* Team Grid Responsive */
@media (max-width: 992px) {
    .team-member-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    .team-member-image {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .team-member-card h3 {
        font-size: 1.5rem;
    }

    .team-member-credentials {
        font-size: 1rem;
    }

    .team-member-image {
        max-width: 100%;
    }
}

/* ========================================
   FORM STYLES
   ========================================

   Design System Form Classes:
   - .form-input - Text/email/tel inputs
   - .form-textarea - Textarea fields
   - .form-select - Select dropdowns
   - .form-label - Form labels
   - .form-group - Form field wrapper
   - .form-error - Error state
   - .form-success - Success state

   Also includes Elementor Pro Form widget overrides
   to ensure consistent styling across all forms.
   ======================================== */

/* Ensure all form elements have light color scheme */
input,
textarea,
select,
button {
    color-scheme: light;
}

/* Form Group Container */
.form-group {
    margin-bottom: 20px;
}

/* Form Labels */
.form-label {
    display: block;
    font-family: 'Maven Pro', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ehs-navy);
    margin-bottom: 8px;
}

/* Base Form Input Styles */
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: 'Maven Pro', sans-serif;
    font-size: 1rem;
    color: var(--ehs-dark-gray);
    background-color: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--ehs-navy);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #999999;
}

/* Textarea Specific */
.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Select Specific */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Error State */
.form-error,
.form-input.error,
.form-textarea.error,
.form-select.error {
    border-color: #dc3545;
}

.form-error:focus,
.form-input.error:focus,
.form-textarea.error:focus,
.form-select.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Success State */
.form-success,
.form-input.success,
.form-textarea.success,
.form-select.success {
    border-color: #157537;
}

.form-success:focus,
.form-input.success:focus,
.form-textarea.success:focus,
.form-select.success:focus {
    box-shadow: 0 0 0 3px rgba(21, 117, 55, 0.1);
}

/* Form Checkbox and Radio */
.form-checkbox,
.form-radio {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    accent-color: var(--ehs-navy);
    cursor: pointer;
}

/* ========================================
   ELEMENTOR PRO FORM WIDGET OVERRIDES
   ======================================== */

/* Elementor Form Field Inputs - CRITICAL: Explicit white background */
.elementor-form .elementor-field-group .elementor-field,
.elementor-form .elementor-field-group input[type="text"],
.elementor-form .elementor-field-group input[type="email"],
.elementor-form .elementor-field-group input[type="tel"],
.elementor-form .elementor-field-group input[type="url"],
.elementor-form .elementor-field-group input[type="number"],
.elementor-form .elementor-field-group input[type="date"],
.elementor-form .elementor-field-group input[type="password"],
.elementor-form .elementor-field-group textarea,
.elementor-form .elementor-field-group select,
.elementor-field-group .elementor-field:not(.elementor-select-wrapper),
.elementor-field-group .elementor-select-wrapper select {
    background-color: #ffffff !important;
    color: var(--ehs-dark-gray) !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 5px !important;
    padding: 12px 16px !important;
    font-family: 'Maven Pro', sans-serif !important;
    font-size: 1rem !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* Elementor Select Wrapper */
.elementor-form .elementor-select-wrapper,
.elementor-field-group .elementor-select-wrapper {
    background-color: #ffffff !important;
}

/* Elementor Form Focus States */
.elementor-form .elementor-field-group .elementor-field:focus,
.elementor-form .elementor-field-group input:focus,
.elementor-form .elementor-field-group textarea:focus,
.elementor-form .elementor-field-group select:focus {
    outline: none !important;
    border-color: var(--ehs-navy) !important;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1) !important;
}

/* Elementor Form Labels */
.elementor-form .elementor-field-label,
.elementor-field-group > label {
    font-family: 'Maven Pro', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    color: var(--ehs-navy) !important;
    margin-bottom: 8px !important;
}

/* Elementor Required Asterisk */
.elementor-form .elementor-mark-required .elementor-field-label:after {
    color: #dc3545 !important;
}

/* Elementor Form Placeholder */
.elementor-form .elementor-field::placeholder {
    color: #999999 !important;
}

/* Elementor Form Textarea */
.elementor-form .elementor-field-type-textarea textarea {
    min-height: 120px !important;
    resize: vertical !important;
}

/* Elementor Form Submit Button - Use EHS Button Styles */
.elementor-form .elementor-button[type="submit"],
.elementor-form .elementor-field-type-submit button {
    background-color: var(--ehs-navy) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 5px !important;
    padding: 15px 30px !important;
    font-family: 'Maven Pro', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease !important;
}

.elementor-form .elementor-button[type="submit"]:hover,
.elementor-form .elementor-field-type-submit button:hover {
    background-color: #157537 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 51, 102, 0.3) !important;
}

/* Elementor Form Messages */
.elementor-form .elementor-message {
    font-family: 'Maven Pro', sans-serif !important;
    padding: 12px 16px !important;
    border-radius: 5px !important;
    margin-top: 16px !important;
}

.elementor-form .elementor-message-success {
    background-color: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
}

.elementor-form .elementor-message-danger {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
}

/* Elementor Form Field Error State */
.elementor-form .elementor-field-group.elementor-error .elementor-field {
    border-color: #dc3545 !important;
}

/* ========================================
   GLOBAL FORM RESET - Ensure No Dark Backgrounds
   ======================================== */

/* Reset any dark backgrounds on ALL form elements */
input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]),
textarea,
select {
    background-color: #ffffff;
    color: #333333;
}

/* Ensure Elementor widgets with forms have proper backgrounds */
.elementor-widget-form .elementor-field-group .elementor-field {
    background-color: #ffffff !important;
}

/* WPForms Compatibility (if used) */
.wpforms-container .wpforms-field input,
.wpforms-container .wpforms-field textarea,
.wpforms-container .wpforms-field select {
    background-color: #ffffff !important;
    color: var(--ehs-dark-gray) !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 5px !important;
}

/* Contact Form 7 Compatibility (if used) */
.wpcf7-form input:not([type="submit"]),
.wpcf7-form textarea,
.wpcf7-form select {
    background-color: #ffffff !important;
    color: var(--ehs-dark-gray) !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 5px !important;
    padding: 12px 16px !important;
}

/* Form Responsive Styles */
@media (max-width: 768px) {
    .form-input,
    .form-textarea,
    .form-select,
    .elementor-form .elementor-field-group .elementor-field {
        padding: 10px 14px !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
    }

    .elementor-form .elementor-button[type="submit"] {
        width: 100% !important;
        padding: 14px 24px !important;
    }
}

/* ========================================
   INSIGHTS/BLOG ARCHIVE STYLES
   ======================================== */

/* Hero Section */
.ehs-insights-hero {
    position: relative;
    background-color: var(--ehs-navy);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ehs-insights-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.85) 0%, rgba(0, 51, 102, 0.75) 100%);
    pointer-events: none;
    z-index: 1;
}

.ehs-insights-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 1;
}

.ehs-insights-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 20px;
    max-width: 800px;
}

.ehs-insights-hero-content h1 {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.ehs-insights-hero-subtitle {
    font-family: 'Maven Pro', sans-serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Post Section */
.ehs-featured-post-section {
    padding: 80px 32px;
    background: var(--ehs-light-gray);
}

.ehs-featured-post-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ehs-featured-post {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 51, 102, 0.08);
}

.ehs-featured-post-image {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
}

.ehs-featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ehs-featured-post-image:hover img {
    transform: scale(1.05);
}

.ehs-featured-post-content {
    padding: 40px 40px 40px 0;
}

.ehs-featured-label {
    display: inline-block;
    background: linear-gradient(135deg, var(--ehs-gold) 0%, #d28c0e 100%);
    color: var(--ehs-navy);
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.ehs-post-category {
    display: inline-block;
    background: var(--ehs-gold);
    color: var(--ehs-white);
    font-family: 'Maven Pro', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-left: 12px;
    width: fit-content;
}

.ehs-featured-post-title {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--ehs-navy);
    line-height: 1.3;
    margin-bottom: 20px;
}

.ehs-featured-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ehs-featured-post-title a:hover {
    color: var(--ehs-gold);
}

.ehs-featured-post-excerpt {
    font-family: 'Maven Pro', sans-serif;
    font-size: 1.05rem;
    color: var(--ehs-dark-gray);
    line-height: 1.7;
    margin-bottom: 24px;
}

.ehs-featured-post-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
}

.ehs-post-date,
.ehs-post-read-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Maven Pro', sans-serif;
    font-size: 0.9rem;
    color: #666;
}

.ehs-post-date svg,
.ehs-post-read-time svg {
    width: 16px;
    height: 16px;
    stroke: var(--ehs-gold);
}

/* Posts Grid Section */
.ehs-posts-section {
    padding: 80px 32px;
    background: white;
}

.ehs-posts-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ehs-posts-section-title {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--ehs-navy);
    text-align: center;
    margin-bottom: 50px;
}

.ehs-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Post Card */
.ehs-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 51, 102, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.ehs-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 51, 102, 0.12);
}

.ehs-post-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.ehs-post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ehs-post-card:hover .ehs-post-card-image img {
    transform: scale(1.08);
}

.ehs-post-card-image-placeholder {
    background: linear-gradient(135deg, var(--ehs-light-gray) 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ehs-post-card-image-placeholder svg {
    width: 60px;
    height: 60px;
    stroke: var(--ehs-navy);
    opacity: 0.3;
}

.ehs-post-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ehs-post-card-content .ehs-post-category {
    font-size: 0.75rem;
    margin-left: 0;
    margin-bottom: 12px;
    background: var(--ehs-gold);
    color: var(--ehs-white);
    padding: 6px 14px;
    border-radius: 20px;
    width: fit-content;
}

.ehs-post-card-title {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--ehs-navy);
    line-height: 1.4;
    margin-bottom: 12px;
}

.ehs-post-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ehs-post-card-title a:hover {
    color: var(--ehs-gold);
}

.ehs-post-card-excerpt {
    font-family: 'Maven Pro', sans-serif;
    font-size: 0.95rem;
    color: var(--ehs-dark-gray);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.ehs-post-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--ehs-light-gray);
}

.ehs-post-card-meta .ehs-post-date {
    font-size: 0.85rem;
}

.ehs-post-card-meta .ehs-post-date svg {
    width: 14px;
    height: 14px;
}

.ehs-post-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Maven Pro', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ehs-navy);
    text-decoration: none;
    transition: all 0.3s ease;
}

.ehs-post-card-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.ehs-post-card-link:hover {
    color: var(--ehs-gold);
}

.ehs-post-card-link:hover svg {
    transform: translateX(4px);
}

/* Pagination */
.ehs-pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.ehs-pagination .page-numbers {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    align-items: center;
}

.ehs-pagination .page-numbers li {
    margin: 0;
}

.ehs-pagination .page-numbers a,
.ehs-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 8px 16px;
    font-family: 'Maven Pro', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ehs-navy);
    background: white;
    border: 2px solid var(--ehs-light-gray);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ehs-pagination .page-numbers a:hover {
    background: var(--ehs-navy);
    border-color: var(--ehs-navy);
    color: white;
}

.ehs-pagination .page-numbers .current {
    background: var(--ehs-navy);
    border-color: var(--ehs-navy);
    color: white;
}

.ehs-pagination .page-numbers a svg {
    width: 16px;
    height: 16px;
    margin: 0 4px;
}

.ehs-pagination .page-numbers .prev svg {
    margin-right: 8px;
}

.ehs-pagination .page-numbers .next svg {
    margin-left: 8px;
}

/* No Posts */
.ehs-no-posts {
    text-align: center;
    padding: 80px 20px;
}

.ehs-no-posts svg {
    width: 80px;
    height: 80px;
    stroke: var(--ehs-navy);
    opacity: 0.2;
    margin-bottom: 24px;
}

.ehs-no-posts h2 {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--ehs-navy);
    margin-bottom: 16px;
}

.ehs-no-posts p {
    font-family: 'Maven Pro', sans-serif;
    font-size: 1.05rem;
    color: var(--ehs-dark-gray);
    max-width: 500px;
    margin: 0 auto 30px;
}

/* CTA Section */
.ehs-insights-cta {
    padding: 100px 32px;
    background: linear-gradient(135deg, var(--ehs-navy) 0%, #1a4d7c 100%);
    position: relative;
    overflow: hidden;
}

.ehs-insights-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255, 184, 28, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.ehs-insights-cta .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.ehs-insights-cta-content {
    text-align: center;
}

.ehs-insights-cta-content h2 {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
}

.ehs-insights-cta-content p {
    font-family: 'Maven Pro', sans-serif;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Insights Archive Responsive */
@media (max-width: 992px) {
    .ehs-insights-hero-content h1 {
        font-size: 2.5rem;
    }

    .ehs-featured-post {
        grid-template-columns: 1fr;
    }

    .ehs-featured-post-image {
        min-height: 300px;
    }

    .ehs-featured-post-content {
        padding: 30px;
    }

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

@media (max-width: 768px) {
    .ehs-insights-hero {
        min-height: 280px;
    }

    .ehs-insights-hero-content {
        padding: 40px 20px;
    }

    .ehs-insights-hero-content h1 {
        font-size: 2rem;
    }

    .ehs-insights-hero-subtitle {
        font-size: 1rem;
    }

    .ehs-featured-post-section {
        padding: 60px 32px;
    }

    .ehs-featured-post-title {
        font-size: 1.5rem;
    }

    .ehs-posts-section {
        padding: 60px 32px;
    }

    .ehs-posts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ehs-post-card-image {
        height: 180px;
    }

    .ehs-pagination .page-numbers a,
    .ehs-pagination .page-numbers span {
        min-width: 40px;
        height: 40px;
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .ehs-insights-cta {
        padding: 60px 32px;
    }

    .ehs-insights-cta-content h2 {
        font-size: 1.75rem;
    }

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

/* ========================================
   SINGLE POST STYLES
   ======================================== */

/* Post Header */
.ehs-post-header {
    position: relative;
    background: linear-gradient(135deg, var(--ehs-navy) 0%, #1a4d7c 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ehs-post-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255, 184, 28, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.ehs-post-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.ehs-post-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 20px 60px;
    max-width: 900px;
}

.ehs-post-categories {
    margin-bottom: 20px;
}

.ehs-post-category-link {
    display: inline-block;
    background: rgba(255, 184, 28, 0.2);
    color: var(--ehs-gold);
    font-family: 'Maven Pro', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.ehs-post-category-link:hover {
    background: var(--ehs-gold);
    color: var(--ehs-navy);
}

.ehs-post-title {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    color: white;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.ehs-post-header .ehs-post-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.ehs-post-header .ehs-post-meta > span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Maven Pro', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.ehs-post-header .ehs-post-meta svg {
    width: 18px;
    height: 18px;
    stroke: var(--ehs-gold);
}

/* Featured Image */
.ehs-post-featured-image {
    background: var(--ehs-light-gray);
    padding: 0;
    margin-top: -40px;
    position: relative;
    z-index: 3;
}

.ehs-post-featured-image .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.ehs-post-featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 51, 102, 0.15);
    margin: 16px 0;
}

/* Post Content */
.ehs-post-content-wrapper {
    padding: 60px 0 40px;
    background: white;
}

.ehs-post-content-wrapper .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.ehs-post-content {
    font-family: 'Maven Pro', sans-serif;
    font-size: 1.1rem;
    color: var(--ehs-dark-gray);
    line-height: 1.85;
}

.ehs-post-content h2 {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--ehs-navy);
    margin: 48px 0 20px;
    line-height: 1.3;
}

.ehs-post-content h3 {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--ehs-navy);
    margin: 36px 0 16px;
    line-height: 1.4;
}

.ehs-post-content h4 {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--ehs-navy);
    margin: 28px 0 12px;
}

.ehs-post-content p {
    margin-bottom: 24px;
}

.ehs-post-content a {
    color: var(--ehs-navy);
    text-decoration: underline;
    text-decoration-color: var(--ehs-gold);
    text-underline-offset: 3px;
    transition: all 0.3s ease;
}

.ehs-post-content a:hover {
    color: var(--ehs-gold);
}

.ehs-post-content ul,
.ehs-post-content ol {
    margin: 24px 0;
    padding-left: 24px;
}

.ehs-post-content li {
    margin-bottom: 12px;
}

.ehs-post-content blockquote {
    margin: 32px 0;
    padding: 24px 32px;
    background: var(--ehs-light-gray);
    border-left: 4px solid var(--ehs-gold);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--ehs-navy);
}

.ehs-post-content blockquote p:last-child {
    margin-bottom: 0;
}

.ehs-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

.ehs-post-content pre {
    background: var(--ehs-navy);
    color: white;
    padding: 24px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
    font-size: 0.9rem;
}

.ehs-post-content code {
    background: var(--ehs-light-gray);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.ehs-post-content pre code {
    background: transparent;
    padding: 0;
}

/* ========================================
   Blog Post TOC Layout
   ======================================== */

/* Expand container width when TOC is present */
.ehs-post-layout--has-toc {
    max-width: 1200px;
    margin: 0 auto;
}

.ehs-post-content-wrapper .container:has(.ehs-post-layout--has-toc) {
    max-width: 1200px;
}

/* Two-column layout */
.ehs-post-layout {
    display: block;
}

.ehs-post-layout--has-toc {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 60px;
    align-items: start;
}

/* Sidebar */
.ehs-post-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

/* Override default max-width for main content when sidebar present */
.ehs-post-layout--has-toc .ehs-post-main {
    max-width: 800px;
}

/* Without TOC - center content */
.ehs-post-layout:not(.ehs-post-layout--has-toc) .ehs-post-main {
    max-width: 800px;
    margin: 0 auto;
}

/* Mobile: Stack layout */
@media (max-width: 991px) {
    .ehs-post-layout--has-toc {
        display: block;
    }

    .ehs-post-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        margin-bottom: 32px;
    }

    .ehs-post-sidebar .service-toc {
        background: var(--ehs-light-gray);
        border-radius: 8px;
        padding: 16px;
    }
}

/* Tags */
.ehs-post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-top: 32px;
    border-top: 1px solid var(--ehs-light-gray);
    margin-top: 40px;
}

.ehs-post-tags-label {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ehs-navy);
}

.ehs-post-tag {
    display: inline-block;
    background: var(--ehs-light-gray);
    color: var(--ehs-dark-gray);
    font-family: 'Maven Pro', sans-serif;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ehs-post-tag:hover {
    background: var(--ehs-navy);
    color: white;
}

/* Share */
.ehs-post-share {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    margin-top: 24px;
}

.ehs-post-share-label {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ehs-navy);
}

.ehs-post-share-links {
    display: flex;
    gap: 12px;
}

.ehs-share-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ehs-light-gray);
    color: var(--ehs-navy);
    transition: all 0.3s ease;
}

.ehs-share-link svg {
    width: 18px;
    height: 18px;
}

.ehs-share-link:hover {
    background: var(--ehs-navy);
    color: white;
    transform: translateY(-3px);
}

.ehs-share-linkedin:hover {
    background: #0077b5;
}

.ehs-share-twitter:hover {
    background: #1da1f2;
}

.ehs-share-facebook:hover {
    background: #1877f2;
}

.ehs-share-email:hover {
    background: var(--ehs-gold);
    color: var(--ehs-navy);
}

/* Author Section */
.ehs-author-section {
    padding: 60px 32px;
    background: var(--ehs-light-gray);
}

.ehs-author-section .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.ehs-author-box {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 51, 102, 0.06);
}

.ehs-author-avatar {
    flex-shrink: 0;
}

.ehs-author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.ehs-author-name {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--ehs-navy);
    margin-bottom: 12px;
}

.ehs-author-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ehs-author-name a:hover {
    color: var(--ehs-gold);
}

.ehs-author-bio {
    font-family: 'Maven Pro', sans-serif;
    font-size: 1rem;
    color: var(--ehs-dark-gray);
    line-height: 1.7;
    margin: 0;
}

/* Related Posts */
.ehs-related-posts-section {
    padding: 80px 32px;
    background: white;
}

.ehs-related-posts-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ehs-related-posts-title {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--ehs-navy);
    text-align: center;
    margin-bottom: 50px;
}

/* Post Navigation */
.ehs-post-navigation {
    padding: 60px 32px;
    background: var(--ehs-light-gray);
    border-top: 1px solid #e8e8e8;
}

.ehs-post-navigation .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.ehs-post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    max-width: 45%;
    transition: all 0.3s ease;
}

.ehs-post-nav-prev {
    align-items: flex-start;
}

.ehs-post-nav-next {
    align-items: flex-end;
    text-align: right;
    margin-left: auto;
}

.ehs-post-nav-placeholder {
    width: 45%;
}

.ehs-post-nav-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Maven Pro', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ehs-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ehs-post-nav-label svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.ehs-post-nav-title {
    font-family: 'Maven Pro', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ehs-navy);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.ehs-post-nav-link:hover .ehs-post-nav-title {
    color: var(--ehs-gold);
}

.ehs-post-nav-prev:hover .ehs-post-nav-label svg {
    transform: translateX(-4px);
}

.ehs-post-nav-next:hover .ehs-post-nav-label svg {
    transform: translateX(4px);
}

/* Single Post Responsive */
@media (max-width: 768px) {
    .ehs-post-header {
        min-height: 350px;
    }

    .ehs-post-header-content {
        padding: 60px 20px 40px;
    }

    .ehs-post-title {
        font-size: 2rem;
    }

    .ehs-post-header .ehs-post-meta {
        gap: 16px;
    }

    .ehs-post-header .ehs-post-meta > span {
        font-size: 0.85rem;
    }

    .ehs-post-featured-image {
        margin-top: -20px;
    }

    .ehs-post-content-wrapper {
        padding: 40px 0 30px;
    }

    .ehs-post-content {
        font-size: 1rem;
    }

    .ehs-post-content h2 {
        font-size: 1.5rem;
    }

    .ehs-post-content h3 {
        font-size: 1.25rem;
    }

    .ehs-post-tags {
        flex-wrap: wrap;
    }

    .ehs-post-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .ehs-author-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 30px 20px;
    }

    .ehs-related-posts-section {
        padding: 60px 32px;
    }

    .ehs-post-navigation .container {
        flex-direction: column;
        gap: 24px;
    }

    .ehs-post-nav-link {
        max-width: 100%;
    }

    .ehs-post-nav-next {
        align-items: flex-start;
        text-align: left;
        margin-left: 0;
    }

    .ehs-post-nav-placeholder {
        display: none;
    }
}

/* ========================================
   SERVICE SPECIAL CONTENT - ACCORDIONS
   ======================================== */

.service-accordions-container {
    margin: 40px 0;
}

.service-accordion {
    border: 1px solid #e0e0e0;
    margin-bottom: 12px;
    border-radius: 4px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 16px 20px;
    background-color: var(--ehs-light-gray);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-family: 'Maven Pro', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ehs-navy);
    transition: all 0.3s ease;
    text-align: left;
    border-radius: 0;
    outline: none;
    box-shadow: none;
}

.accordion-header:focus,
.accordion-header:focus-visible {
    outline: none;
    box-shadow: none;
    background-color: var(--ehs-light-gray);
    color: var(--ehs-navy);
}

.accordion-header:hover {
    background-color: #e8e8e8;
    color: var(--ehs-gold);
}

.accordion-header.is-open {
    background-color: var(--ehs-navy);
    color: var(--ehs-white);
}

.accordion-header.is-open:hover {
    background-color: #002a52;
}

.accordion-title {
    flex: 1;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.accordion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-header.is-open .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--ehs-white);
}

.accordion-content.is-open {
    overflow: visible;
    max-height: 3000px; /* allow server-rendered open state to show; JS sets exact height on init */
}

.accordion-inner {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.accordion-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-items li {
    padding-left: 24px;
    position: relative;
    font-family: 'Maven Pro', sans-serif;
    font-size: 0.95rem;
    color: var(--ehs-dark-gray);
    line-height: 1.6;
}

.accordion-items li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--ehs-gold);
    font-weight: bold;
}

.accordion-inner p {
    font-family: 'Maven Pro', sans-serif;
    font-size: 0.95rem;
    color: var(--ehs-dark-gray);
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   SERVICE SPECIAL CONTENT - VIDEOS
   ======================================== */

.service-video-container {
    margin: 40px 0;
}

.service-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.service-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 4px;
}

/* Responsive adjustments for accordions */
@media (max-width: 768px) {
    .service-accordions-container {
        margin: 30px 0;
    }

    .accordion-header {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .accordion-inner {
        padding: 16px;
    }

    .accordion-items li {
        font-size: 0.9rem;
        padding-left: 20px;
    }

    .accordion-inner p {
        font-size: 0.9rem;
    }

    .service-video-container {
        margin: 30px 0;
    }
}

/* ========================================
   HOMEPAGE - FEATURED SERVICES GRID
   ======================================== */

/* Featured Services - Larger Cards for Homepage */
.featured-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card--featured {
    position: relative;
    border: 2px solid var(--ehs-navy);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 450px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.service-card--featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,51,102,0.85) 0%, rgba(0,51,102,0.95) 100%);
    z-index: 1;
}

.service-card--featured .service-card__content {
    position: relative;
    z-index: 2;
    color: white;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card--featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-card__badge {
    display: inline-block;
    background: var(--ehs-green);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-card--featured .service-card__title {
    min-height: 3.6em;
    line-height: 1.2;
    color: white;
    margin-bottom: 15px;
}

.service-card--featured .service-card__excerpt {
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
}

.service-card__highlights {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.service-card__highlights li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
}

.service-card__highlights li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--ehs-green);
    font-weight: bold;
    font-size: 1.1rem;
}

.service-card--featured .service-card__link {
    color: white;
    font-weight: 600;
    margin-top: auto;
}

/* Homepage featured cards: light design (no overlay, dark text) */
.ehs-services-section .service-card--featured::before {
    display: none;
}

.ehs-services-section .service-card--featured .service-card__content {
    color: inherit;
}

.ehs-services-section .service-card--featured .service-card__title {
    color: var(--ehs-navy);
}

.ehs-services-section .service-card--featured .service-card__excerpt {
    color: var(--ehs-dark-gray);
}

.ehs-services-section .service-card--featured .service-card__highlights li {
    color: var(--ehs-dark-gray);
}

.ehs-services-section .service-card--featured .service-card__link {
    color: var(--ehs-navy);
    font-weight: 600;
}

/* Homepage media placeholder when no image set in Business Information */
.service-card__icon--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    background: var(--ehs-light-gray);
    color: var(--ehs-dark-gray);
    font-size: 0.85rem;
    text-align: center;
    padding: 20px;
}

.service-card__icon--placeholder .placeholder-text {
    max-width: 200px;
    line-height: 1.4;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .featured-services-grid {
        grid-template-columns: 1fr;
    }

    .service-card--featured {
        min-height: 400px;
    }
}
/* ========================================
   CONSTRUCTION SAFETY PAGE - CUSTOM STYLES
   ======================================== */

/* Routing Callouts Section */
.routing-callouts-grid {
    display: grid;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 24px 40px;
}

.routing-callout {
    transition: transform 0.2s, box-shadow 0.2s;
}

.routing-callout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15) !important;
}

.routing-callout__icon .ehs-content-icon,
.routing-callout__icon svg {
    display: inline-block;
    vertical-align: middle;
}
.routing-callout__icon svg {
    width: 1em;
    height: 1em;
}

@media (max-width: 768px) {
    .routing-callouts-grid {
        padding: 24px 16px 32px;
    }

    .routing-callout {
        padding: 25px !important;
    }

    .routing-callout__icon {
        font-size: 2rem !important;
    }

    .routing-callout h3 {
        font-size: 1.2rem !important;
    }
}

/* Content icons (replaced emojis) - inline SVG sizing */
.ehs-content-icon {
    display: inline-block;
    vertical-align: middle;
}
.ehs-content-icon svg {
    width: 1em;
    height: 1em;
    color: currentColor;
}
.result-card > div:first-child .ehs-content-icon svg,
.result-card > div:first-child svg {
    width: 1em;
    height: 1em;
    color: currentColor;
}
.project-timeline__icon .ehs-content-icon svg,
.project-timeline__icon svg {
    width: 1em;
    height: 1em;
    color: currentColor;
}

/* Project Timeline Styles */
.project-timeline {
    position: relative;
    padding: 40px 32px;
}

.project-timeline__line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
    transform: translateX(-50%);
}

.project-timeline__progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--ehs-green);
    border-radius: 2px;
    transition: height 0.3s ease-out;
}

.project-timeline__item {
    position: relative;
    margin-bottom: 60px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
}

.project-timeline__item:nth-child(even) .project-timeline__card {
    grid-column: 1;
    grid-row: 1;
}

.project-timeline__item:nth-child(odd) .project-timeline__card {
    grid-column: 3;
    grid-row: 1;
}

.project-timeline__marker {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    z-index: 2;
}

.project-timeline__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--ehs-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ehs-green);
}

.project-timeline__icon svg {
    width: 30px;
    height: 30px;
}

.project-timeline__card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s;
}

.project-timeline__card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.project-timeline__card-header {
    margin-bottom: 15px;
}

.project-timeline__card-year {
    display: inline-block;
    padding: 4px 12px;
    background: var(--ehs-green);
    color: white;
    font-size: 0.9rem;
    border-radius: 4px;
    margin-bottom: 10px;
}

.project-timeline__card-title {
    color: var(--ehs-navy);
    font-size: 1.4rem;
    margin: 10px 0;
}

.project-timeline__card-value {
    display: block;
    color: var(--ehs-dark-gray);
    font-size: 0.95rem;
    font-weight: 600;
}

.project-timeline__card-client {
    margin-bottom: 10px;
    color: var(--ehs-dark-gray);
}

.project-timeline__card-description {
    line-height: 1.6;
    color: var(--ehs-text);
}

@media (max-width: 968px) {
    .project-timeline__line {
        left: 30px;
    }

    .project-timeline__item {
        grid-template-columns: auto 1fr;
        gap: 20px;
    }

    .project-timeline__item:nth-child(even) .project-timeline__card,
    .project-timeline__item:nth-child(odd) .project-timeline__card {
        grid-column: 2;
        grid-row: 1;
    }

    .project-timeline__marker {
        grid-column: 1;
    }

    .project-timeline__icon {
        width: 50px;
        height: 50px;
    }

    .project-timeline__icon svg {
        width: 24px;
        height: 24px;
    }
}

/* Service Sections */
.service-section-heading {
    color: var(--ehs-navy);
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Center headings only in full-width service sections (e.g. Construction Safety page) */
.service-overview .service-section-heading,
.service-industries .service-section-heading,
.service-offerings .service-section-heading,
.service-projects .service-section-heading,
.service-results .service-section-heading,
.service-faq .service-section-heading,
.service-cta .service-section-heading {
    text-align: center;
}

.service-overview,
.service-industries,
.service-offerings,
.service-projects,
.service-results,
.service-faq,
.service-cta,
.service-cta-section {
    padding: 60px 32px;
}

.service-overview {
    background: #f9f9f9;
}

.service-offerings {
    background: #f9f9f9;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.result-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* FAQ Section */
.faq-items {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    color: var(--ehs-navy);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.faq-item p {
    line-height: 1.6;
    color: var(--ehs-text);
}

/* Buttons */
.ehs-btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.ehs-btn-solid-green {
    background: var(--ehs-green);
    color: white;
}

.ehs-btn-solid-green:hover {
    background: #388E3C;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.ehs-btn-outline {
    border: 2px solid var(--ehs-navy);
    color: var(--ehs-navy);
    background: transparent;
}

.ehs-btn-outline:hover {
    background: var(--ehs-navy);
    color: white;
}

.ehs-btn-outline-white {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.ehs-btn-outline-white:hover {
    background: white;
    color: var(--ehs-navy);
}

.ehs-btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.ehs-btn-md {
    padding: 12px 30px;
    font-size: 1rem;
}

/* CSS Variables (in case theme doesn't define them) - use brand navy #003366 */
:root {
    --ehs-green: #4CAF50;
    --ehs-navy: #003366;
    --ehs-secondary: #FF6F00;
    --ehs-light-gray: #F5F5F5;
    --ehs-dark-gray: #424242;
    --ehs-text: #333333;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .service-section-heading {
        font-size: 1.6rem;
    }

    .service-overview,
    .service-industries,
    .service-offerings,
    .service-projects,
    .service-results,
    .service-faq,
    .service-cta,
    .service-cta-section {
        padding: 40px 32px;
    }

    .overview-stats {
        grid-template-columns: 1fr !important;
    }

    .industries-grid {
        grid-template-columns: 1fr !important;
    }

    .services-grid {
        grid-template-columns: 1fr !important;
    }

    .results-grid {
        grid-template-columns: 1fr !important;
    }

    .service-cta-buttons {
        flex-direction: column !important;
    }

    .ehs-btn-lg {
        width: 100%;
    }
}
