/* ============================================
   BCSM — Best Cargo Survey Morocco
   Multi-Page Static Website Stylesheet
   
   ============================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #003DA5;
    --primary-light: #0055D4;
    --primary-dark: #002a70;
    --secondary: #00A651;
    --accent: #f59e0b;
    --dark: #0A1628;
    --text: #1e293b;
    --text-light: #475569; /* Ensured WCAG 4.5:1 contrast */
    --bg: #ffffff;
    --bg-light: #f8f9fa;
    --bg-alt: #f1f5f9;
    --border: #e2e8f0;
    --container: 1200px;
    --header: 72px;
    --utility-bar-height: 36px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,61,165,0.05), 0 2px 4px -1px rgba(0,61,165,0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0,61,165,0.08), 0 10px 10px -5px rgba(0,61,165,0.03);
    --floating-action-bg: var(--primary);
    --floating-action-bg-hover: var(--primary-light);
    --floating-action-shadow: 0 4px 16px rgba(0,61,165,0.35);
    --floating-action-shadow-hover: 0 10px 28px rgba(0,61,165,0.4);
    --floating-action-offset: 32px;
    --floating-action-size: 48px;
    --floating-action-gap: 12px;
    --floating-action-safe-bottom: max(var(--floating-action-offset), env(safe-area-inset-bottom));
    --floating-action-safe-right: max(var(--floating-action-offset), env(safe-area-inset-right));
    --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Inter', sans-serif;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header) + 24px);
    -webkit-text-size-adjust: 100%;
}
body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, picture, video, svg {
    display: block;
    max-width: 100%;
    height: auto;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ===== SKIP LINK ===== */
.skip-link {
    position: fixed;
    top: 12px; left: 12px;
    z-index: 9999;
    padding: 12px 18px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    transform: translateY(-150%);
    transition: transform 0.2s;
}
.skip-link:focus-visible { transform: translateY(0); }

/* ===== LAYOUT UTILITIES ===== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
.section {
    padding: 80px 0;
}
.section-sm { padding: 60px 0; }
.section-lg { padding: 100px 0; }
.section-header {
    max-width: 700px;
    margin: 0 auto 48px;
    text-align: center;
}
.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0,61,165,0.08);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
}
.services-intro {
    color: var(--dark);
    font-weight: 600;
}

/* ===== HEADER UTILITY BAR ===== */
.site-header.has-utility-bar {
    min-height: var(--utility-bar-height);
}
.utility-bar {
    position: relative;
    z-index: 1001;
    min-height: var(--utility-bar-height);
    background: #102a44;
    color: #ffffff;
    font-size: 0.78rem;
    line-height: 1;
}
.utility-bar.is-scroll-revealed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}
.utility-bar__inner {
    width: 100%;
    max-width: var(--container);
    min-height: var(--utility-bar-height);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 24px;
}
.utility-bar__contact,
.utility-bar__actions {
    min-width: 0;
    display: flex;
    align-items: center;
}
.utility-bar__contact { gap: 14px; }
.utility-bar__actions {
    grid-column: 3;
    justify-content: flex-end;
    gap: 12px;
}
.utility-bar__link {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
    transition: color 0.18s ease, background-color 0.18s ease;
}
.utility-bar__link:hover { color: #72df9d; }
.utility-bar__linkedin {
    width: 28px;
    border-radius: 4px;
    font-size: 0.86rem;
}
.utility-bar__linkedin:hover { background: rgba(255,255,255,0.1); }
.utility-bar__services {
    color: rgba(255,255,255,0.94);
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}
.utility-bar .language-switcher {
    flex: 0 0 auto;
    width: auto;
    gap: 3px;
    color: #ffffff;
}
.utility-bar .lang-btn {
    width: auto;
    min-width: 26px;
    height: 28px;
    padding: 0 4px;
    border: 0;
    border-radius: 4px;
    color: rgba(255,255,255,0.72);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: none;
    transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.utility-bar .lang-btn:hover {
    color: #ffffff;
    border-color: transparent;
    background: rgba(255,255,255,0.1);
    box-shadow: none;
}
.utility-bar .lang-btn.active {
    color: #ffffff;
    border-color: transparent;
    box-shadow: none;
}
.utility-bar .lang-sep {
    display: inline;
    color: rgba(255,255,255,0.46);
    font-weight: 600;
}
.utility-bar__quote {
    min-height: 28px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 3px;
    background: var(--secondary);
    color: #ffffff;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 0.18s ease, transform 0.18s ease;
}
.utility-bar__quote:hover {
    background: #008f47;
    transform: translateY(-1px);
}
.utility-bar__link:focus-visible,
.utility-bar .lang-btn:focus-visible,
.utility-bar__quote:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}
.utility-bar + .navbar { top: var(--utility-bar-height); }
/* backdrop-filter on ::before — keeps position:fixed children relative to the viewport */
.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    pointer-events: none;
    z-index: -1;
}
.navbar.scrolled { box-shadow: var(--shadow-lg); }
.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header);
}
.nav-logo {
    display: flex;
    align-items: center;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: -1px;
    flex-shrink: 0;
}
.nav-logo img {
    width: auto;
    height: 34px;
}
.nav-logo span { color: var(--secondary); }
.nav-panel { display: flex; align-items: center; gap: 28px; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text);
    transition: color var(--transition);
    position: relative;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 8px; left: 0;
    width: 0; height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}
.nav-links a:hover,
.nav-links a.is-active,
.nav-links a[aria-current="page"] { color: var(--primary); }
.nav-links a:hover::after,
.nav-links a.is-active::after,
.nav-links a[aria-current="page"]::after { width: 100%; }

.nav-cta {
    padding: 10px 22px;
    background: var(--primary);
    color: white !important;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nav-cta:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0,61,165,0.25);
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
}
.lang-btn {
    width: 34px; height: 26px;
    min-width: 34px;
    padding: 2px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.lang-btn:hover {
    border-color: rgba(0,61,165,0.32);
    box-shadow: 0 3px 8px rgba(0,61,165,0.12);
}
.lang-btn.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0,61,165,0.12);
}
.lang-sep { display: none; }
.flag {
    position: relative;
    display: block;
    width: 26px;
    height: 16px;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(15,23,42,0.18);
}
.flag-us {
    background: repeating-linear-gradient(
        to bottom,
        #b22234 0,
        #b22234 1.23px,
        #ffffff 1.23px,
        #ffffff 2.46px
    );
}
.flag-us::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 11px;
    height: 8.7px;
    background: #3c3b6e;
}
.flag-fr {
    background: linear-gradient(
        to right,
        #0055a4 0,
        #0055a4 33.333%,
        #ffffff 33.333%,
        #ffffff 66.666%,
        #ef4135 66.666%,
        #ef4135 100%
    );
}

.mobile-menu-btn {
    display: none;
    position: relative;
    z-index: 10001;
    width: 44px; height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: var(--radius-sm);
    color: var(--primary);
    flex-shrink: 0;
}
.navbar.is-open .mobile-menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar.is-open .mobile-menu-btn span:nth-child(2) { opacity: 0; }
.navbar.is-open .mobile-menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu-btn span {
    width: 22px; height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: transform 0.2s, opacity 0.2s;
}

/* ===== DROPDOWN MENU ===== */
.has-dropdown {
    position: relative;
}
.has-dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;
}

.dropdown {
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-radius: var(--radius);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 100;
    list-style: none;
    border: 1px solid var(--border);
    margin-top: 0;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 0.7rem 1.4rem;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    min-height: auto;
}

.dropdown li a::after { display: none; }

.dropdown li a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* Chevron rotates on hover */
.nav-links .has-dropdown > a .fa-chevron-down {
    transition: transform 0.25s ease;
}
.has-dropdown:hover > a .fa-chevron-down {
    transform: rotate(180deg);
}

/* ===== HERO (Home) ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0,61,165,0.03), rgba(0,166,81,0.02));
}
.hero-bg {
    position: absolute;
    top: 0; right: 0;
    width: 55%; height: 100%;
    background: linear-gradient(135deg, rgba(0,61,165,0.04), rgba(0,166,81,0.03));
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(0,61,165,0.08);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: -2px;
}
.hero-title .highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}
.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 0;
    width: 100%; height: 10px;
    background: rgba(0,166,81,0.2);
    z-index: -1;
    border-radius: 2px;
}
.hero-subtitle {
    font-size: 1.12rem;
    color: #152238;
    line-height: 1.78;
    font-weight: 500;
    margin-bottom: 32px;
    max-width: 540px;
}
.hero-values {
    display: flex;
    gap: 24px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.value-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
}
.value-item i { color: var(--secondary); font-size: 0.8rem; }

.hero-cta-group { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    min-height: 44px;
    border: none;
}
.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0,61,165,0.2);
}
.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,61,165,0.3);
}
.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid rgba(0,61,165,0.2);
}
.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(0,61,165,0.04);
}
.btn-white {
    background: white;
    color: var(--primary);
    padding: 14px 36px;
    font-weight: 700;
    box-shadow: var(--shadow);
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hero Slider */
.hero-right {
    min-width: 0;
}
.hero-slider {
    position: relative;
    width: 100%;
    height: min(68vh, 640px);
    min-height: 520px;
    overflow: hidden;
    border-radius: 28px;
    background: var(--bg-alt);
    box-shadow: 0 26px 60px rgba(10,22,40,0.18), 0 6px 18px rgba(0,61,165,0.1);
    isolation: isolate;
}
.hero-slide {
    position: absolute;
    inset: 0;
    display: block;
    color: white;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 260ms ease, visibility 260ms ease, transform 700ms cubic-bezier(0.23, 1, 0.32, 1);
}
.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 1;
}
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-slide::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(180deg, transparent 0%, rgba(3,15,35,0.82) 100%);
    pointer-events: none;
}
.hero-slide-overlay {
    position: absolute;
    left: clamp(24px, 4vw, 42px);
    right: clamp(24px, 4vw, 42px);
    bottom: clamp(62px, 8vw, 88px);
    z-index: 2;
    text-shadow: 0 2px 18px rgba(0,0,0,0.45);
}
.hero-slide-overlay h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 8px;
    color: #ffffff;
}
.hero-slide-overlay p {
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    line-height: 1.45;
    color: rgba(255,255,255,0.92);
    max-width: 460px;
}
.hero-slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    background: rgba(10,22,40,0.48);
    border: 1px solid rgba(255,255,255,0.14);
    transform: translateY(-50%);
    transition: transform 180ms cubic-bezier(0.23, 1, 0.32, 1), background 180ms ease, border-color 180ms ease;
}
.hero-slider-arrow:hover {
    background: rgba(10,22,40,0.68);
    border-color: rgba(255,255,255,0.28);
}
.hero-slider-arrow i {
    pointer-events: none;
}
.hero-slider-arrow:active {
    transform: translateY(-50%) scale(0.96);
}
.hero-slider-prev { left: 26px; }
.hero-slider-next { right: 26px; }
.hero-slider-dots {
    position: absolute;
    left: clamp(24px, 4vw, 42px);
    bottom: clamp(24px, 4vw, 34px);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
}
.hero-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.48);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
    transition: transform 180ms ease, background 180ms ease;
}
.hero-slider-dot:hover,
.hero-slider-dot.active {
    background: #ffffff;
}
.hero-slider-dot.active {
    transform: scale(1.08);
}

.stats-card {
    position: relative;
    background: white;
    padding: 24px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 32px;
    margin-top: 16px;
    justify-content: center;
}
.stat-item { text-align: center; }
.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.stat-label {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ===== PAGE HERO (Inner Pages) ===== */
.page-hero {
    position: relative;
    padding: calc(var(--header) + 60px) 0 60px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}
.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}
.page-hero .section-label {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
}
.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}
.page-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    max-width: 600px;
}
.about-hero {
    background:
        url("../images/about-port-background.png") center / cover no-repeat,
        #0a367a;
}
.about-hero::before {
    inset: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 38, 95, 0.76) 0%,
        rgba(0, 61, 165, 0.58) 44%,
        rgba(0, 61, 165, 0.34) 100%
    );
}

.laboratory-hero,
.training-hero,
.consulting-hero,
.inspection-hero {
    position: relative;
    overflow: hidden;
}
.laboratory-hero {
    background:
        url("../images/hero_lab.jpg") center / cover no-repeat,
        #0a1628;
}
.training-hero {
    background:
        url("../images/hero_training.png") center / cover no-repeat,
        #0a1628;
}
.consulting-hero {
    background:
        url("../images/hero_consulting_new.png") center / cover no-repeat,
        #0a1628;
}
.inspection-hero {
    background:
        url("../images/hero_inspection.jpg") center / cover no-repeat,
        #0a1628;
}
.laboratory-hero-video,
.training-hero-video,
.consulting-hero-video,
.inspection-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}
.laboratory-hero::before,
.training-hero::before,
.consulting-hero::before,
.inspection-hero::before {
    content: none;
}
.laboratory-hero-overlay,
.training-hero-overlay,
.consulting-hero-overlay,
.inspection-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(3, 30, 70, 0.52) 0%,
        rgba(3, 45, 95, 0.22) 55%,
        rgba(3, 55, 110, 0.08) 100%
    );
}
.laboratory-hero-content,
.training-hero-content,
.consulting-hero-content,
.inspection-hero-content {
    position: relative;
    z-index: 2;
}
.laboratory-hero::after,
.training-hero::after,
.consulting-hero::after,
.inspection-hero::after {
    z-index: 3;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    padding: 16px 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-light);
}
.breadcrumb a {
    color: var(--primary);
    font-weight: 500;
    transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--primary-dark); }
.breadcrumb span { margin: 0 8px; color: var(--text-light); }
.breadcrumb [aria-current="page"] {
    color: var(--text);
    font-weight: 600;
}

