/* ======================================================
   POLSKA GRUPA ELEKTROMONTERSKA — Design System
   White + Red — matching company logo
   ====================================================== */

/* ---------- CSS Variables ---------- */
:root {
    /* Colors — Light theme with red accents */
    --c-bg: #ffffff;
    --c-bg-elevated: #f7f7f8;
    --c-bg-card: #ffffff;
    --c-bg-card-hover: #fafafa;
    --c-surface: rgba(0,0,0,0.02);
    --c-border: rgba(0,0,0,0.08);
    --c-border-hover: rgba(0,0,0,0.15);

    --c-text: #2d2d3a;
    --c-text-muted: #6b7280;
    --c-text-dim: #9ca3af;
    --c-heading: #111827;

    --c-accent: #c20000;
    --c-accent-light: #e01020;
    --c-accent-glow: rgba(194,0,0,0.08);
    --c-accent-2: #ff3333;

    --c-solar: #d97706;
    --c-storage: #2563eb;
    --c-heat: #ea580c;
    --c-pellet: #7c3aed;

    /* Dark section (footer only) */
    --c-dark-bg: #0a0a0f;

    /* Typography */
    --f-heading: 'Space Grotesk', sans-serif;
    --f-body: 'Inter', sans-serif;

    /* Spacing */
    --section-py: clamp(80px, 10vw, 140px);
    --container-px: clamp(20px, 5vw, 80px);

    /* Radius */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 20px;
    --r-xl: 28px;

    /* Transition */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--f-body);
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* ---------- Preloader ---------- */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo {
    font-family: var(--f-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--c-heading);
    letter-spacing: 8px;
    margin-bottom: 24px;
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.preloader-bar-fill {
    height: 100%;
    width: 0;
    background: var(--c-accent);
    border-radius: 3px;
    animation: preloaderFill 1.8s var(--ease) forwards;
}

@keyframes preloaderFill {
    0% { width: 0; }
    100% { width: 100%; }
}

/* ---------- Custom Cursor (desktop only) ---------- */
.cursor-dot, .cursor-ring {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .cursor-dot {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 6px;
        height: 6px;
        background: var(--c-accent);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        transition: width 0.2s, height 0.2s, background 0.2s;
    }

    .cursor-ring {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 36px;
        height: 36px;
        border: 1.5px solid rgba(194,0,0,0.25);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9998;
        transform: translate(-50%, -50%);
        transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s;
    }

    body:has(a:hover) .cursor-dot,
    body:has(button:hover) .cursor-dot {
        width: 10px;
        height: 10px;
        background: var(--c-accent);
    }

    body:has(a:hover) .cursor-ring,
    body:has(button:hover) .cursor-ring {
        width: 50px;
        height: 50px;
        border-color: rgba(194,0,0,0.4);
    }
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 6px 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--c-border);
    transition: all 0.4s var(--ease);
}

.nav.scrolled {
    padding: 4px 0;
    box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

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

.nav-logo-img {
    height: 56px;
    width: auto;
    transition: height 0.3s var(--ease);
}

.nav.scrolled .nav-logo-img {
    height: 44px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--c-text-muted);
    transition: color 0.3s;
    position: relative;
}

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

.nav-link:hover {
    color: var(--c-heading);
}

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

.nav-link--cta {
    background: var(--c-accent);
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 600;
    transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.nav-link--cta::after { display: none; }

.nav-link--cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(194,0,0,0.3);
    color: #ffffff !important;
}

/* Burger */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-burger span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--c-heading);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
    transform-origin: center;
}

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

@media (max-width: 900px) {
    .nav-burger { display: flex; }
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 300px;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 40px 40px;
        gap: 24px;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease);
        border-left: 1px solid var(--c-border);
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    }
    .nav-links.open {
        transform: translateX(0);
    }
    .nav-link { font-size: 18px; color: var(--c-text) !important; }
    .nav-link--cta { width: 100%; text-align: center; color: #fff !important; }
}

/* ---------- Hero (WHITE) ---------- */
.hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 60px;
    overflow: hidden;
    background: var(--c-bg);
    color: var(--c-heading);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.hero-gradient-orb--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(194,0,0,0.12), transparent 70%);
    top: -200px;
    right: -100px;
    animation: orbFloat1 12s ease-in-out infinite;
}

.hero-gradient-orb--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(194,0,0,0.06), transparent 70%);
    bottom: -100px;
    left: -150px;
    animation: orbFloat2 15s ease-in-out infinite;
}

.hero-gradient-orb--3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,51,51,0.05), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 10s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-60px, 40px); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, -30px); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 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%);
}

