:root {
    --primary-bg: #0b1320;
    --primary-text: #f8fafc;
    --secondary-bg: #111c2e;
    --secondary-text: #94a3b8;
    --accent: #0284c7;
    --accent-hover: #0369a1;
    --accent-text: #ffffff;
    --card-bg: #16233b;
    --card-border: #1e293b;
    --input-bg: #0e1726;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--primary-bg);
    color: var(--primary-text);
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    line-height: 1.6;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--primary-bg);
    color: var(--primary-text);
}

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease, color 0.2s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.25;
}

ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

input,
textarea,
select {
    font-family: inherit;
    font-size: 1rem;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
        line-height: 1.2;
    }

    h2 {
        font-size: clamp(1.5rem, 5vw, 1.875rem);
        line-height: 1.25;
    }

    h3 {
        font-size: clamp(1.25rem, 4vw, 1.5rem);
        line-height: 1.3;
    }

    h4 {
        font-size: 1.125rem;
        line-height: 1.35;
    }

    h5 {
        font-size: 1rem;
        line-height: 1.4;
    }

    a,
    p,
    span,
    input,
    textarea {
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

/* ===== header_section ===== */
#header {
    overflow: hidden;
}

.js-mobile-menu.open {
    display: block;
}

/* ===== hero_section ===== */
#hero {
    overflow: hidden;
    hyphens: auto;
}

#hero a,
#hero button {
    cursor: pointer;
}

/* ===== process_section ===== */
#process {
    overflow: hidden;
}

#process .js-process-step {
    hyphens: auto;
}

/* ===== wallbox_supply_section ===== */
#wallbox-supply {
    overflow: hidden;
}

#wallbox-supply h2,
#wallbox-supply h3 {
    hyphens: auto;
}

/* ===== dedicated_circuit_section ===== */
#dedicated-circuit {
    overflow: hidden;
}

#dedicated-circuit h2,
#dedicated-circuit h3 {
    hyphens: auto;
}

/* ===== load_management_section ===== */
#load-management {
    overflow: hidden;
}

#load-management .hyphens-auto {
    hyphens: auto;
}

/* ===== scenarios_section ===== */
#scenarios {
    overflow: hidden;
    hyphens: auto;
}

.js-scenario-card {
    will-change: transform, border-color;
}

.js-scenario-card:hover {
    transform: translateY(-4px);
}

/* ===== permits_inspection_section ===== */
#permits-inspection {
    background-color: var(--primary-bg);
    color: var(--primary-text);
    width: 100%;
}

#permits-inspection .card-hover-effect {
    transition: transform 0.2s ease, border-color 0.2s ease;
}

#permits-inspection .card-hover-effect:hover {
    border-color: var(--accent);
}

/* ===== cost_factors_section ===== */
#cost-factors {
    overflow: hidden;
}

#cost-factors h2,
#cost-factors h3 {
    hyphens: auto;
    line-height: 1.2;
}

/* ===== why_professional_section ===== */
#why-professional {
    hyphens: auto;
}

#why-professional .js-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.15);
}

/* ===== faq_section ===== */
#faq {
    hyphens: auto;
}

.js-faq-item.is-active {
    border-color: #0284c7;
    background-color: #16233b;
}

.js-faq-item.is-active .js-faq-icon {
    transform: rotate(180deg);
    background-color: #0284c7;
    color: #ffffff;
}

.js-faq-item.is-active .js-faq-icon i {
    color: #ffffff;
}

/* ===== quote_form_section ===== */
#quote-form {
    overflow: hidden;
    hyphens: auto;
}

#quote-form input::placeholder,
#quote-form textarea::placeholder {
    color: #64748b;
    opacity: 1;
}

#quote-form input:focus,
#quote-form textarea:focus {
    border-color: var(--accent, #0284c7);
    outline: none;
}

/* ===== footer_section ===== */
#footer {
    overflow: hidden;
}

#footer a {
    outline: none;
}

#footer a:focus-visible {
    outline: 2px solid #0284c7;
    outline-offset: 2px;
}