/* ===== LEGAL PAGES ===== */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
}
.legal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 56px;
    align-items: start;
}
.legal-layout .legal-content {
    max-width: none;
    margin: 0;
}
.legal-section {
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}
.legal-section:first-child {
    padding-top: 0;
}
.legal-section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.legal-section h2 {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    line-height: 1.25;
    color: var(--primary-dark);
    margin-bottom: 12px;
}
.legal-section p,
.legal-section li {
    color: var(--text-light);
    font-size: 0.98rem;
    line-height: 1.75;
}
.legal-section p + p,
.legal-section ul + p,
.legal-section p + ul {
    margin-top: 12px;
}
.legal-section ul {
    list-style: disc;
    padding-left: 22px;
}
.legal-inline-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    color: var(--primary);
    font-weight: 700;
    transition: color 0.2s;
}
.legal-inline-link:hover {
    color: var(--primary-dark);
}
.legal-document-list {
    margin-top: 14px;
    display: grid;
    gap: 12px;
}
.legal-document-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.45;
    transition: color 0.2s;
}
.legal-document-link i {
    color: var(--accent);
    flex: 0 0 auto;
}
.legal-document-link span {
    min-width: 0;
    overflow-wrap: anywhere;
}
.legal-document-link:hover {
    color: var(--primary-dark);
}
.document-meta {
    margin-top: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
}
.terms-inline-viewer {
    position: relative;
    margin-top: 24px;
    padding: 28px;
    background: rgba(10, 22, 40, 0.22);
    border: 1px solid rgba(10, 22, 40, 0.08);
    border-radius: var(--radius-sm);
}
.terms-inline-viewer[hidden] {
    display: none;
}
.terms-inline-viewer__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    min-height: 32px;
    padding: 7px 12px;
    background: var(--dark);
    color: #ffffff;
    border-radius: 4px;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    transition: background 0.2s;
}
.terms-inline-viewer__close:hover {
    background: var(--primary-dark);
}
.terms-inline-viewer__frame {
    position: relative;
    height: 72vh;
    min-height: 540px;
    overflow: hidden;
    background: #d1d5db;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}
.terms-inline-viewer__frame iframe {
    display: block;
    position: absolute;
    top: -44px;
    left: 0;
    width: 100%;
    height: calc(100% + 44px);
    border: 0;
    background: #ffffff;
}
.legal-sidebar {
    position: sticky;
    top: calc(var(--header) + 24px);
    background: var(--dark);
    color: white;
    padding: 28px;
    border-radius: var(--radius-sm);
}
.legal-sidebar h2 {
    font-size: 1rem;
    color: white;
    margin-bottom: 18px;
}
.legal-sidebar nav {
    display: grid;
    gap: 12px;
}
.legal-sidebar a,
.legal-sidebar button {
    color: rgba(255,255,255,0.76);
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    transition: color 0.2s;
}
.legal-sidebar a:hover,
.legal-sidebar button:hover,
.legal-sidebar a[aria-current="page"] {
    color: white;
}
.pdf-viewer-section {
    background: var(--bg);
}
.pdf-viewer-content {
    max-width: 1120px;
    margin: 0 auto;
}
.pdf-viewer-frame {
    display: block;
    width: 100%;
    height: 85vh;
    min-height: 640px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    box-shadow: var(--shadow);
}
.pdf-viewer-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin-top: 18px;
    color: var(--primary);
    font-weight: 700;
    transition: color 0.2s;
}
.pdf-viewer-link:hover {
    color: var(--primary-dark);
}
.terms-viewer-header {
    max-width: 1120px;
    margin: 0 auto 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.terms-viewer-header span {
    display: block;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.terms-viewer-header h2 {
    color: var(--primary-dark);
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.25;
}
.terms-viewer-shell {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
}
.terms-viewer-shell::before,
.terms-viewer-shell::after,
.terms-viewer-shell .terms-viewer-watermark,
.terms-viewer-shell .pdf-viewer-watermark,
.terms-viewer-shell [data-watermark] {
    content: none !important;
    display: none !important;
}
.terms-viewer-shell--cropped {
    height: 85vh;
    min-height: 640px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    box-shadow: var(--shadow);
}
.terms-viewer-shell--cropped .pdf-viewer-frame {
    position: absolute;
    top: -44px;
    left: 0;
    width: 100%;
    height: calc(100% + 44px);
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 991px) and (hover: none), (max-width: 640px) {
    .terms-inline-viewer,
    .terms-viewer-shell {
        scroll-margin-top: calc(var(--header) + 12px);
    }
    .terms-inline-viewer {
        display: grid;
        gap: 12px;
    }
    .terms-inline-viewer__close {
        position: static;
        justify-self: end;
    }
    .terms-inline-viewer__frame,
    .terms-viewer-shell--cropped {
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        scrollbar-color: rgba(0, 61, 165, 0.7) rgba(15, 23, 42, 0.12);
        scrollbar-width: thin;
        background:
            linear-gradient(to right, #d1d5db calc(100% - 18px), rgba(15, 23, 42, 0.12) calc(100% - 18px)),
            #d1d5db;
    }
    .terms-inline-viewer__frame iframe,
    .terms-viewer-shell--cropped .pdf-viewer-frame {
        position: relative;
        top: -44px;
        left: 0;
        width: calc(100% - 18px);
        height: var(--pdf-mobile-scroll-height, 3600px);
        min-height: 0;
        touch-action: pan-y;
    }
    .terms-inline-viewer__frame::-webkit-scrollbar,
    .terms-viewer-shell--cropped::-webkit-scrollbar {
        width: 12px;
    }
    .terms-inline-viewer__frame::-webkit-scrollbar-track,
    .terms-viewer-shell--cropped::-webkit-scrollbar-track {
        background: rgba(15, 23, 42, 0.12);
    }
    .terms-inline-viewer__frame::-webkit-scrollbar-thumb,
    .terms-viewer-shell--cropped::-webkit-scrollbar-thumb {
        background: rgba(0, 61, 165, 0.7);
        border: 3px solid rgba(15, 23, 42, 0.12);
        border-radius: 999px;
    }
}

/* ===== TRUST BAR ===== */
.trust-bar {
    background: var(--bg-light);
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}
.trust-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.trust-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.trust-logos {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}
.trust-logo {
    height: 40px;
    width: auto;
    opacity: 0.6;
    transition: opacity 0.3s;
    filter: grayscale(100%);
}
.trust-logo:hover { opacity: 1; filter: grayscale(0%); }

/* ===== SERVICES / CARDS ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

/* Bento Grid layouts */
.bento-services > .service-card:nth-child(1),
.bento-services > .service-flip-card:nth-child(1) { grid-column: span 7; }
.bento-services > .service-card:nth-child(2),
.bento-services > .service-flip-card:nth-child(2) { grid-column: span 5; }
.bento-services > .service-card:nth-child(3),
.bento-services > .service-flip-card:nth-child(3) { grid-column: span 5; }
.bento-services > .service-card:nth-child(4),
.bento-services > .service-flip-card:nth-child(4) { grid-column: span 7; }

.sector-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    max-width: 960px;
    margin: 38px auto 0;
}
.sector-showcase-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.sector-showcase-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 61, 165, 0.18);
    box-shadow: 0 24px 56px rgba(0, 61, 165, 0.14);
}
.sector-showcase-card img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.sector-showcase-card:hover img {
    transform: scale(1.035);
}
.sector-showcase-body {
    min-height: 108px;
    padding: 30px 24px 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.sector-showcase-body h3 {
    position: relative;
    margin: 0;
    color: #172033;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.2px;
}
.sector-showcase-body h3::after {
    content: '';
    display: block;
    width: 28px;
    height: 3px;
    margin: 12px auto 0;
    border-radius: 999px;
    background: var(--secondary);
}

@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .bento-services > .service-card,
    .bento-services > .service-flip-card {
        grid-column: span 1 !important;
    }
    .sector-showcase-grid {
        grid-template-columns: 1fr;
        max-width: 620px;
    }
}

.service-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 61, 165, 0.08), 0 10px 10px -5px rgba(0, 61, 165, 0.03);
    border-color: rgba(0, 61, 165, 0.2);
    background: rgba(255, 255, 255, 0.85);
}
.service-icon {
    width: 64px; height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0,61,165,0.08), rgba(0,85,212,0.04));
    color: var(--primary);
    font-size: 1.4rem;
    transition: all 0.3s ease;
}
.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    transform: scale(1.1);
}
.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}
.service-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    transition: gap 0.3s ease;
    min-height: 44px;
}
.service-link:hover { gap: 10px; }

.service-flip-card {
    position: relative;
    min-height: 304px;
    perspective: 1200px;
    border-radius: var(--radius-lg);
    outline: none;
}
.service-flip-card-inner {
    position: relative;
    min-height: inherit;
    height: 100%;
    border-radius: inherit;
    transform-style: preserve-3d;
    transition: transform 650ms cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card-front,
.service-card-back {
    position: absolute;
    inset: 0;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.service-card-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: rotateY(0deg);
    pointer-events: none;
}
.service-card-front p {
    margin-bottom: 0;
}
.service-card-back {
    transform: rotateY(180deg);
    background: #021c46;
    color: white;
    isolation: isolate;
    pointer-events: none;
}
.service-card-back-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: var(--service-image-position, center);
    z-index: 0;
}
.service-flip-card--inspection { --service-image-position: 42% center; }
.service-flip-card--lab { --service-image-position: 34% center; }
.service-flip-card--consulting { --service-image-position: 50% center; }
.service-flip-card--training { --service-image-position: 54% center; }
.service-card-back-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(3, 35, 80, 0.15) 0%,
        rgba(3, 35, 80, 0.65) 55%,
        rgba(2, 28, 70, 0.96) 100%
    );
    pointer-events: none;
    z-index: 1;
}
.service-card-back-content {
    position: relative;
    z-index: 2;
    min-height: 100%;
    padding: 34px 28px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
}
.service-card-back h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 10px;
}
.service-card-back p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.88rem;
    line-height: 1.55;
    max-width: 38rem;
    margin-bottom: 22px;
}
.service-card-back .service-link {
    position: relative;
    z-index: 3;
    min-width: 172px;
    justify-content: center;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    color: white;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: gap 200ms cubic-bezier(0.23, 1, 0.32, 1),
                background-color 200ms cubic-bezier(0.23, 1, 0.32, 1),
                border-color 200ms cubic-bezier(0.23, 1, 0.32, 1),
                transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.service-card-back .service-link:hover,
.service-card-back .service-link:focus-visible {
    gap: 10px;
    background: rgba(255, 255, 255, 0.16);
    border-color: white;
}
.service-card-back .service-link:active {
    transform: scale(0.97);
}
.service-flip-card .service-card:hover {
    transform: none;
}
.service-flip-card:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 4px;
}
.service-flip-card.is-flipped .service-flip-card-inner {
    transform: rotateY(180deg);
}
.service-flip-card.is-flipped .service-card-back {
    pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
    .service-flip-card:hover .service-flip-card-inner,
    .service-flip-card:focus-within .service-flip-card-inner {
        transform: rotateY(180deg);
    }
    .service-flip-card:hover .service-card-back,
    .service-flip-card:focus-within .service-card-back {
        pointer-events: auto;
    }
}

