/* ==========================================================
   BuildCore Construction Group — Main Stylesheet
   European Corporate — Navy · Blue · White Design System
   ========================================================== */

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
    /* Dark palette — keeping old names so all var() refs in PHP auto-update */
    --dark:          #0F172A;
    --charcoal:      #0F172A;
    --charcoal-mid:  #1E293B;
    --charcoal-light:#334155;
    --dark-card:     #1E293B;

    /* Blue accent — replaces orange throughout */
    --orange:        #2563EB;   /* deliberately named --orange so PHP inline var(--orange) becomes blue */
    --orange-dark:   #1D4ED8;
    --orange-light:  #3B82F6;
    --orange-glow:   rgba(37,99,235,0.15);

    /* Light palette */
    --white:         #ffffff;
    --off-white:     #F8FAFC;
    --light:         #F1F5F9;
    --border:        #E2E8F0;
    --border-dark:   #334155;

    /* Text */
    --text:          #0F172A;
    --text-muted:    #64748B;
    --text-light:    #94A3B8;
    --text-on-dark:  rgba(255,255,255,0.80);

    /* Typography */
    --font-heading:  'Montserrat', sans-serif;
    --font-body:     'Open Sans', sans-serif;

    /* Easing */
    --ease:          cubic-bezier(0.4, 0, 0.2, 1);
    --t-fast:        0.18s;
    --t-mid:         0.32s;
    --t-slow:        0.55s;

    /* Shadows */
    --shadow-xs:     0 1px 4px rgba(0,0,0,0.04);
    --shadow-sm:     0 4px 16px rgba(0,0,0,0.07);
    --shadow-md:     0 8px 32px rgba(0,0,0,0.10);
    --shadow-lg:     0 20px 60px rgba(0,0,0,0.13);
    --shadow-orange: 0 8px 28px rgba(37,99,235,0.25);

    /* Border radius */
    --radius-sm:     6px;
    --radius-md:     12px;
    --radius-lg:     20px;

    /* Layout */
    --section-py:    110px;
    --nav-height:    80px;
    --topbar-height: 36px;
}

/* ─── Skip Navigation Link ───────────────────────────────── */
/*
 * Visually hidden by default; snaps into view on keyboard focus.
 * position:absolute with a massive negative left keeps it out of
 * the rendered layout without clipping focus indicators.
 */
.skip-nav {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 10000;
    background: var(--orange);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.skip-nav:focus {
    position: fixed;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: auto;
    height: auto;
    overflow: visible;
    padding: 12px 28px;
    outline: 3px solid rgba(255,255,255,0.7);
    outline-offset: -3px;
    box-shadow: var(--shadow-md);
}

/* ─── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    /* Double-lock horizontal scroll — required for iOS Safari where
       overflow-x: hidden on body alone is unreliable with fixed children */
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    /* Needed so overflow-x:hidden contains fixed descendants on iOS */
    position: relative;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; transition: color var(--t-fast) var(--ease); }

/* ─── Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

.display-hero {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5.5vw, 5.4rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 16px;
}
.section-eyebrow::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--orange);
    flex-shrink: 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--charcoal);
    margin-bottom: 20px;
}
.section-title.text-white { color: var(--white); }

.section-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 620px;
    line-height: 1.85;
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    border-radius: var(--radius-sm);
    padding: 14px 28px;
    transition: all var(--t-mid) var(--ease);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.btn-orange {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}
.btn-orange::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--orange-dark);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--t-mid) var(--ease);
}
.btn-orange:hover { color: var(--white); box-shadow: var(--shadow-orange); }
.btn-orange:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-orange * { position: relative; z-index: 1; }

.btn-dark-outline {
    background: transparent;
    color: var(--charcoal);
    border-color: var(--border);
}
.btn-dark-outline:hover {
    background: var(--charcoal);
    color: var(--white);
    border-color: var(--charcoal);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.45);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.12);
    color: var(--white);
    border-color: var(--white);
}

/* ─── Preloader ─────────────────────────────────────────── */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
#preloader.hidden { opacity: 0; visibility: hidden; }

.preloader-inner { text-align: center; }

.preloader-logo {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--charcoal);
    letter-spacing: 0.08em;
    margin-bottom: 24px;
}

.preloader-track {
    width: 200px;
    height: 2px;
    background: var(--border);
    border-radius: 99px;
    margin: 0 auto 16px;
    overflow: hidden;
}
.preloader-bar {
    height: 100%;
    background: var(--orange);
    border-radius: 99px;
    animation: loadBar 1.8s ease-in-out infinite;
}
.preloader-text {
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 0.68rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin: 0;
}

@keyframes loadBar { 0% { width: 0; } 70% { width: 100%; } 100% { width: 100%; opacity: 0; } }

/* ─── Top Bar ───────────────────────────────────────────── */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 8px 0;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--border);
    z-index: 1040;
}
.topbar-item {
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.topbar-item i { color: var(--orange); }
.topbar-link { transition: color var(--t-fast); }
.topbar-link:hover { color: var(--orange); }

/* ─── Navigation ────────────────────────────────────────── */
#mainNav {
    padding: 0;
    top: var(--topbar-height);
    min-height: var(--nav-height);
    transition: background var(--t-mid) var(--ease),
                box-shadow var(--t-mid) var(--ease);
    z-index: 1030;
}

