/* ═══ AUTOSERVIS PELHŘIMOV — Demo Web ═══ */
/* Brand: dark navy blue + gold accent, single theme (light) */

/* ── CSS Custom Properties ── */
:root {
    --primary: #1e4080;
    --primary-hover: #163060;
    --primary-light: rgba(30, 64, 128, 0.10);
    --primary-glow: rgba(30, 64, 128, 0.25);
    --primary-dark: #0f2040;
    --primary-rgb: 30, 64, 128;

    --accent: #c9a227;
    --accent-hover: #b8931f;
    --accent-light: rgba(201, 162, 39, 0.12);
    --accent-glow: rgba(201, 162, 39, 0.30);

    --bg: #ffffff;
    --bg-alt: #f4f6fa;
    --bg-dark: #0d1520;
    --bg-dark-2: #141f30;
    --surface: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.92);
    --text: #1a1a2e;
    --text-muted: #5a6070;
    --text-dark: #e8eaf0;
    --text-dark-muted: #8a90a5;
    --text-on-primary: #ffffff;
    --border: #dde0e8;
    --white: #ffffff;

    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --section-pad: 80px;
    --container-max: 1200px;
    --radius: 16px;
    --transition: 0.3s ease;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
    --glow-accent: 0 8px 24px rgba(201, 162, 39, 0.35);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--font);
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; border-radius: 12px; font-size: 1rem; font-weight: 600;
    border: 2px solid transparent; cursor: pointer; transition: all var(--transition); text-decoration: none;
}
.btn-primary { background: var(--accent); color: #1a1a2e; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #1a1a2e; transform: translateY(-2px); box-shadow: var(--glow-accent); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--text-on-primary); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline-light:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-full { width: 100%; }
.btn-small { padding: 8px 16px; font-size: 0.875rem; border-radius: 8px; }

/* ═══ NAVBAR ═══ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0; transition: all var(--transition); background: transparent;
}
.navbar.scrolled {
    background: var(--surface-glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm); padding: 10px 0;
}
.nav-container { display: flex; align-items: center; justify-content: space-between; }

/* Logo — swap white/dark version on scroll */
.nav-logo { display: flex; align-items: center; }
.nav-logo-img { height: 36px; width: auto; }
.nav-logo-dark { display: none; }
.nav-logo-light { display: block; }
.navbar.scrolled .nav-logo-dark, .navbar.menu-open .nav-logo-dark { display: block; }
.navbar.scrolled .nav-logo-light, .navbar.menu-open .nav-logo-light { display: none; }

/* Nav links — light on dark hero, dark on scrolled */
.nav-menu { display: flex; list-style: none; gap: 32px; }
.nav-link { color: rgba(255,255,255,0.8); font-weight: 500; font-size: 0.95rem; transition: color var(--transition); }
.nav-link:hover { color: #fff; }
.navbar.scrolled .nav-link, .navbar.menu-open .nav-link { color: var(--text-muted); }
.navbar.scrolled .nav-link:hover, .navbar.menu-open .nav-link:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* Hamburger — white on dark, dark on scrolled */
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; transition: all var(--transition); border-radius: 2px; }
.navbar.scrolled .nav-toggle span, .navbar.menu-open .nav-toggle span { background: var(--text); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══ HERO ═══ */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    padding: 120px 0 80px; position: relative; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    z-index: 0;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(13,21,32,0.72) 0%, rgba(30,64,128,0.45) 100%);
    z-index: 1;
}
.hero-container { position: relative; z-index: 2; }
.hero-content { max-width: 700px; }
.hero-title { font-size: clamp(2.5rem, 6vw, 3.8rem); font-weight: 800; line-height: 1.1; margin-bottom: 20px; color: #fff; }
.hero-subtitle { font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--accent); font-weight: 600; margin-bottom: 20px; }
.hero-text { font-size: 1.1rem; line-height: 1.7; color: rgba(255,255,255,0.85); margin-bottom: 36px; max-width: 560px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ═══ SECTIONS ═══ */
.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: var(--text-dark); position: relative; }
.section-dark::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: min(80%, 600px); height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.4;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; text-align: center; margin-bottom: 8px; }
.section-dark .section-title { color: var(--white); }
.section-subtitle { text-align: center; color: var(--text-muted); font-size: 1.1rem; margin-bottom: 48px; }
.section-dark .section-subtitle { color: var(--text-dark-muted); }

