/* ============================================================
   Transport Naceur — v2 (Augment-style)
   Dark, technical, premium logistics landing
   ============================================================ */

:root {
    --bg: #07080C;
    --bg-1: #0B0D14;
    --bg-2: #10131C;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-2: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);

    --text: #E7EAF0;
    --text-dim: #9AA3B2;
    --text-faint: #5C6373;

    --primary: #2DD4BF;        /* turquoise — kept from STN brand */
    --primary-glow: rgba(45, 212, 191, 0.35);
    --accent: #F97316;         /* warm orange — petroleum */
    --accent-soft: rgba(249, 115, 22, 0.15);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    --container: 1240px;
    --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 30px 60px -30px rgba(0,0,0,0.6);

    --header-scrolled-bg: rgba(7, 8, 12, 0.7);
    --overlay-strong: var(--overlay-strong);
    --grid-line: rgba(255,255,255,0.025);
    --grid-bg-image:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(45,212,191,0.08), transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 30%, rgba(249,115,22,0.05), transparent 60%),
        linear-gradient(180deg, #07080C 0%, #0B0D14 50%, #07080C 100%);
}

/* ----------- Light theme ----------- */
[data-theme="light"] {
    --bg: #F7F8FB;
    --bg-1: #FFFFFF;
    --bg-2: #EEF1F6;
    --surface: rgba(15, 23, 42, 0.04);
    --surface-2: rgba(15, 23, 42, 0.07);
    --border: rgba(15, 23, 42, 0.10);
    --border-strong: rgba(15, 23, 42, 0.20);

    --text: #0F172A;
    --text-dim: #475569;
    --text-faint: #94A3B8;

    --primary: #0D9488;
    --primary-glow: rgba(13, 148, 136, 0.30);
    --accent: #EA580C;
    --accent-soft: rgba(234, 88, 12, 0.12);

    --shadow-card: 0 1px 0 rgba(255,255,255,0.6) inset, 0 20px 50px -25px rgba(15,23,42,0.18);
    --header-scrolled-bg: rgba(255, 255, 255, 0.75);
    --overlay-strong: rgba(15,23,42,0.55);
    --grid-line: rgba(15,23,42,0.05);
    --grid-bg-image:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(13,148,136,0.10), transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 30%, rgba(234,88,12,0.07), transparent 60%),
        linear-gradient(180deg, #F7F8FB 0%, #FFFFFF 50%, #F7F8FB 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

/* ----------- Theme toggle button ----------- */
.theme-toggle {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 15px;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover {
    background: var(--surface-2);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline-block; }
[data-theme="light"] .theme-toggle .icon-sun { display: inline-block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ----------------------------------------------------------
   Background atmosphere
   ---------------------------------------------------------- */
.grid-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    will-change: transform; /* promote to own compositor layer */
    background: var(--grid-bg-image);
    transition: background 0.4s ease;
    contain: layout style paint; /* isolate from main layout */
}

.grid-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 100% 80% at 50% 30%, #000 30%, transparent 80%);
}

.noise {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.025;
    contain: strict; /* skip layout/paint recalc for this overlay */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}


/* ----------------------------------------------------------
   Header
   ---------------------------------------------------------- */
#header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 14px 0;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

#header.scrolled {
    background: var(--header-scrolled-bg);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-bottom-color: var(--border);
}

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: brightness(1.1);
}

.brand-text {
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.01em;
}

.brand-text-accent { color: var(--primary); }

#header nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

#header nav ul {
    list-style: none;
    margin: 0; padding: 6px;
    display: flex;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

#header nav a {
    display: block;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

#header nav a:hover {
    color: var(--text);
    background: var(--surface-2);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--text);
    color: var(--bg);
    font-weight: 600;
    font-size: 14px;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px -10px rgba(255,255,255,0.3);
}

.header-cta i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.header-cta:hover i { transform: translateX(3px); }