#mainNav.navbar-hero { background: transparent; }
#mainNav.navbar-scrolled,
#mainNav.navbar-hero.scrolled {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 2px 24px rgba(0,0,0,0.08);
}

/* Brand */
.navbar-brand {
    padding: calc((var(--nav-height) - 40px) / 2) 0;
    flex-shrink: 0;
    margin-right: 0;
}
.brand-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-icon-box {
    width: 40px;
    height: 40px;
    background: var(--orange);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--white);
    flex-shrink: 0;
    transition: transform var(--t-fast);
}
.brand-icon-box:hover { transform: scale(1.05); }
.brand-icon-lg { width: 48px; height: 48px; font-size: 1.25rem; }
.brand-text-box {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.brand-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
    white-space: nowrap;
    transition: color var(--t-fast);
}
.brand-sub {
    font-family: var(--font-heading);
    font-size: 0.58rem;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: 3px;
    white-space: nowrap;
    transition: color var(--t-fast);
}

/* When nav has white background, flip brand text to dark */
#mainNav.navbar-scrolled .brand-name { color: var(--charcoal); }
#mainNav.navbar-scrolled .brand-sub  { color: var(--orange); }

/* Nav collapse */
.navbar-collapse { flex-grow: 1; }
.navbar-nav { flex-wrap: nowrap; }

/* Nav links */
.navbar-nav .nav-link {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.80);
    padding: calc((var(--nav-height) - 1.2rem) / 2) 0.9rem !important;
    white-space: nowrap;
    position: relative;
    transition: color var(--t-fast);
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--orange);
    transform: translateX(-50%);
    transition: width var(--t-mid) var(--ease);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--white); }
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { width: 60%; }

/* Scrolled nav — dark text */
#mainNav.navbar-scrolled .navbar-nav .nav-link { color: rgba(15,23,42,0.60); }
#mainNav.navbar-scrolled .navbar-nav .nav-link:hover,
#mainNav.navbar-scrolled .navbar-nav .nav-link.active { color: var(--charcoal); }
#mainNav.navbar-scrolled .navbar-nav .nav-link::after { background: var(--orange); }

/* Nav actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.nav-phone {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    white-space: nowrap;
    transition: color var(--t-fast);
}
.nav-phone:hover { color: var(--white); }
.nav-phone i { color: var(--orange); }
#mainNav.navbar-scrolled .nav-phone { color: var(--text-muted); }
#mainNav.navbar-scrolled .nav-phone:hover { color: var(--charcoal); }

/* Hamburger */
.navbar-toggler {
    border: none;
    background: none;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
    /* Apple HIG minimum touch target: 44 × 44 pt */
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}
.hamburger-line {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--t-mid) var(--ease);
    transform-origin: center;
}
#mainNav.navbar-scrolled .hamburger-line { background: var(--charcoal); }
.navbar-toggler:not(.collapsed) .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggler:not(.collapsed) .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar-toggler:not(.collapsed) .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Body scroll lock when mobile nav is open */
body.nav-open {
    overflow: hidden;
    /* Prevent iOS Safari momentum scrolling from showing content behind the nav */
    position: fixed;
    width: 100%;
}

/* Mobile Nav */
@media (max-width: 991.98px) {
    #mainNav { top: 0; }

    /* iPhone notch / Dynamic Island safe area */
    #mainNav .container-fluid {
        padding-left:  max(1.5rem, env(safe-area-inset-left, 0px));
        padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
    }

    #mainNavCollapse {
        background: rgba(255,255,255,0.98);
        margin-top: 8px;
        border-radius: var(--radius-md);
        padding: 16px;
        border: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        /* Clamp to viewport — Bootstrap manages its own overflow during animation */
        max-width: 100%;
        width: 100%;
    }
    .navbar-nav { flex-wrap: wrap; }
    .navbar-nav .nav-link {
        padding: 13px 16px !important;
        border-bottom: 1px solid var(--border);
        white-space: normal;
        color: var(--text-muted) !important;
        /* Ensure touch target is tall enough */
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active { color: var(--charcoal) !important; }
    .navbar-nav .nav-link::after { display: none; }
    .nav-actions { padding: 16px 0 4px; width: 100%; }
    .nav-actions .btn-orange { width: 100%; justify-content: center; text-align: center; }

    /* Fix about-badge on tablets — keep it inside overflow:hidden parent bounds */
    .about-badge { left: 0; }
}

/* ─── Page Hero Banner (Inner Pages) ────────────────────── */
.page-hero {
    position: relative;
    padding: calc(var(--topbar-height) + var(--nav-height) + 70px) 0 90px;
    background: var(--charcoal);
    overflow: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    isolation: isolate;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(15,23,42,0.97) 40%, rgba(37,99,235,0.06) 100%);
    z-index: 1;
}
.page-hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        url('../images/page-hero-bg.jpg'),
        linear-gradient(135deg, #0d1520 0%, #1c1c2a 50%, #0a0f1a 100%);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    opacity: 0.30;
    z-index: 0;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--orange-light);
    margin-bottom: 18px;
}
.page-hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--orange);
}
.page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}
.page-hero-lead {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.60);
    max-width: 540px;
    line-height: 1.85;
    margin-bottom: 32px;
}
.page-hero-breadcrumb .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.82rem;
}
.page-hero-breadcrumb .breadcrumb-item,
.page-hero-breadcrumb .breadcrumb-item a {
    color: rgba(255,255,255,0.45);
    font-family: var(--font-heading);
    font-weight: 500;
}
.page-hero-breadcrumb .breadcrumb-item a:hover { color: var(--orange-light); }
.page-hero-breadcrumb .breadcrumb-item.active { color: var(--orange-light); }
.page-hero-breadcrumb .breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,0.25); }

