/* ============================================
   TRUST ENERGY — Professional Unified Stylesheet
   Rebuilt 2026 · Modern CSS with Custom Properties
   
   Pages: Landing Page + Battery Calculator
   Palette: Purple-blue gradient · Energy green accent · Amber battery accent
   ============================================ */

/* ── Design Tokens ─────────────────────────── */
:root {
    /* Brand Colors */
    --primary: #667eea;
    --primary-dark: #5a6fd6;
    --primary-rgb: 102, 126, 234;
    --secondary: #764ba2;
    --secondary-rgb: 118, 75, 162;

    /* Accent Colors */
    --accent: #4ade80;
    --accent-dark: #22c55e;
    --accent-rgb: 74, 222, 128;
    --amber: #f59e0b;
    --amber-dark: #d97706;
    --amber-rgb: 245, 158, 11;

    /* Neutrals */
    --text-dark: #1e293b;
    --text-body: #334155;
    --text-light: #475569;
    --text-muted: #64748b;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.2);

    /* Shadows */
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);

    /* Radii */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 100px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.3s var(--ease);
    --transition-slow: 0.5s var(--ease);

    /* Layout */
    --nav-height: 72px;
    --container-max: 1200px;
    --container-narrow: 800px;
}


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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-body);
    background: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.6;
}

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

a { color: inherit; }

/* ── Layout Containers ─────────────────────── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

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


/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: background var(--transition), box-shadow var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

/* Logo — Image-based */
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo-img {
    height: 48px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: transform var(--transition), filter var(--transition);
    /* On dark hero background, brighten to make logo visible */
    filter: brightness(1.15);
}

.nav-logo:hover .nav-logo-img {
    transform: scale(1.03);
}

/* When navbar is scrolled (white bg), show logo at normal brightness */
.navbar.scrolled .nav-logo-img {
    filter: brightness(1);
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    font-weight: 600;
    transition: color var(--transition);
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
    border-radius: 1px;
}

.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: white; }

.navbar.scrolled .nav-link { color: var(--text-body); }
.navbar.scrolled .nav-link:hover { color: var(--primary); }
.navbar.scrolled .nav-link::after { background: var(--primary); }

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 4px;
    z-index: 10;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all var(--transition);
    transform-origin: center;
}

.navbar.scrolled .mobile-toggle span { background: var(--text-dark); }

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 4px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
}

.mobile-menu.active { display: flex; }

.mobile-link {
    text-decoration: none;
    color: var(--text-body);
    font-size: 15px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
}

.mobile-link:hover {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
}


/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    padding: 120px 24px 100px;
}

/* Animated Background */
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.float-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: floatOrb 20s ease-in-out infinite;
    will-change: transform;
}

.orb-1 {
    width: 400px; height: 400px;
    background: rgba(var(--accent-rgb), 0.4);
    top: -100px; right: -100px;
}

.orb-2 {
    width: 300px; height: 300px;
    background: rgba(var(--secondary-rgb), 0.5);
    bottom: -50px; left: -50px;
    animation-delay: -7s;
}

.orb-3 {
    width: 200px; height: 200px;
    background: rgba(var(--primary-rgb), 0.4);
    top: 50%; left: 50%;
    animation-delay: -14s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(40px, 30px) scale(1.02); }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 32px;
}

.hero-badge i { color: var(--accent); }

.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 800;
    color: white;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.title-accent {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.75) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 40px;
    font-weight: 400;
}

/* Gateway Buttons */
.gateway-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.gateway-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 28px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition);
    min-width: 260px;
    position: relative;
    overflow: hidden;
}

.gateway-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.gateway-btn:hover .btn-arrow { transform: translateX(4px); }

