/* ============================================
   ElKomplet.cz - Premium Design
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --red: #f40808;
    --red-light: #ff3333;
    --red-glow: #ff6b6b;
    --dark: #1f1f1f;
    --dark-2: #1a1a1a;
    --dark-3: #242424;
    --gray: #494848;
    --text: #032532;
    --text-muted: #555;
    --text-light: #888;
    --white: #ffffff;
    --light: #f5f5f7;
    --light-hero: #EFEFF0;
    --border: #e5e5e5;
    --font-heading: 'Parkinsans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1200px;
    --header-h: 90px;
    --radius: 20px;
    --radius-lg: 48px;
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
    font-family: var(--font-body); font-size: 16px; line-height: 1.7;
    color: var(--text); background: var(--white);
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { font-family: var(--font-heading); font-weight: 700; color: var(--dark); }
.page-wrapper { overflow: hidden; }
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.container-wide { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    font-family: var(--font-heading); font-weight: 600; font-size: 1rem;
    border: none; border-radius: 60px; padding: 0.875rem 2rem;
    cursor: pointer; transition: all var(--transition); position: relative;
}
.btn-sm { font-size: 0.875rem; padding: 0.625rem 1.5rem; }
.btn-lg { font-size: 1.0625rem; padding: 1rem 2.5rem; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(244,8,8,0.35); }
.btn-ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.25); border-radius: 60px; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }

/* --- Header (Light mode) --- */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--header-h); transition: all var(--transition);
}

/* Light header (on hero) */
.header-light .nav-link { color: var(--text-muted); }
.header-light .nav-link:hover { color: var(--dark); }
.header-light .logo-dark { display: block; }
.header-light .logo-light { display: none; }
.header-light .nav-toggle span { background: var(--dark); }

