/* ============================================================
   THE EXCELL ENGINEERING GROUP
   Global CSS Template
   Version: 2.5 | March 2026
   
   DEPLOYMENT: WordPress Customise > Additional CSS
   USAGE: This stylesheet provides all global styles for the
   Excell Engineering Group parent site. Individual pages are
   built in Elementor using full-width 0-padding containers
   with HTML blocks. This CSS keeps styling centralised.
   
   NOTES FOR BUILD CHAT:
   - All Elementor containers should be set to Full Width,
     0 padding, no default styling.
   - Each page section is a self-contained HTML block that
     references these global classes.
   - Nav and Footer are separate Elementor sections, reused
     across all pages.
   - Logo is a centre-aligned wordmark, available in black
     (for light backgrounds) and white (for dark backgrounds,
     nav, footer).
   - Nav uses a three-part layout: links | centred logo | links
   - Footer uses a centred logo above the column grid.
   ============================================================ */


/* ============================================================
   1. CUSTOM PROPERTIES (CSS VARIABLES)
   ============================================================ */

:root {
    /* -- Colour System -- */
    
    /* Primary Palette */
    --eg-graphite:          #1B1B1F;
    --eg-graphite-light:    #2A2A30;
    --eg-charcoal:          #333338;
    
    /* Neutrals */
    --eg-white:             #FFFFFF;
    --eg-off-white:         #F7F7F8;
    --eg-light-grey:        #EDEDEF;
    --eg-mid-grey:          #B0B0B6;
    --eg-text-secondary:    #6B6B73;
    --eg-text-primary:      #1A1A1E;
    
    /* Accent */
    --eg-steel:             #3D5A80;
    --eg-steel-light:       #4A6D99;
    --eg-steel-faint:       rgba(61, 90, 128, 0.08);
    --eg-steel-border:      rgba(61, 90, 128, 0.2);
    
    /* Warm Accent (used sparingly for heritage/craft moments) */
    --eg-warm:              #8B7355;
    --eg-warm-light:        #A08968;
    
    /* Functional */
    --eg-border:            #E2E2E6;
    --eg-border-dark:       rgba(255, 255, 255, 0.12);
    --eg-overlay:           rgba(27, 27, 31, 0.6);
    --eg-shadow-sm:         0 1px 3px rgba(0, 0, 0, 0.06);
    --eg-shadow-md:         0 4px 16px rgba(0, 0, 0, 0.08);
    --eg-shadow-lg:         0 8px 32px rgba(0, 0, 0, 0.1);
    --eg-shadow-card:       0 2px 8px rgba(0, 0, 0, 0.04),
                            0 8px 24px rgba(0, 0, 0, 0.06);
    
    /* -- Typography -- */
    --eg-font-heading:      'Instrument Serif', Georgia, 'Times New Roman', serif;
    --eg-font-body:         'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --eg-font-mono:         'JetBrains Mono', 'Fira Code', monospace;
    
    /* Type Scale (fluid where practical) */
    --eg-text-xs:           0.75rem;     /* 12px */
    --eg-text-sm:           0.875rem;    /* 14px */
    --eg-text-base:         1rem;        /* 16px */
    --eg-text-md:           1.125rem;    /* 18px */
    --eg-text-lg:           1.25rem;     /* 20px */
    --eg-text-xl:           1.5rem;      /* 24px */
    --eg-text-2xl:          2rem;        /* 32px */
    --eg-text-3xl:          2.5rem;      /* 40px */
    --eg-text-4xl:          3.25rem;     /* 52px */
    --eg-text-5xl:          4rem;        /* 64px */
    
    /* Line Heights */
    --eg-leading-tight:     1.15;
    --eg-leading-snug:      1.3;
    --eg-leading-normal:    1.6;
    --eg-leading-relaxed:   1.75;
    
    /* Letter Spacing */
    --eg-tracking-tight:    -0.02em;
    --eg-tracking-normal:   0;
    --eg-tracking-wide:     0.04em;
    --eg-tracking-wider:    0.08em;
    --eg-tracking-widest:   0.14em;
    
    /* -- Spacing -- */
    --eg-space-xs:          0.5rem;      /* 8px */
    --eg-space-sm:          0.75rem;     /* 12px */
    --eg-space-md:          1rem;        /* 16px */
    --eg-space-lg:          1.5rem;      /* 24px */
    --eg-space-xl:          2rem;        /* 32px */
    --eg-space-2xl:         3rem;        /* 48px */
    --eg-space-3xl:         4rem;        /* 64px */
    --eg-space-4xl:         6rem;        /* 96px */
    --eg-space-5xl:         8rem;        /* 128px */
    
    /* -- Layout -- */
    --eg-container-max:     1200px;
    --eg-container-narrow:  800px;
    --eg-container-wide:    1400px;
    --eg-container-pad:     clamp(1.25rem, 4vw, 3rem);
    
    /* -- Transitions -- */
    --eg-ease-default:      cubic-bezier(0.25, 0.1, 0.25, 1);
    --eg-ease-out:          cubic-bezier(0, 0, 0.25, 1);
    --eg-duration-fast:     150ms;
    --eg-duration-normal:   250ms;
    --eg-duration-slow:     400ms;
    
    /* -- Borders -- */
    --eg-radius-sm:         4px;
    --eg-radius-md:         8px;
    --eg-radius-lg:         12px;
    --eg-radius-xl:         16px;
    --eg-radius-full:       9999px;
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
/* ============================================================
   2a. SVG ICON RESET
   Elementor and some themes inject font-family or font styles
   onto all elements including SVGs, causing icon fonts to
   override inline SVGs. This resets SVG rendering within
   eg- components.
   ============================================================ */

[class*="eg-"] svg {
    display: inline-block !important;
    font-family: inherit !important;
    speak: never !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased;
    overflow: visible !important;
    vertical-align: middle;
    /* Prevent font icon libraries replacing SVG content */
    -webkit-font-feature-settings: normal !important;
    font-feature-settings: normal !important;
}

/* Force SVG elements inside feature icons to render as shapes, not font glyphs */
.eg-feature__icon {
    font-family: inherit !important;
    display: block !important;
}

.eg-feature__icon * {
    fill: none !important;
    stroke: currentColor !important;
}

[class*="eg-"] svg path,
[class*="eg-"] svg circle,
[class*="eg-"] svg rect,
[class*="eg-"] svg line,
[class*="eg-"] svg polyline,
[class*="eg-"] svg polygon {
    vector-effect: non-scaling-stroke;
}

/* ============================================================
   2b. ELEMENTOR LINK OVERRIDE
   Elementor injects its own global link colour and underline
   which overrides component-level styles. This block resets
   all anchor tags within eg- namespaced components back to
   inherit, so each component controls its own link appearance.
   Applied once here so no individual component needs !important
   (except where already set for extra specificity insurance).
   ============================================================ */

[class*="eg-"] a,
[class*="eg-"] a:link,
[class*="eg-"] a:visited {
    color: inherit;
    text-decoration: none;
}

[class*="eg-"] a:hover {
    text-decoration: none;
}



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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--eg-font-body);
    font-size: var(--eg-text-base);
    line-height: var(--eg-leading-normal);
    color: var(--eg-text-primary);
    background-color: var(--eg-white);
    overflow-x: hidden;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--eg-duration-fast) var(--eg-ease-default);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

::selection {
    background-color: var(--eg-steel);
    color: var(--eg-white);
}


/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */

/* -- Headings -- */

h1, h2, h3, h4, h5, h6,
.eg-h1, .eg-h2, .eg-h3, .eg-h4, .eg-h5, .eg-h6 {
    font-family: var(--eg-font-heading);
    font-weight: 400;
    line-height: var(--eg-leading-tight);
    color: var(--eg-text-primary);
    letter-spacing: var(--eg-tracking-tight);
}

h1, .eg-h1,
[class*="eg-"] h1 {
    font-size: clamp(1.75rem, 5vw, var(--eg-text-5xl)) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.03em !important;
}

h2, .eg-h2,
[class*="eg-"] h2 {
    font-size: clamp(1.375rem, 3.5vw, var(--eg-text-4xl)) !important;
    line-height: var(--eg-leading-snug) !important;
}

h3, .eg-h3,
[class*="eg-"] h3 {
    font-size: clamp(1.125rem, 2.5vw, var(--eg-text-2xl)) !important;
}

h4, .eg-h4,
[class*="eg-"] h4 {
    font-size: var(--eg-text-xl) !important;
}

h5, .eg-h5 {
    font-family: var(--eg-font-body);
    font-size: var(--eg-text-md);
    font-weight: 600;
    letter-spacing: var(--eg-tracking-normal);
}

h6, .eg-h6 {
    font-family: var(--eg-font-body);
    font-size: var(--eg-text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--eg-tracking-widest);
    color: var(--eg-text-secondary);
}

/* -- Body Text -- */