.btn-thuis {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}
.btn-thuis:hover { background: #f0f4ff; }

.btn-ondernemer {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}
.btn-ondernemer:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.btn-thuis .btn-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.btn-ondernemer .btn-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-content {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-label { font-size: 16px; font-weight: 700; line-height: 1.3; }
.btn-desc { font-size: 12px; font-weight: 400; opacity: 0.7; }

.btn-arrow {
    margin-left: auto;
    font-size: 14px;
    opacity: 0.5;
    transition: transform var(--transition);
    flex-shrink: 0;
}

.hero-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.hero-note i { color: var(--accent); font-size: 12px; }

/* Wave Divider */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0; right: 0;
    line-height: 0;
}
.hero-wave svg { width: 100%; height: 80px; }


/* ============================================
   ENTRANCE ANIMATIONS
   ============================================ */
.animate-in {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.7s var(--ease) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================
   BATTERY CTA SECTION
   ============================================ */
.battery-cta {
    background: var(--bg-light);
    padding: 0 24px;
    padding-top: 20px;
}

.battery-card {
    max-width: 960px;
    margin: -20px auto 0;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 44px 48px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(15, 52, 96, 0.35), 0 0 0 1px rgba(var(--primary-rgb), 0.15);
    overflow: hidden;
}

.battery-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
    background-size: 200% 100%;
    animation: shimmerBar 3s ease-in-out infinite;
}

@keyframes shimmerBar {
    0%, 100% { background-position: 0% 0; }
    50% { background-position: 200% 0; }
}

/* Battery Visual */
.battery-visual {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.battery-icon-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.battery-shell {
    width: 64px; height: 100px;
    border: 3px solid rgba(var(--primary-rgb), 0.5);
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 4px;
}

.battery-cap {
    position: absolute;
    top: -8px; left: 50%;
    transform: translateX(-50%);
    width: 24px; height: 8px;
    background: rgba(var(--primary-rgb), 0.5);
    border-radius: 3px 3px 0 0;
}

.battery-fill {
    width: 100%; height: 15%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 4px;
    animation: chargeFill 2.5s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.battery-pulse {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 60%);
    animation: pulseShine 2.5s ease-in-out infinite;
}

@keyframes chargeFill {
    0% { height: 15%; }
    50% { height: 85%; }
    100% { height: 15%; }
}

@keyframes pulseShine {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.energy-loop {
    display: flex;
    align-items: center;
    gap: 8px;
}

.loop-icon { font-size: 18px; }
.icon-panel { color: var(--amber); }
.icon-battery { color: var(--primary); }
.loop-arc { width: 80px; height: 40px; }

/* Battery Content */
.battery-content { flex: 1; }

.battery-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(var(--amber-rgb), 0.15);
    border: 1px solid rgba(var(--amber-rgb), 0.3);
    border-radius: var(--radius-full);
    color: #fbbf24;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.battery-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: white;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.battery-accent {
    background: linear-gradient(135deg, #93c5fd 0%, #c4b5fd 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.battery-content p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 24px;
    max-width: 480px;
}

.battery-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
    color: #1a1a2e;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(var(--amber-rgb), 0.35);
}

.battery-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(var(--amber-rgb), 0.5);
    background: linear-gradient(135deg, #fbbf24 0%, var(--amber) 100%);
}

.battery-btn .btn-arrow {
    opacity: 0.6;
    transition: transform var(--transition);
}

.battery-btn:hover .btn-arrow {
    transform: translateX(4px);
    opacity: 1;
}

.battery-note {
    display: block;
    margin-top: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
}


/* ============================================
   SHARED SECTION STYLES
   ============================================ */
.section {
    padding: 100px 24px;
}

.section-light { background: var(--bg-light); }
.section-gradient { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-tag.light {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.section-header.light .section-title { color: white; }


/* ============================================
   HOW IT WORKS — Steps
   ============================================ */
.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.step-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
    flex: 1;
    max-width: 320px;
    position: relative;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.step-number {
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    width: 28px; height: 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(var(--primary-rgb), 0.4);
}

.step-icon-wrap {
    width: 64px; height: 64px;
    margin: 0 auto 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08) 0%, rgba(var(--secondary-rgb), 0.08) 100%);
    color: var(--primary);
}

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.step-card p {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.65;
}

.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 16px;
    padding: 0 8px;
    margin-top: 60px;
}


/* ============================================
   WHY TRUST ENERGY — Features
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.feature-card.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.feature-card.glass:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.feature-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-card h3 {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.65;
}


/* ============================================
   TRUST BANNER
   ============================================ */
.trust-banner {
    background: var(--bg-white);
    padding: 60px 24px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-content {
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 32px 36px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.04) 0%, rgba(var(--secondary-rgb), 0.04) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
}

.trust-icon {
    flex-shrink: 0;
    width: 56px; height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3);
}

.trust-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.trust-text p {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.65;
}

.trust-text strong { color: var(--text-dark); }


/* ============================================
   FAQ
   ============================================ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item:hover { border-color: #cbd5e1; }

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 2px 16px rgba(var(--primary-rgb), 0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    text-align: left;
    transition: color var(--transition);
}

.faq-question:hover { color: var(--primary); }

.faq-icon {
    font-size: 12px;
    color: var(--text-light);
    transition: transform var(--transition), color var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item.active .faq-answer { max-height: 300px; }

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.7;
}


/* ============================================
   BOTTOM CTA
   ============================================ */