/* ===== CONTENT BLOCKS ===== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.content-grid.reverse .content-text { order: 2; }
.content-grid.reverse .content-media { order: 1; }

.content-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}
.content-text p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}
#about .content-text p {
    color: #14233b;
    font-weight: 500;
}
.brand-word {
    color: var(--primary);
    font-weight: 800;
}
.content-bullets {
    margin: 24px 0 0;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 16px;
}
.content-bullets li {
    position: relative;
    padding-left: 26px;
    color: #24324a;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.75;
}
.content-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 0 4px rgba(0, 166, 81, 0.12);
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 28px 0;
}
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}
.feature-item i {
    color: var(--secondary);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.consulting-scope-grid {
    align-items: start;
    gap: clamp(34px, 4vw, 56px);
}
.consulting-scope-text {
    max-width: 680px;
}
.consulting-scope-text h2 {
    margin-bottom: 14px;
    font-size: clamp(1.55rem, 2.5vw, 2.05rem);
    letter-spacing: 0;
}
.consulting-scope-intro {
    margin-bottom: 24px;
    color: #1f2e46;
    font-size: 0.96rem;
    line-height: 1.68;
}
.consulting-bcsm-word {
    color: #006fc9;
    font-weight: 800;
}
.consulting-scope-list {
    display: grid;
    gap: 18px;
    margin: 0;
}
.consulting-scope-group {
    padding-left: 16px;
}
.consulting-scope-group h3 {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0;
}
.consulting-scope-items {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.consulting-scope-items li {
    position: relative;
    padding-left: 18px;
    color: #24324a;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.52;
}
.consulting-scope-items li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.68em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--secondary);
}
.consulting-management-media {
    display: grid;
    gap: 18px;
}
.consulting-management-media .content-media img {
    height: clamp(180px, 17vw, 230px);
    object-fit: cover;
    object-position: center;
}
#why-bcsm {
    padding: 72px 0 84px;
    background:
        radial-gradient(circle at 92% 14%, rgba(0, 85, 212, 0.06), transparent 28%),
        var(--bg-light);
}
#why-bcsm .why-layout {
    display: grid;
    grid-template-columns: minmax(180px, 210px) minmax(0, 1fr) minmax(292px, 320px);
    gap: clamp(24px, 3vw, 38px);
    align-items: start;
    margin: 0 auto;
}
#why-bcsm .why-nav,
#why-bcsm .why-services {
    position: sticky;
    top: calc(var(--header) + 30px);
}
#why-bcsm .why-nav-title {
    margin: 0;
    padding: 0 0 12px;
    border-bottom: 2px solid var(--primary-light);
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}
#why-bcsm .why-nav-list a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 11px 10px 11px 0;
    border-bottom: 1px solid rgba(6, 31, 74, 0.14);
    color: #102344;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.42;
    transition: color 180ms ease, padding-left 180ms ease, background-color 180ms ease;
}
#why-bcsm .why-nav-list a::before {
    content: '';
    position: absolute;
    left: 0;
    width: 3px;
    height: 20px;
    border-radius: 2px;
    background: var(--secondary);
    opacity: 0;
    transform: scaleY(0.55);
    transition: opacity 180ms ease, transform 180ms cubic-bezier(0.23, 1, 0.32, 1);
}
#why-bcsm .why-nav-list a:hover,
#why-bcsm .why-nav-list a.is-current {
    padding-left: 11px;
    color: var(--primary);
    background: linear-gradient(90deg, rgba(0, 61, 165, 0.055), transparent 86%);
}
#why-bcsm .why-nav-list a.is-current::before {
    opacity: 1;
    transform: scaleY(1);
}
#why-bcsm .why-content {
    min-width: 0;
}
#why-bcsm .why-content .section-label {
    margin-bottom: 12px;
}
#why-bcsm .why-content .section-title {
    margin-bottom: 14px;
    color: #061f4a;
    font-size: clamp(1.55rem, 2.15vw, 1.95rem);
    line-height: 1.16;
    letter-spacing: -0.035em;
}
#why-bcsm .why-intro {
    margin: 0 0 16px;
    color: var(--dark);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.6;
}
#why-bcsm .why-feature-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0 0 24px;
}
#why-bcsm .feature-item {
    display: grid;
    grid-template-columns: 19px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 2px;
    border-bottom: 1px solid rgba(6, 31, 74, 0.14);
    border-radius: 0;
    color: #172033;
    scroll-margin-top: calc(var(--header) + 28px);
    transition: background-color 180ms ease;
}
#why-bcsm .feature-item:first-child {
    padding-top: 8px;
}
#why-bcsm .feature-item:hover {
    background: transparent;
}
#why-bcsm .feature-item i {
    margin-top: 3px;
    color: var(--secondary);
    font-size: 0.98rem;
}
#why-bcsm .feature-item strong {
    display: block;
    color: #061f4a;
    font-size: 0.84rem;
    font-weight: 750;
    line-height: 1.38;
    margin-bottom: 3px;
}
#why-bcsm .feature-item p {
    margin: 0;
    color: #1f2e46;
    font-size: 0.78rem;
    font-weight: 450;
    line-height: 1.52;
}
#why-bcsm .why-content > .btn {
    min-height: 43px;
    padding: 11px 18px;
    font-size: 0.82rem;
}
#why-bcsm .why-services {
    width: 100%;
}
#why-bcsm .why-services-collage {
    position: relative;
    height: 710px;
    overflow: hidden;
    border: 1px solid rgba(0, 61, 165, 0.1);
    border-radius: 16px;
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.96) 0%, rgba(235, 244, 255, 0.94) 52%, rgba(218, 232, 250, 0.96) 100%),
        #eaf3ff;
    box-shadow: 0 24px 54px rgba(6, 31, 74, 0.13);
    isolation: isolate;
}
#why-bcsm .why-services-collage::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(6, 31, 74, 0.035) 1px, transparent 1px),
        linear-gradient(rgba(6, 31, 74, 0.035) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(to bottom, transparent, black 18%, black 80%, transparent);
}
#why-bcsm .why-services-collage::after {
    content: '';
    position: absolute;
    right: -72px;
    bottom: -82px;
    z-index: -1;
    width: 220px;
    height: 220px;
    border: 34px solid rgba(0, 61, 165, 0.07);
    border-radius: 50%;
}
#why-bcsm .why-services-stage {
    position: relative;
    width: 100%;
    height: 100%;
}
#why-bcsm .collage-accent {
    position: absolute;
    z-index: 0;
    display: block;
}
#why-bcsm .collage-accent--green-one {
    top: 146px;
    left: 8px;
    width: 58px;
    height: 118px;
    background: #8ee51e;
}
#why-bcsm .collage-accent--green-two {
    top: 412px;
    left: 18px;
    width: 52px;
    height: 104px;
    background: rgba(142, 229, 30, 0.9);
}
#why-bcsm .collage-accent--navy {
    right: 28px;
    bottom: 22px;
    width: 104px;
    height: 78px;
    background: #08264f;
}
#why-bcsm .service-tile {
    --tile-delay: 0ms;
    --enter-transform: translate3d(0, 20px, 0);
    position: absolute;
    z-index: 2;
    display: block;
    color: #061f4a;
}
#why-bcsm .service-tile--inspection {
    --enter-transform: translate3d(-24px, 0, 0);
    top: 68px;
    left: 18px;
    width: 188px;
    height: 154px;
}
#why-bcsm .service-tile--laboratory {
    --tile-delay: 120ms;
    --enter-transform: translate3d(24px, 0, 0);
    top: 212px;
    right: 14px;
    z-index: 3;
    width: 176px;
    height: 168px;
}
#why-bcsm .service-tile--consulting {
    --tile-delay: 240ms;
    top: 370px;
    left: 26px;
    z-index: 4;
    width: 204px;
    height: 158px;
}
#why-bcsm .service-tile--training {
    --tile-delay: 360ms;
    top: 538px;
    right: 20px;
    z-index: 5;
    width: 194px;
    height: 150px;
}
#why-bcsm .service-photo-frame {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 6px solid #ffffff;
    background: #dbe7f6;
    box-shadow: 0 14px 30px rgba(4, 27, 66, 0.2);
    transform: translate3d(0, 0, 0);
    transform-origin: center;
    transition:
        opacity 220ms ease,
        transform 220ms ease,
        box-shadow 220ms ease,
        filter 220ms ease;
}
#why-bcsm .service-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
#why-bcsm .service-tile--inspection img {
    object-position: 58% center;
}
#why-bcsm .service-tile--laboratory img {
    object-position: 41% center;
}
#why-bcsm .service-tile--training img {
    object-position: 47% center;
}
#why-bcsm .service-label {
    position: absolute;
    z-index: 3;
    color: #061f4a;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.045em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 1;
    transform: translateY(0);
}
#why-bcsm .service-tile--inspection .service-label {
    top: -31px;
    right: -62px;
}
#why-bcsm .service-tile--laboratory .service-label {
    top: 25px;
    left: -88px;
}
#why-bcsm .service-tile--consulting .service-label {
    top: -31px;
    left: 0;
}
#why-bcsm .service-tile--training .service-label {
    top: -31px;
    right: 0;
}
#why-bcsm .service-arrow {
    position: absolute;
    z-index: 2;
    width: 80px;
    height: 44px;
    overflow: visible;
    pointer-events: none;
}
#why-bcsm .service-arrow path {
    fill: none;
    stroke: #0a3474;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 120;
    stroke-dashoffset: 0;
    opacity: 1;
}
#why-bcsm .service-tile--inspection .service-arrow {
    top: -16px;
    right: -50px;
}
#why-bcsm .service-tile--laboratory .service-arrow {
    top: 17px;
    left: -67px;
}
#why-bcsm .service-tile--consulting .service-arrow {
    top: -17px;
    left: 77px;
}
#why-bcsm .service-tile--training .service-arrow {
    top: -16px;
    right: 42px;
}
.js-anim #why-bcsm:not(.why-collage-visible) .service-photo-frame {
    opacity: 0;
    transform: var(--enter-transform);
    transition: none;
}
.js-anim #why-bcsm:not(.why-collage-visible) .service-label {
    opacity: 0;
    transform: translateY(5px);
    transition: none;
}
.js-anim #why-bcsm:not(.why-collage-visible) .service-arrow path {
    stroke-dashoffset: 120;
    opacity: 0;
    transition: none;
}
.js-anim #why-bcsm.why-collage-visible .service-photo-frame {
    transition:
        opacity 680ms cubic-bezier(0.23, 1, 0.32, 1),
        transform 680ms cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 220ms ease,
        filter 220ms ease;
    transition-delay: var(--tile-delay), var(--tile-delay), 0ms, 0ms;
}
.js-anim #why-bcsm.why-collage-visible .service-label {
    transition: opacity 260ms ease, transform 260ms cubic-bezier(0.23, 1, 0.32, 1);
    transition-delay: calc(var(--tile-delay) + 650ms);
}
.js-anim #why-bcsm.why-collage-visible .service-arrow path {
    transition: stroke-dashoffset 520ms cubic-bezier(0.23, 1, 0.32, 1), opacity 180ms ease;
    transition-delay: calc(var(--tile-delay) + 610ms);
}
#why-bcsm .service-tile:focus-visible {
    outline: none;
}
#why-bcsm .service-tile:focus-visible .service-photo-frame {
    outline: 3px solid var(--secondary);
    outline-offset: 4px;
}
@media (hover: hover) and (pointer: fine) {
    #why-bcsm .why-services-stage:has(.service-tile:hover) .service-tile:not(:hover) .service-photo-frame {
        opacity: 0.78;
        filter: saturate(0.76) contrast(0.96);
        transition-duration: 220ms, 220ms, 220ms, 220ms;
        transition-delay: 0ms, 0ms, 0ms, 0ms;
    }
    #why-bcsm .service-tile:hover {
        z-index: 10;
    }
    #why-bcsm .service-tile:hover .service-photo-frame {
        box-shadow: 0 22px 40px rgba(4, 27, 66, 0.29);
        transform: translate3d(0, -4px, 0) scale(1.025);
        transition-duration: 220ms, 220ms, 220ms, 220ms;
        transition-delay: 0ms, 0ms, 0ms, 0ms;
    }
}

@media (max-width: 1100px) {
    #why-bcsm .why-layout {
        grid-template-columns: minmax(0, 1fr) 310px;
        gap: 30px;
    }
    #why-bcsm .why-nav {
        position: static;
        grid-column: 1 / -1;
    }
    #why-bcsm .why-nav-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 20px;
    }
    #why-bcsm .why-nav-list a {
        min-height: 48px;
    }
    #why-bcsm .why-content {
        grid-column: 1;
        grid-row: 2;
    }
    #why-bcsm .why-services {
        grid-column: 2;
        grid-row: 2;
    }
}

.content-media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.content-media img {
    width: 100%;
    height: auto;
    display: block;
}
.content-media .inspection-coverage-image {
    height: clamp(300px, 32vw, 420px);
    object-fit: cover;
    object-position: center;
}

/* ===== LAB PACKS ===== */
.pack-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}
.pack-grid .pack-card { grid-column: span 2; }
.pack-grid .pack-card:nth-child(5) { grid-column: 2 / span 2; }

.pack-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-lg);
    padding: 32px;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s ease;
}
.pack-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 61, 165, 0.08), 0 10px 10px -5px rgba(0, 61, 165, 0.03);
    border-color: rgba(0, 61, 165, 0.2);
    background: rgba(255, 255, 255, 0.85);
}
.pack-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pack-card ul {
    list-style: none;
    flex: 1;
}
.pack-card li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.pack-card li:last-child { border-bottom: none; }
.pack-card li i {
    color: var(--secondary);
    font-size: 0.7rem;
    margin-top: 6px;
    flex-shrink: 0;
}

/* ===== TIMELINE / ROADMAP ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--border);
}
.timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    align-items: start;
}

/* Odd items: year left, content right */
.timeline-item:nth-child(odd) .timeline-year {
    grid-column: 1;
    text-align: right;
}
.timeline-item:nth-child(odd) .timeline-content {
    grid-column: 2;
}

/* Even items: content left, year right */
.timeline-item:nth-child(even) .timeline-year {
    grid-column: 2;
    text-align: left;
}
.timeline-item:nth-child(even) .timeline-content {
    grid-column: 1;
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    position: relative;
}
.timeline-year::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: var(--secondary);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--secondary);
}

/* Odd: dot sits to the right of year, near center line */
.timeline-item:nth-child(odd) .timeline-year::after {
    right: -28px;
}

