/* ==========================================================================
   Základní nastavení a proměnné
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

:root {
    --text-main: #2d2d2d;
    --text-muted: #555454;
    --brand-red: #da291c;
    --brand-red-hover: #b52016;
    --bg-page: #ffffff;
    --bg-section: #f4f5f7;
    --border-color: #e5e7eb;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--text-main); line-height: 1.6; background-color: var(--bg-page); font-size: 17px; }

/* Typografie */
h1, h2, h3 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 1.5rem; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 2rem; letter-spacing: -0.01em; color: var(--text-main); }
p { margin-bottom: 1rem; color: var(--text-muted); }
a { text-decoration: none; color: inherit; transition: color 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ==========================================================================
   SVG ikony
   ========================================================================== */
.fa-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: -0.125em;
    flex-shrink: 0;
    overflow: visible;
}

/* ==========================================================================
   Komponenty (Tlačítka, Štítky)
   ========================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand-red); color: #fff; padding: 14px 28px; border-radius: 6px; font-weight: 600; font-size: 1.1rem; border: 2px solid var(--brand-red); cursor: pointer; min-height: 48px; }
.btn:hover { background: var(--brand-red-hover); border-color: var(--brand-red-hover); color: #fff; }

.btn-hero-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-hero-outline:hover { background: #fff; color: var(--brand-red); border-color: #fff; }

.badge { position: absolute; top: 16px; right: 16px; background: #fdf2f2; color: var(--brand-red); font-size: 0.8rem; font-weight: 700; padding: 6px 12px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.02em; }

/* ==========================================================================
   Hlavička a Navigace
   ========================================================================== */