.bottom-cta { text-align: center; }

.cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: white;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    line-height: 1.2;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
    margin-bottom: 40px;
}

.gateway-bottom { justify-content: center; }
.gateway-bottom .btn-thuis { background: white; color: var(--primary); }
.gateway-bottom .btn-thuis:hover { background: #f0f4ff; }


/* ============================================
   FOOTER
   ============================================ */
footer {
    background: #0f172a;
    color: white;
    padding: 80px 24px 40px;
}

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

.footer-brand { margin-bottom: 0; }

.footer-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 56px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    transition: opacity var(--transition);
    /* Brighten logo on dark footer background for visibility */
    filter: brightness(1.2);
}

.footer-logo:hover .footer-logo-img {
    opacity: 0.85;
}

.footer-tagline {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

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

.footer-col li {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-col li i {
    width: 18px;
    font-size: 12px;
    color: #475569;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-col a:hover { color: white; }

.addr-line2 { margin-left: 18px; }

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 32px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: #475569;
}


/* ============================================
   BATTERY CALCULATOR PAGE
   /batterij/index.html
   ============================================ */

/* Calculator Body Layout */
body.calc-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Calculator Navbar — always white */
.calc-page .navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Calculator page — logo on white navbar, normal brightness */
.calc-page .nav-logo-img {
    filter: brightness(1);
}

.nav-back {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-body);
    font-size: 15px;
    font-weight: 600;
    transition: color var(--transition);
}

.nav-back:hover { color: var(--primary); }

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 56px 24px 72px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.page-header::after {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(var(--amber-rgb), 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 8s ease-in-out infinite;
}

.page-header-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.page-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.page-tag i { color: var(--amber); }

.page-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: white;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 12px;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto;
}

.page-wave {
    position: absolute;
    bottom: -1px;
    left: 0; right: 0;
    line-height: 0;
}
.page-wave svg { width: 100%; height: 60px; }

/* Main Content */
.main-content {
    flex: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    width: 100%;
}

/* Input Card */
.input-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 28px;
}

.input-card h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
}

.input-card h2 i { color: var(--primary); font-size: 16px; }

.input-group { margin-bottom: 28px; }
.input-group:last-child { margin-bottom: 0; }

.input-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.input-label-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}


.input-hint {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 6px;
}

#panelsKwp {
    font-weight: 800 !important;
    color: var(--primary);
}

/* Number Input Fields (alongside sliders) */
.input-value-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-number {
    width: 80px;
    padding: 5px 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 8px;
    text-align: center;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    -moz-appearance: textfield;
}

.input-number::-webkit-outer-spin-button,
.input-number::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-number:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.input-unit {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
}

/* Range Sliders */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--border);
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.4);
    cursor: pointer;
    transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }

input[type="range"]::-moz-range-thumb {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.4);
    cursor: pointer;
    border: none;
}

/* EMS Badge */
.ems-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.06) 0%, rgba(var(--secondary-rgb), 0.06) 100%);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: var(--radius-sm);
}

.ems-badge > i {
    font-size: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.ems-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.ems-desc {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.4;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

/* Recommendation Card */
.recommend-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
}

.recommend-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
    background-size: 200% 100%;
    animation: shimmerBar 3s ease-in-out infinite;
}

.recommend-card::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.recommend-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 28px;
}

.recommend-icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, rgba(var(--amber-rgb), 0.2) 0%, rgba(var(--primary-rgb), 0.2) 100%);
    border: 1px solid rgba(var(--amber-rgb), 0.25);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    color: var(--amber);
}

.recommend-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.recommend-system {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #93c5fd 0%, #c4b5fd 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.recommend-reason {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

/* Stats Cards */
.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.03em;
}

.stat-value .currency { font-size: 0.65em; color: var(--text-light); font-weight: 600; }
.stat-value .unit { font-size: 0.5em; color: var(--text-light); font-weight: 500; }

.stat-detail {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}

.stat-accent-green .stat-value { color: var(--accent-dark); }
.stat-accent-amber .stat-value { color: var(--amber-dark); }

/* Chart Card */
.chart-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 32px;
}

.chart-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.02em;
}

.chart-card h3 i { color: var(--amber); font-size: 14px; }

.chart-wrap {
    position: relative;
    height: 320px;
}

/* Comparison Table */
.comparison-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 32px;
    overflow-x: auto;
}