/* ═══ ABOUT ═══ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; font-size: 1.05rem; }
.about-stats { display: flex; gap: 32px; margin-top: 32px; }
.stat { text-align: center; }
.stat-number { display: block; font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.875rem; color: var(--text-muted); }
.about-image img { border-radius: 16px; box-shadow: var(--shadow-lg); }

/* ═══ SERVICES — full list ═══ */
.services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 24px;
    max-width: 960px; margin: 0 auto;
}
.service-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px; border-radius: 10px;
    color: var(--text-dark); font-size: 0.95rem; font-weight: 500;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
    transition: all var(--transition);
}
.service-item:hover { background: rgba(201, 162, 39, 0.08); border-color: rgba(201, 162, 39, 0.2); }
.service-check { color: var(--accent); flex-shrink: 0; }
.services-cta { text-align: center; margin-top: 40px; }

/* ═══ GALLERY ═══ */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-card {
    border-radius: 10px; overflow: hidden; cursor: pointer;
    transition: all var(--transition); position: relative;
}
.gallery-card::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(30,64,128,0.0); transition: background var(--transition);
}
.gallery-card:hover::after { background: rgba(30,64,128,0.2); }
.gallery-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.gallery-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.5s ease; }
.gallery-card:hover img { transform: scale(1.08); }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; cursor: pointer;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); cursor: default; }
.lightbox-close {
    position: absolute; top: 20px; right: 24px; background: none; border: none;
    color: white; font-size: 2rem; cursor: pointer; width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.1); }

/* ═══ REVIEWS — Google-branded ═══ */
.reviews-google-badge {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    margin-bottom: 40px; padding: 16px 28px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 12px; width: fit-content;
    margin-left: auto; margin-right: auto; box-shadow: var(--shadow-sm);
}
.google-logo { flex-shrink: 0; display: flex; }
.google-rating { display: flex; align-items: center; gap: 8px; }
.google-rating strong { font-size: 1.6rem; color: var(--text); }
.google-stars { display: flex; gap: 1px; }
.google-count { font-size: 0.9rem; color: var(--text-muted); }

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    padding: 24px; transition: all var(--transition);
}
.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--primary); color: white; font-weight: 700; font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.review-name { display: block; font-size: 0.95rem; color: var(--text); }
.review-date { font-size: 0.8rem; color: var(--text-muted); }
.review-stars { display: flex; gap: 1px; margin-bottom: 10px; }
.review-text { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

.reviews-cta { text-align: center; margin-top: 32px; }
.reviews-google-link { gap: 10px; }

/* ═══ FAQ ═══ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
    border: 1px solid rgba(201, 162, 39, 0.15); border-radius: 12px;
    margin-bottom: 12px; overflow: hidden; transition: all var(--transition);
}
.faq-item[open] { border-color: var(--accent); }
.faq-question {
    padding: 20px 24px; font-weight: 600; cursor: pointer; list-style: none;
    display: flex; align-items: center; justify-content: space-between; color: var(--white);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--accent); transition: transform var(--transition); }
.faq-item[open] .faq-question::after { content: '\2212'; }
.faq-answer { padding: 0 24px 20px; color: var(--text-dark-muted); }

/* ═══ CONTACT — map left, form right ═══ */
.contact-layout {
    display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start;
}
.contact-left { display: flex; flex-direction: column; gap: 24px; }
.contact-map-embed {
    border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-md);
    height: 280px;
}
.contact-map-embed iframe { display: block; width: 100%; height: 100%; }
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; align-items: flex-start; gap: 12px; }
.contact-item svg { color: var(--primary); flex-shrink: 0; margin-top: 3px; }
.contact-item strong { display: block; margin-bottom: 1px; font-size: 0.9rem; }
.contact-item a { color: var(--text-muted); font-size: 0.9rem; }
.contact-item span { color: var(--text-muted); font-size: 0.9rem; }
.contact-note { display: block; font-size: 0.8rem; color: var(--text-muted); opacity: 0.8; }

