/* ============================================================
   Solvio – čistý design systém (bez WordPress/WPBakery balastu)
   Barvy a typografie věrně dle původního webu:
   akcent #65b46b, text #777, nadpisy #333, Montserrat + Open Sans
   ============================================================ */

:root {
    --green: #65b46b;
    --green-dark: #549a5a;
    --text: #777777;
    --heading: #333333;
    --white: #ffffff;
    --line: #ececec;
    --bg-alt: #fafafa;
    --container: 1180px;
    --header-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    margin: 0;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.9;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    color: var(--heading);
    line-height: 1.25;
    margin: 0 0 .6em;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

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

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 1001;
    background: var(--green); color: #fff; padding: 10px 16px; border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 0; }

/* --- Tlačítko --- */
.btn {
    display: inline-block; cursor: pointer;
    font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 13px;
    letter-spacing: .04em; text-transform: uppercase;
    padding: 14px 28px; border-radius: 2px; border: 1px solid transparent;
    transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; text-decoration: none; }

/* ============================================================
   Hlavička
   ============================================================ */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--header-h);
    display: flex; align-items: center;
    background: transparent;
    transition: background .25s ease, box-shadow .25s ease;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo img { height: 46px; width: auto; }
.logo .logo-dark { display: none; }

.primary-nav ul { list-style: none; display: flex; gap: 34px; margin: 0; padding: 0; }
.primary-nav a {
    font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 13px;
    letter-spacing: .06em; text-transform: uppercase; color: #fff;
}
.primary-nav a:hover { color: #fff; text-decoration: none; opacity: .8; }

/* Sticky stav – bílé pozadí, zelené logo, tmavá navigace */
.site-header.stuck { background: #fff; box-shadow: 0 1px 10px rgba(0,0,0,.08); }
.site-header.stuck .logo-light { display: none; }
.site-header.stuck .logo-dark { display: block; }
.site-header.stuck .primary-nav a { color: var(--heading); }
.site-header.stuck .primary-nav a:hover { color: var(--green); opacity: 1; }
.site-header.stuck .nav-toggle span { background: var(--heading); }

/* Hamburger */
.nav-toggle {
    display: none; width: 42px; height: 42px; border: 0; background: transparent;
    cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: background .2s; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative; min-height: 86vh; display: flex; align-items: center;
    color: #fff; text-align: center;
    background-color: #5aa460;
    background-image: linear-gradient(rgba(94,166,100,.86), rgba(74,140,80,.92)), url("/images/hero.jpg");
    background-image: linear-gradient(rgba(94,166,100,.86), rgba(74,140,80,.92)),
        image-set(url("/images/hero.webp") type("image/webp"), url("/images/hero.jpg") type("image/jpeg"));
    background-size: cover; background-position: center;
}
.hero-inner { padding: calc(var(--header-h) + 40px) 0 60px; width: 100%; }
.hero h1 { color: #fff; font-size: clamp(28px, 4.6vw, 46px); font-weight: 700; margin-bottom: 24px; }
.hero-sub { font-size: clamp(17px, 2.2vw, 24px); font-weight: 300; margin: 0 auto 34px; max-width: 760px; }
.hero .btn-primary { background: #fff; color: var(--green-dark); border-color: #fff; }
.hero .btn-primary:hover { background: rgba(255,255,255,.88); color: var(--green-dark); }

/* ============================================================
   Sekce – obecné
   ============================================================ */
.section { padding: 84px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-title {
    text-align: center; text-transform: uppercase; letter-spacing: .06em;
    font-size: 22px; font-weight: 700; margin-bottom: 56px; position: relative;
}
.section-title::after {
    content: ""; display: block; width: 46px; height: 3px; background: var(--green);
    margin: 16px auto 0; border-radius: 2px;
}

/* --- Proč si nás vybrat (ikony) --- */
.feature-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px;
}
.feature { text-align: center; }
.feature-icon { color: var(--green); display: inline-block; }
.feature-icon svg { width: 48px; height: 48px; }
.feature h3 { font-size: 16px; margin: 14px 0 8px; }
.feature p { margin: 0; font-size: 14px; }

/* --- Služby (odrážky) --- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 46px; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 16px; }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: .55em;
    width: 16px; height: 9px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green);
    transform: rotate(-45deg);
}

/* --- O nás --- */
.about-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 50px; align-items: start; }
.about-text .lead { color: var(--heading); font-size: 20px; font-family: "Montserrat", sans-serif; font-weight: 600; line-height: 1.5; }
.about-photo img { width: 100%; border-radius: 4px; }

/* --- Kontakt --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 50px; }
.contact-info { font-style: normal; }
.contact-info strong { color: var(--heading); }
.contact-lines a { display: inline-block; }
.contact-lines .ci { display: inline-block; width: 20px; color: #999; }

.contact-form .field { margin-bottom: 20px; display: flex; flex-direction: column; }
.contact-form label { font-size: 14px; margin-bottom: 6px; color: var(--heading); }
.contact-form input, .contact-form textarea {
    font-family: inherit; font-size: 15px; color: var(--heading);
    padding: 12px 14px; border: 1px solid #ddd; border-radius: 2px; background: #fff;
    width: 100%; transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--green); }
.contact-form textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field-error { color: #c0392b; font-size: 13px; margin-top: 5px; }
.validation-summary { color: #c0392b; font-size: 14px; margin-bottom: 16px; }
.validation-summary ul { margin: 0; padding-left: 18px; }
.validation-summary:empty { display: none; }

.alert { padding: 14px 18px; border-radius: 3px; margin-bottom: 22px; font-size: 15px; }
.alert-success { background: #eaf7ec; border: 1px solid var(--green); color: #2f6b39; }

/* ============================================================
   Patička + zpět nahoru
   ============================================================ */
.site-footer { background: #2b2f31; color: #b9c0c2; padding: 30px 0; font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.site-footer p { margin: 0; }
.site-footer a { color: #dfe4e5; }
.footer-contact a { margin: 0 4px; }

.back-to-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 900;
    width: 44px; height: 44px; border-radius: 3px;
    background: rgba(43,47,49,.85); color: #fff; text-align: center; line-height: 44px;
    font-size: 20px; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--green); color: #fff; text-decoration: none; }

/* ============================================================
   Responzivita
   ============================================================ */
@media (max-width: 980px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
    .services-grid { grid-template-columns: 1fr; gap: 8px; max-width: 460px; margin: 0 auto; }
    .about-grid { grid-template-columns: 1fr; gap: 34px; }
    .about-photo { order: -1; max-width: 340px; }
    .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .primary-nav {
        position: absolute; top: var(--header-h); left: 0; right: 0;
        background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.1);
        max-height: 0; overflow: hidden; transition: max-height .3s ease;
    }
    .primary-nav.open { max-height: 320px; }
    .primary-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
    .primary-nav li { border-bottom: 1px solid var(--line); }
    .primary-nav li:last-child { border-bottom: 0; }
    .primary-nav a { display: block; padding: 14px 24px; color: var(--heading); }
    .site-header.stuck .primary-nav a,
    .primary-nav a { color: var(--heading); }
}

@media (max-width: 560px) {
    .feature-grid { grid-template-columns: 1fr; gap: 34px; }
    .section { padding: 60px 0; }
    .footer-inner { flex-direction: column; text-align: center; }
}