/* Decorative geo circles removed — hidden so existing PHP still renders */
.page-hero-geo { display: none; }

/* ─── Sections ──────────────────────────────────────────── */
section { position: relative; }
.section-pad    { padding: var(--section-py) 0; }
.section-pad-sm { padding: 70px 0; }
.bg-dark-section { background: var(--charcoal); }
.bg-off-white    { background: var(--off-white); }
.bg-charcoal-mid { background: var(--charcoal-mid); }

/* ─── HERO SECTION (Homepage) ───────────────────────────── */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--dark);
    padding-top: calc(var(--topbar-height) + var(--nav-height) + 40px);
    padding-bottom: 60px;
    /* Force a GPU compositing layer so overflow:hidden clips the parallax
       background correctly on iOS Safari */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    isolation: isolate;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        url('../images/hero-bg.jpg'),
        linear-gradient(125deg, #0a0f1a 0%, #0F172A 50%, #0a0f1a 100%);
    background-size: cover, cover;
    background-position: center 40%, center;
    background-repeat: no-repeat, no-repeat;
    z-index: 0;
    transform: scale(1.04);
    transition: transform 8s linear;
    will-change: transform;
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(15,23,42,0.97) 0%,
        rgba(15,23,42,0.82) 50%,
        rgba(15,23,42,0.35) 100%
    );
    z-index: 1;
}

/* Hero geo ring — hidden in new design */
.hero-geo-ring { display: none; }

.hero-content {
    position: relative;
    z-index: 3;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--orange-light);
    margin-bottom: 28px;
}
.hero-eyebrow::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--orange);
    flex-shrink: 0;
}
/* Legacy hero-tag hidden */
.hero-tag { display: none; }

.hero-title {
    color: var(--white);
    margin-bottom: 28px;
}
.hero-title .accent {
    display: inline-block;
    min-width: 12ch;
    vertical-align: bottom;
    color: var(--orange-light);
    position: relative;
}
.hero-title .accent::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--orange);
    opacity: 0.45;
    border-radius: 2px;
}

.hero-lead {
    font-size: 1.12rem;
    color: rgba(255,255,255,0.62);
    max-width: 540px;
    line-height: 1.9;
    margin-bottom: 44px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 72px; }
.hero-actions .btn { font-size: 0.95rem; padding: 16px 36px; }

.hero-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.70);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: color var(--t-fast);
}
.hero-play-btn:hover { color: var(--white); }
.play-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-mid);
}
.hero-play-btn:hover .play-circle {
    border-color: var(--orange-light);
    background: rgba(37,99,235,0.12);
}

.hero-mini-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 40px;
}
.hero-mini-stat {
    padding: 0 40px 0 0;
    margin-right: 40px;
    border-right: 1px solid rgba(255,255,255,0.08);
}
.hero-mini-stat:last-child { border-right: none; }
.hero-stat-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 4px;
}
.hero-stat-num span.unit { color: var(--orange-light); }
.hero-stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.42);
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

/* ─── Stats Bar ─────────────────────────────────────────── */
.stats-bar {
    background: var(--charcoal);
    padding: 0;
    position: relative;
    z-index: 10;
}
.stats-bar-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.stat-item {
    padding: 36px 24px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.06);
    transition: background var(--t-fast);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(37,99,235,0.06); }
.stat-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 6px;
}
.stat-suffix { color: var(--orange-light); font-size: 1.8rem; }
.stat-label {
    font-family: var(--font-heading);
    font-size: 0.70rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}

/* ─── About Teaser ──────────────────────────────────────── */
.about-teaser-img {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.about-teaser-img img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
}
.about-img-placeholder {
    width: 100%;
    height: 520px;
    background: linear-gradient(135deg, var(--charcoal-mid) 0%, var(--charcoal-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.1);
    font-size: 6rem;
}
.about-badge {
    position: absolute;
    bottom: 36px;
    left: -28px;
    background: var(--white);
    color: var(--charcoal);
    padding: 20px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-family: var(--font-heading);
    font-weight: 700;
    text-align: center;
    border-left: 4px solid var(--orange);
}
.about-badge-num {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2px;
    color: var(--orange);
}
.about-badge-text { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
.checklist li:last-child { border-bottom: none; }
.checklist li i { color: var(--orange); margin-top: 4px; flex-shrink: 0; }

/* ─── Service Image Cards (Homepage) ────────────────────── */
.svc-img-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--t-mid) var(--ease);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.svc-img-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
    border-color: transparent;
}
.svc-img-wrap {
    height: 240px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}
.svc-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow) var(--ease);
}
.svc-img-card:hover .svc-img-wrap img { transform: scale(1.06); }
.svc-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.55) 0%, transparent 60%);
}
.svc-card-body {
    padding: 28px 28px 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.svc-card-body h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 10px;
    transition: color var(--t-fast);
}
.svc-img-card:hover .svc-card-body h4 { color: var(--orange); }
.svc-card-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0 0 20px;
    flex: 1;
}
.svc-card-link {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--orange);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap var(--t-fast);
}
.svc-card-link:hover { gap: 14px; }