/* Even: dot sits to the left of year, near center line */
.timeline-item:nth-child(even) .timeline-year::after {
    left: -28px;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 24px;
    border-radius: var(--radius);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s ease;
}
.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px -5px rgba(0, 61, 165, 0.06);
    border-color: rgba(0, 61, 165, 0.15);
    background: rgba(255, 255, 255, 0.85);
}
.timeline-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}
.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== VALUES ===== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.value-card {
    --value-color: var(--primary);
    --value-glow: rgba(0, 61, 165, 0.2);
    --value-border: rgba(0, 61, 165, 0.2);
    text-align: center;
    padding: 40px 24px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-lg);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s ease;
}
.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px var(--value-glow), 0 10px 10px -5px rgba(0, 61, 165, 0.03);
    border-color: var(--value-border);
    background: rgba(255, 255, 255, 0.85);
}
.value-accuracy {
    --value-color: #062a66;
    --value-glow: rgba(6, 42, 102, 0.16);
    --value-border: rgba(6, 42, 102, 0.28);
}
.value-integrity {
    --value-color: #0c8fe8;
    --value-glow: rgba(12, 143, 232, 0.16);
    --value-border: rgba(12, 143, 232, 0.28);
}
.value-excellence {
    --value-color: #4b1fa0;
    --value-glow: rgba(75, 31, 160, 0.16);
    --value-border: rgba(75, 31, 160, 0.28);
}
.value-sustainability {
    --value-color: #138a0a;
    --value-glow: rgba(19, 138, 10, 0.16);
    --value-border: rgba(19, 138, 10, 0.28);
}
.value-icon {
    width: 72px; height: 72px;
    margin: 0 auto 20px;
    background: var(--value-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px var(--value-glow);
}
.value-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}
.value-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== CLIENTS / PARTNERS ===== */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.logo-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s ease;
    height: 100px;
}
.logo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0, 61, 165, 0.08);
    border-color: rgba(0, 61, 165, 0.15);
    background: rgba(255, 255, 255, 0.85);
}
.logo-card img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}
.logo-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ===== ACCREDITED ANALYTICAL PARTNERS ===== */
.analytical-partners-shell {
    margin-top: 48px;
}
.analytical-partners {
    --analytical-card-width: clamp(220px, 16vw, 250px);
    --analytical-card-height: 166px;
    --analytical-card-gap: 18px;
    width: min(1520px, calc(100vw - 48px));
    margin-inline: 50%;
    transform: translateX(-50%);
}
.analytical-partners-header {
    max-width: 920px;
    margin-bottom: 24px;
}
.analytical-partners-header .section-title {
    color: var(--primary-dark);
    font-size: clamp(1.9rem, 3vw, 2.25rem);
}
.analytical-partners-header .section-subtitle {
    max-width: 880px;
    margin-inline: auto;
}
.analytical-partners-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 8px 0 12px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.analytical-partners-track {
    display: flex;
    width: max-content;
    animation: analytical-partners-scroll 34s linear infinite;
    will-change: transform;
}
.analytical-partners-group {
    display: flex;
    flex: 0 0 auto;
}
.analytical-partner-card {
    flex: 0 0 var(--analytical-card-width);
    width: var(--analytical-card-width);
    height: var(--analytical-card-height);
    margin-right: var(--analytical-card-gap);
    padding: clamp(24px, 2.2vw, 34px);
    display: grid;
    place-items: center;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: var(--radius-lg);
    box-shadow: 0 9px 24px rgba(0, 61, 165, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
}
.analytical-partner-card:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: -4px;
}
.analytical-partner-card.partner-card-sadef,
.analytical-partner-card.partner-card-eurofins {
    padding-inline: 18px;
    overflow: hidden;
}
.analytical-partner-card img,
.accreditation-partner-card img {
    width: auto;
    height: auto;
    object-fit: contain;
}
.partner-logo-eurofins { max-width: 205px; max-height: 72px; transform: scale(1.22); }
.partner-logo-phytocontrol { max-width: 188px; max-height: 74px; }
.partner-logo-merieux { max-width: 174px; max-height: 96px; }
.partner-logo-sadef { max-width: 205px; max-height: 72px; transform: scale(1.22); }
.partner-logo-water { max-width: 164px; max-height: 98px; }
.partner-logo-life { max-width: 164px; max-height: 92px; }
.analytical-partners-marquee:hover .analytical-partners-track,
.analytical-partners-marquee:focus-within .analytical-partners-track {
    animation-play-state: paused;
}
@keyframes analytical-partners-scroll {
    to { transform: translate3d(-50%, 0, 0); }
}
.accreditation-partners {
    max-width: 940px;
    margin-inline: auto;
}
.accreditation-partners-title {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 8px;
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.09em;
    text-align: center;
}
.accreditation-partners-title::before,
.accreditation-partners-title::after {
    content: '';
    flex: 1 0 80px;
    min-width: 80px;
    height: 1px;
    background: var(--primary-light);
}
.accreditation-partners-title span {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 720px;
}
.accreditation-partners-description {
    max-width: 720px;
    margin: 0 auto 18px;
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.09em;
    text-align: center;
}
.accreditation-partners-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.accreditation-partner-card {
    height: 94px;
    padding: 13px 20px;
    display: grid;
    place-items: center;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: var(--radius);
    box-shadow: 0 5px 16px rgba(0, 61, 165, 0.06);
}
.accreditation-logo-cofrac { max-width: 46px; max-height: 68px; }
.accreditation-logo-enac { max-width: 126px; max-height: 64px; }
.accreditation-logo-semac { max-width: 80px; max-height: 68px; }
.accreditation-logo-ias { max-width: 150px; max-height: 58px; }

@media (max-width: 1024px) {
    .analytical-partners {
        --analytical-card-width: clamp(200px, 21vw, 218px);
        --analytical-card-height: 146px;
        --analytical-card-gap: 16px;
        width: calc(100vw - 40px);
    }
    .analytical-partner-card {
        padding: 24px;
    }
    .accreditation-partners {
        max-width: 880px;
    }
    .accreditation-partners-grid {
        gap: 14px;
    }
}

@media (max-width: 680px) {
    .analytical-partners-shell {
        margin-top: 40px;
    }
    .analytical-partners {
        --analytical-card-width: clamp(176px, 58vw, 220px);
        --analytical-card-height: 112px;
        --analytical-card-gap: 10px;
        width: calc(100vw - 32px);
    }
    .analytical-partners-header {
        margin-bottom: 18px;
    }
    .analytical-partners-header .section-title {
        font-size: clamp(1.75rem, 8vw, 2.05rem);
    }
    .analytical-partners-header .section-subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    .analytical-partners-marquee {
        padding-block: 4px 8px;
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    }
    .analytical-partner-card {
        padding: 16px;
    }
    .analytical-partner-card img {
        max-width: 88%;
        max-height: 72px;
    }
    .analytical-partner-card.partner-card-eurofins,
    .analytical-partner-card.partner-card-sadef { padding-inline: 10px; }
    .partner-logo-eurofins { max-width: 176px; transform: scale(1.15); }
    .partner-logo-phytocontrol { max-width: 164px; }
    .partner-logo-sadef { max-width: 176px; transform: scale(1.08); }
    .accreditation-partners-title {
        gap: 10px;
        margin-bottom: 14px;
        font-size: 0.68rem;
        letter-spacing: 0.07em;
    }
    .accreditation-partners-title::before,
    .accreditation-partners-title::after {
        flex: 1 0 14px;
        min-width: 14px;
    }
    .accreditation-partners-title span {
        max-width: 285px;
    }
    .accreditation-partners-description {
        font-size: 0.68rem;
        letter-spacing: 0.07em;
    }
    .accreditation-partners-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .accreditation-partner-card {
        height: 84px;
        padding: 11px 14px;
    }
    .accreditation-logo-cofrac { max-height: 62px; }
    .accreditation-logo-enac { max-width: 116px; max-height: 58px; }
    .accreditation-logo-semac { max-height: 62px; }
    .accreditation-logo-ias { max-width: 132px; }
}

@media (max-width: 330px) {
    .accreditation-partners-grid {
        grid-template-columns: 1fr;
        max-width: 230px;
        margin-inline: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .analytical-partners-marquee {
        overflow-x: auto;
        padding-bottom: 14px;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .analytical-partners-track {
        animation: none;
        transform: none;
        will-change: auto;
    }
    .analytical-partners-group[aria-hidden="true"] {
        display: none;
    }
    .analytical-partner-card {
        scroll-snap-align: start;
    }
}

/* Laboratory page partner carousel spacing. */
.laboratory-partners-section .section-header {
    margin-bottom: 24px;
}

.trusted-partners-section {
    background:
        radial-gradient(circle at 50% 40%, rgba(255,255,255,0.98) 0, rgba(255,255,255,0.78) 27%, transparent 58%),
        linear-gradient(180deg, #f8fbff 0%, #eef6fd 52%, #f8fbff 100%);
}
#references {
    position: relative;
    overflow: hidden;
}
#references::before,
#references::after {
    content: '';
    position: absolute;
    width: 96px;
    height: 96px;
    opacity: 0.16;
    background-image: radial-gradient(rgba(0,85,212,0.85) 1.2px, transparent 1.2px);
    background-size: 8px 8px;
    pointer-events: none;
}
#references::before {
    top: 74px;
    left: max(18px, calc((100vw - var(--container)) / 2 - 44px));
}
#references::after {
    top: 510px;
    right: max(18px, calc((100vw - var(--container)) / 2 - 44px));
}
#references .container {
    position: relative;
    z-index: 1;
}
.trusted-partners-explorer {
    --trusted-card-width: clamp(146px, 14vw, 174px);
    --trusted-card-height: 96px;
}
.trusted-partners-composition {
    position: relative;
    min-height: 650px;
    isolation: isolate;
}
.trusted-partners-routes {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: visible;
    pointer-events: none;
}
.trusted-partners-routes path {
    fill: none;
    stroke: #93bfe7;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-dasharray: 3 8;
    opacity: 0.62;
    vector-effect: non-scaling-stroke;
}
.trusted-partners-routes circle {
    fill: #79addd;
    opacity: 0.75;
}
.trusted-partners-copy {
    position: absolute;
    top: 48%;
    left: 50%;
    width: min(640px, 58%);
    z-index: 3;
    text-align: center;
    transform: translate(-50%, -50%);
}
.trusted-partners-cta {
    margin-bottom: 24px;
    padding: 9px 10px 9px 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    background: var(--primary-light);
    border: 1px solid var(--primary-light);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(0,85,212,0.2);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.015em;
    text-decoration: none;
    transition: transform 180ms cubic-bezier(0.23, 1, 0.32, 1),
                background-color 180ms ease,
                box-shadow 180ms ease;
}
.trusted-partners-cta i {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    background: #ffffff;
    border-radius: 50%;
    font-size: 0.7rem;
    transition: transform 180ms cubic-bezier(0.23, 1, 0.32, 1);
}
.trusted-partners-cta:active {
    transform: scale(0.97);
}
.trusted-partners-cta:focus-visible {
    outline: 3px solid rgba(0,85,212,0.25);
    outline-offset: 4px;
}
@media (hover: hover) and (pointer: fine) {
    .trusted-partners-cta:hover {
        color: #ffffff;
        background: var(--primary);
        box-shadow: 0 14px 30px rgba(0,61,165,0.28);
        transform: translateY(-2px);
    }
    .trusted-partners-cta:hover i {
        transform: translateX(2px);
    }
}
.trusted-partners-title {
    max-width: 640px;
    margin: 0 auto;
    color: var(--primary-dark);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.35rem, 4.2vw, 3.75rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-wrap: balance;
}
.trusted-partners-description {
    max-width: 550px;
    margin: 28px auto 0;
    color: #5c6f8d;
    font-size: clamp(1rem, 1.45vw, 1.2rem);
    line-height: 1.65;
    text-wrap: balance;
}
.trusted-logo-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}
.trusted-logo-card {
    --slot-x: 50%;
    --slot-y: 50%;
    --float-distance: 5px;
    --float-duration: 8.4s;
    --float-delay: -1s;
    position: absolute;
    top: calc(var(--slot-y) - (var(--trusted-card-height) / 2));
    left: calc(var(--slot-x) - (var(--trusted-card-width) / 2));
    width: var(--trusted-card-width);
    height: var(--trusted-card-height);
    z-index: 1;
    opacity: 1;
    pointer-events: auto;
    will-change: transform, opacity;
    transition: opacity 280ms ease;
}
.trusted-logo-card[hidden] {
    display: none !important;
}
.trusted-logo-card.is-dimmed {
    opacity: 0.16;
    pointer-events: none;
}
.trusted-logo-card[data-slot="1"] { --slot-x: 16%; --slot-y: 10%; }
.trusted-logo-card[data-slot="2"] { --slot-x: 38%; --slot-y: 8%; }
.trusted-logo-card[data-slot="3"] { --slot-x: 62%; --slot-y: 8%; }
.trusted-logo-card[data-slot="4"] { --slot-x: 84%; --slot-y: 10%; }
.trusted-logo-card[data-slot="5"] { --slot-x: 9%; --slot-y: 31%; }
.trusted-logo-card[data-slot="6"] { --slot-x: 91%; --slot-y: 31%; }
.trusted-logo-card[data-slot="7"] { --slot-x: 9%; --slot-y: 52%; }
.trusted-logo-card[data-slot="8"] { --slot-x: 91%; --slot-y: 52%; }
.trusted-logo-card[data-slot="9"] { --slot-x: 9%; --slot-y: 72%; }
.trusted-logo-card[data-slot="10"] { --slot-x: 91%; --slot-y: 72%; }
.trusted-logo-card[data-slot="11"] { --slot-x: 20%; --slot-y: 91%; }
.trusted-logo-card[data-slot="12"] { --slot-x: 50%; --slot-y: 92%; }
.trusted-logo-card[data-slot="13"] { --slot-x: 80%; --slot-y: 91%; }
.trusted-logo-card[data-slot="14"] { --slot-x: 50%; --slot-y: 10%; }
.trusted-logo-card[data-slot="15"] { --slot-x: 39%; --slot-y: 10%; }
.trusted-logo-card[data-slot="16"] { --slot-x: 61%; --slot-y: 10%; }
.trusted-logo-card[data-slot="17"] { --slot-x: 27%; --slot-y: 10%; }
.trusted-logo-card[data-slot="18"] { --slot-x: 73%; --slot-y: 10%; }
.trusted-logo-float {
    width: 100%;
    height: 100%;
    animation: trusted-logo-float var(--float-duration) ease-in-out var(--float-delay) infinite alternate;
}
.trusted-logo-surface {
    width: 100%;
    height: 100%;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(143,171,207,0.25);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(16,46,93,0.09), 0 2px 6px rgba(16,46,93,0.04);
    transition: transform 220ms cubic-bezier(0.23, 1, 0.32, 1),
                border-color 220ms ease,
                box-shadow 220ms ease;
}
.trusted-logo-surface img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 66px;
    object-fit: contain;
}
.trusted-logo-card:nth-child(2) { --float-distance: 4px; --float-duration: 9.2s; --float-delay: -4.1s; }
.trusted-logo-card:nth-child(3) { --float-distance: 6px; --float-duration: 10.1s; --float-delay: -2.7s; }
.trusted-logo-card:nth-child(4) { --float-distance: 5px; --float-duration: 8.7s; --float-delay: -6.4s; }
.trusted-logo-card:nth-child(5) { --float-distance: 7px; --float-duration: 10.8s; --float-delay: -3.3s; }
.trusted-logo-card:nth-child(6) { --float-distance: 4px; --float-duration: 7.9s; --float-delay: -5.2s; }
.trusted-logo-card:nth-child(7) { --float-distance: 6px; --float-duration: 9.7s; --float-delay: -1.8s; }
.trusted-logo-card:nth-child(8) { --float-distance: 5px; --float-duration: 8.2s; --float-delay: -7.1s; }
.trusted-logo-card:nth-child(9) { --float-distance: 7px; --float-duration: 11.2s; --float-delay: -4.8s; }
.trusted-logo-card:nth-child(10) { --float-distance: 4px; --float-duration: 9.4s; --float-delay: -2.2s; }
.trusted-logo-card:nth-child(11) { --float-distance: 6px; --float-duration: 10.4s; --float-delay: -6.8s; }
.trusted-logo-card:nth-child(12) { --float-distance: 5px; --float-duration: 8.9s; --float-delay: -3.7s; }
.trusted-logo-card:nth-child(13) { --float-distance: 7px; --float-duration: 11.5s; --float-delay: -8.1s; }
@keyframes trusted-logo-float {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(0, calc(0px - var(--float-distance)), 0); }
}
.trusted-partners-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}
.trusted-partners-filter {
    position: relative;
    min-height: 44px;
    padding: 10px 18px 10px 34px;
    border: 1px solid rgba(119,145,180,0.28);
    border-radius: 999px;
    background: rgba(255,255,255,0.72);
    color: #4c5e78;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,61,165,0.035);
    transition: transform 150ms cubic-bezier(0.23, 1, 0.32, 1),
                color 180ms ease,
                background-color 180ms ease,
                border-color 180ms ease,
                box-shadow 180ms ease;
}
.trusted-partners-filter::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 17px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9babc0;
    transform: translateY(-50%) scale(0.72);
    transition: background-color 180ms ease, transform 180ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 180ms ease;
}
.trusted-partners-filter.is-active {
    color: #ffffff;
    background: var(--primary-light);
    border-color: var(--primary-light);
    box-shadow: 0 8px 22px rgba(0,85,212,0.2);
}
.trusted-partners-filter.is-active::before {
    background: #36d486;
    transform: translateY(-50%) scale(1);
    box-shadow: 0 0 0 3px rgba(54,212,134,0.16);
}
.trusted-partners-filter:active {
    transform: scale(0.97);
}
.trusted-partners-filter:focus-visible {
    outline: 3px solid rgba(0,85,212,0.25);
    outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
    .trusted-logo-card:hover .trusted-logo-float {
        animation-play-state: paused;
    }
    .trusted-logo-card:hover .trusted-logo-surface {
        transform: translateY(-5px);
        border-color: rgba(0,85,212,0.32);
        box-shadow: 0 20px 38px rgba(16,46,93,0.16), 0 5px 12px rgba(0,85,212,0.08);
    }
    .trusted-partners-filter:not(.is-active):hover {
        color: var(--primary-light);
        background: #ffffff;
        border-color: rgba(0,85,212,0.28);
        box-shadow: 0 8px 20px rgba(0,61,165,0.08);
    }
}
@media (max-width: 1024px) {
    .trusted-partners-explorer {
        --trusted-card-width: 136px;
        --trusted-card-height: 86px;
    }
    .trusted-partners-composition {
        min-height: 580px;
    }
    .trusted-partners-copy {
        width: min(480px, 56%);
    }
    .trusted-partners-title {
        font-size: clamp(2rem, 4.3vw, 3rem);
    }
    .trusted-logo-surface {
        padding: 13px 16px;
    }
    .trusted-logo-surface img {
        max-height: 58px;
    }
}
@media (max-width: 780px) and (min-width: 681px) {
    .trusted-partners-explorer {
        --trusted-card-width: 118px;
        --trusted-card-height: 78px;
    }
    .trusted-partners-composition {
        min-height: 550px;
    }
    .trusted-partners-copy {
        width: min(430px, 58%);
    }
    .trusted-partners-cta {
        margin-bottom: 18px;
        padding: 7px 13px;
        font-size: 0.7rem;
    }
    .trusted-partners-description {
        margin-top: 20px;
        font-size: 0.95rem;
    }
    .trusted-logo-surface {
        padding: 11px 13px;
    }
    .trusted-logo-surface img {
        max-height: 52px;
    }
}
@media (max-width: 680px) {
    #references::before,
    #references::after,
    .trusted-partners-routes {
        display: none;
    }
    .trusted-partners-composition {
        min-height: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .trusted-partners-copy {
        position: static;
        width: auto;
        grid-column: 1 / -1;
        padding: 0 0 22px;
        display: flex;
        flex-direction: column;
        align-items: center;
        transform: none;
    }
    .trusted-partners-cta {
        order: 3;
        margin: 20px 0 0;
    }
    .trusted-partners-title {
        order: 1;
        font-size: clamp(2rem, 9vw, 2.7rem);
        line-height: 1.1;
    }
    .trusted-partners-description {
        order: 2;
        margin-top: 20px;
        font-size: 1rem;
        line-height: 1.6;
    }
    .trusted-logo-layer {
        display: contents;
    }
    .trusted-logo-card {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: 96px;
    }
    .trusted-logo-surface {
        padding: 14px 16px;
        border-radius: 12px;
    }
    .trusted-logo-surface img {
        max-height: 62px;
    }
    .trusted-partners-filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 8px;
        margin: 26px -20px 0;
        padding: 4px 20px 10px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }
    .trusted-partners-filters::-webkit-scrollbar {
        display: none;
    }
    .trusted-partners-filter {
        flex: 0 0 auto;
        min-height: 42px;
        scroll-snap-align: start;
    }
}
@media (max-width: 380px) {
    .trusted-logo-card {
        height: 88px;
    }
    .trusted-logo-surface {
        padding: 12px;
    }
    .trusted-logo-surface img {
        max-height: 56px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .trusted-logo-float {
        animation: none;
    }
    .trusted-logo-card,
    .trusted-logo-surface,
    .trusted-partners-filter,
    .trusted-partners-filter::before {
        transition-duration: 0.01ms !important;
    }
    .trusted-logo-card:hover .trusted-logo-surface,
    .trusted-partners-filter:active {
        transform: none;
    }
}

.partners-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.partner-logo {
    height: 50px;
    width: auto;
    opacity: 0.5;
    transition: opacity 0.3s;
    filter: grayscale(100%);
}
.partner-logo:hover { opacity: 1; filter: grayscale(0%); }

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}
.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -1px;
}
.cta-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 36px;
}