/* ---------- Hero SVG — Thematic OZE Illustration ---------- */
.hero-svg-network {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    animation: svgFadeIn 1.8s ease forwards;
    animation-delay: 2.2s;
}

@keyframes svgFadeIn {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

/* Sun rays — slow rotation */
.hero-sun-rays {
    animation: sunSpin 40s linear infinite;
    transform-origin: center;
}

@keyframes sunSpin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Sun aura — gentle pulse */
.hero-sun-aura {
    animation: auraPulse 4s ease-in-out infinite;
}

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

/* Sun orbit ring — slow counter-rotation */
.hero-sun-orbit {
    animation: sunSpin 25s linear infinite reverse;
    transform-origin: center;
}

/* Solar cell shimmer — sequential glow */
.hero-cell {
    animation: cellShimmer 3s ease-in-out infinite;
}
.hero-cell--1 { animation-delay: 0s; }
.hero-cell--2 { animation-delay: 0.5s; }
.hero-cell--3 { animation-delay: 1s; }
.hero-cell--4 { animation-delay: 1.5s; }

@keyframes cellShimmer {
    0%, 100% { fill: rgba(194,0,0,0.04); }
    50%      { fill: rgba(194,0,0,0.15); }
}

/* Battery charge bars — sequential fill */
.hero-charge {
    animation: chargeFill 4s ease-in-out infinite;
}
.hero-charge--1 { animation-delay: 0s; }
.hero-charge--2 { animation-delay: 0.8s; }
.hero-charge--3 { animation-delay: 1.6s; }
.hero-charge--4 { animation-delay: 2.4s; }

@keyframes chargeFill {
    0%, 20%  { fill: rgba(194,0,0,0.04); }
    50%      { fill: rgba(194,0,0,0.25); }
    80%, 100% { fill: rgba(194,0,0,0.04); }
}

/* Lightning bolt — flash */
.hero-bolt {
    animation: boltFlash 3s ease-in-out infinite;
}
.hero-bolt-flash {
    animation: boltFlash 4s ease-in-out infinite;
}

@keyframes boltFlash {
    0%, 40%, 100% { opacity: 0.3; }
    45%, 55%      { opacity: 1; }
    60%           { opacity: 0.5; }
}

/* Heat pump fan — rotation */
.hero-fan {
    animation: fanSpin 3s linear infinite;
    transform-origin: 45px 35px;
}

@keyframes fanSpin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Wind turbine blades — rotation */
.hero-turbine-blades {
    animation: turbineSpin 6s linear infinite;
    transform-origin: 0 0;
}

@keyframes turbineSpin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Energy flow dashed paths — animated */
.hero-flow-sun,
.hero-flow-cable,
.hero-flow-store {
    animation: flowDash 3s linear infinite;
}
.hero-flow-cable { animation-delay: -1s; }
.hero-flow-store { animation-delay: -2s; }

@keyframes flowDash {
    0%   { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -28; }
}

/* Responsive: hide complex elements on mobile */
@media (max-width: 768px) {
    .hero-il-turbine,
    .hero-il-plug,
    .hero-il-pump,
    .hero-il-battery {
        display: none;
    }
    .hero-il-house {
        opacity: 0.08;
    }
    .hero-il-panels {
        opacity: 0.08;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 var(--container-px);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--c-bg-elevated);
    border: 1px solid var(--c-border);
    border-radius: 100px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text-muted);
    margin-bottom: 28px;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--c-accent);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(194,0,0,0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(194,0,0,0); }
}

.hero-title {
    font-family: var(--f-heading);
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--c-heading);
    margin-bottom: 24px;
}

.hero-title-line {
    display: block;
}

.hero-title-line--accent {
    color: var(--c-accent);
    -webkit-text-fill-color: var(--c-accent);
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--c-text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--f-body);
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--c-accent);
    color: #ffffff;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(194,0,0,0.35);
    background: var(--c-accent-light);
}

.btn--primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn--primary:hover::before {
    opacity: 1;
}

.btn--ghost {
    background: transparent;
    color: var(--c-heading);
    border: 1px solid var(--c-border-hover);
}

.btn--ghost:hover {
    background: var(--c-bg-elevated);
    border-color: var(--c-text-muted);
    transform: translateY(-2px);
}

/* Ghost on light sections */
.btn--ghost-light {
    background: transparent;
    color: var(--c-heading);
    border: 1px solid var(--c-border-hover);
}

.btn--ghost-light:hover {
    background: var(--c-surface);
    border-color: var(--c-text-muted);
    transform: translateY(-2px);
}

