:root {
    --bg: #f7f9fc;
    --text: #172033;
    --muted: #5d6a7e;
    --primary: #f5a623;
    --primary-dark: #c97c00;
    --navy: #0b2341;
    --white: #ffffff;
    --border: #dce3ee;
    --shadow: 0 18px 45px rgba(11, 35, 65, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--navy);
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: var(--primary);
    color: var(--navy);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(245, 166, 35, 0.16);
    color: var(--navy);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    cursor: pointer;
}

.menu-toggle-line {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--navy);
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(11, 35, 65, 0.94), rgba(11, 35, 65, 0.78)),
        url("../images/generator-installation.png") center/cover;
    color: var(--white);
    padding: 92px 0;
}

.hero::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -110px;
    top: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.45), transparent 68%);
    animation: pulseGlow 6s ease-in-out infinite;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.08) 48%, transparent 58%);
    transform: translateX(-100%);
    animation: lightSweep 7s ease-in-out infinite;
}

.hero-grid {
    position: relative;
    z-index: 1;
}

.hero-grid,
.split,
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero h1,
.page-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 1.08;
}

.hero p,
.page-hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
}

.button.primary {
    background: var(--primary);
    color: var(--navy);
}

.button.secondary {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-card,
.feature-panel,
.contact-form {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 26px;
    background: var(--white);
    color: var(--text);
    box-shadow: var(--shadow);
}

.hero-card ul {
    margin: 18px 0 0;
    padding-left: 20px;
}

.hero-card li {
    margin: 10px 0;
}

.hero-card {
    animation: floatCard 4.5s ease-in-out infinite;
}

.section {
    padding: 76px 0;
}

.section.soft {
    background: var(--white);
}

.section.highlight {
    background: var(--navy);
    color: var(--white);
}

.section-heading {
    max-width: 700px;
    margin-bottom: 32px;
}

.section h2,
.section-heading h2 {
    margin: 0 0 16px;
    color: inherit;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.15;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 12px 30px rgba(11, 35, 65, 0.07);
    animation: fadeUp 0.7s ease both;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:nth-child(2) {
    animation-delay: 0.12s;
}

.card:nth-child(3) {
    animation-delay: 0.24s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.card h3,
.feature-panel h3,
.hero-card h2 {
    margin-top: 0;
    color: var(--navy);
}

.card p,
.feature-panel p,
.contact-details p {
    color: var(--muted);
}

.work-slider {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: var(--white);
    box-shadow: var(--shadow);
    animation: fadeUp 0.7s ease both;
}

.slides {
    position: relative;
    min-height: 520px;
}

.slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    opacity: 0;
    pointer-events: none;
    transform: translateX(40px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.slide img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

.slide-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    background:
        radial-gradient(circle at top right, rgba(245, 166, 35, 0.18), transparent 38%),
        var(--navy);
    color: var(--white);
}

.slide-content span {
    width: fit-content;
    margin-bottom: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(245, 166, 35, 0.16);
    color: var(--primary);
    font-weight: 900;
}

.slide-content h3 {
    margin: 0 0 12px;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.1;
}

.slide-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border-top: 1px solid var(--border);
}

.slider-button {
    min-width: 86px;
    padding: 10px 16px;
    border: 0;
    border-radius: 999px;
    background: rgba(245, 166, 35, 0.16);
    color: var(--navy);
    font-weight: 800;
    cursor: pointer;
}

.slider-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.slider-dots button {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #b8c2d1;
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.slider-dots button.is-active {
    width: 34px;
    background: var(--primary);
}

.highlight p {
    color: rgba(255, 255, 255, 0.78);
}

.stats {
    display: grid;
    gap: 18px;
}

.stats div {
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
}

.stats strong {
    display: block;
    color: var(--primary);
    font-size: 2.4rem;
    line-height: 1;
}

.stats span {
    display: block;
    margin-top: 8px;
}

.page-hero {
    background: linear-gradient(135deg, var(--navy), #173d68);
    color: var(--white);
    padding: 82px 0;
}

.contact-grid {
    align-items: start;
}

.contact-list {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.contact-list p {
    margin: 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--white);
}

.contact-form {
    display: grid;
    gap: 12px;
}

.contact-form label {
    font-weight: 800;
    color: var(--navy);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    outline: 3px solid rgba(245, 166, 35, 0.2);
}

.site-footer {
    background: #07172b;
    color: var(--white);
    padding-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 32px;
}

.site-footer h2,
.site-footer h3 {
    margin-top: 0;
}

.site-footer p,
.site-footer a {
    display: block;
    color: rgba(255, 255, 255, 0.72);
}

.site-footer a {
    margin: 8px 0;
}

.footer-bottom {
    margin-top: 36px;
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

@keyframes pulseGlow {
    0%,
    100% {
        opacity: 0.55;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.18);
    }
}

@keyframes lightSweep {
    0%,
    45% {
        transform: translateX(-100%);
    }

    70%,
    100% {
        transform: translateX(100%);
    }
}

@keyframes floatCard {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 800px) {
    .nav {
        position: relative;
        padding: 16px 0;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 18px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: grid;
    }

    .nav-links a {
        width: 100%;
        padding: 12px 14px;
    }

    .hero-grid,
    .split,
    .contact-grid,
    .cards,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .slides {
        min-height: auto;
    }

    .slide {
        position: relative;
        display: none;
        grid-template-columns: 1fr;
    }

    .slide.is-active {
        display: grid;
    }

    .slide img {
        height: 310px;
    }

    .slide-content {
        padding: 26px;
    }

    .hero,
    .page-hero,
    .section {
        padding: 56px 0;
    }
}