/* ===== CONTACT ===== */
.contact-section {
    position: relative;
    overflow: hidden;
    background:
        url("../images/contact-background.png") center / cover no-repeat,
        #062455;
}
.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(2, 20, 48, 0.82) 0%,
        rgba(0, 61, 165, 0.58) 52%,
        rgba(2, 20, 48, 0.72) 100%
    );
}
.contact-section .container {
    position: relative;
    z-index: 1;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.contact-section .contact-info,
.contact-section .contact-form {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 24px 60px rgba(2, 20, 48, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.contact-section .contact-info {
    padding: 40px;
    border-radius: var(--radius-lg);
}
.contact-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 0.95rem;
}
.contact-item i {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}
.contact-item a {
    color: var(--primary);
    font-weight: 500;
    transition: color 0.2s;
}
.contact-item a:hover { color: var(--primary-dark); }

.contact-form {
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: var(--primary-light);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 61, 165, 0.15);
    outline: 2px solid transparent;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-status {
    display: none;
    margin: -2px 0 18px;
    padding: 12px 14px;
    border-radius: var(--radius);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.5;
}
.form-status.is-visible {
    display: block;
}
.form-status.is-success {
    color: #07562b;
    background: rgba(0, 166, 81, 0.1);
    border: 1px solid rgba(0, 166, 81, 0.24);
}
.form-status.is-error {
    color: #8a1f11;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.24);
}
.form-status.is-info {
    color: var(--primary-dark);
    background: rgba(0, 85, 212, 0.08);
    border: 1px solid rgba(0, 85, 212, 0.2);
}
.contact-form .btn:disabled {
    cursor: wait;
    opacity: 0.72;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #ffffff 0%, #e6f0ff 50%, #0066cc 100%);
    color: #000000;
    padding: 80px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}
.footer-logo {
    margin-bottom: 16px;
}
.footer-logo img {
    width: auto;
    height: 46px;
}
.footer-brand p {
    font-size: 0.9rem;
    color: #000000;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 320px;
}
.footer-social {
    display: flex;
    gap: 12px;
}
.footer-social a {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(0, 61, 165, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    transition: all 0.3s;
}
.footer-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}
.footer-column h3 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #000000;
}
.footer-column li { margin-bottom: 10px; }
.footer-column a {
    color: #000000;
    font-size: 0.9rem;
    transition: color 0.3s;
    display: inline-block;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
}
.footer-column a:hover { color: var(--primary); }
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: #000000;
    font-size: 0.9rem;
}
.footer-contact-item i {
    color: var(--secondary);
    margin-top: 4px;
    font-size: 0.9rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}
.footer-contact-item a { color: #000000; transition: color 0.3s; }
.footer-contact-item a:hover { color: var(--primary); }
.footer-bottom {
    border-top: 1px solid rgba(0, 61, 165, 0.15);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #000000;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-legal {
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--primary-dark);
}
.footer-legal a,
.footer-legal button {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--primary-dark);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.footer-legal a {
    display: inline-flex;
    align-items: center;
}
.footer-cookie-link {
    text-align: left;
}
.footer-legal a:hover,
.footer-legal button:hover {
    color: var(--primary);
}

/* ===== COOKIE CONSENT ===== */
.cookie-banner[hidden] {
    display: none;
}
.cookie-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    color: var(--text);
}
.cookie-banner__content {
    max-width: 980px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid rgba(0, 61, 165, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}
.cookie-banner__text h2 {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 6px;
    color: var(--primary-dark);
}
.cookie-banner__text p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.55;
    max-width: 680px;
}
.cookie-banner__text a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin-top: 8px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
}
.cookie-banner__text a:hover {
    color: var(--primary-dark);
}
.cookie-banner__actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.cookie-banner__actions .btn {
    white-space: nowrap;
    min-height: 42px;
    padding: 12px 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .utility-bar__inner {
        padding: 0 20px;
        column-gap: 16px;
    }
    .utility-bar__contact { gap: 10px; }
    .utility-bar__actions { gap: 8px; }
    .utility-bar__services { font-size: 0.72rem; }
    .utility-bar__quote { padding: 0 10px; }
    .utility-bar + .navbar .nav-panel {
        top: calc(var(--header) + var(--utility-bar-height));
    }
    .nav-panel {
        position: fixed;
        top: var(--header);
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        z-index: 10000;
        background: #ffffff;
        display: flex;
        flex-direction: column;
        padding: 24px;
        gap: 24px;
        transform: translateX(100%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.3s ease, visibility 0.3s ease;
        overflow-y: auto;
        align-items: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    .navbar.is-open .nav-panel {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }
    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    .nav-links li { width: 100%; }
    .nav-links a {
        padding: 14px 0;
        font-size: 1.1rem;
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
    .nav-links a::after { display: none; }
    .mobile-menu-btn { display: flex; }
    .nav-cta { width: 100%; justify-content: center; }

    /* Mobile dropdown */
    .has-dropdown { position: static; }
    .has-dropdown::after { display: none; }
    .dropdown {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: var(--bg-light);
        border-radius: var(--radius-sm);
        border: 1px solid var(--border);
        margin: 4px 0 8px 12px;
        min-width: auto;
        width: calc(100% - 12px);
    }
    .has-dropdown.open .dropdown { display: block; }
    .dropdown li a {
        padding: 12px 16px;
        border-bottom: 1px solid var(--border);
    }
    .dropdown li:last-child a { border-bottom: none; }
    .has-dropdown > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .has-dropdown > a .fa-chevron-down {
        margin-left: auto;
        transition: transform 0.25s ease;
    }
    .language-switcher {
        width: auto;
        justify-content: center;
        align-self: center;
    }
    .lang-btn { flex: 0 0 auto; }
    .has-dropdown.open > a .fa-chevron-down {
        transform: rotate(180deg);
    }

    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-right { order: -1; }
    .hero-slider {
        height: 520px;
        min-height: 520px;
    }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .content-grid { grid-template-columns: 1fr; gap: 40px; }
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .legal-sidebar {
        position: static;
    }
    .pdf-viewer-frame {
        height: 76vh;
        min-height: 520px;
    }
    .terms-inline-viewer__frame {
        height: 70vh;
        min-height: 480px;
    }
    .terms-viewer-shell--cropped {
        height: 76vh;
        min-height: 520px;
    }
    .content-grid.reverse .content-text { order: 1; }
    .content-grid.reverse .content-media { order: 2; }
    .feature-list { grid-template-columns: 1fr; }
    #why-bcsm {
        padding: 56px 0;
    }
    #why-bcsm .why-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    #why-bcsm .why-nav,
    #why-bcsm .why-services {
        position: static;
    }
    #why-bcsm .why-content {
        grid-column: 1;
        grid-row: auto;
        max-width: 720px;
        justify-self: center;
    }
    #why-bcsm .why-services {
        grid-column: 1;
        grid-row: auto;
        width: min(100%, 420px);
        justify-self: center;
    }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .cookie-banner {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
    .cookie-banner__content {
        grid-template-columns: 1fr;
    }
    .cookie-banner__actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .pack-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .logo-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .timeline::before { left: 20px; }
    .timeline-item { grid-template-columns: 1fr; gap: 16px; padding-left: 44px; }
    .timeline-item:nth-child(odd) .timeline-year,
    .timeline-item:nth-child(even) .timeline-year { grid-column: 1; text-align: left; }
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content { grid-column: 1; }
    .timeline-year::after { left: -32px !important; right: auto !important; }
}