p {
    margin-bottom: var(--eg-space-md);
    line-height: var(--eg-leading-normal);
}

p:last-child {
    margin-bottom: 0;
}

.eg-text-lg {
    font-size: var(--eg-text-lg);
    line-height: var(--eg-leading-relaxed);
}

.eg-text-sm {
    font-size: var(--eg-text-sm);
}

.eg-text-xs {
    font-size: var(--eg-text-xs);
}

/* -- Eyebrow / Label -- */

.eg-eyebrow {
    display: block;
    font-family: var(--eg-font-body);
    font-size: var(--eg-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--eg-tracking-widest);
    color: var(--eg-steel);
    margin-bottom: var(--eg-space-sm);
}

/* -- Lead Paragraph -- */

.eg-lead {
    font-size: clamp(var(--eg-text-md), 2vw, var(--eg-text-lg));
    line-height: var(--eg-leading-relaxed);
    color: var(--eg-text-secondary);
    max-width: 640px;
}

/* -- Inline -- */

strong, b {
    font-weight: 600;
}

.eg-text-muted {
    color: var(--eg-text-secondary);
}

.eg-text-accent {
    color: var(--eg-steel);
}

.eg-text-light {
    color: var(--eg-white);
}


/* ============================================================
   4. LAYOUT
   ============================================================ */

/* -- Container -- */

.eg-container {
    width: 100%;
    max-width: var(--eg-container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--eg-container-pad);
    padding-right: var(--eg-container-pad);
}

.eg-container--narrow {
    max-width: var(--eg-container-narrow);
}

.eg-container--wide {
    max-width: var(--eg-container-wide);
}

/* -- Section Wrapper -- */

.eg-section {
    padding-top: var(--eg-space-4xl);
    padding-bottom: var(--eg-space-4xl);
}

.eg-section--sm {
    padding-top: var(--eg-space-3xl);
    padding-bottom: var(--eg-space-3xl);
}

.eg-section--lg {
    padding-top: var(--eg-space-5xl);
    padding-bottom: var(--eg-space-5xl);
}

/* Section Backgrounds */

.eg-section--white {
    background-color: var(--eg-white);
}

.eg-section--off-white {
    background-color: var(--eg-off-white);
}

.eg-section--dark {
    background-color: var(--eg-graphite);
    color: var(--eg-white);
}

.eg-section--dark .eg-eyebrow {
    color: var(--eg-mid-grey);
}

.eg-section--dark .eg-lead {
    color: rgba(255, 255, 255, 0.65);
}

.eg-section--dark h1,
.eg-section--dark h2,
.eg-section--dark h3,
.eg-section--dark h4 {
    color: var(--eg-white);
}

/* -- Grid -- */

.eg-grid {
    display: grid;
    gap: var(--eg-space-xl);
}

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

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

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

@media (max-width: 768px) {
    .eg-grid--2,
    .eg-grid--3,
    .eg-grid--4 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .eg-grid--3,
    .eg-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* -- Flex Utilities -- */

.eg-flex {
    display: flex;
}

.eg-flex--center {
    align-items: center;
    justify-content: center;
}

.eg-flex--between {
    align-items: center;
    justify-content: space-between;
}

.eg-flex--col {
    flex-direction: column;
}

.eg-flex--gap-sm {
    gap: var(--eg-space-sm);
}

.eg-flex--gap-md {
    gap: var(--eg-space-md);
}

.eg-flex--gap-lg {
    gap: var(--eg-space-lg);
}

.eg-flex--gap-xl {
    gap: var(--eg-space-xl);
}

/* -- Text Alignment -- */

.eg-text-center {
    text-align: center;
}

.eg-text-left {
    text-align: left;
}

/* -- Max Widths for Centred Text -- */

.eg-max-w-narrow {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.eg-max-w-prose {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* -- Spacing Utilities -- */

.eg-mb-0 { margin-bottom: 0; }
.eg-mb-sm { margin-bottom: var(--eg-space-sm); }
.eg-mb-md { margin-bottom: var(--eg-space-md); }
.eg-mb-lg { margin-bottom: var(--eg-space-lg); }
.eg-mb-xl { margin-bottom: var(--eg-space-xl); }
.eg-mb-2xl { margin-bottom: var(--eg-space-2xl); }
.eg-mb-3xl { margin-bottom: var(--eg-space-3xl); }
.eg-mt-md { margin-top: var(--eg-space-md); }
.eg-mt-lg { margin-top: var(--eg-space-lg); }
.eg-mt-xl { margin-top: var(--eg-space-xl); }


/* ============================================================
   5. NAVIGATION (Three-part: links | centred wordmark | links)
   ============================================================ */

.eg-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: var(--eg-graphite);
    border-bottom: 1px solid var(--eg-border-dark);
}

.eg-nav__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    max-width: var(--eg-container-max);
    margin: 0 auto;
    padding: 0 var(--eg-container-pad);
    height: 88px;
}

/* Left links group */
.eg-nav__links-left {
    display: flex;
    align-items: center;
    gap: var(--eg-space-xl);
    justify-content: flex-start;
}

/* Right links group */
.eg-nav__links-right {
    display: flex;
    align-items: center;
    gap: var(--eg-space-xl);
    justify-content: flex-end;
}

/* Centred wordmark logo */
.eg-nav__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 var(--eg-space-xl);
}

.eg-nav__logo img,
.eg-nav__logo svg {
    height: 56px;
    width: auto;
}

/* Text fallback for wordmark */
.eg-nav__logo-text {
    font-family: var(--eg-font-body);
    font-weight: 600;
    font-size: var(--eg-text-sm);
    color: var(--eg-white);
    letter-spacing: var(--eg-tracking-wide);
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
}

.eg-nav__link,
.eg-nav a.eg-nav__link,
.eg-nav__inner a.eg-nav__link,
.eg-nav__links-left a.eg-nav__link,
.eg-nav__links-right a.eg-nav__link {
    font-family: var(--eg-font-body);
    font-size: var(--eg-text-sm);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7) !important;
    letter-spacing: var(--eg-tracking-wide);
    transition: color var(--eg-duration-fast) var(--eg-ease-default);
    position: relative;
    padding: var(--eg-space-xs) 0;
    text-decoration: none !important;
}

.eg-nav__link:hover,
.eg-nav a.eg-nav__link:hover,
.eg-nav__link--active,
.eg-nav a.eg-nav__link--active {
    color: var(--eg-white) !important;
}

.eg-nav__link--active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--eg-white);
}

/* Dropdown (for "Our Brands") */
.eg-nav__dropdown {
    position: relative;
}

.eg-nav__dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
}

.eg-nav__dropdown-trigger svg {
    width: 10px;
    height: 10px;
    transition: transform var(--eg-duration-fast) var(--eg-ease-default);
}

.eg-nav__dropdown:hover .eg-nav__dropdown-trigger svg {
    transform: rotate(180deg);
}

.eg-nav__dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background-color: var(--eg-white);
    border-radius: var(--eg-radius-md);
    box-shadow: var(--eg-shadow-lg);
    padding: var(--eg-space-xs) 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--eg-duration-fast) var(--eg-ease-default),
                visibility var(--eg-duration-fast) var(--eg-ease-default);
}

.eg-nav__dropdown:hover .eg-nav__dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.eg-nav__dropdown-item,
.eg-nav__dropdown-menu a.eg-nav__dropdown-item {
    display: block;
    padding: var(--eg-space-sm) var(--eg-space-lg);
    font-size: var(--eg-text-sm);
    color: var(--eg-text-primary) !important;
    text-decoration: none !important;
    transition: background-color var(--eg-duration-fast) var(--eg-ease-default);
}

.eg-nav__dropdown-item:hover,
.eg-nav__dropdown-menu a.eg-nav__dropdown-item:hover {
    background-color: var(--eg-off-white);
    color: var(--eg-steel) !important;
}

/* Mobile toggle: hidden on desktop */
.eg-nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    flex-shrink: 0;
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}

.eg-nav__toggle:hover,
.eg-nav__toggle:focus,
.eg-nav__toggle:active,
.eg-nav__toggle--open {
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: inherit !important;
}

.eg-nav__toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background-color: var(--eg-white);
    transition: transform var(--eg-duration-normal) var(--eg-ease-default),
                opacity var(--eg-duration-normal) var(--eg-ease-default);
}

/* Mobile panel: hidden on desktop */
.eg-nav__mobile-links {
    display: none;
}

/* Desktop dropdown chevron: explicitly sized */
.eg-nav__dropdown-trigger svg {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    transition: transform var(--eg-duration-fast) var(--eg-ease-default);
}

.eg-nav__dropdown:hover .eg-nav__dropdown-trigger svg {
    transform: rotate(180deg);
}