/* Scrolled header (dark) */
.header.scrolled {
    background: rgba(26,26,26,0.5); backdrop-filter: blur(16px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.header.scrolled .nav-link { color: rgba(255,255,255,0.7); }
.header.scrolled .nav-link:hover { color: var(--white); }
.header.scrolled .logo-dark { display: none; }
.header.scrolled .logo-light { display: block; }
.header.scrolled .nav-toggle span { background: var(--white); }

.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.nav-brand { z-index: 1001; }
.nav-brand img { height: 60px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 0.5rem; }
.nav-link {
    font-family: var(--font-body); font-size: 0.9375rem; font-weight: 500;
    padding: 0.5rem 1rem; border-radius: 8px; transition: color var(--transition);
}
.nav-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 6px;
    width: 36px; height: 36px; background: none; border: none; cursor: pointer; z-index: 1001;
}
.nav-toggle span { display: block; width: 28px; height: 2px; border-radius: 2px; transition: all var(--transition); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
.nav-toggle.active span { background: var(--white) !important; }

/* --- Hero --- */
.hero {
    background: url('/img/hero-3.webp');
background-position: bottom right;
    background-size: cover;
    background-repeat: no-repeat;
    max-height: 100vh;
    padding-top: var(--header-h);
    position: relative;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    inset: 0;
    left: -32px;
   top: 32px;
    pointer-events: none;
    z-index: -1;
    align-items: center;
    display: flex;
}
.hero-shape svg {
    width: 100%;
    height: auto;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 950px;
    padding: 5rem 0 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - var(--header-h));
    margin-left: max(2rem, calc((100vw - 1400px) / 2 + 2rem));
}

.hero-label {
    display: inline-block; width: fit-content;
    font-family: var(--font-body); font-size: 0.9375rem; font-weight: 500;
    color: var(--text-muted); margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.08;
    color: #000;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--gray);
    font-size: 3.5rem;
    line-height: 1rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-text-link {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition);
}
.hero-text-link:hover { color: var(--red); }

/* --- Marquee --- */
.marquee-section { background: var(--red); padding: 0.75rem 0; overflow: hidden; }
.marquee-track { overflow: hidden; white-space: nowrap; }
.marquee-content {
    display: inline-flex; align-items: center;
    animation: marquee 25s linear infinite;
}
.marquee-content span {
    font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600;
    color: var(--white); text-transform: uppercase; letter-spacing: 0.05em; padding: 0 1rem;
}
.marquee-dot {
    width: 8px !important; height: 8px; background: var(--white); border-radius: 50%;
    display: inline-block; flex-shrink: 0; padding: 0 !important;
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- Sections --- */
.section { padding: 120px 0; }
.section-light { background: var(--light); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-label {
    display: inline-block; font-family: var(--font-body); font-size: 0.8125rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.15em; color: var(--red);
    margin-bottom: 1rem; padding: 0.4rem 1rem; border: 1px solid rgba(244,8,8,0.2);
    border-radius: 60px; background: rgba(244,8,8,0.05);
}
.section-title {
    font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em;
}

/* --- Services Accordion --- */
.services-section {
    background: var(--dark); padding-bottom: 120px;
    border-bottom-left-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg);
}
.services-section .section-label { color: var(--red-glow); border-color: rgba(244,8,8,0.3); background: rgba(244,8,8,0.1); }
.services-section .section-title { color: var(--white); }

.service-accordion { display: flex; gap: 12px; height: 500px; overflow: hidden; }

.service-panel {
    flex: 1; min-width: 0; border-radius: var(--radius);
    background: var(--dark-2); border: 1px solid rgba(255,255,255,0.06);
    cursor: pointer; transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; overflow: hidden;
}
.service-panel:hover { border-color: rgba(255,255,255,0.12); }
.service-panel.active { flex: 4; cursor: default; border-color: rgba(244,8,8,0.3); }
.service-panel::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: var(--red); transform: scaleX(0); transition: transform 0.4s ease;
}
.service-panel.active::after { transform: scaleX(1); }

.service-panel-collapsed {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 1rem;
    writing-mode: vertical-rl; transform: rotate(180deg);
    transition: opacity 0.3s ease;
}
.service-panel.active .service-panel-collapsed { opacity: 0; pointer-events: none; }
.service-panel-num {
    font-family: var(--font-heading); font-size: 0.875rem; font-weight: 700;
    color: var(--red); letter-spacing: 0.1em;
}
.service-panel-title {
    font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600;
    color: rgba(255,255,255,0.9); margin: 0; white-space: nowrap;
}

.service-panel-expanded {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.4s ease 0.15s;
    background: linear-gradient(135deg, var(--dark-2), var(--dark-3));
}
.service-panel.active .service-panel-expanded { opacity: 1; pointer-events: auto; }
.service-panel-inner { padding: 3rem; max-width: 480px; }
.service-panel-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(244,8,8,0.12); color: var(--red);
    display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem;
}
.service-panel-icon svg { width: 28px; height: 28px; }
.service-panel-inner h3 { font-size: 1.75rem; color: var(--white); margin-bottom: 1rem; }
.service-panel-inner p { font-size: 1rem; color: rgba(255,255,255,0.6); line-height: 1.8; }

/* --- About --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-text p { font-size: 1.0625rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.9; }
.about-text strong { color: var(--dark); }
.about-features { display: flex; flex-direction: column; gap: 1.25rem; }
.feature {
    display: flex; gap: 1rem; align-items: flex-start; padding: 1.5rem;
    background: var(--white); border-radius: var(--radius); border: 1px solid var(--border);
    transition: all var(--transition);
}
.feature:hover { border-color: var(--red); box-shadow: 0 8px 24px rgba(244,8,8,0.08); transform: translateY(-2px); }
.feature-icon {
    flex-shrink: 0; width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(244,8,8,0.08); border-radius: 14px; color: var(--red);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.feature p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.5; }

/* --- Stats --- */
.stats-section {
    background: var(--dark); padding: 80px 0;
    border-radius: var(--radius-lg); margin: -48px 24px 0; position: relative; z-index: 2;
}
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.stat { padding: 2rem 1rem; }
.stat-number { font-family: var(--font-heading); font-size: clamp(2.5rem,5vw,4rem); font-weight: 800; color: var(--red-glow); line-height: 1; }
.stat-suffix { font-family: var(--font-heading); font-size: clamp(1.5rem,3vw,2rem); font-weight: 700; color: var(--red); }
.stat-label { display: block; margin-top: 0.75rem; font-size: 1rem; font-weight: 500; color: rgba(255,255,255,0.5); }