.btn--large {
    padding: 18px 40px;
    font-size: 16px;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-family: var(--f-heading);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--c-heading);
    display: inline;
}

.hero-stat-suffix {
    font-family: var(--f-heading);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: var(--c-accent-2);
}

.hero-stat-label {
    display: block;
    font-size: 13px;
    color: var(--c-text-muted);
    margin-top: 4px;
}

.hero-stat-divider {
    width: 1px;
    height: 48px;
    background: var(--c-border);
}

@media (max-width: 600px) {
    .hero-stat-divider { display: none; }
    .hero-stats { gap: 24px; }
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--c-text-dim);
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--c-accent), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- Trust Bar ---------- */
.trust-bar {
    padding: 40px 0;
    border-bottom: 1px solid var(--c-border);
    background: var(--c-bg);
}

.trust-bar-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: var(--r-md);
    transition: background 0.3s;
}

.trust-item:hover {
    background: var(--c-bg-elevated);
}

.trust-item svg {
    flex-shrink: 0;
    color: var(--c-accent);
}

.trust-item strong {
    display: block;
    font-size: 14px;
    color: var(--c-heading);
    font-weight: 600;
}

.trust-item span {
    font-size: 12px;
    color: var(--c-text-muted);
}

@media (max-width: 900px) {
    .trust-bar-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
    .trust-bar-inner { grid-template-columns: 1fr; }
}

/* ---------- Section Common ---------- */
.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--c-accent);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--f-heading);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--c-heading);
    margin-bottom: 16px;
}

.text-accent {
    color: var(--c-accent);
    -webkit-text-fill-color: var(--c-accent);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.section-desc {
    font-size: 17px;
    color: var(--c-text-muted);
    max-width: 600px;
    line-height: 1.7;
}

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

.section-header .section-desc {
    margin: 0 auto;
}

/* ---------- About ---------- */
.about {
    padding: var(--section-py) 0;
    background: var(--c-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-image-stack {
    position: relative;
    height: 480px;
}

.about-image-card {
    position: absolute;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.08);
}

.about-image-card--1 {
    width: 320px;
    height: 380px;
    top: 0;
    left: 0;
    z-index: 2;
}

.about-image-card--2 {
    width: 260px;
    height: 300px;
    bottom: 0;
    right: 0;
    z-index: 1;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.about-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--c-accent);
}

.about-image-placeholder span {
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text-muted);
}

.about-image-placeholder--dark {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: var(--c-storage);
}

.about-experience-badge {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    background: var(--c-accent);
    color: #ffffff;
    padding: 20px 28px;
    border-radius: var(--r-lg);
    text-align: center;
    box-shadow: 0 20px 40px rgba(194,0,0,0.25);
}

.about-experience-number {
    display: block;
    font-family: var(--f-heading);
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.about-experience-text {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-text {
    font-size: 16px;
    color: var(--c-text-muted);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--c-text);
}

.about-feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--c-accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-feature-icon svg {
    width: 16px;
    height: 16px;
    color: var(--c-accent);
}

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-image-stack { height: 360px; }
    .about-image-card--1 { width: 260px; height: 300px; }
    .about-image-card--2 { width: 200px; height: 240px; }
}

/* ---------- Services ---------- */
.services {
    padding: var(--section-py) 0;
    background: var(--c-bg-elevated);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--c-accent), transparent);
    opacity: 0.2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.service-card {
    position: relative;
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    padding: 40px 32px;
    overflow: hidden;
    transition: all 0.4s var(--ease);
}

.service-card:hover {
    border-color: var(--c-border-hover);
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.08);
}

.service-card-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    transition: opacity 0.5s;
}

.service-card:hover .service-card-glow {
    opacity: 1;
}

.service-card-glow--solar { background: rgba(217,119,6,0.08); }
.service-card-glow--storage { background: rgba(37,99,235,0.08); }
.service-card-glow--heat { background: rgba(234,88,12,0.08); }

.service-card--featured {
    border-color: rgba(194,0,0,0.15);
    background: linear-gradient(180deg, rgba(194,0,0,0.02), #ffffff);
}

.service-card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--c-accent);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 100px;
}

.service-card-number {
    font-family: var(--f-heading);
    font-size: 64px;
    font-weight: 800;
    color: rgba(0,0,0,0.04);
    line-height: 1;
    margin-bottom: 16px;
    transition: color 0.4s;
}

.service-card:hover .service-card-number {
    color: rgba(0,0,0,0.08);
}

.service-card-icon {
    margin-bottom: 20px;
}

.service-card-icon svg {
    color: var(--c-accent);
}