/* MOBILE BREAKPOINT */
@media (max-width: 768px) {

    .eg-nav__inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .eg-nav__toggle {
        display: flex;
    }

    .eg-nav__links-left,
    .eg-nav__links-right {
        display: none;
    }

    .eg-nav__mobile-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 88px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--eg-graphite);
        padding: var(--eg-space-xl) var(--eg-container-pad);
        gap: 0;
        transform: translateX(100%);
        transition: transform var(--eg-duration-slow) var(--eg-ease-out);
        overflow-y: auto;
        z-index: 999;
    }

    .eg-nav__mobile-links--open {
        transform: translateX(0);
    }

    .eg-nav__mobile-links .eg-nav__link,
    .eg-nav__mobile-links a.eg-nav__link {
        font-family: var(--eg-font-body);
        font-size: var(--eg-text-lg);
        font-weight: 400;
        letter-spacing: var(--eg-tracking-wide);
        color: rgba(255, 255, 255, 0.7) !important;
        padding: var(--eg-space-md) 0;
        width: 100%;
        border-bottom: 1px solid var(--eg-border-dark);
        display: block;
        text-decoration: none !important;
    }

    .eg-nav__mobile-links .eg-nav__link:hover,
    .eg-nav__mobile-links a.eg-nav__link:hover {
        color: var(--eg-white) !important;
    }
}

/* HAMBURGER TO X */
.eg-nav__toggle--open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.eg-nav__toggle--open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.eg-nav__toggle--open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}


/* ============================================================
   6. HERO SECTION
   ============================================================ */

.eg-hero {
    position: relative;
    background-color: var(--eg-graphite);
    color: var(--eg-white);
    padding: var(--eg-space-5xl) 0;
    overflow: hidden;
}

/* Subtle background pattern */
.eg-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(61, 90, 128, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 115, 85, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.eg-hero__content {
    position: relative;
    z-index: 1;
    max-width: var(--eg-container-max);
    margin: 0 auto;
    padding: 0 var(--eg-container-pad);
}

.eg-hero__eyebrow {
    display: block;
    font-family: var(--eg-font-body);
    font-size: var(--eg-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--eg-tracking-widest);
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: var(--eg-space-lg);
}

.eg-hero__title {
    font-family: var(--eg-font-heading);
    font-size: clamp(1.75rem, 6vw, var(--eg-text-5xl));
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--eg-white);
    max-width: 700px;
    margin-bottom: var(--eg-space-lg);
}

.eg-hero__subtitle {
    font-size: clamp(var(--eg-text-base), 1.5vw, var(--eg-text-lg));
    line-height: var(--eg-leading-relaxed);
    color: rgba(255, 255, 255, 0.6);
    max-width: 540px;
    margin-bottom: var(--eg-space-2xl);
}

/* Hero with background image: dark gradient overlay for legibility */
.eg-hero--has-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(10, 10, 14, 0.82) 0%,
        rgba(10, 10, 14, 0.55) 60%,
        rgba(10, 10, 14, 0.25) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.eg-hero--has-image .eg-hero__content {
    z-index: 1;
}

/* Tighter line height on hero title */
.eg-hero__title {
    line-height: 1.0;
    letter-spacing: -0.03em;
}

/* Eyebrow and subtitle: increase contrast against image */
.eg-hero--has-image .eg-hero__eyebrow {
    color: rgba(255, 255, 255, 0.65);
}

.eg-hero--has-image .eg-hero__subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* Hero variant: centred (for inner pages) */
.eg-hero--centred {
    text-align: center;
    padding: var(--eg-space-4xl) 0;
}

.eg-hero--centred .eg-hero__title,
.eg-hero--centred .eg-hero__subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* Hero variant: compact (for sub-pages) */
.eg-hero--compact {
    padding: var(--eg-space-3xl) 0 var(--eg-space-2xl);
}


/* ============================================================
   7. BUTTONS & LINKS
   ============================================================ */

.eg-btn,
a.eg-btn,
button.eg-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: var(--eg-space-xs);
    font-family: var(--eg-font-body);
    font-size: var(--eg-text-sm);
    font-weight: 500;
    letter-spacing: var(--eg-tracking-wide);
    padding: 14px 28px;
    border-radius: var(--eg-radius-sm);
    transition: all var(--eg-duration-normal) var(--eg-ease-default);
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none !important;
    box-sizing: border-box;
}

/* Primary button: white on dark sections */
.eg-btn--primary,
a.eg-btn--primary {
    background-color: var(--eg-white) !important;
    color: var(--eg-graphite) !important;
    border: 1px solid var(--eg-white) !important;
}

.eg-btn--primary:hover,
a.eg-btn--primary:hover {
    background-color: transparent !important;
    color: var(--eg-white) !important;
}

/* Steel: primary on light backgrounds */
.eg-btn--steel,
a.eg-btn--steel {
    background-color: var(--eg-steel) !important;
    color: var(--eg-white) !important;
    border: 1px solid var(--eg-steel) !important;
}

.eg-btn--steel:hover,
a.eg-btn--steel:hover {
    background-color: var(--eg-steel-light) !important;
    border-color: var(--eg-steel-light) !important;
}

/* Ghost / Outline on dark */
.eg-btn--ghost,
a.eg-btn--ghost {
    background-color: transparent !important;
    color: var(--eg-white) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.eg-btn--ghost:hover,
a.eg-btn--ghost:hover {
    border-color: var(--eg-white) !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
}

/* Ghost on light backgrounds */
.eg-btn--ghost-dark,
a.eg-btn--ghost-dark {
    background-color: transparent !important;
    color: var(--eg-text-primary) !important;
    border: 1px solid var(--eg-border) !important;
}

.eg-btn--ghost-dark:hover,
a.eg-btn--ghost-dark:hover {
    border-color: var(--eg-text-primary) !important;
}

/* Small variant */
.eg-btn--sm {
    font-size: var(--eg-text-xs);
    padding: 10px 20px;
}

/* Arrow link (inline text link with arrow) */
.eg-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--eg-font-body);
    font-size: var(--eg-text-sm);
    font-weight: 500;
    color: var(--eg-steel);
    letter-spacing: var(--eg-tracking-wide);
    transition: gap var(--eg-duration-normal) var(--eg-ease-default);
}

.eg-link-arrow:hover {
    gap: 12px;
}

.eg-link-arrow svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* On dark backgrounds */
.eg-link-arrow--light {
    color: rgba(255, 255, 255, 0.7);
}

.eg-link-arrow--light:hover {
    color: var(--eg-white);
}


/* ============================================================
   8. BRAND CARDS
   ============================================================ */

.eg-brand-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--eg-space-lg);
}

@media (max-width: 768px) {
    .eg-brand-cards {
        grid-template-columns: 1fr;
    }
}

.eg-brand-card {
    position: relative;
    background-color: var(--eg-white);
    border: 1px solid var(--eg-border);
    border-radius: var(--eg-radius-lg);
    padding: var(--eg-space-2xl);
    transition: border-color var(--eg-duration-normal) var(--eg-ease-default),
                box-shadow var(--eg-duration-normal) var(--eg-ease-default);
    display: flex;
    flex-direction: column;
}

.eg-brand-card:hover {
    border-color: var(--eg-steel-border);
    box-shadow: var(--eg-shadow-card);
}

.eg-brand-card__logo {
    display: block;
    height: 40px;
    width: 40px;
    max-width: 40px;
    margin-bottom: var(--eg-space-xl);
    object-fit: contain;
    object-position: left center;
    flex-shrink: 0;
}

/* Placeholder when logo image is not yet available */
.eg-brand-card__logo-placeholder {
    height: 40px;
    display: flex;
    align-items: center;
    margin-bottom: var(--eg-space-xl);
    font-family: var(--eg-font-body);
    font-weight: 600;
    font-size: var(--eg-text-md);
    color: var(--eg-text-primary);
    letter-spacing: var(--eg-tracking-wide);
}

.eg-brand-card__title {
    font-family: var(--eg-font-heading);
    font-size: var(--eg-text-xl);
    margin-bottom: var(--eg-space-sm);
    color: var(--eg-text-primary);
}

.eg-brand-card__desc {
    font-size: var(--eg-text-sm);
    line-height: var(--eg-leading-relaxed);
    color: var(--eg-text-secondary);
    margin-bottom: var(--eg-space-xl);
    flex-grow: 1;
}

.eg-brand-card__link {
    margin-top: auto;
}

/* On dark backgrounds */
.eg-section--dark .eg-brand-card {
    background-color: var(--eg-graphite-light);
    border-color: var(--eg-border-dark);
}

.eg-section--dark .eg-brand-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.eg-section--dark .eg-brand-card__title {
    color: var(--eg-white);
}

.eg-section--dark .eg-brand-card__desc {
    color: rgba(255, 255, 255, 0.55);
}


/* ============================================================
   9. TRUST BAR / CREDENTIALS
   ============================================================ */

.eg-trust-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--eg-space-3xl);
    flex-wrap: wrap;
    padding: var(--eg-space-2xl) 0;
}