@media (max-width: 640px) {
    .utility-bar__inner {
        padding: 0 16px;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 10px;
    }
    .utility-bar__services { display: none; }
    .utility-bar__actions {
        grid-column: 2;
        gap: 6px;
    }
    .utility-bar__quote {
        padding: 0 9px;
        font-size: 0.65rem;
    }
    .services-grid { grid-template-columns: 1fr; }
    .inspection-coverage-grid {
        gap: 0;
    }
    .inspection-coverage-grid .content-text {
        display: contents;
    }
    .inspection-coverage-grid .content-text > p {
        order: 1;
    }
    .inspection-coverage-grid .content-media {
        order: 2;
        margin-top: 8px;
    }
    .inspection-coverage-grid .content-text > .btn {
        order: 3;
        margin-top: 24px;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .pdf-viewer-frame {
        height: 68vh;
        min-height: 420px;
    }
    .terms-inline-viewer {
        padding: 22px 14px 14px;
    }
    .terms-inline-viewer__frame {
        height: 64vh;
        min-height: 380px;
    }
    .terms-viewer-shell--cropped {
        height: 68vh;
        min-height: 420px;
    }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-legal {
        gap: 6px 8px;
        line-height: 1.6;
    }
    .footer-legal button {
        font-size: 0.9rem;
    }
    .footer-legal a {
        font-size: 0.9rem;
    }
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
    .cookie-banner__content {
        padding: 16px;
        gap: 14px;
    }
    .cookie-banner__actions {
        flex-direction: column;
    }
    .cookie-banner__actions .btn {
        width: 100%;
    }
    .pack-grid { grid-template-columns: 1fr; }
    .pack-grid .pack-card,
    .pack-grid .pack-card:nth-child(5) {
        grid-column: 1 / -1;
        min-height: auto;
    }
    .logo-grid { grid-template-columns: 1fr 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .hero-slider {
        height: 420px;
        min-height: 420px;
        border-radius: 20px;
    }
    .hero-slider-arrow {
        width: 44px;
        height: 44px;
    }
    .hero-slider-prev { left: 16px; }
    .hero-slider-next { right: 16px; }
    .hero-slide-overlay {
        bottom: 64px;
    }
    .sector-showcase-grid {
        gap: 22px;
        margin-top: 30px;
    }
    .sector-showcase-card img {
        height: 220px;
    }
    #why-bcsm {
        padding: 48px 0 56px;
    }
    #why-bcsm .why-layout {
        gap: 26px;
    }
    #why-bcsm .why-nav {
        min-width: 0;
    }
    #why-bcsm .why-nav-list {
        display: flex;
        gap: 10px;
        margin-top: 10px;
        padding: 2px 2px 8px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }
    #why-bcsm .why-nav-list li {
        flex: 0 0 min(72vw, 232px);
        scroll-snap-align: start;
    }
    #why-bcsm .why-nav-list a {
        min-height: 58px;
        height: 100%;
        padding: 10px 12px;
        border: 1px solid rgba(6, 31, 74, 0.13);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.76);
    }
    #why-bcsm .why-nav-list a:hover,
    #why-bcsm .why-nav-list a.is-current {
        padding-left: 18px;
        background: #ffffff;
    }
    #why-bcsm .why-nav-list a::before {
        left: 8px;
    }
    #why-bcsm .why-content .section-title {
        font-size: clamp(1.5rem, 7vw, 1.8rem);
    }
    #why-bcsm .feature-item {
        padding: 14px 0;
    }
    #why-bcsm .feature-item strong {
        font-size: 0.88rem;
    }
    #why-bcsm .feature-item p {
        font-size: 0.81rem;
    }
    #why-bcsm .why-content > .btn {
        width: auto;
    }
    #why-bcsm .why-services {
        width: 100%;
        max-width: 100%;
    }
    #why-bcsm .why-services-collage {
        height: auto;
        min-height: 0;
        padding: 16px;
        border-radius: 14px;
    }
    #why-bcsm .why-services-stage {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 12px;
        height: auto;
    }
    #why-bcsm .collage-accent,
    #why-bcsm .service-arrow {
        display: none;
    }
    #why-bcsm .service-tile,
    #why-bcsm .service-tile--inspection,
    #why-bcsm .service-tile--laboratory,
    #why-bcsm .service-tile--consulting,
    #why-bcsm .service-tile--training {
        position: relative;
        inset: auto;
        z-index: 1;
        display: flex;
        flex-direction: column;
        width: auto;
        height: auto;
        min-width: 0;
    }
    #why-bcsm .service-photo-frame {
        order: 1;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        border-width: 4px;
        box-shadow: 0 10px 22px rgba(4, 27, 66, 0.17);
    }
    #why-bcsm .service-label,
    #why-bcsm .service-tile--inspection .service-label,
    #why-bcsm .service-tile--laboratory .service-label,
    #why-bcsm .service-tile--consulting .service-label,
    #why-bcsm .service-tile--training .service-label {
        position: static;
        order: 2;
        margin-top: 8px;
        font-size: 0.64rem;
        line-height: 1.25;
        white-space: normal;
    }
    .sector-showcase-body {
        min-height: 92px;
        padding: 24px 20px 28px;
    }
    .stats-card { flex-direction: column; gap: 16px; }
    .trust-container { flex-direction: column; gap: 24px; }
    .hero-cta-group { flex-direction: column; }
    .btn { width: 100%; }
}

@media (max-width: 480px) {
    .utility-bar__email-text { display: none; }
    .utility-bar__contact { gap: 6px; }
    .utility-bar__email {
        width: 28px;
        border-radius: 4px;
    }
    .utility-bar__email:hover { background: rgba(255,255,255,0.1); }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    #why-bcsm .service-photo-frame,
    #why-bcsm .service-label {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    #why-bcsm .service-arrow path {
        opacity: 1 !important;
        stroke-dashoffset: 0 !important;
        transition: none !important;
    }
    .laboratory-hero-video,
    .training-hero-video,
    .consulting-hero-video,
    .inspection-hero-video {
        display: none;
    }
    .fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .service-flip-card-inner {
        transition: none !important;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== PRINT ===== */
@media print {
    .utility-bar, .navbar, .footer, .cta-section, .trust-bar, .mobile-menu-btn, .cookie-banner { display: none; }
    .section { padding: 20px 0; page-break-inside: avoid; }
    body { font-size: 12pt; color: black; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 10pt; color: #666; }
}

/* ===== SCROLL-DRIVEN FADE ANIMATION ===== */
.js-anim .fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.js-anim .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.js-anim .delay-1 { transition-delay: 0.12s; }
.js-anim .delay-2 { transition-delay: 0.24s; }
.js-anim .delay-3 { transition-delay: 0.36s; }
.js-anim .delay-4 { transition-delay: 0.48s; }

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
    position: fixed;
    top: var(--header);
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--primary-light));
    width: 0%;
    z-index: 999;
    transition: width 0.08s linear;
    pointer-events: none;
    border-radius: 0 2px 2px 0;
}

/* ===== BACK TO TOP BUTTON ===== */
.scroll-top-btn {
    position: fixed;
    bottom: var(--floating-action-safe-bottom);
    right: var(--floating-action-safe-right);
    width: var(--floating-action-size);
    height: var(--floating-action-size);
    background: var(--floating-action-bg);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--floating-action-shadow);
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: opacity 0.3s, transform 0.3s, background 0.25s, box-shadow 0.25s;
    z-index: 997;
    pointer-events: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.scroll-top-btn:hover {
    background: var(--floating-action-bg-hover);
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--floating-action-shadow-hover);
}

/* ===== FRONTEND CHATBOT PROTOTYPE ===== */
.bcsm-chat-widget {
    --bcsm-chat-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --bcsm-chat-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --bcsm-chat-launcher-size: 60px;
    --bcsm-chat-center-offset: 6px;
    --bcsm-chat-panel-opacity-duration: 200ms;
    --bcsm-chat-panel-scale-duration: 350ms;
    --bcsm-chat-message-duration: 500ms;
    --bcsm-chat-control-duration: 500ms;
    --bcsm-chat-choice-first-delay: 350ms;
    --bcsm-chat-choice-stagger: 85ms;
    --bcsm-chat-selected-hold: 550ms;
    --bcsm-chat-collapse-duration: 500ms;
    --bcsm-chat-final-action-delay: 250ms;
    --bcsm-chat-check-duration: 300ms;
    --bcsm-chat-typing-cycle: 1000ms;
    --bcsm-chat-typing-visible: 900ms;
    --bcsm-chat-typing-dot-stagger: 250ms;
    --bcsm-chat-initial-stagger: 140ms;
    --bcsm-chat-safe-right: calc(var(--floating-action-safe-right) - var(--bcsm-chat-center-offset));
    --bcsm-chat-launcher-bottom: var(--floating-action-safe-bottom);
    --bcsm-chat-stack-distance: calc(var(--floating-action-size) + var(--floating-action-gap));
    --bcsm-chat-stack-shift: 0px;
    --bcsm-chat-stack-clearance: 0px;
    --bcsm-chat-launcher-reveal-offset: 8px;
    --bcsm-chat-launcher-scale: 1;
    --bcsm-chat-panel-scale: 0.96;
    --bcsm-chat-panel-bottom: calc(
        var(--bcsm-chat-launcher-bottom) + var(--bcsm-chat-launcher-size) + var(--floating-action-gap)
    );
    --bcsm-chat-nav-bottom: calc(var(--header) + 12px);
    position: relative;
    z-index: 998;
}
.bcsm-chat-widget.has-scroll-top {
    --bcsm-chat-stack-shift: calc(0px - var(--bcsm-chat-stack-distance));
    --bcsm-chat-stack-clearance: var(--bcsm-chat-stack-distance);
}

.bcsm-chat-launcher {
    position: fixed;
    right: var(--bcsm-chat-safe-right);
    bottom: var(--bcsm-chat-launcher-bottom);
    width: var(--bcsm-chat-launcher-size);
    height: var(--bcsm-chat-launcher-size);
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: var(--floating-action-bg);
    color: #ffffff;
    box-shadow: var(--floating-action-shadow);
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
    transform: translateY(calc(var(--bcsm-chat-stack-shift) + var(--bcsm-chat-launcher-reveal-offset))) scale(var(--bcsm-chat-launcher-scale));
    transition: opacity 200ms cubic-bezier(0.23, 1, 0.32, 1),
                background-color 180ms ease,
                box-shadow 180ms ease,
                transform 260ms var(--bcsm-chat-ease-in-out);
    z-index: 2;
}

.bcsm-chat-widget.is-ready {
    --bcsm-chat-launcher-reveal-offset: 0px;
}
.bcsm-chat-widget.is-ready .bcsm-chat-launcher {
    opacity: 1;
    pointer-events: auto;
}
.bcsm-chat-launcher:active { --bcsm-chat-launcher-scale: 0.97; }
.bcsm-chat-launcher:disabled { cursor: default; }
.bcsm-chat-launcher:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
    box-shadow: var(--floating-action-shadow), 0 0 0 5px var(--floating-action-bg);
}

.bcsm-chat-launcher__icon {
    position: absolute;
    width: 30px;
    height: 30px;
    transition: opacity 150ms ease, transform 150ms var(--bcsm-chat-ease-out);
}
.bcsm-chat-launcher__icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.bcsm-chat-launcher__icon--close {
    opacity: 0;
    transform: scale(0.96);
}
.bcsm-chat-launcher[aria-expanded="true"] .bcsm-chat-launcher__icon--chat {
    opacity: 0;
    transform: scale(0.96);
}
.bcsm-chat-launcher[aria-expanded="true"] .bcsm-chat-launcher__icon--close {
    opacity: 1;
    transform: scale(1);
}

.bcsm-chat-panel {
    position: fixed;
    right: var(--bcsm-chat-safe-right);
    bottom: var(--bcsm-chat-panel-bottom);
    width: min(360px, calc(100vw - var(--floating-action-offset) - var(--floating-action-offset)));
    height: 526px;
    max-height: calc(100dvh - var(--bcsm-chat-panel-bottom) - var(--bcsm-chat-stack-clearance) - var(--bcsm-chat-nav-bottom) - 12px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0,61,165,0.08);
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 20px 52px rgba(10,22,40,0.19), 0 4px 14px rgba(0,61,165,0.08);
    opacity: 0;
    transform: translateY(var(--bcsm-chat-stack-shift)) scale(var(--bcsm-chat-panel-scale));
    transform-origin: bottom right;
    pointer-events: none;
    transition: opacity var(--bcsm-chat-panel-opacity-duration) var(--bcsm-chat-ease-out),
                transform var(--bcsm-chat-panel-scale-duration) var(--bcsm-chat-ease-out);
    z-index: 1;
}
.bcsm-chat-panel[hidden] { display: none; }
.bcsm-chat-panel[data-state="open"] {
    --bcsm-chat-panel-scale: 1;
    opacity: 1;
    pointer-events: auto;
}
.bcsm-chat-panel.is-expanded {
    width: min(520px, calc(100vw - var(--floating-action-offset) - var(--floating-action-offset)));
    height: min(640px, calc(100dvh - var(--bcsm-chat-panel-bottom) - var(--bcsm-chat-stack-clearance) - var(--bcsm-chat-nav-bottom) - 12px));
}

.bcsm-chat-header {
    position: relative;
    flex: 0 0 62px;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 4px;
    background: var(--floating-action-bg);
    color: #ffffff;
}
.bcsm-chat-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
}
.bcsm-chat-header__controls {
    display: flex;
    align-items: center;
}
.bcsm-chat-control {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    color: #ffffff;
    transition: background-color 160ms ease, transform 140ms cubic-bezier(0.23, 1, 0.32, 1);
}
.bcsm-chat-control svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.bcsm-chat-control:active { transform: scale(0.96); }
.bcsm-chat-control:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: -4px;
}
.bcsm-chat-expand__collapse { display: none; }
.bcsm-chat-control[aria-pressed="true"] .bcsm-chat-expand__expand { display: none; }
.bcsm-chat-control[aria-pressed="true"] .bcsm-chat-expand__collapse { display: block; }