.contact-right { }
.contact-form-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; }
.contact-form {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 28px;
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 0.9rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px;
    font-size: 0.95rem; font-family: var(--font); background: var(--bg); color: var(--text);
    transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.form-group textarea { resize: vertical; min-height: 100px; }

/* ═══ FOOTER ═══ */
.footer { background: var(--bg-dark); color: var(--text-dark-muted); padding: 48px 0 24px; }
.footer-content { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 32px; }
.footer-brand strong { color: var(--white); font-size: 1.2rem; display: block; margin-bottom: 4px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-dark-muted); font-size: 0.95rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid rgba(201, 162, 39, 0.15); padding-top: 24px;
    display: flex; justify-content: space-between; font-size: 0.875rem;
}
.footer-credit a { color: var(--accent); }

/* ═══ COOKIE BANNER ═══ */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; width: 100%;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 14px 24px; box-shadow: 0 -4px 24px rgba(0,0,0,0.1); z-index: 10000;
    display: flex; align-items: center; justify-content: center; gap: 24px;
}
.cookie-banner[hidden] { display: none; }
.cookie-content { display: flex; flex-direction: column; gap: 2px; }
.cookie-banner p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-credit { font-size: 0.78rem; opacity: 0.7; }
.cookie-credit a { color: var(--primary); text-decoration: underline; }

/* ═══ ACCESSIBILITY ═══ */
.btn:focus-visible, .nav-link:focus-visible, .nav-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }
.skip-nav {
    position: absolute; top: -100%; left: 16px; background: var(--primary);
    color: var(--text-on-primary); padding: 8px 16px; border-radius: 8px;
    font-weight: 600; z-index: 10001; transition: top 0.2s;
}
.skip-nav:focus { top: 12px; color: var(--text-on-primary); }

/* ═══ SCROLL ANIMATIONS ═══ */
[data-animate] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-animate].visible { opacity: 1; transform: translateY(0); }

/* ═══ SCROLL TO TOP ═══ */
.scroll-top {
    position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px;
    border-radius: 50%; background: var(--primary); color: white; border: none;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); opacity: 0; visibility: hidden;
    transform: translateY(12px); transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s;
    z-index: 9999;
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--primary-hover); transform: translateY(-2px); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    :root { --section-pad: 60px; }

    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background: var(--bg); flex-direction: column; padding: 80px 32px 32px;
        gap: 16px; transition: right var(--transition); box-shadow: var(--shadow-lg);
    }
    .nav-menu.active { right: 0; }
    /* In mobile menu overlay, links should always be dark */
    .nav-menu .nav-link { color: var(--text-muted); font-size: 1.1rem; }
    .nav-menu .nav-link:hover { color: var(--primary); }
    .nav-toggle { display: flex; }

    .hero { min-height: auto; padding: 120px 0 60px; }
    .hero-title { font-size: 2.2rem; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }

    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .about-image { order: -1; }
    .about-stats { justify-content: center; }

    .services-grid { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; gap: 32px; }

    .footer-content { flex-direction: column; gap: 24px; }
    .footer-links { flex-wrap: wrap; gap: 16px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .reviews-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-title { font-size: 1.8rem; }
    .about-stats { flex-direction: column; gap: 16px; }
    .service-item { padding: 12px 14px; font-size: 0.9rem; }
    .contact-form { padding: 20px; }
    .review-card { padding: 20px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .cookie-banner { flex-direction: column; gap: 12px; padding: 16px 20px; text-align: center; }
    .cookie-actions { justify-content: center; }
}