.eg-trust-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--eg-space-xs);
    text-align: center;
}

.eg-trust-bar__value {
    font-family: var(--eg-font-heading);
    font-size: var(--eg-text-2xl);
    color: var(--eg-text-primary);
    line-height: 1;
}

.eg-trust-bar__label {
    font-size: var(--eg-text-xs);
    text-transform: uppercase;
    letter-spacing: var(--eg-tracking-widest);
    color: var(--eg-text-secondary);
    font-weight: 500;
}

.eg-section--dark .eg-trust-bar__value {
    color: var(--eg-white);
}

.eg-section--dark .eg-trust-bar__label {
    color: rgba(255, 255, 255, 0.45);
}

/* Divider between items */
.eg-trust-bar__divider {
    width: 1px;
    height: 40px;
    background-color: var(--eg-border);
}

.eg-section--dark .eg-trust-bar__divider {
    background-color: var(--eg-border-dark);
}

@media (max-width: 640px) {
    .eg-trust-bar {
        gap: var(--eg-space-xl);
    }
    .eg-trust-bar__divider {
        display: none;
    }
    .eg-trust-bar__item {
        flex-basis: calc(50% - var(--eg-space-lg));
    }
}


/* ============================================================
   10. TIMELINE
   ============================================================ */

.eg-timeline {
    position: relative;
    padding: var(--eg-space-xl) 0;
}

/* Vertical line */
.eg-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    bottom: 0;
    width: 1px;
    background-color: var(--eg-border);
}

.eg-timeline__item {
    position: relative;
    padding-left: 56px;
    padding-bottom: var(--eg-space-2xl);
}

.eg-timeline__item:last-child {
    padding-bottom: 0;
}

/* Dot on the timeline */
.eg-timeline__dot {
    position: absolute;
    left: 14px;
    top: 4px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background-color: var(--eg-white);
    border: 2px solid var(--eg-steel);
}

/* Highlighted milestone dot */
.eg-timeline__item--highlight .eg-timeline__dot {
    background-color: var(--eg-steel);
    box-shadow: 0 0 0 4px var(--eg-steel-faint);
}

.eg-timeline__year {
    font-family: var(--eg-font-body);
    font-size: var(--eg-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--eg-tracking-widest);
    color: var(--eg-steel);
    margin-bottom: 4px;
}

.eg-timeline__title {
    font-family: var(--eg-font-heading);
    font-size: var(--eg-text-lg);
    margin-bottom: 6px;
    color: var(--eg-text-primary);
}

.eg-timeline__desc {
    font-size: var(--eg-text-sm);
    color: var(--eg-text-secondary);
    line-height: var(--eg-leading-relaxed);
    max-width: 540px;
}

/* Desktop: two-column layout */
@media (min-width: 769px) {
    .eg-timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .eg-timeline__item {
        width: 50%;
        padding-bottom: var(--eg-space-2xl);
    }

    /* Alternating sides */
    .eg-timeline__item:nth-child(odd) {
        padding-left: 0;
        padding-right: 56px;
        text-align: right;
        margin-left: 0;
    }

    .eg-timeline__item:nth-child(even) {
        padding-left: 56px;
        padding-right: 0;
        margin-left: 50%;
    }

    .eg-timeline__item:nth-child(odd) .eg-timeline__dot {
        left: auto;
        right: -7px;
    }

    .eg-timeline__item:nth-child(even) .eg-timeline__dot {
        left: -7px;
    }

    .eg-timeline__item:nth-child(odd) .eg-timeline__desc {
        margin-left: auto;
    }
}


/* ============================================================
   11. CONTACT FORM
   ============================================================ */

.eg-form {
    max-width: 600px;
}

.eg-form__group {
    margin-bottom: var(--eg-space-lg);
}

.eg-form__label {
    display: block;
    font-size: var(--eg-text-sm);
    font-weight: 500;
    color: var(--eg-text-primary);
    margin-bottom: var(--eg-space-xs);
}

.eg-form__label--optional::after {
    content: ' (optional)';
    font-weight: 400;
    color: var(--eg-text-secondary);
}

.eg-form__input,
.eg-form__textarea {
    width: 100%;
    font-family: var(--eg-font-body);
    font-size: var(--eg-text-base);
    color: var(--eg-text-primary);
    background-color: var(--eg-white);
    border: 1px solid var(--eg-border);
    border-radius: var(--eg-radius-sm);
    padding: 12px 16px;
    transition: border-color var(--eg-duration-fast) var(--eg-ease-default),
                box-shadow var(--eg-duration-fast) var(--eg-ease-default);
    outline: none;
}

.eg-form__input:focus,
.eg-form__textarea:focus {
    border-color: var(--eg-steel);
    box-shadow: 0 0 0 3px var(--eg-steel-faint);
}

.eg-form__textarea {
    min-height: 140px;
    resize: vertical;
}

.eg-form__input::placeholder,
.eg-form__textarea::placeholder {
    color: var(--eg-mid-grey);
}


/* ============================================================
   12. BRAND PROFILE PAGE
   ============================================================ */

.eg-brand-profile {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--eg-space-3xl);
}

.eg-brand-profile__header {
    display: flex;
    flex-direction: column;
    gap: var(--eg-space-lg);
}

.eg-brand-profile__logo {
    height: 48px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    object-position: left;
}

.eg-brand-profile__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--eg-space-lg);
    padding: var(--eg-space-lg) 0;
    border-top: 1px solid var(--eg-border);
    border-bottom: 1px solid var(--eg-border);
}

.eg-brand-profile__meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.eg-brand-profile__meta-label {
    font-size: var(--eg-text-xs);
    text-transform: uppercase;
    letter-spacing: var(--eg-tracking-widest);
    color: var(--eg-text-secondary);
    font-weight: 500;
}

.eg-brand-profile__meta-value {
    font-size: var(--eg-text-sm);
    font-weight: 500;
    color: var(--eg-text-primary);
}

/* Services list on brand profile */
.eg-services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--eg-space-md);
}

.eg-services-list__item {
    display: flex;
    align-items: flex-start;
    gap: var(--eg-space-sm);
    font-size: var(--eg-text-sm);
    color: var(--eg-text-primary);
    padding: var(--eg-space-md);
    background-color: var(--eg-off-white);
    border-radius: var(--eg-radius-md);
}

.eg-services-list__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--eg-steel);
    margin-top: 1px;
}

/* CTA to sub-brand website */
.eg-brand-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--eg-space-xl) var(--eg-space-2xl);
    background-color: var(--eg-off-white);
    border: 1px solid var(--eg-border);
    border-radius: var(--eg-radius-lg);
    gap: var(--eg-space-lg);
}

.eg-brand-cta__text {
    font-size: var(--eg-text-sm);
    color: var(--eg-text-secondary);
}

.eg-brand-cta__text strong {
    display: block;
    color: var(--eg-text-primary);
    font-size: var(--eg-text-md);
    margin-bottom: 4px;
}

@media (max-width: 640px) {
    .eg-brand-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: var(--eg-space-lg);
    }
}


/* ============================================================
   13. DIVIDER
   ============================================================ */

.eg-divider {
    width: 100%;
    height: 1px;
    background-color: var(--eg-border);
    border: none;
    margin: 0;
}

.eg-divider--accent {
    height: 2px;
    max-width: 60px;
    background-color: var(--eg-steel);
}

.eg-section--dark .eg-divider {
    background-color: var(--eg-border-dark);
}


/* ============================================================
   14. FOOTER (Centred wordmark above column grid)
   ============================================================ */

.eg-footer {
    background-color: var(--eg-graphite);
    color: rgba(255, 255, 255, 0.55);
    padding-top: 0;
    padding-bottom: 0;
}

/* Centred logo/brand area at top of footer */
.eg-footer__brand-bar {
    max-width: var(--eg-container-max);
    margin: 0 auto;
    padding: var(--eg-space-4xl) var(--eg-container-pad) var(--eg-space-3xl);
    text-align: center;
    border-bottom: 1px solid var(--eg-border-dark);
}

.eg-footer__logo {
    height: 36px;
    width: auto;
    margin: 0 auto;
}

.eg-footer__logo-text {
    font-family: var(--eg-font-body);
    font-weight: 600;
    font-size: var(--eg-text-sm);
    color: var(--eg-white);
    letter-spacing: var(--eg-tracking-wide);
    text-transform: uppercase;
}

.eg-footer__tagline {
    font-size: var(--eg-text-sm);
    line-height: var(--eg-leading-relaxed);
    max-width: 400px;
    margin: var(--eg-space-md) auto 0;
}

.eg-footer__socials {
    display: flex;
    justify-content: center;
    gap: var(--eg-space-md);
    margin-top: var(--eg-space-lg);
}