.comparison-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.02em;
}

.comparison-card h3 i { color: var(--primary); font-size: 14px; }

.comp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.comp-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 12px;
    border-bottom: 2px solid var(--border);
}

.comp-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-dark);
    font-weight: 500;
}

.comp-table tr:last-child td { border-bottom: none; }

.comp-table .recommended-row { background: rgba(var(--amber-rgb), 0.06); }

.comp-table .recommended-row td:first-child {
    position: relative;
    font-weight: 700;
    color: var(--amber-dark);
}

.best-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
    color: #1a1a2e;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Safety Warning */
.safety-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fff7ed 100%);
    border: 1px solid #fbbf24;
    border-left: 4px solid var(--amber);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin-bottom: 32px;
    display: none;
}

.safety-warning.visible { display: block; }

.safety-warning h4 {
    font-size: 15px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.safety-warning h4 i { color: var(--amber); }

.safety-warning p {
    font-size: 14px;
    color: #78350f;
    line-height: 1.65;
}

/* BessQ Referral */
.referral-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 32px;
    display: none;
}

.referral-card.visible { display: block; }

.referral-card h4 {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.referral-card h4 i { color: var(--amber); }

.referral-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 16px;
}

.referral-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
    color: #1a1a2e;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(var(--amber-rgb), 0.3);
}

.referral-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(var(--amber-rgb), 0.4);
}

/* Disclaimer */
.disclaimer {
    background: rgba(var(--primary-rgb), 0.04);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 32px;
}

.disclaimer p {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.7;
}

.disclaimer p i {
    color: var(--primary);
    margin-right: 4px;
}

/* Calculator Footer */
.calc-footer {
    background: #0f172a;
    color: white;
    padding: 40px 24px;
    margin-top: auto;
}

.calc-footer .footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.calc-footer .footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.calc-footer .footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition);
}

.calc-footer .footer-links a:hover { color: white; }

.calc-footer .footer-copy {
    width: 100%;
    text-align: center;
    padding-top: 20px;
    margin-top: 16px;
    border-top: 1px solid #1e293b;
    font-size: 13px;
    color: #475569;
}


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: flex; }

    .hero {
        padding: 100px 20px 80px;
        min-height: auto;
    }

    .hero-title { font-size: clamp(1.8rem, 7vw, 2.6rem); }
    .hero-subtitle { font-size: 15px; }

    .gateway-btn { min-width: 100%; }

    .gateway-buttons {
        flex-direction: column;
        align-items: center;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-note {
        flex-wrap: wrap;
        font-size: 12px;
    }

    .battery-cta {
        padding-top: 32px;
    }

    .battery-card {
        flex-direction: column;
        padding: 32px 24px;
        gap: 28px;
        margin-top: -20px;
    }

    .battery-visual { order: -1; }

    .battery-content { text-align: center; }
    .battery-content p { max-width: 100%; }
    .battery-content h2 { font-size: 1.4rem; }

    .battery-btn { width: 100%; justify-content: center; }
    .battery-note { text-align: center; }

    .section { padding: 64px 20px; }
    .section-header { margin-bottom: 40px; }

    .steps-grid {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .step-card { max-width: 100%; }

    .step-connector {
        transform: rotate(90deg);
        margin: 0;
        padding: 4px 0;
    }

    .features-grid { grid-template-columns: 1fr; }

    .trust-content {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cta-title { font-size: 1.6rem; }

    /* Calculator Responsive */
    .results-grid { grid-template-columns: 1fr; }

    .recommend-inner {
        flex-direction: column;
        text-align: center;
    }

    .input-card { padding: 28px 24px; }

    .input-number { width: 68px; font-size: 14px; }
    .chart-card { padding: 24px 20px; }
    .comparison-card { padding: 24px 20px; }
    .stat-card { padding: 24px; }
    .chart-wrap { height: 260px; }
    .page-header { padding: 40px 20px 56px; }

    .calc-footer .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .calc-footer .footer-links { justify-content: center; }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-badge {
        font-size: 12px;
        padding: 8px 14px;
    }

    .gateway-btn { padding: 16px 20px; }
    .step-card { padding: 32px 24px; }
    .feature-card { padding: 28px 24px; }
    .battery-cta {
        padding-top: 40px;
    }

    .battery-card {
        margin-top: -10px;
    }

    .battery-content h2 { font-size: 1.3rem; }
    .input-card h2 { font-size: 16px; }
    .comp-table { font-size: 13px; }
}


/* ============================================
   UTILITY / ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
