/* ===========================================================================
   Novák stavby - vzhled webu podle grafického návrhu (_tmp/podklady/firma).
   Načítá se za základními styly enginu (config theme.styles); styly modulů
   (reference, galerie…) se načítají až za ním, proto u nich selektor .main.
   =========================================================================== */

/* Barlow (SIL OFL, licence v assets/fonts/OFL.txt), uloženo lokálně. */
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("../fonts/barlow-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("../fonts/barlow-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 800; font-display: swap; src: url("../fonts/barlow-800-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 800; font-display: swap; src: url("../fonts/barlow-800-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --accent: #d97706;        /* oranžová: tlačítka, ikony, pás s čísly */
    --accent-dark: #b45309;
    --ink: #1c1917;           /* antracit: text, horní pruh, patička */
    --text: #2a2522;
    --muted: #6b625a;
    --bg: #f7f3ee;            /* teplá krémová stránky */
    --bg-soft: #efe8df;       /* světlé pásy */
    --card: #fbf9f6;
    --border: #e2d9cc;
    --header-bg: #f7f3ee;
    --footer-bg: #1c1917;
    --footer-text: #e7e2dc;
    --radius: 6px;
    --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

body { font-size: 18px; line-height: 1.55; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
a { color: var(--accent-dark); }

/* Nadpis sekce s oranžovou svislou čárkou vlevo. */
.block-title, .media-text__body h2, .page > h1 { position: relative; padding-left: 18px; }
.block-title::before, .media-text__body h2::before, .page > h1::before {
    content: ''; position: absolute; left: 0; top: .14em; bottom: .14em; width: 6px; border-radius: 2px; background: var(--accent);
}

.button { padding: 12px 26px; border-radius: var(--radius); font-weight: 800; font-size: 1.1rem; letter-spacing: .01em; }
.button--secondary { color: var(--ink); border-color: var(--ink); }
.button--secondary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* --- horní pruh a hlavička ------------------------------------------------ */
.topbar { background: var(--ink); color: #e7e2dc; font-size: .95rem; }
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; min-height: 38px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: #fbbf5c; }
.topbar__sep { margin: 0 10px; opacity: .6; }

.header { border-bottom: 1px solid var(--border); }
.header__inner { min-height: 84px; gap: 20px; }
.logo img { max-height: 54px; }
.nav a { font-weight: 700; font-size: 1.12rem; color: var(--ink); padding: 8px 12px; }
.nav a:hover, .nav .is-active > a { background: none; color: var(--accent-dark); }
.nav .is-active > a { box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }
.header__cta { white-space: nowrap; padding: 11px 22px; font-size: 1.05rem; }
.header__phone { display: none; place-items: center; width: 46px; height: 46px; border-radius: var(--radius); background: var(--accent); color: #fff; }
.header__phone .icon { width: 22px; height: 22px; }

/* Menu se do řádku vejde až od 1020 px - pod tím tlačítko menu a telefon. */
@media (max-width: 1020px) {
    .header__inner { min-height: 70px; }
    .logo img { max-height: 44px; }
    .header__cta { display: none; }
    .header__phone { display: grid; margin-left: auto; }
    .nav-toggle { display: block; margin-left: 0; border: 0; padding: 10px 6px; }
    .nav-toggle span { width: 30px; height: 3px; background: var(--ink); margin: 6px 0; }
    .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--header-bg); border-bottom: 1px solid var(--border); padding: 4px 20px 14px; box-shadow: 0 12px 24px rgba(0, 0, 0, .08); }
    .nav.is-open { display: block; }
    .nav ul { flex-direction: column; }
    .nav a { padding: 12px 4px; border-bottom: 1px solid var(--border); }
    .nav .is-active > a { box-shadow: inset 4px 0 0 var(--accent); padding-left: 14px; }
}
@media (max-width: 560px) {
    .topbar__inner { justify-content: center; font-size: .85rem; }
    .topbar__sep { margin: 0 6px; }
}

/* --- skladba stránky -------------------------------------------------------- */
.main { padding-bottom: 72px; }
.block.band { margin-bottom: 0; }
.band + .block:not(.band) { margin-top: clamp(40px, 5vw, 64px); }
.block:not(.band) + .band { margin-top: clamp(24px, 3vw, 40px); }
.main:has(.page > .block.band:last-child) { padding-bottom: 0; }

/* --- úvodní pás ------------------------------------------------------------- */
.band--dark:has(> .hero) { --hero-bg: linear-gradient(90deg, #3a2e26, #6e5844); }
.hero { min-height: clamp(380px, 38vw, 540px); }
.hero__bg { object-position: 75% 50%; }
.hero--image::after { background: linear-gradient(90deg, rgba(20, 14, 10, .82) 0%, rgba(20, 14, 10, .55) 42%, rgba(20, 14, 10, 0) 75%); }
.hero__title { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.05; }
.hero__text { font-size: clamp(1.15rem, 1.8vw, 1.45rem); max-width: 30em; opacity: 1; }
.hero .button { padding: 14px 30px; font-size: 1.2rem; }
.hero--image .button--secondary { border-color: #fff; color: #fff; }
.hero--image .button--secondary:hover { background: #fff; color: var(--ink); }

/* --- služby (karty s ikonou vlevo) ------------------------------------------ */
.features { gap: 22px; }
.feature { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: start; position: relative;
    padding: 26px 28px; background: var(--card); border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(60, 40, 20, .05); }
.feature__icon { grid-row: span 2; width: auto; height: auto; margin: 0; background: none; color: var(--accent); }
.feature__icon .icon { width: 64px; height: 64px; stroke-width: 1.6; }
.feature__title { font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.feature p { color: var(--text); font-size: 1.08rem; line-height: 1.45; }
.feature__title a::after { content: ''; position: absolute; inset: 0; }
.feature:has(a):hover { border-color: var(--accent); }

/* Čtyři karty vedle sebe: ikona nad textem, ať nejsou stísněné. */
.features--4 .feature { grid-template-columns: 1fr; }
.features--4 .feature__icon { grid-row: auto; margin-bottom: 12px; justify-self: start; }
.features--4 .feature__icon .icon { width: 48px; height: 48px; }
.features--4 .feature__title { font-size: 1.35rem; }

/* --- čísla v oranžovém pásu: „20 let - na stavbách" ------------------------- */
.band--accent .stats { gap: 0; }
.band--accent .stat { display: flex; align-items: baseline; justify-content: center; gap: 0 .35em; padding: 4px 10px; white-space: nowrap; }
.band--accent .stat + .stat { border-left: 1px solid rgba(255, 255, 255, .45); }
.band--accent .stat__value { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; }
.band--accent .stat__label { margin: 0; font-size: clamp(1.1rem, 1.9vw, 1.6rem); font-weight: 800; opacity: 1; }
.band--accent .stat__label::before { content: '- '; }
.band--accent.block--stats { padding-top: 26px; padding-bottom: 26px; }
/* Čtyři a víc čísel: popisek pod číslem, jinak se do řádku nevejdou. */
.band--accent .stats:has(.stat:nth-child(4)) .stat { flex-direction: column; align-items: center; white-space: normal; text-align: center; }
.band--accent .stats:has(.stat:nth-child(4)) .stat__label { font-size: clamp(1rem, 1.5vw, 1.25rem); }
.band--accent .stats:has(.stat:nth-child(4)) .stat__label::before { content: none; }

/* --- obrázek s textem, galerie, reference ------------------------------------ */
.media-text__body h2 { font-size: clamp(2rem, 3.2vw, 2.6rem); line-height: 1.1; }
.media-text__image { box-shadow: 0 6px 22px rgba(40, 25, 10, .12); }
.main .albums { gap: 18px; }
.main .album-card img { border-radius: var(--radius); }
.main .album-card__title { font-size: 1.05rem; color: var(--ink); }
.main .album-card__count { display: none; }
.main .album-card__desc { color: var(--text); font-size: 1rem; }
.main .albums__more { margin-top: 12px; }
.main .albums__more a, .block--references a { font-weight: 700; }
.main .references { gap: 22px; }
.main .reference { background: var(--card); border-color: var(--border); border-radius: var(--radius); padding: 22px 24px; }
.main .reference__rating { color: var(--accent); font-size: 1.2rem; }
.main .reference__text { font-size: 1.08rem; }
.main .reference figcaption strong { color: var(--ink); }

/* --- výzva: nadpis | text | tlačítko ------------------------------------------- */
.band--light { background: var(--bg-soft); }
.cta h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta p { font-size: 1.1rem; }

/* --- tabulky, ceník, formulář -------------------------------------------------- */
.main .prices__table th, .main .prices__table td { border-color: var(--border); }
.inquiry input, .inquiry select, .inquiry textarea { background: #fff; border-color: #d6cbbd; border-radius: var(--radius); }

/* --- patička: jeden řádek ------------------------------------------------------ */
.footer { text-align: center; padding: 26px 0; font-size: 1.02rem; }
.footer__inner { justify-items: center; gap: 4px; }
.footer__contact { justify-content: center; gap: 4px 0; }
.footer__contact > * + *::before { content: '\00b7'; display: inline-block; margin: 0 10px; color: var(--footer-text); }
.footer a { color: var(--footer-text); text-decoration: none; }
.footer a:hover { color: #fbbf5c; }

/* --- mobil ---------------------------------------------------------------------- */
@media (max-width: 860px) {
    .features--3 { --cols: 1; }
    .features--4 .feature { grid-template-columns: auto 1fr; }
    .features--4 .feature__icon { grid-row: span 2; margin-bottom: 0; }
}
@media (max-width: 640px) {
    body { font-size: 17px; }
    .hero { min-height: 0; }
    .hero--image::after { background: linear-gradient(90deg, rgba(20, 14, 10, .85) 0%, rgba(20, 14, 10, .6) 60%, rgba(20, 14, 10, .35) 100%); }
    .hero__actions { flex-direction: column; }
    .hero .button { width: 100%; text-align: center; }
    .feature { padding: 16px 18px; column-gap: 16px; }
    .feature__icon { padding-right: 16px; border-right: 2px solid var(--border); }
    .feature__icon .icon { width: 44px; height: 44px; }
    .feature__title { font-size: 1.3rem; margin-bottom: 2px; }
    .feature p { font-size: 1rem; }
    .band--accent .stats { grid-template-columns: repeat(3, 1fr); }
    .band--accent .stats:has(.stat:nth-child(4)) { grid-template-columns: 1fr 1fr; row-gap: 14px; }
    .band--accent .stats:has(.stat:nth-child(4)) .stat:nth-child(3) { border-left: 0; }
    .band--accent .stat { flex-direction: column; align-items: center; gap: 0; padding: 0 4px; white-space: normal; min-width: 0; }
    .band--accent .stat__label { font-size: 1rem; text-align: center; }
    .band--accent .stat__label::before { content: none; }
    .main .albums { grid-template-columns: 1fr 1fr; gap: 10px; }
    .main .album-card__title { font-size: .95rem; }
    .cta { flex-direction: column; align-items: stretch; text-align: center; }
    .cta .button { width: 100%; text-align: center; }
    .footer__contact { flex-direction: column; }
    .footer__contact > * + *::before { content: none; }
}