/* ─── Service Cards (Legacy icon variant — services.php overview) ── */
.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 36px 32px;
    border: 1px solid var(--border);
    height: 100%;
    transition: all var(--t-mid) var(--ease);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-mid) var(--ease);
}
.service-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon-wrap {
    width: 56px;
    height: 56px;
    background: var(--off-white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--orange);
    margin-bottom: 22px;
    transition: all var(--t-mid);
}
.service-card:hover .service-icon-wrap { background: var(--orange); color: var(--white); }
.service-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; transition: color var(--t-fast); }
.service-card:hover h4 { color: var(--orange); }
.service-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.75; margin: 0 0 20px; }
.service-card-link {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--orange);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap var(--t-fast);
}
.service-card-link:hover { gap: 14px; }

/* Dark variant — only used if explicitly needed */
.service-card-dark { background: var(--dark-card); border-color: var(--border-dark); }
.service-card-dark h4 { color: var(--white); }
.service-card-dark p  { color: rgba(255,255,255,0.50); }
.service-card-dark .service-icon-wrap { background: rgba(255,255,255,0.05); }
.service-card-dark:hover { border-color: var(--orange); box-shadow: var(--shadow-orange); }

/* ─── Projects Grid ──────────────────────────────────────── */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 48px;
}
.filter-btn {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 9px 22px;
    border-radius: 99px;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--t-fast);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
    box-shadow: var(--shadow-orange);
}

.project-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--t-mid) var(--ease);
    background: var(--charcoal);
    height: 360px;
}
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.project-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow) var(--ease);
}
.project-card:hover .project-card-img { transform: scale(1.06); }

.project-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    transition: transform var(--t-slow) var(--ease);
}
.project-card:hover .project-card-placeholder { transform: scale(1.06); }

.project-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.94) 0%, rgba(15,23,42,0.30) 55%, transparent 100%);
    transition: background var(--t-mid);
}
.project-card:hover .project-card-overlay {
    background: linear-gradient(to top, rgba(15,23,42,0.97) 0%, rgba(15,23,42,0.55) 60%, rgba(37,99,235,0.05) 100%);
}
.project-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    transform: translateY(6px);
    transition: transform var(--t-mid) var(--ease);
}
.project-card:hover .project-card-body { transform: translateY(0); }

.project-category-badge {
    display: inline-block;
    padding: 3px 12px;
    background: var(--orange);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 99px;
    margin-bottom: 10px;
}
.project-card-body h4 { color: var(--white); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.project-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    font-family: var(--font-heading);
    font-weight: 500;
}
.project-card-meta i { color: var(--orange-light); }

.project-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--orange);
    border-radius: 50%;
    color: var(--white);
    font-size: 0.9rem;
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0;
    transform: scale(0.7);
    transition: all var(--t-mid) var(--ease);
}
.project-card:hover .project-card-action { opacity: 1; transform: scale(1); }

/* ─── Project value tag on cards ────────────────────────── */
.project-value-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 99px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--white);
    margin-top: 10px;
}

/* ─── Project Modal ──────────────────────────────────────── */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.modal-header {
    background: var(--charcoal);
    border: none;
    padding: 28px 32px;
}
.modal-header .modal-title { color: var(--white); font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; }
.modal-body { padding: 32px; }
.modal-project-img { width: 100%; height: 260px; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 24px; }
.modal-project-img-placeholder { width: 100%; height: 260px; border-radius: var(--radius-md); margin-bottom: 24px; display: flex; align-items: center; justify-content: center; font-size: 5rem; }
.modal-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 24px; }
.modal-stat { background: var(--off-white); border-radius: var(--radius-sm); padding: 16px; }
.modal-stat-label { font-family: var(--font-heading); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-light); margin-bottom: 4px; }
.modal-stat-value { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--charcoal); }
.modal-highlights { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.modal-highlight-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(37,99,235,0.07);
    border: 1px solid rgba(37,99,235,0.16);
    border-radius: 99px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--orange-dark);
}
.modal-highlight-tag i { font-size: 0.7rem; }
.btn-close-white { filter: invert(1) grayscale(100%) brightness(2); }

/* ─── Why Choose Us ──────────────────────────────────────── */
.why-card {
    display: flex;
    gap: 20px;
    padding: 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--white);
    transition: all var(--t-mid);
    height: 100%;
}
.why-card:hover { border-color: var(--orange); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.why-icon {
    width: 52px;
    height: 52px;
    background: var(--off-white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--orange);
    flex-shrink: 0;
    transition: all var(--t-mid);
}
.why-card:hover .why-icon { background: var(--orange); color: var(--white); }
.why-body h5 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--charcoal); }
.why-body p { font-size: 0.88rem; color: var(--text-muted); margin: 0; line-height: 1.75; }

