/* ============================================================
   Solvio – čistý design systém (bez WordPress/WPBakery balastu)
   Barvy a typografie věrně dle původního webu:
   akcent #65b46b; fonty Poppins (nadpisy) + Inter (text)
   ============================================================ */

:root {
    --green: #65b46b;
    --green-dark: #549a5a;
    --text: #5f6368;
    --heading: #2b2f33;
    --white: #ffffff;
    --line: #ececec;
    --bg-alt: #fafafa;
    --container: 1180px;
    --header-h: 92px;
    --font-head: "Poppins", "Segoe UI", Arial, sans-serif;
    --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

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

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--heading);
    line-height: 1.25;
    margin: 0 0 .6em;
    letter-spacing: -.01em;
}

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: var(--font-head); font-weight: 600; font-size: 15px;
    letter-spacing: .03em; text-transform: uppercase;
    padding: 15px 30px; border-radius: 3px; 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: var(--font-head); font-weight: 600; font-size: 15px;
    letter-spacing: .04em; 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: 58vh; display: flex; align-items: center;
    color: #fff; text-align: center;
    background-color: #5aa460;
    /* Vrstvy: horní scrim (čitelnost loga/menu) + slabý zelený nádech (foto výrazně prosvítá) + foto */
    background-image:
        linear-gradient(180deg, rgba(24,52,29,.42) 0%, rgba(24,52,29,0) 24%),
        linear-gradient(rgba(72,140,80,.30), rgba(58,118,66,.36)),
        url("/images/hero.jpg");
    background-image:
        linear-gradient(180deg, rgba(24,52,29,.42) 0%, rgba(24,52,29,0) 24%),
        linear-gradient(rgba(72,140,80,.30), rgba(58,118,66,.36)),
        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) + 34px) 0 50px; width: 100%; }
.hero h1 { color: #fff; font-size: clamp(30px, 4.8vw, 50px); font-weight: 700; margin-bottom: 24px; text-shadow: 0 2px 16px rgba(15,35,20,.55); }
.hero-sub { font-size: clamp(18px, 2.2vw, 25px); font-weight: 400; margin: 0 auto 34px; max-width: 780px; text-shadow: 0 2px 12px rgba(15,35,20,.5); }
.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: .05em;
    font-size: 27px; 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: 19px; margin: 16px 0 8px; }
.feature p { margin: 0; font-size: 16px; }

/* --- 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: 23px; font-family: var(--font-head); font-weight: 600; line-height: 1.45; }
.about-photo img { width: 100%; border-radius: 4px; }

/* --- Kontakt --- */
.section-contact { background: var(--bg-alt); }
.contact-grid { max-width: 820px; margin: 0 auto; }

/* Adresa kompaktně na řádku, vycentrovaná, s oddělovači */
.contact-info {
    font-style: normal; text-align: center; margin: -20px auto 40px; max-width: 760px;
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 6px 12px; color: var(--text);
}
.contact-info .ci-item { white-space: nowrap; }
.contact-info strong { color: var(--heading); }
.contact-info a { color: var(--heading); }
.contact-info a:hover { color: var(--green); text-decoration: none; }
.contact-info .ci-sep { color: var(--green); font-weight: 700; }

/* Formulář jako zvýrazněná karta */
.contact-form-wrap {
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    box-shadow: 0 14px 40px rgba(30,45,35,.08); padding: 40px 44px;
}

/* Inline labely (label vlevo, pole vpravo) – využijeme celou šířku */
.contact-form .field {
    margin-bottom: 22px;
    display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 8px 22px;
}
.contact-form label { font-size: 16px; color: var(--heading); font-weight: 600; text-align: right; }
.contact-form input, .contact-form textarea {
    font-family: inherit; font-size: 16px; color: var(--heading);
    padding: 13px 15px; border: 1px solid #dcdcdc; border-radius: 6px; background: #fff;
    width: 100%; transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(101,180,107,.15);
}
.contact-form textarea { resize: vertical; }
/* Textarea: label zarovnat nahoru */
.contact-form .field.field-message { align-items: start; }
.contact-form .field.field-message label { padding-top: 12px; }
/* Chyba a tlačítko zarovnat pod sloupec s poli */
.contact-form .field-error { grid-column: 2; }
.contact-form .form-actions { text-align: right; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

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

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

/* ============================================================
   Patička + zpět nahoru
   ============================================================ */
.site-footer { background: #2b2f31; color: #b9c0c2; padding: 32px 0; font-size: 15px; }
.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; }
}

@media (max-width: 640px) {
    /* Inline labely na mobilu zpět nad pole */
    .contact-form .field { grid-template-columns: 1fr; gap: 7px; }
    .contact-form label { text-align: left; }
    .contact-form .field-error { grid-column: auto; }
    .contact-form-wrap { padding: 26px 20px; }
    .form-actions { text-align: left; }
    .form-actions .btn { width: 100%; }
    .contact-info { gap: 4px 10px; font-size: 15px; }
}

@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; }
}