.mobile-toggle {
    display: none;
    width: 40px; height: 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.mobile-toggle span {
    width: 18px; height: 1.5px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 200;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px var(--primary-glow);
}


/* ----------------------------------------------------------
   Buttons
   ---------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(180deg, var(--primary), #14B8A6);
    color: #04201D;
    box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 10px 30px -10px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 20px 40px -10px var(--primary-glow);
}

.btn-ghost {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--surface-2);
    border-color: var(--border-strong);
}

.btn-block { width: 100%; }


/* ----------------------------------------------------------
   Hero
   ---------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 140px 24px 80px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-visual-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Soft ambient glow orbs */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
    will-change: transform;
    animation: glow-drift 12s ease-in-out infinite alternate;
}

.hero-glow--1 {
    width: 600px; height: 600px;
    background: var(--primary);
    top: -15%; left: -10%;
    animation-duration: 14s;
}

.hero-glow--2 {
    width: 400px; height: 400px;
    background: var(--accent);
    top: 20%; right: -5%;
    opacity: 0.12;
    animation-duration: 10s;
    animation-delay: -4s;
}

.hero-glow--3 {
    width: 500px; height: 350px;
    background: var(--primary);
    bottom: -10%; left: 35%;
    opacity: 0.10;
    animation-duration: 16s;
    animation-delay: -8s;
}

@keyframes glow-drift {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(30px, -20px) scale(1.08); }
    100% { transform: translate(-20px, 30px) scale(0.95); }
}

/* Particle dots */
.hero-particles {
    position: absolute;
    inset: 0;
}

.hero-particle {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
    animation: particle-float linear infinite;
}

@keyframes particle-float {
    0%   { transform: translateY(0) scale(1);   opacity: inherit; }
    50%  { transform: translateY(-30px) scale(1.3); }
    100% { transform: translateY(0) scale(1);   opacity: inherit; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-dim);
    backdrop-filter: blur(10px);
    margin-bottom: 32px;
}

.hero-badge-dot {
    width: 6px; height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--primary-glow);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
    font-size: clamp(40px, 7vw, 88px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.02;
    margin: 0 0 28px;
}

.hero-line {
    display: block;
    overflow: hidden;
}

.hero-line-accent {
    background: linear-gradient(120deg, var(--primary) 0%, #5EEAD4 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 100%;
    animation: gradient-shift 6s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-sub {
    font-size: clamp(16px, 1.4vw, 19px);
    color: var(--text-dim);
    max-width: 680px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-cta-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    padding: 20px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.hero-meta-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-meta-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.02em;
}

.hero-meta-label {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-meta-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-faint);
}

.hero-scroll-line {
    width: 1px;
    height: 30px;
    background: linear-gradient(180deg, var(--text-faint), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}


/* ----------------------------------------------------------
   Section primitives
   ---------------------------------------------------------- */
section { padding: 120px 0; position: relative; }

/* Skip layout+paint for off-screen sections — huge FCP/LCP gain */
.bento, .services, .fleet, .about, .testimonials, .certifications, .contact {
    content-visibility: auto;
    contain-intrinsic-size: 0 800px;
}

.section-head {
    text-align: center;
    margin-bottom: 64px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 999px;
    margin-bottom: 20px;
    font-family: var(--font-mono);
}

.section-title {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin: 0 0 16px;
}

.section-sub {
    font-size: 17px;
    color: var(--text-dim);
    margin: 0;
    line-height: 1.6;
}


/* ----------------------------------------------------------
   Bento grid (Stats)
   ---------------------------------------------------------- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.bento-card {
    position: relative;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    background: var(--surface-2);
}
.bento-card {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.bento-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 0%, var(--primary-glow), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.bento-card:hover::before { opacity: 0.4; }

.bento-card--lg { grid-column: span 2; grid-row: span 2; min-height: 320px; }
.bento-card--wide { grid-column: span 2; }

.bento-icon {
    width: 44px; height: 44px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 24px;
}

.bento-stat {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 10px;
    color: var(--text);
}

.bento-card--lg .bento-stat { font-size: clamp(56px, 7vw, 88px); }

.bento-stat-suffix {
    color: var(--primary);
    margin-left: 4px;
}

.bento-label {
    font-size: 14px;
    color: var(--text-dim);
    font-weight: 500;
}

.bento-desc {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-faint);
    line-height: 1.5;
}

.bento-corner-dot {
    position: absolute;
    top: 24px; right: 24px;
    width: 8px; height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 16px var(--primary-glow);
}


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

.service-card {
    position: relative;
    padding: 36px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    background: var(--surface-2);
}

.service-num {
    position: absolute;
    top: 28px;
    right: 32px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-faint);
    letter-spacing: 0.1em;
}

.service-icon {
    width: 56px; height: 56px;
    background: linear-gradient(180deg, var(--primary-glow), transparent);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 22px;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-dim);
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.6;
}

.service-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.service-bullets li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 14px;
}

.service-bullets i {
    color: var(--primary);
    font-size: 11px;
    width: 18px; height: 18px;
    background: var(--primary-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ----------------------------------------------------------
   Fleet
   ---------------------------------------------------------- */
.fleet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.fleet-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.fleet-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.fleet-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.fleet-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.fleet-card:hover .fleet-image img { transform: scale(1.05); }

.fleet-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, var(--overlay-strong) 100%);
}