/* ─── Testimonials ───────────────────────────────────────── */
.testimonial-slider-wrap {
    position: relative;
    overflow: hidden;
    /* Force GPU layer — prevents iOS from ignoring overflow:hidden on
       the will-change:transform child (.testimonial-track) */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    isolation: isolate;
}
.testimonial-track { display: flex; transition: transform 0.55s var(--ease); will-change: transform; }
.testimonial-slide { min-width: 100%; padding: 0 12px; }

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 44px 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    position: relative;
}
.testimonial-quote-icon { font-size: 4rem; color: var(--orange); opacity: 0.08; position: absolute; top: 24px; right: 32px; line-height: 1; }
.testimonial-stars { color: var(--orange); margin-bottom: 20px; font-size: 0.9rem; gap: 3px; display: flex; }
.testimonial-text { font-size: 1.05rem; line-height: 1.9; color: var(--text); font-style: italic; margin-bottom: 32px; }
.testimonial-author { display: flex; align-items: center; gap: 16px; }
.author-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}
.author-name { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700; color: var(--charcoal); margin-bottom: 2px; }
.author-title { font-size: 0.82rem; color: var(--text-muted); }
.author-company { font-size: 0.78rem; color: var(--orange); font-weight: 600; }

.slider-controls { display: flex; align-items: center; gap: 12px; margin-top: 32px; }
.slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--t-fast);
}
.slider-btn:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }
.slider-dots { display: flex; gap: 8px; }
.slider-dot { width: 8px; height: 8px; border-radius: 99px; background: var(--border); cursor: pointer; transition: all var(--t-mid); border: none; padding: 0; }
.slider-dot.active { width: 28px; background: var(--orange); }

/* ─── Team Cards ─────────────────────────────────────────── */
.team-card { border-radius: var(--radius-md); overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: all var(--t-mid); height: 100%; }
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); }
.team-card-img { height: 260px; overflow: hidden; position: relative; }
.team-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.team-card:hover .team-card-img img { transform: scale(1.06); }
.team-avatar-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 3rem; font-weight: 800; color: rgba(255,255,255,0.5); }
.team-linkedin-overlay {
    position: absolute;
    inset: 0;
    background: rgba(37,99,235,0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--t-mid);
    font-size: 1.5rem;
    color: var(--white);
}
.team-card:hover .team-linkedin-overlay { opacity: 1; }
.team-card-body { padding: 24px; }
.team-card-body h5 { font-size: 1rem; font-weight: 700; color: var(--charcoal); margin-bottom: 4px; }
.team-card-title { font-family: var(--font-heading); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; color: var(--orange); text-transform: uppercase; margin-bottom: 12px; }
.team-card-bio { font-size: 0.85rem; color: var(--text-muted); line-height: 1.75; margin: 0; }

/* ─── Certification Cards ────────────────────────────────── */
.cert-card {
    text-align: center;
    padding: 32px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--white);
    transition: all var(--t-mid);
    height: 100%;
}
.cert-card:hover { border-color: var(--orange); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.cert-icon { font-size: 2rem; color: var(--orange); margin-bottom: 16px; }
.cert-title { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700; color: var(--charcoal); margin-bottom: 6px; }
.cert-desc { font-size: 0.80rem; color: var(--text-muted); margin: 0; }

/* ─── Timeline ───────────────────────────────────────────── */
.timeline { position: relative; padding: 0; }
.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--orange), transparent);
}
.timeline-item { position: relative; padding-left: 72px; padding-bottom: 48px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
    position: absolute;
    left: 14px;
    top: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--orange);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
}
.timeline-year { font-family: var(--font-heading); font-size: 0.70rem; font-weight: 700; letter-spacing: 0.16em; color: var(--orange); text-transform: uppercase; margin-bottom: 6px; }
.timeline-title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--charcoal); margin-bottom: 8px; }
.timeline-text { font-size: 0.88rem; color: var(--text-muted); line-height: 1.8; margin: 0; }

/* ─── Services Detail Page ───────────────────────────────── */
.service-detail-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 40px;
    transition: box-shadow var(--t-mid);
}
.service-detail-card:hover { box-shadow: var(--shadow-md); }
.service-detail-header {
    background: var(--off-white);
    padding: 36px 40px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    border-bottom: 3px solid var(--orange);
}
.service-detail-icon {
    width: 70px;
    height: 70px;
    background: rgba(37,99,235,0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--orange);
    flex-shrink: 0;
}
.service-detail-header h3 { color: var(--charcoal); font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.service-detail-header p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }
.service-detail-body { padding: 36px 40px; }
.service-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
    color: var(--text);
}
.service-feature-list li:last-child { border-bottom: none; }
.service-feature-list li i { color: var(--orange); width: 16px; flex-shrink: 0; }

/* ─── Careers ────────────────────────────────────────────── */
.job-accordion .accordion-item { border: 1px solid var(--border); border-radius: var(--radius-md) !important; margin-bottom: 12px; overflow: hidden; }
.job-accordion .accordion-button { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--charcoal); background: var(--white); padding: 22px 28px; box-shadow: none; }
.job-accordion .accordion-button:not(.collapsed) { background: var(--charcoal); color: var(--white); }
.job-accordion .accordion-button::after { transition: transform var(--t-mid), filter var(--t-mid); }
.job-accordion .accordion-button:not(.collapsed)::after { filter: brightness(10); }
.job-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.job-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; font-family: var(--font-heading); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.job-badge-type   { background: rgba(37,99,235,0.08); color: var(--orange-dark); border: 1px solid rgba(37,99,235,0.16); }
.job-badge-loc    { background: var(--off-white); color: var(--text-muted); border: 1px solid var(--border); }
.job-badge-dept   { background: var(--off-white); color: var(--text-muted); border: 1px solid var(--border); }
.job-salary { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--charcoal); margin-bottom: 12px; }
.job-salary span { color: var(--orange); }
.requirements-list li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; font-size: 0.9rem; color: var(--text); }
.requirements-list li i { color: var(--orange); margin-top: 3px; flex-shrink: 0; }