.service-card-title {
    font-family: var(--f-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--c-heading);
    margin-bottom: 12px;
}

.service-card-desc {
    font-size: 15px;
    color: var(--c-text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-card-list {
    margin-bottom: 28px;
}

.service-card-list li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--c-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-card-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-accent);
    flex-shrink: 0;
}

.service-card-footer {
    padding-top: 20px;
    border-top: 1px solid var(--c-border);
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-accent);
    transition: gap 0.3s var(--ease);
}

.service-card-link:hover {
    gap: 14px;
}

@media (max-width: 900px) {
    .services-grid { grid-template-columns: 1fr; max-width: 500px; margin-inline: auto; margin-bottom: 60px; }
}

/* Heating details */
.heating-details {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    padding: 48px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.heating-details-title {
    font-family: var(--f-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--c-heading);
    text-align: center;
    margin-bottom: 40px;
}

.heating-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.heating-item {
    text-align: center;
}

.heating-item-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--c-accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.heating-item-icon svg {
    color: var(--c-accent);
}

.heating-item h4 {
    font-family: var(--f-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--c-heading);
    margin-bottom: 8px;
}

.heating-item p {
    font-size: 14px;
    color: var(--c-text-muted);
    line-height: 1.7;
}

@media (max-width: 700px) {
    .heating-grid { grid-template-columns: 1fr; }
    .heating-details { padding: 32px 24px; }
}

/* ---------- Process ---------- */
.process {
    padding: var(--section-py) 0;
    background: var(--c-bg);
}

.process-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.process-line {
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.process-step {
    position: relative;
    display: flex;
    gap: 32px;
    padding-bottom: 48px;
}

.process-step:last-child { padding-bottom: 0; }

.process-step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--c-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--c-accent);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: all 0.3s var(--ease);
}

.process-step:hover .process-step-number {
    background: var(--c-accent);
    color: #ffffff;
    box-shadow: 0 0 30px rgba(194,0,0,0.2);
}

.process-step-content h3 {
    font-family: var(--f-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--c-heading);
    margin-bottom: 8px;
    padding-top: 4px;
}

.process-step-content p {
    font-size: 15px;
    color: var(--c-text-muted);
    line-height: 1.7;
}

@media (max-width: 600px) {
    .process-step { gap: 20px; }
    .process-step-number { width: 44px; height: 44px; font-size: 14px; }
    .process-line { left: 21px; }
}

/* ---------- Portfolio ---------- */
.portfolio {
    padding: var(--section-py) 0;
    background: var(--c-bg-elevated);
}

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

.portfolio-card {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all 0.4s var(--ease);
}

.portfolio-card:hover {
    border-color: var(--c-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.portfolio-card-image {
    height: 200px;
    overflow: hidden;
}

.portfolio-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}

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

.portfolio-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s var(--ease);
}

.portfolio-card:hover .portfolio-card-placeholder {
    transform: scale(1.05);
}

.portfolio-card-placeholder--pv {
    background: linear-gradient(135deg, #fefce8, #fef9c3);
    color: var(--c-solar);
}

.portfolio-card-placeholder--storage {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: var(--c-storage);
}

.portfolio-card-placeholder--heat {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    color: var(--c-heat);
}

.portfolio-card-placeholder--pellet {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    color: var(--c-pellet);
}

.portfolio-card-body {
    padding: 24px;
}

.portfolio-card-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--c-solar);
    background: rgba(217,119,6,0.08);
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.portfolio-card-tag--storage { color: var(--c-storage); background: rgba(37,99,235,0.08); }
.portfolio-card-tag--heat { color: var(--c-heat); background: rgba(234,88,12,0.08); }
.portfolio-card-tag--pellet { color: var(--c-pellet); background: rgba(124,58,237,0.08); }

.portfolio-card-body h4 {
    font-family: var(--f-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--c-heading);
    margin-bottom: 8px;
}