.fleet-tag {
    position: absolute;
    top: 16px; left: 16px;
    padding: 6px 12px;
    background: var(--overlay-strong);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    backdrop-filter: blur(10px);
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fleet-info { padding: 28px; }

.fleet-info h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.fleet-info p {
    color: var(--text-dim);
    margin: 0 0 20px;
    font-size: 15px;
}

.fleet-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.fleet-spec {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-dim);
}

.fleet-spec i { color: var(--primary); font-size: 12px; }


/* ----------------------------------------------------------
   About
   ---------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text .section-tag { margin-bottom: 16px; }
.about-text .section-title { text-align: left; margin-bottom: 24px; }

.about-text p {
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 16px;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 32px 0;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.about-value {
    display: flex;
    align-items: center;
    gap: 16px;
}

.about-value i {
    width: 40px; height: 40px;
    background: var(--surface-2);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 16px;
    flex-shrink: 0;
}

.about-value strong {
    display: block;
    color: var(--text);
    font-size: 15px;
}

.about-value span {
    color: var(--text-faint);
    font-size: 13px;
}

.about-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
    border: 1px solid var(--border);
}

.about-visual img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.about-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, var(--image-fade, rgba(7,8,12,0.6)) 100%);
}

.about-visual-card {
    position: absolute;
    bottom: 24px; left: 24px;
    padding: 20px 24px;
    background: var(--overlay-strong);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    z-index: 1;
}

.about-visual-card-num {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.03em;
}

.about-visual-card-label {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 6px;
}


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

.testimonial-card {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.testimonial-card--featured {
    background: linear-gradient(180deg, rgba(45,212,191,0.08), var(--surface));
    border-color: rgba(45,212,191,0.2);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 14px;
}

.testimonial-card blockquote {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
}

.testimonial-card blockquote::before { content: "“"; color: var(--primary); font-size: 24px; margin-right: 4px; }
.testimonial-card blockquote::after { content: "”"; color: var(--primary); font-size: 24px; margin-left: 4px; }

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.testimonial-avatar {
    width: 40px; height: 40px;
    background: var(--surface-2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dim);
}

.testimonial-author strong {
    display: block;
    font-size: 14px;
    color: var(--text);
}

.testimonial-author span {
    font-size: 12px;
    color: var(--text-faint);
}


/* ----------------------------------------------------------
   Certifications
   ---------------------------------------------------------- */