.culture-card {
    text-align: center;
    padding: 36px 28px;
    border-radius: var(--radius-md);
    background: var(--off-white);
    border: 1px solid var(--border);
    height: 100%;
    transition: all var(--t-mid);
}
.culture-card:hover { border-color: var(--orange); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.culture-icon { font-size: 2.2rem; color: var(--orange); margin-bottom: 20px; }
.culture-card h5 { color: var(--charcoal); font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }
.culture-card p  { color: var(--text-muted); font-size: 0.88rem; margin: 0; }

/* ─── Forms ──────────────────────────────────────────────── */
.premium-form .form-label { font-family: var(--font-heading); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--charcoal); margin-bottom: 8px; }
.premium-form .form-control,
.premium-form .form-select { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 0.95rem; color: var(--text); background: var(--white); transition: all var(--t-fast); }
.premium-form .form-control:focus,
.premium-form .form-select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(37,99,235,0.10); outline: none; }
.premium-form .form-control.is-invalid { border-color: #dc3545; }
.premium-form .form-control.is-valid   { border-color: #198754; }
.form-status { display: none; padding: 14px 20px; border-radius: var(--radius-sm); margin-top: 16px; font-weight: 600; font-size: 0.9rem; }
.form-status.success { background: #d1e7dd; color: #0a3622; border: 1px solid #a3cfbb; display: block; }
.form-status.error   { background: #f8d7da; color: #58151c; border: 1px solid #f1aeb5; display: block; }

/* ─── Contact Section ────────────────────────────────────── */
.contact-info-card { background: var(--charcoal); border-radius: var(--radius-lg); padding: 40px 36px; height: 100%; }
.contact-info-item { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon { width: 48px; height: 48px; background: rgba(37,99,235,0.15); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--orange-light); font-size: 1.1rem; flex-shrink: 0; }
.contact-info-label { font-family: var(--font-heading); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.38); margin-bottom: 4px; }
.contact-info-value { color: var(--white); font-size: 0.95rem; font-weight: 500; overflow-wrap: break-word; }
.contact-info-value a { color: var(--white); transition: color var(--t-fast); }
.contact-info-value a:hover { color: var(--orange-light); }
.emergency-card { background: var(--orange); border-radius: var(--radius-md); padding: 24px; margin-top: 24px; display: flex; align-items: center; gap: 16px; }
.emergency-card i { font-size: 1.8rem; color: rgba(255,255,255,0.8); flex-shrink: 0; }
.emergency-card-title { font-family: var(--font-heading); font-weight: 700; color: var(--white); margin-bottom: 2px; }
.emergency-card-num { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 800; color: var(--white); }
.map-placeholder { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.map-placeholder iframe { width: 100%; height: 380px; border: none; display: block; }

/* ─── Legal Pages ────────────────────────────────────────── */
.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--orange);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p,
.legal-content li { font-size: 0.93rem; color: var(--text-muted); line-height: 1.85; }
.legal-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content a { color: var(--orange); }
.legal-content a:hover { color: var(--orange-dark); }

/* ─── CTA Section ────────────────────────────────────────── */
.cta-section {
    position: relative;
    background: var(--charcoal);
    padding: 100px 0;
    overflow: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    isolation: isolate;
}
.cta-section::before {
    content: '';
    position: absolute;
    right: -160px;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.10) 0%, transparent 70%);
    pointer-events: none;
}
.cta-section h2 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.55); font-size: 1.05rem; margin-bottom: 40px; max-width: 540px; }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer { background: var(--off-white); }

.footer-cta-strip {
    background: var(--white);
    border-top: 3px solid var(--orange);
    border-bottom: 1px solid var(--border);
    padding: 56px 0;
}
.footer-cta-heading { color: var(--charcoal); font-size: 1.7rem; font-weight: 800; margin-bottom: 8px; }
.footer-cta-sub { color: var(--text-muted); margin: 0; }

.footer-main { background: var(--white); padding: 72px 0; border-bottom: 1px solid var(--border); }