.eg-footer__social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--eg-radius-full);
    border: 1px solid var(--eg-border-dark);
    color: rgba(255, 255, 255, 0.55);
    transition: border-color var(--eg-duration-fast) var(--eg-ease-default),
                color var(--eg-duration-fast) var(--eg-ease-default);
}

.eg-footer__social-icon:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--eg-white);
}

.eg-footer__social-icon svg {
    width: 16px;
    height: 16px;
}

/* Column grid below the brand bar */
.eg-footer__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--eg-space-3xl);
    max-width: var(--eg-container-max);
    margin: 0 auto;
    padding: var(--eg-space-3xl) var(--eg-container-pad);
    border-bottom: 1px solid var(--eg-border-dark);
    text-align: center;
}

.eg-footer__heading {
    font-family: var(--eg-font-body);
    font-size: var(--eg-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--eg-tracking-widest);
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: var(--eg-space-lg);
}

.eg-footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--eg-space-sm);
}

.eg-footer__link,
.eg-footer a.eg-footer__link,
.eg-footer__links a.eg-footer__link {
    font-size: var(--eg-text-sm);
    color: rgba(255, 255, 255, 0.55) !important;
    text-decoration: none !important;
    transition: color var(--eg-duration-fast) var(--eg-ease-default);
}

.eg-footer__link:hover,
.eg-footer a.eg-footer__link:hover {
    color: var(--eg-white) !important;
}

/* Address: non-interactive, no hover */
.eg-footer__address {
    cursor: default;
    line-height: var(--eg-leading-relaxed);
}

.eg-footer__address:hover {
    color: rgba(255, 255, 255, 0.55) !important;
}

/* Bottom bar legal links */
.eg-footer__legal a,
.eg-footer__bottom .eg-footer__legal a {
    font-size: var(--eg-text-xs);
    color: rgba(255, 255, 255, 0.3) !important;
    text-decoration: none !important;
    transition: color var(--eg-duration-fast) var(--eg-ease-default);
}

.eg-footer__legal a:hover,
.eg-footer__bottom .eg-footer__legal a:hover {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Footer bottom bar */
.eg-footer__bottom {
    max-width: var(--eg-container-max);
    margin: 0 auto;
    padding: var(--eg-space-lg) var(--eg-container-pad);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.eg-footer__copyright {
    font-size: var(--eg-text-xs);
    color: rgba(255, 255, 255, 0.3);
}

.eg-footer__legal {
    display: flex;
    gap: var(--eg-space-lg);
}

/* Footer legal link styles defined above with footer__link block */

@media (max-width: 768px) {
    .eg-footer__grid {
        grid-template-columns: 1fr;
        gap: var(--eg-space-2xl);
        text-align: left;
    }
    .eg-footer__bottom {
        flex-direction: column;
        gap: var(--eg-space-sm);
        text-align: center;
    }
}


/* ============================================================
   15. BLOG PLACEHOLDER
   ============================================================ */

.eg-placeholder {
    text-align: center;
    padding: var(--eg-space-4xl) var(--eg-container-pad);
}

.eg-placeholder__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--eg-space-lg);
    color: var(--eg-mid-grey);
}

.eg-placeholder__title {
    font-family: var(--eg-font-heading);
    font-size: var(--eg-text-xl);
    margin-bottom: var(--eg-space-sm);
}

.eg-placeholder__text {
    font-size: var(--eg-text-sm);
    color: var(--eg-text-secondary);
    max-width: 400px;
    margin: 0 auto;
}


/* ============================================================
   16. CONTACT INFO BLOCK
   ============================================================ */

.eg-contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--eg-space-lg);
}

.eg-contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: var(--eg-space-md);
}

.eg-contact-info__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--eg-steel);
    margin-top: 2px;
}

.eg-contact-info__label {
    font-size: var(--eg-text-xs);
    text-transform: uppercase;
    letter-spacing: var(--eg-tracking-widest);
    color: var(--eg-text-secondary);
    font-weight: 500;
    margin-bottom: 2px;
}

.eg-contact-info__value {
    font-size: var(--eg-text-sm);
    color: var(--eg-text-primary);
    line-height: var(--eg-leading-relaxed);
}

.eg-contact-info__value a {
    color: var(--eg-steel);
}

.eg-contact-info__value a:hover {
    text-decoration: underline;
}


/* ============================================================
   17. UTILITY: SECTION HEADER PATTERN
   ============================================================ */

/* Standard section intro: eyebrow + heading + lead + divider */
.eg-section-header {
    margin-bottom: var(--eg-space-3xl);
}

.eg-section-header--centred {
    text-align: center;
}

.eg-section-header--centred .eg-lead {
    margin-left: auto;
    margin-right: auto;
}

.eg-section-header--centred .eg-divider--accent {
    margin-left: auto;
    margin-right: auto;
}

.eg-section-header .eg-divider--accent {
    margin-top: var(--eg-space-lg);
}


/* ============================================================
   18. ANIMATIONS (Subtle, Professional)
   ============================================================ */

/* Fade in on scroll (apply via JS or Elementor motion effects) */
.eg-fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s var(--eg-ease-out),
                transform 0.6s var(--eg-ease-out);
}

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

/* Stagger children */
.eg-stagger > * {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s var(--eg-ease-out),
                transform 0.5s var(--eg-ease-out);
}

.eg-stagger--visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.eg-stagger--visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.eg-stagger--visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.eg-stagger--visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }


/* ============================================================
   19. MAP EMBED
   ============================================================ */

.eg-map-wrap {
    width: 100%;
    border-radius: var(--eg-radius-lg);
    overflow: hidden;
    border: 1px solid var(--eg-border);
    aspect-ratio: 16 / 9;
}

.eg-map-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (max-width: 768px) {
    .eg-map-wrap {
        aspect-ratio: 4 / 3;
    }
}




/* ============================================================
   WORDPRESS ADMIN BAR OFFSET
   When logged in, WordPress adds a 32px admin bar at the top.
   The body gets class .admin-bar — shift the fixed nav and
   mobile panel down to sit beneath it, and adjust the spacer.
   ============================================================ */

.admin-bar .eg-nav {
    top: 32px;
}

.admin-bar .eg-nav__mobile-links {
    top: calc(88px + 32px);
}

@media screen and (max-width: 782px) {
    /* WP admin bar shrinks to 46px on mobile */
    .admin-bar .eg-nav {
        top: 46px;
    }

    .admin-bar .eg-nav__mobile-links {
        top: calc(88px + 46px);
    }
}

/* ============================================================
   20. PRINT STYLES (for completeness)
   ============================================================ */

@media print {
    .eg-nav,
    .eg-footer,
    .eg-btn,
    .eg-map-wrap {
        display: none;
    }

    .eg-section {
        padding: 1rem 0;
    }

    body {
        font-size: 11pt;
        color: #000;
    }
}


/* ============================================================
   21. SPLIT CONTENT (Text + Image, side by side)
   ============================================================ */

/* Base split layout: two equal columns */
.eg-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    min-height: 480px;
}

/* Content side */
.eg-split__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--eg-space-4xl) var(--eg-space-3xl);
}

/* Image side */
.eg-split__image {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.eg-split__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder when no image is available yet */
.eg-split__image-placeholder {
    position: absolute;
    inset: 0;
    background-color: var(--eg-light-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--eg-text-sm);
    color: var(--eg-mid-grey);
}

/* Reverse: image left, text right */
.eg-split--reverse .eg-split__image {
    order: -1;
}

/* Variant: narrower text column (40/60 split) */
.eg-split--narrow-text {
    grid-template-columns: 5fr 7fr;
}

.eg-split--narrow-text.eg-split--reverse {
    grid-template-columns: 7fr 5fr;
}

/* Variant: wider text column (60/40 split) */
.eg-split--wide-text {
    grid-template-columns: 7fr 5fr;
}

.eg-split--wide-text.eg-split--reverse {
    grid-template-columns: 5fr 7fr;
}

/* Dark background variant */
.eg-split--dark .eg-split__content {
    background-color: var(--eg-graphite);
    color: var(--eg-white);
}

.eg-split--dark .eg-split__content h2,
.eg-split--dark .eg-split__content h3 {
    color: var(--eg-white);
}

.eg-split--dark .eg-split__content p {
    color: rgba(255, 255, 255, 0.65);
}

.eg-split--dark .eg-split__content .eg-eyebrow {
    color: var(--eg-mid-grey);
}

/* Off-white content background */
.eg-split--off-white .eg-split__content {
    background-color: var(--eg-off-white);
}

@media (max-width: 768px) {
    .eg-split,
    .eg-split--narrow-text,
    .eg-split--wide-text,
    .eg-split--narrow-text.eg-split--reverse,
    .eg-split--wide-text.eg-split--reverse {
        grid-template-columns: 1fr;
    }

    .eg-split__content {
        padding: var(--eg-space-3xl) var(--eg-container-pad);
    }

    .eg-split__image {
        position: relative;
        min-height: 280px;
        height: 280px;
        order: -1;
    }

    .eg-split__image img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
}


/* ============================================================
   22. FULL-WIDTH IMAGE BANNER
   ============================================================ */

.eg-banner {
    position: relative;
    width: 100%;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eg-banner__image {
    position: absolute;
    inset: 0;
}

.eg-banner__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eg-banner__image-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--eg-charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--eg-text-sm);
    color: var(--eg-mid-grey);
}

