/* =====================================================================
   web.css — veřejný web Zahradní technika Luxík (STIHL identita)
   ===================================================================== */

:root {
    --orange: #F37A1F;
    --orange-dark: #d9660f;
    --ink: #1c1c1c;
    --soft: #f5f5f4;
    --line: #e6e6e4;
    --muted: #6b6b6b;
    --font-head: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
    --font-body: 'Barlow', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--ink); background: #fff; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* --- Hlavička --- */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 1px 8px rgba(20,20,20,.04); }
.site-header-inner { display: flex; align-items: center; gap: 22px; height: 86px; position: relative; }
.brand { display: flex; align-items: center; color: var(--ink); }
.brand:hover { text-decoration: none; }
/* Logo nese drobný text („autorizovaný prodejce STIHL“), potřebuje proto dost výšky. */
.brand-logo { height: 74px; width: auto; display: block; }
.site-nav { margin-left: auto; }
.site-nav .nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav .nav-item { position: relative; }
/* Položky menu se při najetí myší „přejedou fixou“ — průsvitný oranžový tah zleva doprava.
   `isolation` drží pseudo-prvek nad pozadím hlavičky, ale pod textem odkazu. */
.site-nav .nav-item > a { display: block; padding: 10px 15px; color: var(--ink); font-family: var(--font-head);
    font-weight: 600; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .01em;
    position: relative; isolation: isolate; }
.site-nav .nav-item > a::before { content: ''; position: absolute; left: 0; right: 0; top: 6%; bottom: 2%; z-index: -1;
    background-repeat: no-repeat; background-size: 100% 100%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 32' preserveAspectRatio='none'><path d='M2,12 C14,5.5 34,10 54,7 C74,4 96,8.5 112,5.5 C118,4.5 120,7 119,11 C118,15 114,20 106,21.5 C86,25 58,19.5 36,22 C20,23.8 8,22 3,19 C0.5,17 0.8,14 2,12 Z' fill='rgba(243,122,31,0.34)'/><path d='M14,22.5 C34,19.5 62,23 84,21 C96,20 106,21 110,22.5 C106,26.5 92,28.5 74,28 C54,27.4 30,28 18,26.5 C14,26 13,24 14,22.5 Z' fill='rgba(243,122,31,0.30)'/></svg>");
    clip-path: inset(0 100% 0 0); transition: clip-path .32s cubic-bezier(.2, .8, .25, 1); }
.site-nav .nav-item > a:hover::before,
.site-nav .nav-item:focus-within > a::before,
.site-nav .nav-item > a.is-active::before { clip-path: inset(0 0 0 0); }
.site-nav .nav-item > a:hover { text-decoration: none; }
/* Stránka, na které právě jsem — fixa zůstává natrvalo. */
.site-nav .nav-item > a.is-active { color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
    .site-nav .nav-item > a::before { transition: none; }
}
.site-nav .nav-sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 220px;
    background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 36px rgba(20,20,20,.12);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; z-index: 20; }
.site-nav .has-children:hover .nav-sub { opacity: 1; visibility: visible; transform: translateY(0); }
.site-nav .nav-sub a { display: block; padding: 9px 12px; border-radius: 7px; color: var(--ink); font-weight: 500; }
.site-nav .nav-sub a:hover { background: var(--soft); color: var(--orange); text-decoration: none; }

/* --- Obsah / hlavní --- */
.site-main { min-height: 40vh; }
/* Pod obsahem jen úzký bílý pruh — pak hned navazuje oranžový kontaktní pruh. */
.page-content { padding: 0 20px; }
.page-content > .dv-row:last-child { margin-bottom: 0; }
/* Končí-li stránka podbarvenou sekcí, šedá plocha se prodlouží až k oranžovému pruhu. */
.site-main.ends-soft .dv-row--soft:last-child { padding-bottom: 76px; }
.site-main.ends-soft + .prefooter { margin-top: 0; }