.footer-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.85; }
.footer-heading {
    font-family: var(--font-heading);
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--charcoal);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.88rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; transition: all var(--t-fast); }
.footer-links a i { font-size: 0.6rem; color: var(--orange); }
.footer-links a:hover { color: var(--orange); padding-left: 4px; }
.footer-contact-list { list-style: none; padding: 0; margin: 0; }
.footer-contact-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.footer-contact-list li:last-child { border-bottom: none; }
.footer-contact-icon { width: 36px; height: 36px; background: rgba(37,99,235,0.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--orange); font-size: 0.85rem; flex-shrink: 0; margin-top: 2px; }
.emergency-icon { background: rgba(220,53,69,0.08); color: #dc3545; }
.footer-contact-list strong { font-size: 0.72rem; color: var(--text-light); letter-spacing: 0.10em; text-transform: uppercase; display: block; margin-bottom: 2px; font-family: var(--font-heading); }
.footer-contact-list p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }
.footer-contact-list a { color: var(--text-muted); transition: color var(--t-fast); }
.footer-contact-list a:hover { color: var(--orange); }
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--off-white);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.88rem;
    transition: all var(--t-fast);
    margin-right: 6px;
}
.social-btn:hover { background: var(--orange); color: var(--white); border-color: var(--orange); transform: translateY(-2px); }
.footer-socials .social-btn:last-child { margin-right: 0; }
.footer-newsletter-label { font-family: var(--font-heading); font-size: 0.70rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-light); margin-bottom: 12px; }
.newsletter-form .form-control {
    background: var(--off-white);
    border: 1.5px solid var(--border);
    border-right: none;
    color: var(--text);
    padding: 12px 16px;
    font-size: 0.88rem;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.newsletter-form .form-control:focus { background: var(--white); border-color: var(--orange); box-shadow: none; }
.newsletter-form .form-control::placeholder { color: var(--text-light); }
.newsletter-form .btn-orange { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 12px 16px; }
.footer-bottom { background: var(--off-white); padding: 24px 0; border-top: 1px solid var(--border); }
.footer-copy { font-size: 0.80rem; color: var(--text-light); }
.footer-copy span { display: block; margin-top: 2px; font-size: 0.74rem; color: var(--text-light); }
.footer-bottom-links { list-style: none; display: flex; gap: 24px; justify-content: flex-end; padding: 0; margin: 0; }
.footer-bottom-links a { font-size: 0.78rem; color: var(--text-light); transition: color var(--t-fast); }
.footer-bottom-links a:hover { color: var(--orange); }

/* Footer brand in light footer */
.site-footer .brand-name { color: var(--charcoal); }
.site-footer .brand-sub  { color: var(--orange); }

/* ─── Image Band (About page cinematic break) ───────────── */
.img-band { position: relative; height: 460px; overflow: hidden; }
.img-band-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; transition: transform 10s linear; }
.img-band:hover .img-band-photo { transform: scale(1.04); }
.img-band-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(15,23,42,0.90) 0%, rgba(15,23,42,0.55) 55%, rgba(37,99,235,0.05) 100%);
    display: flex;
    align-items: center;
}
.img-band-text { max-width: 560px; }
.img-band-text h3 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 900; color: var(--white); letter-spacing: -0.03em; line-height: 1.15; margin: 10px 0 16px; }
.img-band-text p { font-size: 0.95rem; color: rgba(255,255,255,0.55); line-height: 1.85; margin: 0; }

/* ─── Safety Image (About page) ─────────────────────────── */
.safety-img-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.safety-img { width: 100%; height: 520px; object-fit: cover; object-position: center 40%; display: block; transition: transform var(--t-slow) var(--ease); }
.safety-img-wrap:hover .safety-img { transform: scale(1.03); }
.safety-img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.90) 0%, rgba(15,23,42,0.4) 60%, transparent 100%);
    padding: 36px 28px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--white);
}
.safety-img-caption i { color: var(--orange-light); font-size: 1.1rem; flex-shrink: 0; }

/* ─── Culture Image (Careers page) ──────────────────────── */
.culture-img-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.culture-img { width: 100%; height: 240px; object-fit: cover; object-position: center 30%; display: block; transition: transform var(--t-slow) var(--ease); }
.culture-img-wrap:hover .culture-img { transform: scale(1.04); }

/* ─── Scroll To Top ──────────────────────────────────────── */
.scroll-top-btn {
    position: fixed;
    /* Sit comfortably above the WhatsApp button (56px + 16px gap + safe area) */
    bottom: max(100px, calc(env(safe-area-inset-bottom, 0px) + 88px));
    right: max(24px, env(safe-area-inset-right, 0px));
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--charcoal);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease),
                background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
    box-shadow: var(--shadow-md);
}
.scroll-top-btn.visible { opacity: 1; transform: translateY(0); }
.scroll-top-btn:hover { background: var(--orange); border-color: var(--orange); color: var(--white); transform: translateY(-3px); }