header { background: #fff; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; height: 100px; position: relative; }
.logo img { height: 100px; width: auto; display: block; }

.nav-links { display: flex; gap: 32px; list-style: none; font-weight: 500; position: absolute; left: 50%; top: 50%; transform: translateX(-50%) translateY(-50%); }
.nav-links a { color: var(--text-main); }
.nav-links a:hover { color: var(--brand-red); text-decoration: underline; text-decoration-color: var(--brand-red); text-underline-offset: 4px; }

.header-contact { display: flex; align-items: center; gap: 16px; font-weight: 600; font-size: 1.1rem; color: var(--text-main); }
.header-contact .fa-icon { color: var(--brand-red); }

.hamburger { display: none; background: none; border: none; font-size: 1.6rem; color: var(--text-main); cursor: pointer; padding: 8px; }

/* ==========================================================================
   Mobilní overlay (menu)
   ========================================================================== */
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 99; }
.nav-overlay.is-active { display: block; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 120px 0; text-align: center; background: linear-gradient(rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.85)), url('img/hero.webp') center/cover no-repeat; color: #fff; }
.hero-text { max-width: 800px; margin: 0 auto; }
.hero h1 { color: #fff; }
.hero-text p { font-size: 1.25rem; margin-bottom: 40px; color: #e0e0e0; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Trust bar
   ========================================================================== */
.trust-bar { background: var(--bg-section); padding: 32px 0; border-bottom: 1px solid var(--border-color); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.trust-item { display: flex; align-items: center; gap: 16px; font-size: 1.1rem; font-weight: 500; color: var(--text-main); }
.trust-icon { width: 48px; height: 48px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--brand-red); font-size: 1.25rem; box-shadow: 0 2px 4px rgba(0,0,0,0.05); flex-shrink: 0; }

/* ==========================================================================
   Služby
   ========================================================================== */
.services { padding: 80px 0 100px; }
.services-subtitle { margin-top: -1.5rem; margin-bottom: 2.5rem; font-size: 1.1rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 32px; }
.service-card { position: relative; padding: 40px; border: 1px solid var(--border-color); border-radius: 12px; transition: box-shadow 0.2s; background: #fff; }
.service-card:hover { box-shadow: 0 12px 24px rgba(0,0,0,0.06); border-color: var(--brand-red); }
.service-card .fa-icon { width: 2.5rem; height: 2.5rem; color: var(--brand-red); margin-bottom: 24px; display: block; }
.service-card h3 { font-size: 1.4rem; margin-bottom: 16px; color: var(--text-main); padding-right: 40px; }

/* ==========================================================================
   Recenze
   ========================================================================== */
.reviews { padding: 80px 0 100px; background: var(--bg-section); }
.reviews-container { display: grid; grid-template-columns: 1fr auto; gap: 48px 24px; align-items: end; }
.reviews-header-text { grid-column: 1 / 2; grid-row: 1; }
.reviews-header-text p { margin-bottom: 0; }
.reviews-grid { grid-column: 1 / 3; grid-row: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }

.btn-reviews { grid-column: 2 / 3; grid-row: 1; background: transparent; color: var(--brand-red); border-color: var(--brand-red); }
.btn-reviews:hover { background: var(--brand-red); color: #fff; }

.review-card { background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.stars { color: #fbbc04; margin-bottom: 16px; font-size: 1.2rem; display: flex; gap: 4px; }
.review-text { font-size: 1.1rem; font-style: italic; margin-bottom: 0; color: var(--text-main); }

/* Mobilní "zobrazit více" */
.reviews-fade { display: none; }
.btn-show-more { display: none; }

/* ==========================================================================
   Kontakt
   ========================================================================== */
.scroll-target { scroll-margin-top: 96px; }

.contact { padding: 80px 0 100px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }

.contact-group { margin-bottom: 48px; }
.contact-group:last-child { margin-bottom: 0; }
.contact-group h3 { font-size: 1.5rem; margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.contact-group h3 .fa-icon { color: var(--brand-red); }

.contact-item { display: flex; flex-direction: column; margin-bottom: 16px; font-size: 1.15rem; color: var(--text-main); }
.contact-item strong { font-weight: 600; color: var(--text-main); margin-bottom: 4px; }
.contact-item a { color: var(--text-main); text-decoration: underline; text-decoration-color: var(--border-color); text-underline-offset: 4px; }
.contact-item a:hover { color: var(--brand-red); text-decoration-color: var(--brand-red); }
.contact-note { font-size: 0.95rem; color: var(--text-muted); margin-top: 16px; display: block; }

@media (min-width: 500px) {
    .contact-item { flex-direction: row; gap: 16px; align-items: baseline; }
    .contact-item strong { width: 170px; flex-shrink: 0; margin-bottom: 0; }
}

.map-wrap { border-radius: 12px; overflow: hidden; height: 100%; min-height: 400px; background: var(--bg-section); }
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* ==========================================================================
   Patička
   ========================================================================== */
footer { background: #1a1a1a; color: #fff; padding: 48px 0; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; margin-bottom: 32px; }
.footer-col h4 { color: #fff; margin-bottom: 16px; font-size: 1.2rem; }
.footer-col p { color: #999; margin-bottom: 8px; }
.footer-col a { color: #999; }
.footer-col a:hover { color: #fff; }
.footer-col-social { text-align: right; }
.social-link { font-size: 2rem; color: #fff !important; transition: opacity 0.2s; }
.social-link:hover { opacity: 0.8; }
.footer-bottom { border-top: 1px solid #333; padding-top: 24px; text-align: center; color: #666; font-size: 0.9rem; }

/* ==========================================================================
   Responzivita – tablet (max 900px)
   ========================================================================== */
@media (max-width: 900px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        transform: none;
    }
    .nav-links.is-active { display: flex; }
    .nav-links li { border-top: 1px solid var(--border-color); }
    .nav-links a { display: block; padding: 16px 24px; }

    .hamburger { display: block; order: 3; margin-left: 16px; }
    .header-contact { order: 2; margin-left: auto; }
    .logo { order: 1; }

    .reviews-container { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
    .reviews-header-text { order: 1; }
    .reviews-grid { order: 2; }
    .btn-reviews { order: 3; align-self: center; margin-top: 8px; }

    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .map-wrap { min-height: 260px; }
}

/* ==========================================================================
   Responzivita – mobil (max 600px)
   ========================================================================== */
@media (max-width: 600px) {
    /* Sekce */
    .hero { padding: 56px 0; }
    .hero-text p { margin-bottom: 24px; }
    .services { padding: 56px 0; }
    .reviews { padding: 56px 0; }
    .contact { padding: 56px 0; }
    footer { padding: 36px 0; }
    .footer-grid { margin-bottom: 20px; }

    /* Nadpisy */
    h2 { margin-bottom: 1.25rem; }
    .services-subtitle { margin-top: 0; margin-bottom: 2rem; }

    /* Karty */
    .service-card { padding: 24px; }
    .service-card h3 { padding-right: 0; }
    .review-card { padding: 24px; }

    /* Recenze – zobrazit více */
    .reviews-grid {
        position: relative;
        overflow: hidden;
        transition: height 0.4s ease;
    }
    .reviews-fade {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding-bottom: 20px;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 150px;
        background: linear-gradient(transparent, var(--bg-section) 65%);
    }
    .reviews-grid.is-expanded .reviews-fade { display: none; }
    .btn-show-more {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: none;
        border: none;
        color: var(--brand-red);
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        padding: 6px 4px;
        font-family: inherit;
    }
    .btn-show-more:hover { text-decoration: underline; text-underline-offset: 3px; }

    /* Kontakt */
    .contact-group { margin-bottom: 28px; }
    .contact-group:last-child { margin-bottom: 0; }
    .contact-grid { gap: 24px; }
    .map-wrap { min-height: 220px; }

    /* Ostatní */
    .btn { width: 100%; }
    .trust-item { flex-direction: column; text-align: center; gap: 8px; }
    .header-contact span { display: none; }
    .footer-grid { flex-direction: column; text-align: center; }
    .footer-col-social { text-align: center; }
}