/* --- Patička (tmavá) --- */
/* --- Kontaktní pruh nad mapou: výzva vlevo, dvě akce vpravo --- */
.prefooter { background: var(--orange); color: #fff; margin-top: 40px; }
.prefooter-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: 46px 20px; }
.prefooter-intro { flex: 1 1 auto; }
.pf-title { font-family: var(--font-head); text-transform: uppercase; font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    line-height: 1.05; margin: 0 0 10px; color: #fff; }
.pf-lead { margin: 0; font-size: 1.05rem; color: rgba(255,255,255,.92); max-width: 520px; }

.prefooter-actions { flex: 0 0 auto; display: flex; gap: 14px; flex-wrap: wrap; }
.pf-btn { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-radius: 8px;
    text-decoration: none; border: 2px solid transparent;
    transition: background .18s ease, color .18s ease, border-color .18s ease; }
.pf-btn:hover { text-decoration: none; }
/* Jedno bílé, druhé černé. Při najetí se výplň odkryje do oranžové a zůstane bílý
   rámeček — prohození barev by udělalo ze dvou tlačítek vedle sebe stejnou dvojici. */
.pf-btn-solid { background: #fff; color: var(--ink); }
.pf-btn-dark { background: var(--ink); color: #fff; }
.pf-btn-solid:hover, .pf-btn-dark:hover,
.pf-btn-solid:focus-visible, .pf-btn-dark:focus-visible { background: transparent; border-color: #fff; color: #fff; }
.pf-btn-icon { display: flex; flex: 0 0 auto; }
.pf-btn-icon svg { width: 30px; height: 30px; }
.pf-btn-text { display: flex; flex-direction: column; line-height: 1.2; }
.pf-btn-label { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; opacity: .75; }
.pf-btn-value { font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
    font-size: clamp(1.1rem, 1.6vw, 1.35rem); letter-spacing: .01em; }

/* --- Mapa přes celou šířku --- */
.site-map { line-height: 0; background: var(--soft); }
.site-map iframe { width: 100%; height: 420px; border: 0; display: block; filter: saturate(.92); }

/* --- Patička --- */
.site-footer { background: var(--ink); color: #cfcfcd; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; padding: 52px 20px 34px; }
.foot-col { display: flex; gap: 16px; align-items: flex-start; }
.foot-icon { flex: 0 0 auto; display: flex; }
.foot-icon svg { width: 40px; height: 40px; color: var(--orange); }
.foot-body h3 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em;
    font-size: 1.02rem; color: var(--orange); margin: 2px 0 10px; }
.foot-body p { margin: 0; line-height: 1.75; color: #cfcfcd; }
.foot-body a { color: #cfcfcd; text-decoration: none; }
.foot-body a:hover { color: var(--orange); }
.foot-links { list-style: none; margin: 0; padding: 0; line-height: 1.75; }
.footer-copy { padding: 16px 20px 28px; font-size: .85rem; color: #8a8a88; text-align: center;
    border-top: 1px solid rgba(255,255,255,.08); }
.footer-copy a { color: #8a8a88; text-decoration: underline; text-underline-offset: 3px; }
.footer-copy a:hover { color: var(--orange); }

@media (max-width: 980px) {
    .prefooter-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
    .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}
@media (max-width: 620px) {
    .prefooter-actions { width: 100%; flex-direction: column; }
    .pf-btn { justify-content: flex-start; }
    .footer-cols { grid-template-columns: 1fr; }
    .site-map iframe { height: 300px; }
}

/* --- Novinky --- */
.news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; margin-top: 26px; }
/* Na užších displejích jde každá novinka na vlastní řádek přes celou šířku —
   dvě úzké karty vedle sebe se čtou špatně. */
@media (max-width: 800px) {
    .news-list { grid-template-columns: 1fr; gap: 20px; }
}
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--ink); box-shadow: 0 2px 12px rgba(20,20,20,.05); transition: transform .18s, box-shadow .18s; }
.news-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 16px 36px rgba(20,20,20,.12); }
.news-card-img { aspect-ratio: 16 / 9; background: var(--soft); }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card-body { padding: 18px 20px; }
.news-date { font-family: var(--font-head); font-size: .82rem; color: var(--orange); font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }
.news-card-title { margin: 0 0 8px; font-size: 1.3rem; }
.news-perex { margin: 0; color: var(--muted); font-size: .95rem; }
.news-detail { max-width: 800px; }
.news-detail h1 { margin: 6px 0 18px; font-size: 2.4rem; }
.news-hero { width: 100%; border-radius: 14px; margin-bottom: 18px; }
.news-lead { font-size: 1.2rem; color: #333; }
/* Obsah novinky přichází z WYSIWYG editoru — nadpisy, seznamy a odkazy potřebují styl. */
.news-body { line-height: 1.75; margin-bottom: 24px; }
.news-body p { margin: 0 0 1em; }
.news-body h2 { font-size: 1.7rem; margin: 1.4em 0 .4em; }
.news-body h3 { font-size: 1.3rem; margin: 1.2em 0 .4em; }
.news-body ul, .news-body ol { margin: 0 0 1em 1.4em; }
.news-body li { margin-bottom: .3em; }
.news-body a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.news-body a:hover { text-decoration: none; }
.news-body blockquote { margin: 0 0 1em; padding: 4px 0 4px 18px; border-left: 3px solid var(--orange); color: var(--muted); }
.news-back { margin-bottom: 8px; }

/* --- Kontaktní formulář --- */
.block-contact { max-width: 640px; }
/* Honeypot — skrytý pro člověka, viditelný pro roboty. Platí pro každý formulář na webu. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-row { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.cf-row label { font-size: .92rem; color: #444; }
.cf-row label span { color: var(--orange); }
.cf-row input, .cf-row textarea { padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
.cf-row input:focus, .cf-row textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(243,122,31,.15); }
.form-note { padding: 13px 16px; border-radius: 8px; margin-bottom: 16px; }
.form-ok { background: #e8f5e9; color: #1b5e20; }
.form-err { background: #fdecea; color: #b71c1c; }

.muted { color: var(--muted); }

/* --- Responzivní hlavička --- */
/* --- Hamburger (jen mobil) --- */
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }
.nav-toggle-box { display: block; position: relative; width: 26px; height: 18px; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    position: absolute; left: 0; width: 26px; height: 2.5px; background: currentColor; border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease, top .25s ease; }
.nav-toggle-bars { top: 8px; }
.nav-toggle-bars::before { content: ''; top: -8px; }
.nav-toggle-bars::after { content: ''; top: 8px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
.nav-sub-toggle { display: none; }

@media (max-width: 900px) {
    .site-header-inner { height: 72px; }
    .brand-logo { height: 46px; }
    .nav-toggle { display: block; }

    /* Menu se rozbaluje pod hlavičkou přes celou šířku. */
    .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff;
        border-top: 1px solid var(--line); box-shadow: 0 18px 30px rgba(20,20,20,.12);
        max-height: calc(100vh - 72px); overflow-y: auto; }
    .nav-open .site-nav { display: block; }
    .site-nav .nav-list { display: block; padding: 6px 0; }
    .site-nav .nav-item { border-bottom: 1px solid var(--line); position: relative; }
    .site-nav .nav-item:last-child { border-bottom: 0; }
    .site-nav .nav-item > a { padding: 15px 20px; font-size: 1.15rem; }
    /* Fixa na mobilu jen u aktivní položky — hover tu nedává smysl. */
    .site-nav .nav-item > a::before { display: none; }
    .site-nav .nav-item > a.is-active { color: var(--orange); }

    .nav-sub-toggle { display: flex; align-items: center; justify-content: center; position: absolute;
        top: 0; right: 0; width: 58px; height: 52px; background: none; border: 0; cursor: pointer; color: var(--muted); }
    .nav-sub-toggle svg { width: 20px; height: 20px; transition: transform .22s ease; }
    .nav-item.sub-open .nav-sub-toggle svg { transform: rotate(180deg); }

    .site-nav .nav-sub { display: none; position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: 0; border-top: 1px solid var(--line); background: var(--soft);
        min-width: 0; padding: 4px 0; margin: 0; }
    .nav-item.sub-open .nav-sub { display: block; }
    .site-nav .nav-sub a { padding: 12px 20px 12px 34px; }
}