/* --- Text Marquee --- */
.text-marquee { padding: 3rem 0; overflow: hidden; background: var(--white); }
.text-marquee-track { overflow: hidden; white-space: nowrap; }
.text-marquee-content {
    display: inline-flex; align-items: center; gap: 2rem;
    animation: marquee 20s linear infinite;
}
.text-marquee-content span {
    font-family: var(--font-heading); font-size: clamp(3rem,6vw,5rem);
    font-weight: 800; color: var(--dark); text-transform: uppercase; letter-spacing: -0.02em;
}
.text-marquee-outline { -webkit-text-stroke: 2px var(--dark); color: transparent !important; }

/* --- Testimonial --- */
.testimonial { max-width: 700px; margin: 0 auto; }
.testimonial-card {
    background: var(--white); border-radius: var(--radius); padding: 3rem;
    border: 1px solid var(--border); text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.testimonial-quote { color: var(--red); opacity: 0.2; margin-bottom: 1.5rem; }
.testimonial-quote svg { width: 48px; height: 48px; }
.testimonial blockquote p {
    font-family: var(--font-heading); font-size: clamp(1.125rem,2vw,1.5rem);
    font-weight: 500; color: var(--dark); line-height: 1.7; font-style: italic;
}
.testimonial-author { margin-top: 2rem; }
.testimonial-author strong { display: block; font-size: 1.0625rem; color: var(--dark); font-family: var(--font-heading); }
.testimonial-author span { font-size: 0.875rem; color: var(--text-light); }

/* --- Contact --- */
.contact-section { background: var(--dark); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.contact-section .section-label { color: var(--red-glow); border-color: rgba(244,8,8,0.3); background: rgba(244,8,8,0.1); }
.contact-section .section-title { color: var(--white); }
.contact-section p { color: rgba(255,255,255,0.6); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-details { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.contact-item {
    display: inline-flex; align-items: center; gap: 0.75rem; font-size: 1.0625rem;
    color: rgba(255,255,255,0.8); padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.04); border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.06); transition: all var(--transition);
}
.contact-item:hover { background: rgba(255,255,255,0.08); border-color: var(--red); color: var(--white); }
.contact-item svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--red); }
.emergency-card {
    background: linear-gradient(135deg, rgba(244,8,8,0.12), rgba(244,8,8,0.04));
    border: 1px solid rgba(244,8,8,0.2); border-radius: var(--radius); padding: 3rem; text-align: center;
}
.emergency-icon { width: 48px; height: 48px; color: var(--red); margin: 0 auto 1.5rem; }
.emergency-card h3 { font-size: 1.5rem; color: var(--red); margin-bottom: 0.75rem; }
.emergency-card p { color: rgba(255,255,255,0.5); margin-bottom: 1.5rem; }