.certif-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.certif-card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.certif-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.certif-icon {
    width: 48px; height: 48px;
    background: var(--accent-soft);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    font-size: 20px;
    margin-bottom: 20px;
}

.certif-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.certif-card p {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}


/* ----------------------------------------------------------
   Contact
   ---------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: start;
}

.contact-info .section-tag { margin-bottom: 16px; }
.contact-info .section-title { text-align: left; margin-bottom: 16px; }

.contact-lead {
    color: var(--text-dim);
    font-size: 16px;
    margin: 0 0 32px;
    line-height: 1.6;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.info-item {
    display: flex;
    gap: 16px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s ease;
}

.info-item:hover { border-color: var(--border-strong); }

.info-icon {
    width: 44px; height: 44px;
    background: var(--surface-2);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 16px;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 13px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 4px;
    font-weight: 600;
}

.info-item p {
    color: var(--text);
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.info-item a { color: var(--text); }
.info-item a:hover { color: var(--primary); }

.contact-form {
    padding: 36px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.contact-form h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 24px;
    letter-spacing: -0.01em;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.2s ease, background 0.2s ease;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-2);
}

#form-message {
    margin-top: 16px;
    font-size: 14px;
    text-align: center;
}

#form-message.success { color: var(--primary); }
#form-message.error { color: #F87171; }


/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
footer {
    border-top: 1px solid var(--border);
    padding: 80px 0 32px;
    background: linear-gradient(180deg, transparent, var(--footer-fade, rgba(7,8,12,0.5)));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--text-dim);
    margin: 16px 0 20px;
    font-size: 14px;
    line-height: 1.6;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 8px;
}

.footer-social a {
    width: 38px; height: 38px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dim);
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 13px;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 20px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    color: var(--text-dim);
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--primary); }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-dim);
    font-size: 14px;
}

.footer-contact i {
    color: var(--primary);
    width: 16px;
    margin-top: 4px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: var(--text-faint);
    font-size: 13px;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--text-faint);
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-legal a:hover { color: var(--text-dim); }


/* ----------------------------------------------------------
   Floating elements
   ---------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px; height: 56px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    z-index: 90;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s ease;
}

.whatsapp-float:hover { transform: scale(1.1); }

.whatsapp-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    animation: whatsapp-pulse 2s ease-out infinite;
    z-index: -1;
}

@keyframes whatsapp-pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.6); opacity: 0; }
}

#scrollTop {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 44px; height: 44px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    font-size: 14px;
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s ease;
    backdrop-filter: blur(10px);
}

#scrollTop.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#scrollTop:hover { border-color: var(--primary); color: var(--primary); }


/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-card--lg, .bento-card--wide { grid-column: span 2; }
    .bento-card--lg { grid-row: auto; min-height: 220px; }
    .service-grid { grid-template-columns: 1fr; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .certif-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .fleet-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    section { padding: 80px 0; }
    .hero { padding-top: 110px; }
    #header nav { display: none; }
    #header nav[style*="display: flex"] { display: flex !important; } /* reveal via JS */
    .header-cta span { display: none; }
    .mobile-toggle { display: flex; }
    .hero-meta { gap: 16px; padding: 16px 20px; flex-wrap: wrap; justify-content: center; }
    .hero-meta-divider { display: none; }
    .hero-cta-row .btn { width: 100%; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-card--lg, .bento-card--wide { grid-column: auto; }
    .certif-grid { grid-template-columns: 1fr; }
    /* Legal pages */
    .legal-page { padding: 130px 0 80px; }
    .legal-content { padding: 0 16px; }
    .legal-content h1 { font-size: 28px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero { min-height: auto; padding-top: 100px; padding-bottom: 60px; }
    .hero-title { font-size: 28px; }
    .hero-sub { font-size: 15px; }
    .hero-meta-num { font-size: 22px; }
    .hero-meta-item { align-items: center; }
    .section-title { font-size: 24px; }
    .bento-stat { font-size: 36px; }
    .bento-card { padding: 24px; min-height: auto; }
    .service-card { padding: 28px; }
    .fleet-info { padding: 20px; }
    .contact-form { padding: 24px; }
    .footer-legal { flex-direction: column; align-items: center; gap: 8px; }
    .cert-block { padding: 24px; }
    .cert-block-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}

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


/* ============================================================
   PERFORMANCE HARDENING — GPU-friendly, layout-isolated
   ============================================================ */

/* Cards: promote to composite layer on hover only */
.service-card, .bento-card, .fleet-card, .testimonial-card, .certif-card {
    contain: layout style;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Section containers — isolate from global reflow */
section { contain: layout style; }

/* Fleet images — hardware-accelerated zoom */
.fleet-image img {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Scroll-driven elements — hint the compositor */
.hero-meta, .header-inner {
    will-change: transform;
}

/* Prevent FOUT on font swap */
body {
    font-display: optional;
}

/* Force hardware layer for fixed elements */
#header, #scroll-progress, .whatsapp-float, #scrollTop {
    transform: translateZ(0);
}


/* ============================================================
   Light theme — fine-tuning overrides
   ============================================================ */
[data-theme="light"] {
    --footer-fade: rgba(15, 23, 42, 0.04);
    --image-fade: rgba(15, 23, 42, 0.55);
}

[data-theme="light"] .brand-logo { filter: none; }

[data-theme="light"] .header-cta:hover {
    box-shadow: 0 12px 28px -10px rgba(15, 23, 42, 0.35);
}

[data-theme="light"] .hero-glow { opacity: 0.22; mix-blend-mode: multiply; }
[data-theme="light"] .hero-glow--2 { opacity: 0.20; }
[data-theme="light"] .hero-glow--3 { opacity: 0.18; }

[data-theme="light"] .noise { opacity: 0.04; mix-blend-mode: multiply; }

[data-theme="light"] #header nav ul { background: rgba(255, 255, 255, 0.7); }
[data-theme="light"] #header.scrolled {
    box-shadow: 0 4px 20px -8px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .form-group select {
    background: #FFFFFF;
}
[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus,
[data-theme="light"] .form-group select:focus {
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

[data-theme="light"] #form-message.error { color: #DC2626; }

[data-theme="light"] .bento-card,
[data-theme="light"] .service-card,
[data-theme="light"] .fleet-card,
[data-theme="light"] .testimonial-card,
[data-theme="light"] .certif-block,
[data-theme="light"] .cert-block,
[data-theme="light"] .info-block,
[data-theme="light"] .contact-form {
    background: #FFFFFF;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -16px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .bento-card:hover,
[data-theme="light"] .service-card:hover,
[data-theme="light"] .fleet-card:hover,
[data-theme="light"] .testimonial-card:hover {
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 20px 40px -20px rgba(15, 23, 42, 0.18);
}

[data-theme="light"] .testimonial-card--featured {
    background: linear-gradient(180deg, rgba(13, 148, 136, 0.06), #FFFFFF);
    border-color: rgba(13, 148, 136, 0.25);
}

[data-theme="light"] .hero-badge {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(15, 23, 42, 0.10);
}

[data-theme="light"] .btn-ghost { background: #FFFFFF; }
[data-theme="light"] .btn-ghost:hover { background: #F1F5F9; }

[data-theme="light"] #scrollTop {
    box-shadow: 0 8px 20px -8px rgba(15, 23, 42, 0.25);
}

[data-theme="light"] .about-visual-card {
    background: rgba(255, 255, 255, 0.85);
    color: var(--text);
}
[data-theme="light"] .about-visual-card-label { color: var(--text-dim); }

[data-theme="light"] .fleet-tag { background: rgba(255, 255, 255, 0.85); }

[data-theme="light"] .cta-band {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.07), rgba(234, 88, 12, 0.05));
}

[data-theme="light"] .err-orbit { border-color: rgba(13, 148, 136, 0.18); }