/* Dark overlay for text readability */
.eg-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(27, 27, 31, 0.3) 0%,
        rgba(27, 27, 31, 0.7) 100%
    );
}

.eg-banner__content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--eg-white);
    padding: var(--eg-space-4xl) var(--eg-container-pad);
    max-width: var(--eg-container-narrow);
}

.eg-banner__content h2 {
    color: var(--eg-white);
    margin-bottom: var(--eg-space-md);
}

.eg-banner__content p {
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--eg-text-md);
}

/* Variant: taller banner */
.eg-banner--tall {
    min-height: 560px;
}

/* Variant: shorter banner (page break / divider) */
.eg-banner--short {
    min-height: 280px;
}

/* Variant: no overlay (for lighter images) */
.eg-banner--no-overlay .eg-banner__overlay {
    display: none;
}

/* Variant: left-aligned text */
.eg-banner--left .eg-banner__content {
    text-align: left;
    max-width: var(--eg-container-max);
    margin: 0 auto;
    width: 100%;
}


/* ============================================================
   23. STATS / NUMBERS ROW
   ============================================================ */

.eg-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--eg-space-xl);
}

.eg-stats__item {
    text-align: center;
    padding: var(--eg-space-xl) var(--eg-space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.eg-stats__number {
    display: block;
    font-family: var(--eg-font-heading);
    font-size: clamp(var(--eg-text-3xl), 4vw, var(--eg-text-5xl));
    line-height: 1;
    color: var(--eg-text-primary);
    margin-bottom: var(--eg-space-sm);
}

.eg-stats__label {
    display: block;
    font-size: var(--eg-text-sm);
    color: var(--eg-text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--eg-tracking-wide);
    margin-bottom: var(--eg-space-sm);
}

.eg-stats__desc {
    display: block;
    font-size: var(--eg-text-xs);
    color: var(--eg-mid-grey);
    line-height: var(--eg-leading-relaxed);
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.eg-section--dark .eg-stats__number {
    color: var(--eg-white);
}

.eg-section--dark .eg-stats__label {
    color: rgba(255, 255, 255, 0.6);
}

.eg-section--dark .eg-stats__desc {
    color: rgba(255, 255, 255, 0.35);
}

/* With dividers between items */
.eg-stats--divided .eg-stats__item {
    border-right: 1px solid var(--eg-border);
}

.eg-stats--divided .eg-stats__item:last-child {
    border-right: none;
}

.eg-section--dark .eg-stats--divided .eg-stats__item {
    border-color: var(--eg-border-dark);
}

@media (max-width: 768px) {
    .eg-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .eg-stats--divided .eg-stats__item {
        border-right: none;
    }
}

@media (max-width: 480px) {
    .eg-stats {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   24. BLOCKQUOTE / TESTIMONIAL
   ============================================================ */

.eg-quote {
    position: relative;
    padding: var(--eg-space-3xl) 0;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

/* Large decorative opening quote mark */
.eg-quote::before {
    content: '\201C';
    font-family: var(--eg-font-heading);
    font-size: 6rem;
    line-height: 1;
    color: var(--eg-steel-faint);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.eg-quote__text {
    font-family: var(--eg-font-heading);
    font-size: clamp(var(--eg-text-lg), 2.5vw, var(--eg-text-2xl));
    line-height: var(--eg-leading-snug);
    color: var(--eg-text-primary);
    font-style: italic;
    margin-bottom: var(--eg-space-xl);
}

.eg-quote__attribution {
    font-family: var(--eg-font-body);
    font-size: var(--eg-text-sm);
    color: var(--eg-text-secondary);
}

.eg-quote__attribution strong {
    display: block;
    color: var(--eg-text-primary);
    font-style: normal;
    margin-bottom: 2px;
}

.eg-section--dark .eg-quote::before {
    color: rgba(255, 255, 255, 0.06);
}

.eg-section--dark .eg-quote__text {
    color: var(--eg-white);
}

.eg-section--dark .eg-quote__attribution {
    color: rgba(255, 255, 255, 0.45);
}

.eg-section--dark .eg-quote__attribution strong {
    color: rgba(255, 255, 255, 0.75);
}

/* Variant: left-aligned quote */
.eg-quote--left {
    text-align: left;
    max-width: none;
}

.eg-quote--left::before {
    left: 0;
    transform: none;
}


/* ============================================================
   25. TWO-COLUMN PROSE
   ============================================================ */

.eg-prose-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--eg-space-3xl);
}

.eg-prose-cols p {
    font-size: var(--eg-text-base);
    line-height: var(--eg-leading-relaxed);
}

@media (max-width: 768px) {
    .eg-prose-cols {
        grid-template-columns: 1fr;
        gap: var(--eg-space-xl);
    }
}

/* Variant: one column wider (for lead column + detail column) */
.eg-prose-cols--lead {
    grid-template-columns: 5fr 7fr;
}

@media (max-width: 768px) {
    .eg-prose-cols--lead {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   26. LOGO STRIP / CREDENTIALS BAR
   ============================================================ */

.eg-logo-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--eg-space-3xl);
    flex-wrap: wrap;
    padding: var(--eg-space-xl) 0;
}

.eg-logo-strip__item {
    height: 40px;
    opacity: 1;
    transition: opacity var(--eg-duration-normal) var(--eg-ease-default);
    display: flex;
    align-items: center;
}

.eg-logo-strip__item:hover {
    opacity: 1;
}

.eg-logo-strip__item img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* Placeholder text when logo images are not yet available */
.eg-logo-strip__placeholder {
    font-family: var(--eg-font-body);
    font-size: var(--eg-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--eg-tracking-wider);
    color: var(--eg-text-secondary);
    padding: var(--eg-space-sm) var(--eg-space-lg);
    border: 1px dashed var(--eg-border);
    border-radius: var(--eg-radius-sm);
}

/* On dark backgrounds */
.eg-section--dark .eg-logo-strip__item {
    opacity: 0.4;
}

.eg-section--dark .eg-logo-strip__item:hover {
    opacity: 0.8;
}

.eg-section--dark .eg-logo-strip__placeholder {
    color: rgba(255, 255, 255, 0.3);
    border-color: var(--eg-border-dark);
}

/* With label above */
.eg-logo-strip__label {
    width: 100%;
    text-align: center;
    font-size: var(--eg-text-xs);
    text-transform: uppercase;
    letter-spacing: var(--eg-tracking-widest);
    color: var(--eg-text-secondary);
    font-weight: 500;
    margin-bottom: var(--eg-space-md);
}

@media (max-width: 640px) {
    .eg-logo-strip {
        gap: var(--eg-space-xl);
    }
    .eg-logo-strip__item {
        height: 30px;
    }
}


/* ============================================================
   27. ACCORDION / FAQ
   ============================================================ */

.eg-accordion {
    max-width: var(--eg-container-narrow);
    margin: 0 auto;
}

.eg-accordion__item {
    border-bottom: 1px solid var(--eg-border);
}

.eg-accordion__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--eg-space-lg) 0;
    font-family: var(--eg-font-body);
    font-size: var(--eg-text-md);
    font-weight: 500;
    color: var(--eg-text-primary);
    text-align: left;
    cursor: pointer;
    background: none;
    border: none;
    gap: var(--eg-space-lg);
}

.eg-accordion__trigger:hover {
    color: var(--eg-steel);
}

.eg-accordion__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--eg-mid-grey);
    transition: transform var(--eg-duration-normal) var(--eg-ease-default);
}

.eg-accordion__item--open .eg-accordion__icon {
    transform: rotate(45deg);
}

.eg-accordion__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--eg-duration-slow) var(--eg-ease-default);
}

.eg-accordion__item--open .eg-accordion__body {
    max-height: 600px;
}

.eg-accordion__content {
    padding-bottom: var(--eg-space-xl);
    font-size: var(--eg-text-sm);
    line-height: var(--eg-leading-relaxed);
    color: var(--eg-text-secondary);
    max-width: 90%;
}


/* ============================================================
   28. TEAM / PEOPLE CARDS
   ============================================================ */

.eg-people {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--eg-space-xl);
}

.eg-person {
    text-align: center;
}

.eg-person__image {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: var(--eg-radius-lg);
    overflow: hidden;
    margin-bottom: var(--eg-space-lg);
    background-color: var(--eg-off-white);
}

.eg-person__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eg-person__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--eg-text-sm);
    color: var(--eg-mid-grey);
}