/* ─── WhatsApp Float ─────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    /* iPhone home indicator is ~34 pt; keep the button above it */
    bottom: max(28px, calc(env(safe-area-inset-bottom, 0px) + 16px));
    right: max(24px, env(safe-area-inset-right, 0px));
    width: 56px;
    height: 56px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1000;
    box-shadow: 0 6px 20px rgba(37,211,102,0.40);
    transition: all var(--t-mid);
}
.whatsapp-float:hover { background: #1ebe5d; color: var(--white); transform: scale(1.1); }
.whatsapp-tooltip {
    position: absolute;
    right: 68px;
    white-space: nowrap;
    background: var(--charcoal);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 99px;
    opacity: 0;
    transform: translateX(8px);
    transition: all var(--t-mid);
    pointer-events: none;
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; transform: translateX(0); }
/* Touch devices have no hover state — keep tooltip hidden to avoid phantom display */
@media (hover: none) {
    .whatsapp-tooltip { display: none; }
}

/* ─── Animations ─────────────────────────────────────────── */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

.hover-lift { transition: transform var(--t-mid) var(--ease); }
.hover-lift:hover { transform: translateY(-6px); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1199.98px) {
    :root { --section-py: 88px; }
    .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
}

@media (max-width: 991.98px) {
    .hero-section  { padding-top: calc(var(--nav-height) + 24px); }
    .page-hero     {
        padding-top: calc(var(--nav-height) + 40px);
        padding-bottom: 60px;
    }
}

/* ── 768 px and below (phones + small tablets) ── */
@media (max-width: 767.98px) {
    :root { --section-py: 64px; --nav-height: 70px; }

    /* Hero spacing: reduce heavyweight desktop margins */
    .hero-lead    { margin-bottom: 28px; }
    .hero-actions { margin-bottom: 44px; }

    /* Images */
    .img-band      { height: 300px; }
    .safety-img    { height: 340px; }
    .culture-img   { height: 200px; }

    /* Hero mini-stats: 2 per row */
    .hero-mini-stats { gap: 24px; }
    .hero-mini-stat  {
        border-right: none;
        padding-right: 0;
        margin-right: 0;
        flex: 0 0 calc(50% - 12px);
    }

    /* Stats bar: 2 columns on tablet */
    .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }

    /* About badge: pull inside the overflow:hidden parent */
    .about-badge { left: 16px; bottom: 20px; }

    /* Cards */
    .testimonial-card { padding: 28px 24px; }

    /* Service detail */
    .service-detail-header { flex-direction: column; gap: 16px; padding: 24px; }
    .service-detail-body   { padding: 24px; }

    /* Footer */
    .footer-bottom-links { justify-content: flex-start; flex-wrap: wrap; gap: 8px 16px; }
    .footer-cta-strip    { padding: 40px 0; }
    .footer-main         { padding: 48px 0; }

    /* Modals */
    .modal-stats-grid { grid-template-columns: 1fr; }

    /* Project cards: relax the fixed height on small screens so text breathes */
    .project-card { height: 320px; }

    /* CTA section: reduce heavy padding */
    .cta-section { padding: 72px 0; }

    /* Section lead: allow full-width on mobile for better readability */
    .section-lead { max-width: 100%; }
}

/* ── 575 px and below (phones) ── */
@media (max-width: 575.98px) {
    /* Hero buttons: full-width stacked */
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; text-align: center; justify-content: center; }

    /* Filter bar */
    .filter-bar { gap: 6px; }
    .filter-btn { padding: 9px 14px; font-size: 0.72rem; }

    /* Service image card */
    .svc-img-wrap { height: 200px; }

    /* Modals */
    .modal-footer              { flex-direction: column; gap: 8px; }
    .modal-footer .btn         { width: 100%; text-align: center; }

    /* Misc page-specific overrides */
    .sector-card               { padding-left: 6px !important; padding-right: 6px !important; }
    .ba-panel-inner            { height: 260px !important; }
    .contact-info-card         { padding: 40px 24px; }

    /* Stats bar: single column on narrow phones */
    .stats-bar-inner {
        grid-template-columns: 1fr 1fr;
    }

    /* Footer newsletter input group: keep side-by-side */
    .newsletter-form .input-group { flex-wrap: nowrap; }

    /* Footer CTA buttons: stack vertically */
    .footer-cta-strip .d-flex.flex-wrap { flex-direction: column; gap: 12px; }
    .footer-cta-strip .btn             { width: 100%; text-align: center; justify-content: center; }

    /* Ensure long German words don't overflow narrow containers */
    .section-title,
    .section-lead,
    .checklist li,
    .why-body p,
    .footer-desc { overflow-wrap: break-word; word-break: break-word; }
}

/* ── 414 px and below ── */
@media (max-width: 414px) {
    :root { --section-py: 56px; }

    /* Hero mini-stats: reduce number size for 375/390 viewport */
    .hero-stat-num     { font-size: 1.9rem; }
    .stat-num          { font-size: 2.1rem; }

    /* Give the CTA strip more breathing room */
    .cta-section       { padding: 60px 0; }

    /* Project card: shorter on very narrow screens */
    .project-card      { height: 280px; }

    /* Why card: slightly tighter gap */
    .why-card          { gap: 16px; padding: 22px; }

    /* Testimonial: tighter card */
    .testimonial-card  { padding: 24px 20px; }
    .testimonial-text  { font-size: 0.97rem; }
}

/* ── 375 px and below (iPhone SE / small Android) ── */
@media (max-width: 375px) {
    /* Navigation brand: slightly smaller sub-text for very tight widths */
    .brand-name { font-size: 1rem; }
    .brand-sub  { font-size: 0.55rem; }

    /* Certifications / why-cards: reduce padding */
    .cert-card  { padding: 24px 16px; }

    /* Culture card */
    .culture-card { padding: 28px 20px; }
}

/* ── 320 px ── */
@media (max-width: 479.98px) {
    .display-hero {
        font-size: 2.2rem;
        /* Slightly looser line-height for German compound words at this size */
        line-height: 1.12;
    }
    /* Hero lead: slightly smaller on very narrow screens */
    .hero-lead { font-size: 0.97rem; }
}

/* ─── iOS Safari landscape: footer safe-area ───────────────── */
/* Footer bottom needs extra space in landscape to clear home bar */
@supports (padding: env(safe-area-inset-bottom)) {
    .footer-bottom {
        padding-bottom: max(24px, calc(env(safe-area-inset-bottom) + 12px));
    }
}