.bcsm-chat-avatar {
    position: absolute;
    top: 34px;
    left: 18px;
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 5px solid #ffffff;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 5px 16px rgba(10,22,40,0.18);
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 200ms var(--bcsm-chat-ease-out) 90ms,
                transform 260ms var(--bcsm-chat-ease-out) 90ms;
    z-index: 2;
}
.bcsm-chat-panel[data-state="open"] .bcsm-chat-avatar {
    opacity: 1;
    transform: scale(1);
}
.bcsm-chat-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    object-fit: cover;
}

.bcsm-chat-conversation {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 50px 16px 18px;
    background: #ffffff;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,61,165,0.3) transparent;
}
.bcsm-chat-conversation::-webkit-scrollbar { width: 6px; }
.bcsm-chat-conversation::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(0,61,165,0.3);
}
.bcsm-chat-message-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}
.bcsm-chat-message {
    max-width: 88%;
    padding: 15px 16px;
    border: 1px solid rgba(15,54,101,0.04);
    border-radius: 6px;
    font-size: 0.91rem;
    line-height: 1.45;
}
.bcsm-chat-message--bot {
    align-self: flex-start;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 6px 16px rgba(24,61,103,0.09);
}
.bcsm-chat-message--user {
    align-self: flex-end;
    border-color: transparent;
    background: var(--floating-action-bg);
    color: #ffffff;
    box-shadow: 0 7px 18px rgba(0,61,165,0.2);
}
.bcsm-chat-message.is-new,
.bcsm-chat-typing.is-new {
    animation: bcsm-chat-message-enter var(--bcsm-chat-message-duration) var(--bcsm-chat-ease-out) both;
}
@keyframes bcsm-chat-message-enter {
    from { opacity: 0.1; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}

.bcsm-chat-typing {
    align-self: flex-start;
    min-width: 56px;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 14px;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(24,61,103,0.09);
}
.bcsm-chat-typing > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--floating-action-bg);
    animation: bcsm-chat-typing-dot var(--bcsm-chat-typing-cycle) ease-in-out infinite;
}
.bcsm-chat-typing > span:nth-child(2) { animation-delay: var(--bcsm-chat-typing-dot-stagger); }
.bcsm-chat-typing > span:nth-child(3) { animation-delay: calc(var(--bcsm-chat-typing-dot-stagger) + var(--bcsm-chat-typing-dot-stagger)); }
@keyframes bcsm-chat-typing-dot {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-4px); }
}

.bcsm-chat-table-card {
    align-self: stretch;
    overflow: hidden;
    border: 1px solid #dce8f8;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(24,61,103,0.1);
}
.bcsm-chat-table-card.is-new {
    animation: bcsm-chat-container-enter var(--bcsm-chat-control-duration) ease both;
}
.bcsm-chat-table-card h3 {
    padding: 11px 13px;
    background: var(--floating-action-bg);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.3;
}
.bcsm-chat-table-wrap {
    animation: bcsm-chat-content-enter var(--bcsm-chat-content-duration) ease both;
    animation-delay: var(--bcsm-chat-content-delay);
}
.bcsm-chat-table-card table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    color: #14243b;
    font-size: 0.73rem;
    line-height: 1.35;
}
.bcsm-chat-table-card tr {
    animation: bcsm-chat-table-row-enter var(--bcsm-chat-message-duration) ease both;
}
.bcsm-chat-table-card tr:nth-child(1) { animation-delay: var(--bcsm-chat-content-delay); }
.bcsm-chat-table-card tr:nth-child(2) { animation-delay: calc(var(--bcsm-chat-content-delay) + var(--bcsm-chat-table-row-stagger)); }
.bcsm-chat-table-card tr:nth-child(3) { animation-delay: calc(var(--bcsm-chat-content-delay) + var(--bcsm-chat-table-row-stagger) + var(--bcsm-chat-table-row-stagger)); }
.bcsm-chat-table-card tr:nth-child(4) { animation-delay: calc(var(--bcsm-chat-content-delay) + var(--bcsm-chat-table-row-stagger) + var(--bcsm-chat-table-row-stagger) + var(--bcsm-chat-table-row-stagger)); }
.bcsm-chat-table-card tr:nth-child(5) { animation-delay: calc(var(--bcsm-chat-content-delay) + var(--bcsm-chat-table-row-stagger) + var(--bcsm-chat-table-row-stagger) + var(--bcsm-chat-table-row-stagger) + var(--bcsm-chat-table-row-stagger)); }
.bcsm-chat-table-card tr:nth-child(6) { animation-delay: calc(var(--bcsm-chat-content-delay) + var(--bcsm-chat-table-row-stagger) + var(--bcsm-chat-table-row-stagger) + var(--bcsm-chat-table-row-stagger) + var(--bcsm-chat-table-row-stagger) + var(--bcsm-chat-table-row-stagger)); }
.bcsm-chat-table-card tr:nth-child(7) { animation-delay: calc(var(--bcsm-chat-content-delay) + var(--bcsm-chat-table-row-stagger) + var(--bcsm-chat-table-row-stagger) + var(--bcsm-chat-table-row-stagger) + var(--bcsm-chat-table-row-stagger) + var(--bcsm-chat-table-row-stagger) + var(--bcsm-chat-table-row-stagger)); }
.bcsm-chat-table-card tr:nth-child(8) { animation-delay: calc(var(--bcsm-chat-content-delay) + var(--bcsm-chat-table-row-stagger) + var(--bcsm-chat-table-row-stagger) + var(--bcsm-chat-table-row-stagger) + var(--bcsm-chat-table-row-stagger) + var(--bcsm-chat-table-row-stagger) + var(--bcsm-chat-table-row-stagger) + var(--bcsm-chat-table-row-stagger)); }
.bcsm-chat-table-card tr:nth-child(even) { background: #f3f7fd; }
.bcsm-chat-table-card th,
.bcsm-chat-table-card td {
    padding: 9px 10px;
    border-bottom: 1px solid #e7eef8;
    vertical-align: top;
    overflow-wrap: anywhere;
}
.bcsm-chat-table-card tr:last-child th,
.bcsm-chat-table-card tr:last-child td { border-bottom: 0; }
.bcsm-chat-table-card th {
    width: 42%;
    color: #173a68;
    font-weight: 650;
    text-align: left;
}
@keyframes bcsm-chat-table-row-enter {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.bcsm-chat-actions {
    flex: 0 0 auto;
    padding: 18px 16px 20px;
    border-top: 1px solid #e7eef8;
    background: #f3f7fd;
}
.bcsm-chat-control-shell {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transform: scale(0.96);
    transform-origin: bottom center;
    transition: grid-template-rows var(--bcsm-chat-control-duration) var(--bcsm-chat-ease-in-out),
                opacity var(--bcsm-chat-control-duration) var(--bcsm-chat-ease-out),
                transform var(--bcsm-chat-control-duration) var(--bcsm-chat-ease-out);
}
.bcsm-chat-control-shell.is-visible {
    grid-template-rows: 1fr;
    opacity: 1;
    transform: scale(1);
}
.bcsm-chat-control-shell.is-exiting {
    grid-template-rows: 0fr;
    opacity: 0;
    transform: scale(0.96);
    pointer-events: none;
}
.bcsm-chat-control-content {
    min-height: 0;
    overflow: hidden;
}
.bcsm-chat-choice-list {
    display: grid;
    gap: 8px;
}
.bcsm-chat-action {
    position: relative;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 3px;
    background: var(--floating-action-bg);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: background-color 160ms ease, box-shadow 160ms ease,
                transform 140ms cubic-bezier(0.23, 1, 0.32, 1),
                opacity 180ms ease;
}
.bcsm-chat-action:active { transform: scale(0.98); }
.bcsm-chat-action:focus-visible {
    outline: 3px solid var(--floating-action-bg);
    outline-offset: 2px;
}
.bcsm-chat-action:disabled:not(.is-selected),
.bcsm-chat-action[aria-disabled="true"]:not(.is-selected) { opacity: 0.56; }
.bcsm-chat-action.is-selected {
    background: var(--primary-dark);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.85) inset, 0 7px 18px rgba(0,61,165,0.24);
    opacity: 1;
}
.bcsm-chat-action__check {
    width: 0;
    overflow: hidden;
    opacity: 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    transition: width var(--bcsm-chat-check-duration) ease,
                opacity var(--bcsm-chat-check-duration) ease;
}
.bcsm-chat-action.is-selected .bcsm-chat-action__check {
    width: 20px;
    opacity: 1;
}
.bcsm-chat-action__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.bcsm-chat-action__destination {
    color: rgba(255,255,255,0.82);
    font-size: 0.7rem;
    font-weight: 400;
    line-height: 1.2;
}
.bcsm-chat-control-shell.is-visible .bcsm-chat-choice-list .bcsm-chat-action {
    animation: bcsm-chat-choice-enter var(--bcsm-chat-control-duration) var(--bcsm-chat-ease-out) both;
}
.bcsm-chat-choice-list .bcsm-chat-action:nth-child(1) { animation-delay: var(--bcsm-chat-choice-first-delay); }
.bcsm-chat-choice-list .bcsm-chat-action:nth-child(2) { animation-delay: calc(var(--bcsm-chat-choice-first-delay) + var(--bcsm-chat-choice-stagger)); }
.bcsm-chat-choice-list .bcsm-chat-action:nth-child(3) { animation-delay: calc(var(--bcsm-chat-choice-first-delay) + var(--bcsm-chat-choice-stagger) + var(--bcsm-chat-choice-stagger)); }
.bcsm-chat-choice-list .bcsm-chat-action:nth-child(4) { animation-delay: calc(var(--bcsm-chat-choice-first-delay) + var(--bcsm-chat-choice-stagger) + var(--bcsm-chat-choice-stagger) + var(--bcsm-chat-choice-stagger)); }
.bcsm-chat-choice-list .bcsm-chat-action:nth-child(5) { animation-delay: calc(var(--bcsm-chat-choice-first-delay) + var(--bcsm-chat-choice-stagger) + var(--bcsm-chat-choice-stagger) + var(--bcsm-chat-choice-stagger) + var(--bcsm-chat-choice-stagger)); }
.bcsm-chat-choice-list .bcsm-chat-action:nth-child(6) { animation-delay: calc(var(--bcsm-chat-choice-first-delay) + var(--bcsm-chat-choice-stagger) + var(--bcsm-chat-choice-stagger) + var(--bcsm-chat-choice-stagger) + var(--bcsm-chat-choice-stagger) + var(--bcsm-chat-choice-stagger)); }
@keyframes bcsm-chat-choice-enter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes bcsm-chat-container-enter {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes bcsm-chat-content-enter {
    from { opacity: 0; }
    to { opacity: 1; }
}

.bcsm-chat-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (hover: hover) and (pointer: fine) {
    .bcsm-chat-launcher:hover {
        background: var(--floating-action-bg-hover);
        box-shadow: var(--floating-action-shadow-hover);
        transform: translateY(calc(var(--bcsm-chat-stack-shift) - 2px)) scale(var(--bcsm-chat-launcher-scale));
    }
    .bcsm-chat-control:hover { background: rgba(255,255,255,0.14); }
    .bcsm-chat-action:not(:disabled):not([aria-disabled="true"]):hover {
        background: var(--floating-action-bg-hover);
        box-shadow: 0 6px 14px rgba(0,61,165,0.18);
    }
}

/* ===== ENHANCED PRIMARY BUTTON ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

/* ===== ENHANCED SERVICE CARDS — persistent subtle accent ===== */
.service-card::before {
    transform: scaleX(1);
    opacity: 0.18;
    height: 2px;
    transition: opacity 0.35s ease, height 0.35s ease;
}
.service-card:hover::before {
    opacity: 1;
    height: 3px;
}

/* ===== SECTION LABEL — dual gradient ===== */
.section-label {
    background: linear-gradient(135deg, rgba(0,61,165,0.1) 0%, rgba(0,166,81,0.06) 100%);
    border: 1px solid rgba(0,61,165,0.1);
}

/* ===== GRADIENT STAT NUMBERS ===== */
.stat-number {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== FEATURE ITEMS — hover state ===== */
.feature-item {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}
.feature-item:hover {
    background: rgba(0,61,165,0.04);
}

/* ===== PAGE HERO — bottom accent bar ===== */
.page-hero {
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary) 0%, rgba(0,166,81,0.35) 60%, transparent 100%);
}

/* ===== VALUE CARDS — icon scale ===== */
.value-icon {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}
.value-card:hover .value-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 28px var(--value-glow);
}

/* ===== LOGO CARDS — image scale ===== */
.logo-card img {
    transition: filter 0.35s, opacity 0.35s, transform 0.35s;
}
.logo-card:hover img {
    transform: scale(1.07);
}

/* ===== CTA SECTION — extra decorative orb ===== */
.cta-section::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.025);
    border-radius: 50%;
    pointer-events: none;
}

/* ===== FORM — refined focus ring ===== */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    box-shadow: 0 0 0 3px rgba(0,61,165,0.12), 0 1px 4px rgba(0,0,0,0.06);
}

/* ===== NAV CTA — subtle pulse attention ===== */
@keyframes cta-pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(0,61,165,0.2); }
    50%       { box-shadow: 0 4px 24px rgba(0,61,165,0.42); }
}
.nav-cta { animation: cta-pulse 3s ease infinite; }
.nav-cta:hover { animation: none; }

/* ===== TRUST LOGO — scale on hover ===== */
.trust-logo {
    transition: opacity 0.3s, filter 0.3s, transform 0.3s;
}
.trust-logo:hover { transform: scale(1.08); }

/* ===== BREADCRUMB SEPARATOR — chevron style ===== */
.breadcrumb span { margin: 0 10px; }

/* ===== PACK CARD ICON ===== */
.pack-card h3 i { transition: transform 0.3s; }
.pack-card:hover h3 i { transform: scale(1.15) rotate(-5deg); }