.eg-person__name {
    font-family: var(--eg-font-heading);
    font-size: var(--eg-text-lg);
    color: var(--eg-text-primary);
    margin-bottom: 4px;
}

.eg-person__role {
    font-size: var(--eg-text-sm);
    color: var(--eg-text-secondary);
}

.eg-person__bio {
    font-size: var(--eg-text-sm);
    color: var(--eg-text-secondary);
    line-height: var(--eg-leading-relaxed);
    margin-top: var(--eg-space-sm);
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}


/* ============================================================
   29. FEATURE GRID (Icon + Title + Desc cards)
   ============================================================ */

.eg-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--eg-space-xl);
}

.eg-feature {
    padding: var(--eg-space-xl);
}

.eg-feature__icon {
    width: 40px;
    height: 40px;
    color: var(--eg-steel);
    margin-bottom: var(--eg-space-lg);
}

.eg-feature__title {
    font-family: var(--eg-font-heading);
    font-size: var(--eg-text-lg);
    color: var(--eg-text-primary);
    margin-bottom: var(--eg-space-sm);
}

.eg-feature__desc {
    font-size: var(--eg-text-sm);
    color: var(--eg-text-secondary);
    line-height: var(--eg-leading-relaxed);
}

/* With background cards */
.eg-features--cards .eg-feature {
    background-color: var(--eg-off-white);
    border-radius: var(--eg-radius-lg);
}

/* With border cards */
.eg-features--bordered .eg-feature {
    border: 1px solid var(--eg-border);
    border-radius: var(--eg-radius-lg);
}

/* Centred features */
.eg-features--centred .eg-feature {
    text-align: center;
}

.eg-features--centred .eg-feature__icon {
    margin-left: auto;
    margin-right: auto;
}

/* Dark variant */
.eg-section--dark .eg-feature__title {
    color: var(--eg-white);
}

.eg-section--dark .eg-feature__desc {
    color: rgba(255, 255, 255, 0.55);
}

.eg-section--dark .eg-features--cards .eg-feature {
    background-color: var(--eg-graphite-light);
}

.eg-section--dark .eg-features--bordered .eg-feature {
    border-color: var(--eg-border-dark);
}

@media (max-width: 768px) {
    .eg-features {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .eg-features {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ============================================================
   30. FULL-BLEED IMAGE WITH CAPTION
   ============================================================ */

.eg-full-image {
    width: 100%;
    position: relative;
}

.eg-full-image__img {
    width: 100%;
    display: block;
}

.eg-full-image__img img {
    width: 100%;
    height: auto;
    display: block;
}

.eg-full-image__img-placeholder {
    width: 100%;
    aspect-ratio: 21 / 9;
    background-color: var(--eg-light-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--eg-text-sm);
    color: var(--eg-mid-grey);
}

/* Constrained variant (not full-bleed) */
.eg-full-image--contained {
    max-width: var(--eg-container-max);
    margin: 0 auto;
    padding: 0 var(--eg-container-pad);
}

.eg-full-image--contained .eg-full-image__img {
    border-radius: var(--eg-radius-lg);
    overflow: hidden;
}

.eg-full-image__caption {
    max-width: var(--eg-container-max);
    margin: var(--eg-space-md) auto 0;
    padding: 0 var(--eg-container-pad);
    font-size: var(--eg-text-xs);
    color: var(--eg-text-secondary);
}


/* ============================================================
   31. VIDEO EMBED
   ============================================================ */

.eg-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--eg-radius-lg);
    overflow: hidden;
    background-color: var(--eg-charcoal);
}

.eg-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.eg-video__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--eg-space-md);
    color: var(--eg-mid-grey);
    font-size: var(--eg-text-sm);
}

.eg-video__play-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--eg-white);
}


/* ============================================================
   32. GENERIC CARD GRID (Blog posts, news, etc.)
   ============================================================ */

.eg-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--eg-space-xl);
}

.eg-card {
    border: 1px solid var(--eg-border);
    border-radius: var(--eg-radius-lg);
    overflow: hidden;
    transition: border-color var(--eg-duration-normal) var(--eg-ease-default),
                box-shadow var(--eg-duration-normal) var(--eg-ease-default);
}

.eg-card:hover {
    border-color: var(--eg-steel-border);
    box-shadow: var(--eg-shadow-card);
}

.eg-card__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--eg-off-white);
}

.eg-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--eg-duration-slow) var(--eg-ease-default);
}

.eg-card:hover .eg-card__image img {
    transform: scale(1.03);
}

.eg-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--eg-text-sm);
    color: var(--eg-mid-grey);
}

.eg-card__body {
    padding: var(--eg-space-xl);
}

.eg-card__meta {
    font-size: var(--eg-text-xs);
    text-transform: uppercase;
    letter-spacing: var(--eg-tracking-widest);
    color: var(--eg-steel);
    font-weight: 500;
    margin-bottom: var(--eg-space-sm);
}

.eg-card__title {
    font-family: var(--eg-font-heading);
    font-size: var(--eg-text-lg);
    color: var(--eg-text-primary);
    margin-bottom: var(--eg-space-sm);
    line-height: var(--eg-leading-snug);
}

.eg-card__excerpt {
    font-size: var(--eg-text-sm);
    color: var(--eg-text-secondary);
    line-height: var(--eg-leading-relaxed);
}

@media (max-width: 768px) {
    .eg-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .eg-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ============================================================
   33. IMAGE GALLERY GRID
   ============================================================ */

.eg-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--eg-space-sm);
}

.eg-gallery__item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--eg-radius-md);
    background-color: var(--eg-off-white);
}

.eg-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--eg-duration-slow) var(--eg-ease-default);
}

.eg-gallery__item:hover img {
    transform: scale(1.05);
}

/* Variant: 2-column gallery */
.eg-gallery--2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Variant: 4-column gallery */
.eg-gallery--4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Variant: masonry-style (first item spans two rows) */
.eg-gallery--featured .eg-gallery__item:first-child {
    grid-row: span 2;
    aspect-ratio: auto;
}

/* Variant: wider gaps */
.eg-gallery--spaced {
    gap: var(--eg-space-md);
}

.eg-gallery__item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--eg-text-xs);
    color: var(--eg-mid-grey);
}

/* Optional caption overlay */
.eg-gallery__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--eg-space-sm) var(--eg-space-md);
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    font-size: var(--eg-text-xs);
    color: var(--eg-white);
}

@media (max-width: 768px) {
    .eg-gallery,
    .eg-gallery--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ============================================================
   34. SIDEBAR LAYOUT (Blog posts, future use)
   ============================================================ */

.eg-sidebar-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--eg-space-3xl);
    max-width: var(--eg-container-max);
    margin: 0 auto;
    padding: 0 var(--eg-container-pad);
}

.eg-sidebar-layout__main {
    min-width: 0;
}

.eg-sidebar-layout__aside {
    display: flex;
    flex-direction: column;
    gap: var(--eg-space-xl);
}

.eg-sidebar__widget {
    padding: var(--eg-space-xl);
    background-color: var(--eg-off-white);
    border-radius: var(--eg-radius-lg);
}

.eg-sidebar__widget-title {
    font-family: var(--eg-font-body);
    font-size: var(--eg-text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--eg-tracking-widest);
    color: var(--eg-text-secondary);
    margin-bottom: var(--eg-space-lg);
}

@media (max-width: 1024px) {
    .eg-sidebar-layout {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   35. INDUSTRIES / TAGS STRIP
   ============================================================ */

.eg-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--eg-space-sm);
}

.eg-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-family: var(--eg-font-body);
    font-size: var(--eg-text-xs);
    font-weight: 500;
    letter-spacing: var(--eg-tracking-wide);
    color: var(--eg-text-secondary);
    background-color: var(--eg-off-white);
    border: 1px solid var(--eg-border);
    border-radius: var(--eg-radius-full);
    transition: border-color var(--eg-duration-fast) var(--eg-ease-default),
                color var(--eg-duration-fast) var(--eg-ease-default);
}

.eg-tag:hover {
    border-color: var(--eg-steel-border);
    color: var(--eg-steel);
}


/* ============================================================
   36. CENTRED NARROW SECTION (for standalone prose pages)
   ============================================================ */

.eg-prose {
    max-width: var(--eg-container-narrow);
    margin: 0 auto;
    padding: 0 var(--eg-container-pad);
}

.eg-prose h2 {
    margin-bottom: var(--eg-space-lg);
}

.eg-prose h3 {
    margin-top: var(--eg-space-2xl);
    margin-bottom: var(--eg-space-md);
}

.eg-prose p + p {
    margin-top: 0;
}

.eg-prose ul,
.eg-prose ol {
    padding-left: var(--eg-space-xl);
    margin-bottom: var(--eg-space-md);
}

.eg-prose li {
    font-size: var(--eg-text-base);
    line-height: var(--eg-leading-relaxed);
    margin-bottom: var(--eg-space-xs);
    list-style: disc;
}