.portfolio-card-body p {
    font-size: 14px;
    color: var(--c-text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.portfolio-card-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.portfolio-card-stats span {
    font-size: 12px;
    font-weight: 600;
    color: var(--c-accent);
    background: var(--c-accent-glow);
    padding: 4px 10px;
    border-radius: 100px;
}

@media (max-width: 700px) {
    .portfolio-grid { grid-template-columns: 1fr; }
}

/* ---------- Why Us ---------- */
.why-us {
    padding: var(--section-py) 0;
    background: var(--c-bg);
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.why-us-text {
    font-size: 16px;
    color: var(--c-text-muted);
    line-height: 1.8;
    margin-top: 16px;
}

.why-us-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.why-us-card {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: 28px;
    transition: all 0.3s var(--ease);
}

.why-us-card:hover {
    border-color: var(--c-accent);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(194,0,0,0.08);
}

.why-us-card-icon {
    margin-bottom: 16px;
    color: var(--c-accent);
}

.why-us-card h4 {
    font-family: var(--f-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--c-heading);
    margin-bottom: 8px;
}

.why-us-card p {
    font-size: 13px;
    color: var(--c-text-muted);
    line-height: 1.7;
}

@media (max-width: 900px) {
    .why-us-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
    .why-us-cards { grid-template-columns: 1fr; }
}

/* ---------- Testimonials ---------- */
.testimonials {
    padding: var(--section-py) 0;
    background: var(--c-bg-elevated);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: 32px;
    transition: all 0.3s var(--ease);
}

.testimonial-card:hover {
    border-color: var(--c-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    color: #f59e0b;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 15px;
    color: var(--c-text);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--c-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

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

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

@media (max-width: 900px) {
    .testimonials-grid { grid-template-columns: 1fr; max-width: 500px; margin-inline: auto; }
}

/* ---------- FAQ ---------- */
.faq {
    padding: var(--section-py) 0;
    background: var(--c-bg);
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--c-border);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--c-heading);
    list-style: none;
    transition: color 0.3s;
}

.faq-question::-webkit-details-marker { display: none; }

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

.faq-icon {
    flex-shrink: 0;
    color: var(--c-text-muted);
    transition: transform 0.3s var(--ease), color 0.3s;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
    color: var(--c-accent);
}

.faq-answer {
    padding-bottom: 24px;
}

.faq-answer p {
    font-size: 15px;
    color: var(--c-text-muted);
    line-height: 1.8;
}

/* ---------- CTA Section ---------- */
.cta-section {
    padding: 0 0 var(--section-py);
    background: var(--c-bg);
}

.cta-card {
    position: relative;
    background: var(--c-accent);
    border-radius: var(--r-xl);
    padding: 80px 40px;
    text-align: center;
    overflow: hidden;
}

.cta-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.cta-bg-orb--1 {
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.12);
    top: -150px;
    left: -100px;
}

.cta-bg-orb--2 {
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.08);
    bottom: -100px;
    right: -50px;
}

.cta-title {
    font-family: var(--f-heading);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    position: relative;
}

.cta-text {
    font-size: 17px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
    position: relative;
}

.cta-card .btn { position: relative; }

/* White button on red CTA background */
.cta-card .btn--primary {
    background: #ffffff;
    color: var(--c-accent);
}

.cta-card .btn--primary:hover {
    background: #f5f5f5;
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}

/* ---------- Contact ---------- */
.contact {
    padding: var(--section-py) 0;
    background: var(--c-bg-elevated);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-text {
    font-size: 16px;
    color: var(--c-text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: var(--r-md);
    transition: background 0.3s;
}

.contact-detail:hover {
    background: rgba(0,0,0,0.02);
}

.contact-detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--c-accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--c-accent);
}

.contact-detail strong {
    display: block;
    font-size: 14px;
    color: var(--c-heading);
}

.contact-detail span {
    font-size: 14px;
    color: var(--c-text-muted);
}

/* Form */
.contact-form-wrapper {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--c-bg-elevated);
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    padding: 12px 16px;
    font-size: 15px;
    font-family: var(--f-body);
    color: var(--c-heading);
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--c-text-dim);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px rgba(194,0,0,0.08);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-consent {
    font-size: 13px;
    color: var(--c-text-muted);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--c-border-hover);
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.checkbox-label input:checked + .checkbox-custom {
    background: var(--c-accent);
    border-color: var(--c-accent);
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '';
    width: 6px;
    height: 10px;
    border: 2px solid #ffffff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translate(-1px, -1px);
}

.checkbox-label a {
    color: var(--c-accent);
    text-decoration: underline;
}

.form-note {
    text-align: center;
    font-size: 13px;
    color: var(--c-text-dim);
}

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: 24px; }
}

/* ---------- Footer ---------- */
.footer {
    padding: 60px 0 0;
    background: var(--c-dark-bg);
    color: rgba(255,255,255,0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    height: 60px;
    filter: invert(1) brightness(2);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    max-width: 300px;
}

.footer-nav h4 {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-nav li {
    margin-bottom: 8px;
}

.footer-nav a, .footer-nav li {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #ffffff;
}

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

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.3);
}

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

.footer-legal a {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: #ffffff;
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------- Reveal Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grid children */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ---------- Selection ---------- */
::selection {
    background: rgba(194,0,0,0.15);
    color: var(--c-heading);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}