/* ===== BACK TO TOP — mobile ===== */
@media (max-width: 640px) {
    :root {
        --floating-action-offset: 20px;
        --floating-action-size: 44px;
    }
    .bcsm-chat-widget { --bcsm-chat-center-offset: 8px; }
    .bcsm-chat-panel,
    .bcsm-chat-panel.is-expanded {
        width: min(360px, calc(100% - 24px));
    }
    .bcsm-chat-panel.is-expanded {
        height: calc(100dvh - var(--bcsm-chat-panel-bottom) - var(--bcsm-chat-stack-clearance) - var(--bcsm-chat-nav-bottom) - 12px);
    }
}

/* ===== REDUCED MOTION — extend for new elements ===== */
@media (prefers-reduced-motion: reduce) {
    .scroll-progress { transition: none; }
    .scroll-top-btn { transition: opacity 0.01ms; transform: none; }
    .bcsm-chat-launcher,
    .bcsm-chat-launcher__icon,
    .bcsm-chat-panel,
    .bcsm-chat-avatar,
    .bcsm-chat-control,
    .bcsm-chat-action,
    .bcsm-chat-control-shell,
    .bcsm-chat-action__check {
        transition-duration: 0.01ms !important;
        transform: none !important;
    }
    .bcsm-chat-message.is-new,
    .bcsm-chat-typing.is-new,
    .bcsm-chat-typing > span,
    .bcsm-chat-table-card.is-new,
    .bcsm-chat-table-wrap,
    .bcsm-chat-table-card tr,
    .bcsm-chat-control-shell.is-visible .bcsm-chat-choice-list .bcsm-chat-action { animation: none; }
    .nav-cta { animation: none; }
    .js-anim .fade-up { transition: none; opacity: 1; transform: none; }
    .js-anim .delay-1,
    .js-anim .delay-2,
    .js-anim .delay-3,
    .js-anim .delay-4 { transition-delay: 0ms; }
    .value-icon { transition: none; }
    .service-flip-card-inner { transition: none !important; }
}

/* ============================================================
   DARK MODE
   ============================================================ */

/* ----- Smooth theme transitions ----- */
body,
.service-card, .value-card, .pack-card, .timeline-content, .stats-card,
.contact-form, .logo-card, .footer, .trust-bar, .breadcrumb,
.form-group input, .form-group textarea, .form-group select {
    transition: background-color 0.3s ease, color 0.3s ease,
                border-color 0.3s ease, box-shadow 0.3s ease;
}
.navbar, .nav-panel, .dropdown, .language-switcher, .lang-btn, .theme-toggle {
    transition: background-color 0.15s ease, color 0.15s ease,
                border-color 0.15s ease, box-shadow 0.15s ease;
}

/* ----- Toggle button ----- */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,61,165,0.06);
    border: 1px solid rgba(0,61,165,0.12);
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.25s, border-color 0.25s, transform 0.25s, color 0.25s;
}
.theme-toggle:hover {
    background: rgba(0,61,165,0.14);
    border-color: rgba(0,61,165,0.28);
    color: var(--primary);
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 0 12px rgba(0,61,165,0.15);
}

/* ----- Dark theme CSS variables ----- */
[data-theme="dark"] {
    --primary:       #5b9bf8;
    --primary-light: #7aadfa;
    --primary-dark:  #3d7ce0;
    --secondary:     #10d97a;
    --accent:        #f59e0b;
    --dark:          #060d1e;
    --text:          #e2e8f0;
    --text-light:    #94a3b8;
    --bg:            #0f172a;
    --bg-light:      #1a2744;
    --bg-alt:        #152035;
    --border:        #2d3f5a;
    --shadow-sm:     0 1px 2px 0 rgba(0,0,0,0.4);
    --shadow:        0 4px 6px -1px rgba(0,0,0,0.5), 0 2px 4px -1px rgba(0,0,0,0.3);
    --shadow-lg:     0 20px 25px -5px rgba(0,0,0,0.6), 0 10px 10px -5px rgba(0,0,0,0.3);
    --floating-action-bg: #1d4ed8;
    --floating-action-bg-hover: #2563eb;
}

/* ----- Navbar ----- */
[data-theme="dark"] .navbar {
    background: rgba(15,23,42,0.97);
    border-bottom-color: var(--border);
}
[data-theme="dark"] .nav-links a { color: var(--text); }
[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.is-active,
[data-theme="dark"] .nav-links a[aria-current="page"] { color: var(--primary); }
[data-theme="dark"] .nav-links a::after { background: var(--primary); }

/* ----- Dropdown ----- */
[data-theme="dark"] .dropdown {
    background: var(--bg-light);
    border-color: var(--border);
}
[data-theme="dark"] .dropdown li a { color: var(--text); }
[data-theme="dark"] .dropdown li a:hover {
    background: var(--bg-alt);
    color: var(--primary);
}

/* ----- Mobile nav panel ----- */
[data-theme="dark"] .nav-panel { background: var(--bg); }

/* ----- Language switcher ----- */
[data-theme="dark"] .language-switcher {
    background: rgba(91,155,248,0.06);
    border-color: rgba(91,155,248,0.18);
}
[data-theme="dark"] .lang-btn { color: var(--text-light); }
[data-theme="dark"] .lang-btn.active {
    background: #1d4ed8;
    color: white;
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.3);
}
[data-theme="dark"] .lang-sep { color: rgba(148,163,184,0.3); }

/* ----- Theme toggle in dark mode ----- */
[data-theme="dark"] .theme-toggle {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    color: var(--text-light);
}
[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.28);
    color: var(--primary);
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 0 12px rgba(91,155,248,0.25);
}

/* ----- Cards & surfaces ----- */
[data-theme="dark"] .service-card,
[data-theme="dark"] .value-card,
[data-theme="dark"] .pack-card,
[data-theme="dark"] .timeline-content,
[data-theme="dark"] .logo-card {
    background: rgba(21, 32, 53, 0.65);
    border-color: rgba(45, 63, 90, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .value-card:hover,
[data-theme="dark"] .pack-card:hover,
[data-theme="dark"] .timeline-content:hover,
[data-theme="dark"] .logo-card:hover {
    background: rgba(26, 39, 68, 0.85);
    border-color: rgba(91, 155, 248, 0.3);
    box-shadow: 0 20px 25px -5px rgba(91, 155, 248, 0.15), 0 10px 10px -5px rgba(16, 217, 122, 0.08);
}
[data-theme="dark"] .service-card h3 { color: var(--text); }
[data-theme="dark"] .value-card h3 { color: var(--text); }
[data-theme="dark"] .value-card p  { color: var(--text-light); }
[data-theme="dark"] .pack-card li { color: var(--text-light); border-bottom-color: var(--border); }
[data-theme="dark"] .timeline::before { background: var(--border); }
[data-theme="dark"] .timeline-content h3 { color: var(--text); }
[data-theme="dark"] .timeline-content p  { color: var(--text-light); }
[data-theme="dark"] .stats-card { background: var(--bg-light); }
[data-theme="dark"] .stat-label  { color: var(--text-light); }
[data-theme="dark"] .logo-card {
    background: rgba(21, 32, 53, 0.65);
    border-color: rgba(45, 63, 90, 0.8);
}
[data-theme="dark"] .logo-card img    { filter: grayscale(100%) brightness(0.8); opacity: 0.55; }
[data-theme="dark"] .logo-card:hover img { filter: none; opacity: 1; }
[data-theme="dark"] .trust-logo       { filter: grayscale(100%) brightness(0.8); opacity: 0.55; }
[data-theme="dark"] .trust-logo:hover { filter: none; opacity: 1; transform: scale(1.08); }

/* ----- Contact form ----- */
[data-theme="dark"] .contact-form {
    background: var(--bg-light);
    border-color: var(--border);
}
[data-theme="dark"] .contact-form h3   { color: var(--text); }
[data-theme="dark"] .contact-info h3   { color: var(--text); }
[data-theme="dark"] .form-group label  { color: var(--text); }
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
    background: var(--bg);
    border-color: var(--border);
    color: var(--text);
}
[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder { color: var(--text-light); opacity: 1; }
[data-theme="dark"] .form-group select option { background: var(--bg); }

/* ----- Hero ----- */
[data-theme="dark"] .hero {
    background: linear-gradient(135deg, rgba(91,155,248,0.04), rgba(16,217,122,0.02));
}
[data-theme="dark"] .hero-bg {
    background: linear-gradient(135deg, rgba(91,155,248,0.06), rgba(16,217,122,0.03));
}
[data-theme="dark"] .hero-title   { color: var(--text); }
[data-theme="dark"] .hero-subtitle { color: var(--text-light); }

/* ----- Section typography ----- */
[data-theme="dark"] .section-title,
[data-theme="dark"] .content-text h2,
[data-theme="dark"] .content-text h3 { color: var(--text); }
[data-theme="dark"] .section-subtitle,
[data-theme="dark"] .content-text p  { color: var(--text-light); }
[data-theme="dark"] .content-bullets li { color: var(--text); }

/* ----- Section labels ----- */
[data-theme="dark"] .section-label {
    background: linear-gradient(135deg, rgba(91,155,248,0.15) 0%, rgba(16,217,122,0.08) 100%);
    border-color: rgba(91,155,248,0.22);
    color: var(--primary);
}

/* ----- Feature items ----- */
[data-theme="dark"] .feature-item       { color: var(--text); }
[data-theme="dark"] .feature-item span  { color: var(--text-light); }
[data-theme="dark"] #why-bcsm .feature-item strong { color: var(--text); }
[data-theme="dark"] #why-bcsm .feature-item p { color: var(--text-light); }
[data-theme="dark"] .feature-item:hover { background: rgba(91,155,248,0.06); }

/* ----- Trust bar ----- */
[data-theme="dark"] .trust-bar   { border-bottom-color: var(--border); }
[data-theme="dark"] .trust-label { color: var(--text-light); }

/* ----- Breadcrumb ----- */
[data-theme="dark"] .breadcrumb                    { border-bottom-color: var(--border); }
[data-theme="dark"] .breadcrumb [aria-current="page"] { color: var(--text); }

/* ----- Footer ----- */
[data-theme="dark"] .footer {
    background: linear-gradient(135deg, #0f172a 0%, #172040 55%, #0e2457 100%);
    color: var(--text);
}
[data-theme="dark"] .footer-brand p         { color: var(--text-light); }
[data-theme="dark"] .footer-column h3       { color: var(--text); }
[data-theme="dark"] .footer-column a        { color: var(--text-light); }
[data-theme="dark"] .footer-column a:hover  { color: var(--primary); }
[data-theme="dark"] .footer-contact-item    { color: var(--text-light); }
[data-theme="dark"] .footer-contact-item a  { color: var(--text-light); }
[data-theme="dark"] .footer-contact-item a:hover { color: var(--primary); }
[data-theme="dark"] .footer-bottom {
    color: var(--text-light);
    border-top-color: var(--border);
}
[data-theme="dark"] .footer-legal a,
[data-theme="dark"] .footer-legal button {
    color: var(--text-light);
}
[data-theme="dark"] .footer-legal a:hover,
[data-theme="dark"] .footer-legal button:hover {
    color: var(--primary);
}
[data-theme="dark"] .footer-social a {
    background: rgba(255,255,255,0.06);
    color: var(--text-light);
}
[data-theme="dark"] .footer-social a:hover {
    background: var(--primary);
    color: white;
}

/* ----- Buttons in Dark Mode ----- */
[data-theme="dark"] .btn-primary {
    background: #1d4ed8;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(29, 78, 216, 0.35);
}
[data-theme="dark"] .btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 8px 25px rgba(29, 78, 216, 0.5);
}
[data-theme="dark"] .btn-secondary {
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.4);
    background: transparent;
}
[data-theme="dark"] .btn-secondary:hover {
    border-color: #60a5fa;
    background: rgba(96, 165, 250, 0.08);
}
[data-theme="dark"] .btn-white {
    background: #1e293b;
    color: #ffffff;
    border: 1px solid var(--border);
}
[data-theme="dark"] .btn-white:hover {
    background: #334155;
}
[data-theme="dark"] .nav-cta {
    background: #1d4ed8;
    color: #ffffff !important;
}
[data-theme="dark"] .nav-cta:hover {
    background: #2563eb;
    box-shadow: 0 4px 15px rgba(29, 78, 216, 0.3);
}

/* ----- Large structural sections in Dark Mode ----- */
[data-theme="dark"] .page-hero {
    background: linear-gradient(135deg, #091326 0%, #10203a 100%);
    border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .about-hero {
    background:
        url("../images/about-port-background.png") center / cover no-repeat,
        #091326;
}
[data-theme="dark"] .laboratory-hero {
    background:
        url("../images/hero_lab.jpg") center / cover no-repeat,
        #0a1628;
}
[data-theme="dark"] .training-hero {
    background:
        url("../images/hero_training.png") center / cover no-repeat,
        #0a1628;
}
[data-theme="dark"] .consulting-hero {
    background:
        url("../images/hero_consulting_new.png") center / cover no-repeat,
        #0a1628;
}
[data-theme="dark"] .inspection-hero {
    background:
        url("../images/hero_inspection.jpg") center / cover no-repeat,
        #0a1628;
}
[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, #091326 0%, #10203a 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .cookie-banner__content {
    background: rgba(15, 23, 42, 0.98);
    border-color: var(--border);
}
[data-theme="dark"] .legal-section h2,
[data-theme="dark"] .cookie-banner__text h2 {
    color: var(--text);
}
[data-theme="dark"] .legal-document-link {
    color: var(--primary-light);
}
[data-theme="dark"] .legal-document-link:hover {
    color: #ffffff;
}
[data-theme="dark"] .legal-sidebar {
    background: #0f172a;
    border: 1px solid var(--border);
}

/* ----- Misc UI ----- */
[data-theme="dark"] .skip-link { background: #1d4ed8; }
[data-theme="dark"] :focus-visible { outline-color: rgba(91,155,248,0.6); }

/* ----- Mobile: larger toggle hit area ----- */
@media (max-width: 991px) {
    .theme-toggle { align-self: flex-start; }
}