.eg-prose ol li {
    list-style: decimal;
}


/* ============================================================
   37. RESPONSIVE SWEEP v2.4
   Full mobile and tablet pass — padding, margins, alignment,
   grid behaviour, typography scaling, flex wrapping.
   ============================================================ */

/* ----------------------------------------------------------
   TABLET (769px – 1024px)
   ---------------------------------------------------------- */

@media (min-width: 769px) and (max-width: 1024px) {

    /* Section padding: reduce from 4xl (96px) to 3xl (64px) */
    .eg-section {
        padding-top: var(--eg-space-3xl);
        padding-bottom: var(--eg-space-3xl);
    }

    .eg-section--sm {
        padding-top: var(--eg-space-2xl);
        padding-bottom: var(--eg-space-2xl);
    }

    /* Split content padding */
    .eg-split__content {
        padding: var(--eg-space-3xl) var(--eg-space-2xl);
    }

    /* Features grid: 2-col at tablet */
    .eg-features {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Stats: 2-col at tablet */
    .eg-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .eg-stats--divided .eg-stats__item {
        border-right: none;
        border-bottom: 1px solid var(--eg-border);
    }

    .eg-stats--divided .eg-stats__item:last-child,
    .eg-stats--divided .eg-stats__item:nth-child(even) {
        border-bottom: none;
    }

    /* Section header spacing */
    .eg-section-header {
        margin-bottom: var(--eg-space-2xl);
    }

    /* Hero compact */
    .eg-hero--compact {
        padding: var(--eg-space-2xl) 0 var(--eg-space-xl);
    }
}


/* ----------------------------------------------------------
   MOBILE (≤768px)
   ---------------------------------------------------------- */

@media (max-width: 768px) {

    /* -- Section padding -- */
    .eg-section {
        padding-top: var(--eg-space-3xl);
        padding-bottom: var(--eg-space-3xl);
    }

    .eg-section--sm {
        padding-top: var(--eg-space-2xl);
        padding-bottom: var(--eg-space-2xl);
    }

    .eg-section--lg {
        padding-top: var(--eg-space-3xl);
        padding-bottom: var(--eg-space-3xl);
    }

    /* -- Section header -- */
    .eg-section-header {
        margin-bottom: var(--eg-space-xl);
    }

    /* -- Hero -- */
    .eg-hero {
        padding: var(--eg-space-3xl) 0;
    }

    .eg-hero--centred {
        padding: var(--eg-space-2xl) 0;
    }

    .eg-hero--compact {
        padding: var(--eg-space-xl) 0 var(--eg-space-lg);
    }

    .eg-hero__subtitle {
        font-size: var(--eg-text-base);
    }

    /* -- Heading size overrides for mobile -- */
    [class*="eg-"] h1,
    .eg-hero__title {
        font-size: clamp(1.625rem, 7vw, 2rem) !important;
    }

    [class*="eg-"] h2 {
        font-size: clamp(1.25rem, 5vw, 1.75rem) !important;
        line-height: 1.25 !important;
    }

    [class*="eg-"] h3 {
        font-size: clamp(1.05rem, 4vw, 1.25rem) !important;
    }

    [class*="eg-"] h4 {
        font-size: 1.125rem !important;
    }

    /* -- Stats number -- */
    .eg-stats__number {
        font-size: clamp(1.75rem, 8vw, var(--eg-text-3xl));
    }

    /* -- Features grid -- */
    .eg-features {
        grid-template-columns: 1fr;
    }

    .eg-features--bordered .eg-feature {
        border-right: none;
        border-bottom: 1px solid var(--eg-border);
        padding-bottom: var(--eg-space-xl);
    }

    .eg-features--bordered .eg-feature:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    /* -- Feature icon -- */
    .eg-feature__icon {
        width: 32px;
        height: 32px;
    }

    /* -- Buttons: wrap on very small screens -- */
    .eg-flex--gap-md,
    .eg-flex--gap-lg {
        flex-wrap: wrap;
    }

    /* CTA button groups: full width on mobile */
    .eg-brand-cta .eg-flex--gap-md {
        width: 100%;
    }

    .eg-brand-cta .eg-flex--gap-md .eg-btn {
        flex: 1;
        justify-content: center;
        text-align: center;
    }

    /* Hero CTA buttons: stack on very small screens */
    .eg-hero .eg-flex--gap-md,
    .eg-hero .eg-flex--gap-lg {
        flex-direction: column;
        align-items: stretch;
    }

    .eg-hero .eg-flex--gap-md .eg-btn,
    .eg-hero .eg-flex--gap-lg .eg-btn {
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    /* -- Quote decorative mark -- */
    .eg-quote::before {
        font-size: 4rem;
    }

    .eg-quote {
        padding: var(--eg-space-2xl) 0;
    }

    /* -- Brand CTA -- */
    .eg-brand-cta {
        padding: var(--eg-space-lg);
        gap: var(--eg-space-lg);
    }

    /* -- Card body padding -- */
    .eg-card__body {
        padding: var(--eg-space-lg);
    }

    /* -- Brand card padding -- */
    .eg-brand-card {
        padding: var(--eg-space-xl);
    }

    /* -- Footer grid: single column, left-aligned -- */
    .eg-footer__grid {
        grid-template-columns: 1fr;
        gap: var(--eg-space-2xl);
        text-align: left;
        padding: var(--eg-space-2xl) var(--eg-container-pad);
    }

    .eg-footer__brand-bar {
        padding: var(--eg-space-2xl) var(--eg-container-pad) var(--eg-space-xl);
    }

    /* -- Footer socials: left-align to match grid -- */
    .eg-footer__socials {
        justify-content: center;
    }

    /* -- Footer bottom bar -- */
    .eg-footer__bottom {
        flex-direction: column;
        gap: var(--eg-space-sm);
        text-align: center;
        padding: var(--eg-space-lg) var(--eg-container-pad);
    }

    /* -- Prose columns: reduce gap -- */
    .eg-prose-cols {
        gap: var(--eg-space-xl);
    }

    /* -- Logo strip: tighter gap -- */
    .eg-logo-strip {
        gap: var(--eg-space-lg);
    }

    /* -- Tags: allow wrap freely -- */
    .eg-tags {
        gap: var(--eg-space-xs);
    }

    /* -- Spacing utility overrides -- */
    .eg-mt-xl {
        margin-top: var(--eg-space-lg);
    }

    .eg-mb-xl {
        margin-bottom: var(--eg-space-lg);
    }

    .eg-mb-2xl {
        margin-bottom: var(--eg-space-xl);
    }

    .eg-mb-3xl {
        margin-bottom: var(--eg-space-2xl);
    }

    /* -- Section header divider margin -- */
    .eg-section-header .eg-divider--accent {
        margin-top: var(--eg-space-md);
    }

    /* -- Lead paragraph: reduce max-width constraint -- */
    .eg-lead {
        max-width: 100%;
    }

    /* -- Brand profile meta: stack items -- */
    .eg-brand-profile__meta {
        flex-direction: column;
        gap: var(--eg-space-md);
    }

    /* -- Timeline: reduce padding -- */
    .eg-timeline__item {
        padding-bottom: var(--eg-space-xl);
    }
}


/* ----------------------------------------------------------
   SMALL MOBILE (≤480px)
   ---------------------------------------------------------- */

@media (max-width: 480px) {

    /* -- Stats: 1-col -- */
    .eg-stats {
        grid-template-columns: 1fr;
    }

    .eg-stats__item {
        padding: var(--eg-space-lg) 0;
        border-bottom: 1px solid var(--eg-border);
    }

    .eg-stats__item:last-child {
        border-bottom: none;
    }

    .eg-section--dark .eg-stats__item {
        border-color: var(--eg-border-dark);
    }

    /* -- Hero title: tighten further -- */
    .eg-hero__title,
    [class*="eg-"] h1 {
        font-size: clamp(1.625rem, 8vw, 2.25rem) !important;
    }

    /* -- Buttons: always full width -- */
    .eg-btn {
        width: 100%;
        justify-content: center;
    }

    /* Exception: nav CTA button stays auto-width */
    .eg-nav .eg-btn {
        width: auto;
    }

    /* -- Card grid: always 1-col -- */
    .eg-card-grid {
        grid-template-columns: 1fr;
    }

    /* -- Brand cards: 1-col -- */
    .eg-brand-cards {
        grid-template-columns: 1fr;
    }

    /* -- Section padding: tightest -- */
    .eg-section {
        padding-top: var(--eg-space-2xl);
        padding-bottom: var(--eg-space-2xl);
    }

    /* -- Split content padding -- */
    .eg-split__content {
        padding: var(--eg-space-2xl) var(--eg-container-pad);
    }

    /* -- Feature cards: reduce padding -- */
    .eg-feature {
        padding: var(--eg-space-lg);
    }
}