/* --- Footer --- */
.footer { background: #1a1a1a; padding: 2.5rem 0; border-top: 1px solid rgba(255,255,255,0.04); }
.footer-content { display: flex; align-items: center; justify-content: space-between; }
.footer-brand img { height: 48px; width: auto; }
.footer-copy { font-size: 0.875rem; color: rgba(255,255,255,0.3); }

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-content { max-width: 520px; padding: 4rem 0 3rem; }
    .hero-title { font-size: clamp(2rem, 4.5vw, 3.5rem); }
    .service-accordion { height: 420px; }
    .service-panel-inner { padding: 2rem; }
    .service-panel-inner h3 { font-size: 1.375rem; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
        background: var(--dark-2);
        flex-direction: column; align-items: center; justify-content: center;
        padding: 2rem;
        gap: 0;
        opacity: 0; pointer-events: none;
        transition: opacity 0.35s ease;
    }
    .nav-links::before {
        content: ''; position: absolute; top: 0; left: 0;
        width: 100%; height: 3px;
        background: linear-gradient(90deg, var(--red) 0%, var(--red-light) 50%, var(--red) 100%);
    }
    .nav-links.active { opacity: 1; pointer-events: auto; }
    .nav-links .nav-link {
        color: rgba(255,255,255,0.6) !important;
        font-family: var(--font-heading);
        font-size: 1.75rem; font-weight: 600;
        padding: 0.85rem 0; width: auto;
        text-align: center; letter-spacing: -0.02em;
        transition: color 0.3s ease;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .nav-links .nav-link:last-of-type { border-bottom: none; }
    .nav-links .nav-link:hover { color: var(--white) !important; }
    .nav-links .btn {
        margin-top: 2rem;
        font-size: 1.1rem; padding: 0.875rem 2.5rem;
    }

    .container, .container-wide { padding: 0 10px; }

    .hero {
        min-height: 100vh; max-height: none;
        background: url('/img/elkomplet-hero-mobile.webp') center center / cover no-repeat;
    }
    .hero::before {
        content: ''; position: absolute; inset: 0;
        background: rgba(0,0,0,0.3); z-index: 1;
    }
    .hero-shape { display: none; }
    .hero-content {
        max-width: 100%; margin: 0; padding: 3rem 10px 2.5rem;
        min-height: calc(100vh - var(--header-h));
        z-index: 2; justify-content: flex-end;
    }
    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        color: var(--white); line-height: 1.15;
        overflow-wrap: break-word; word-break: break-word;
    }
    .hero-title em {
        color: rgba(255,255,255,0.7); font-size: inherit; line-height: inherit;
    }
    .hero-subtitle { font-size: 0.9375rem; color: rgba(255,255,255,0.75); }
    .hero-text-link { color: var(--white); }
    .hero-text-link:hover { color: var(--red-glow); }

    .section { padding: 80px 0; }
    .section-header { margin-bottom: 3rem; }
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .stats-section { margin: -24px 12px 0; border-radius: 24px; }
    .stats-grid { grid-template-columns: 1fr; gap: 0.5rem; }
    .stat { padding: 1.25rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-content { flex-direction: column; gap: 1rem; text-align: center; }

    .services-section {
        border-bottom-left-radius: 0; border-bottom-right-radius: 0;
        padding-bottom: 80px;
    }
    .service-accordion {
        flex-direction: row; height: auto; gap: 12px;
        overflow-x: auto; -webkit-overflow-scrolling: touch;
        scrollbar-width: none; padding: 0 10px 1rem;
    }
    .service-accordion::-webkit-scrollbar { display: none; }
    .service-panel {
        min-width: calc((100vw - 32px) / 1.2); flex: 0 0 calc((100vw - 32px) / 1.2);
        min-height: auto; border-radius: 16px; cursor: default;
    }
    .service-panel.active { flex: 0 0 calc((100vw - 32px) / 1.2); }
    .service-panel::after { display: none; }
    .service-panel-collapsed { display: none; }
    .service-panel-expanded {
        position: relative; opacity: 1; pointer-events: auto;
        background: var(--dark-2); border-radius: 16px;
    }
    .service-panel-inner { padding: 1.5rem; }
    .service-panel-inner h3 { font-size: 1.25rem; }
    .service-panel-icon { width: 48px; height: 48px; margin-bottom: 1rem; }
    .service-panel-icon svg { width: 22px; height: 22px; }
    .service-scroll-bar {
        width: 60px; height: 3px; margin: 1rem auto 0;
        background: rgba(255,255,255,0.1); border-radius: 3px;
        overflow: hidden;
    }
    .service-scroll-bar-inner {
        height: 100%; width: 30%; border-radius: 3px;
        background: var(--red); transition: transform 0.1s linear;
    }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .hero-actions .btn { width: 100%; }
    .marquee-content span { font-size: 0.875rem; }
}
