/* Vzhled specifický pro strechyzako.cz — připojeno přes brand.stylesheet.
   Podle předlohy (source/sass/*.scss): bílá hlavička s velkým logem
   a kontakty obou firem, tmavý pruh menu #19232f, pás s fotkou střechy,
   čtyři sloupce dovedností, červený pruh „Přijmeme…“, tenká výzva
   k poptávce, mozaika fotek 3×2 bez mezer na tmavé fotce, tmavá patička
   #101317 s menu. Podstránky: nadpis na střed, šedý podnadpis, dvoubarevný
   pás se seznamy (#ca0000 / #2d3037), text vlevo a fotka vpravo.
   Písmo Open Sans + Roboto (self-hosted, licence OFL).
   ⚠️ Načítá se PŘED styly tématu — pravidla potřebují vyšší specifičnost. */

@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300 800; font-stretch: 100%; font-display: swap; src: url('fonts/opensans-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300 800; font-stretch: 100%; font-display: swap; src: url('fonts/opensans-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: 'Roboto'; font-style: normal; font-weight: 400 500; font-stretch: 100%; font-display: swap; src: url('fonts/roboto-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400 500; font-stretch: 100%; font-display: swap; src: url('fonts/roboto-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; }
html[lang] { --font: 'Open Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }

/* ── hlavička: logo + kontakty obou firem, pod tím tmavý pruh menu ── */
html .hlavicka-pruh .pruh { background: #fff; border-bottom: 0; }
html .hlavicka-pruh .pruh > .wrap-wide { max-width: var(--wide); padding-block: 2.2rem; align-items: center; }
html .hlavicka-kontakty { gap: 1rem 2.6rem; font-size: 0.95rem; color: #19232f; }
html .hlavicka-kontakt strong { font-size: 1rem; font-weight: 700; margin-bottom: 0.7rem; }
html .hlavicka-kontakt a { color: var(--accent-bright); text-decoration: none; }
html .hlavicka-kontakt a[href^="tel:"] { color: inherit; }
html .hlavicka-kontakt a:hover { text-decoration: underline; }

html body .hlavicka-pruh > .wrap-wide {
  background: #19232f;
  min-height: 50px;
  padding-block: 0;
  justify-content: center;
  box-shadow: 0 5px 5px rgb(0 0 0 / 0.2);
}
html body .hlavicka-pruh .site-nav { margin: 0; gap: 0; justify-content: center; }
html body .hlavicka-pruh .site-nav > a,
html body .hlavicka-pruh .site-nav > .nav-item > summary {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 50px;
  padding: 0 0.95rem;
  border-bottom: 0;
  position: relative;
}
/* Červená čárka nad aktivní položkou a při najetí — jako předloha. */
html body .hlavicka-pruh .site-nav > a::before,
html body .hlavicka-pruh .site-nav > .nav-item > summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--accent-bright);
  box-shadow: red 0 0 7px;
  transition: all 0.1s ease-in;
}
html body .hlavicka-pruh .site-nav > a:hover::before,
html body .hlavicka-pruh .site-nav > a[aria-current='page']::before,
html body .hlavicka-pruh .site-nav > .nav-item > summary:hover::before { width: 50%; margin-left: -25%; }
html body .hlavicka-pruh .site-nav > a:hover,
html body .hlavicka-pruh .site-nav > a[aria-current='page'] { color: #fff; }
html body .hlavicka-pruh .nav-prepinac { color: #fff; border-color: #445; margin: 0.4rem 0; }
/* Rozbalené menu: téma podloží tlačítko --surface (světle šedá) — bílé písmo by zmizelo. */
html body .hlavicka-pruh .nav-prepinac[aria-expanded='true'] { background: rgb(255 255 255 / 0.12); }

/* ── úvod: pás s fotkou střechy v přirozené velikosti, bez ztmavení ── */
html .hero-foto { --hero-vyska: 18.75rem; --hero-ztmaveni: 0; margin-bottom: 0; }
html .hero-foto .hero-foto-obrazek { object-position: center top; }
html .hero-foto h1 { font-family: 'Roboto', var(--font); font-size: clamp(1.7rem, 3.4vw, 2.15rem); font-weight: 400; text-transform: none; text-shadow: 0 2px 7px #000; }

html body.is-home article { background: transparent; box-shadow: none; padding: 0; border: 0; }

/* Čtyři sloupce dovedností s červenou linkou pod nadpisem. */
html .dovednosti { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; padding: 2.5rem 0 1.8rem; }
html .dovednosti h3 { text-transform: uppercase; font-size: 1.3rem; font-weight: 700; color: #272727; margin: 0 0 1.2rem; }
html .dovednosti h3::after { content: ''; display: block; width: 50px; height: 2px; background: var(--accent-bright); margin: 0.75rem auto 0; }
html .dovednosti ul { list-style: none; padding: 0; margin: 0; color: #5f5f5f; }
html .dovednosti li { margin: 0 0 0.6rem; font-size: 1rem; }

/* Červený pruh s náborem přes celou šířku okna. */
html .inzerce {
  width: 100vw;
  margin: 1.5rem 0 0 calc(50% - 50vw);
  padding: 1.4rem 1.25rem;
  background: var(--accent-bright);
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 600;
}
html .inzerce a { color: #fff; text-decoration: none; }

/* Výzva k poptávce: velké tenké písmo, čára a červený textový odkaz. */
html .poptavka-vyzva { text-align: center; padding: 5.5rem 0 4.5rem; }
html .poptavka-vyzva h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 300; color: #3e3d3d; text-transform: none; letter-spacing: 0; margin: 0; line-height: 1.5; }
html .poptavka-vyzva h2::after { content: ''; display: block; max-width: 300px; height: 1px; margin: 1.8rem auto 1rem; background: #ddd; }
html .poptavka-vyzva .btn { display: inline-block; padding: 0.3rem 0.5rem; background: none; color: var(--accent-bright); text-transform: uppercase; font-weight: 700; font-size: 1.1rem; letter-spacing: 2px; text-decoration: none; border: 0; }
html .poptavka-vyzva .btn:hover { color: #bb0001; text-decoration: underline; }

/* Mozaika 3×2 bez mezer, spodní polovina leží na tmavé fotce střechy. */
html .strechy {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0 max(1.25rem, calc(50vw - 35rem)) 12rem;
  background:
    linear-gradient(#fff 0, #fff 16rem, transparent 16rem),
    url('img/homepage_bottom.jpg') center / cover no-repeat;
}
html body.galerie-mrizka .strechy p:has(> picture + picture),
html body.galerie-mrizka .strechy p:has(> img + img) {
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  box-shadow: 0 0 30px rgb(0 0 0 / 0.25);
}
html body.galerie-mrizka .strechy img { border-radius: 0; aspect-ratio: 3 / 2; }

/* ── podstránky: bílá stránka, nadpis na střed velkými písmeny ── */
html body:not(.is-home) article { background: transparent; box-shadow: none; padding: 0; border: 0; }
html body:not(.is-home) article > h1 { text-align: center; text-transform: uppercase; font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: 3px; margin: 2.5rem 0 0.6rem; }
/* Předloha měla podnadpis #9d9d9d (kontrast 2,7) — ztmaveno na 4,95 (Miki 16. 10. 2026). */
html body:not(.is-home) article > h1 + h2 { text-align: center; text-transform: none; color: #707070; font-size: 1.3rem; font-weight: 600; letter-spacing: 1px; margin: 0 0 3rem; }
html article h2 { text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.4rem; font-weight: 600; }

/* Dvoubarevný pás se dvěma seznamy a fajfkami. */
html .dva-seznamy { display: grid; grid-template-columns: 1fr 1fr; width: 100vw; margin: 2.5rem 0 0 calc(50% - 50vw); color: #fff; }
html .dva-seznamy > div { padding: 1.6rem 2.2rem; }
html .dva-seznamy > div:first-child { background: linear-gradient(-36deg, #ae0000 0%, #ca0000 100%); text-align: right; }
html .dva-seznamy > div:last-child { background: #2d3037; }
html .dva-seznamy ul { list-style: none; padding: 0; margin: 0; max-width: 35rem; }
html .dva-seznamy > div:first-child ul { margin-left: auto; }
html .dva-seznamy li { margin: 0.55rem 0; color: #f2f2f2; }
html .dva-seznamy li ul { margin-top: 0.4rem; }
html .dva-seznamy > div:first-child li::after { content: ''; display: inline-block; width: 16px; height: 13px; margin-left: 0.8rem; background: url('img/check.png') no-repeat; vertical-align: -1px; }
html .dva-seznamy > div:last-child li::before { content: ''; display: inline-block; width: 16px; height: 13px; margin-right: 0.8rem; background: url('img/check.png') no-repeat; vertical-align: -1px; }

/* Text vlevo, fotka vpravo do půlky šířky (předloha .half-bg). */
html .pul-foto { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; align-items: start; margin-top: 0.5rem; }
html .pul-foto > :not(p:has(img)) { grid-column: 1; }
/* Fotka sahá k pravé hraně okna: okraj = mezera vedle sloupce (--max) + odsazení obsahu. */
html .pul-foto > p:has(img) { grid-column: 2; grid-row: 1 / span 20; margin: 0 calc(-1 * (max(0px, (100vw - var(--max)) / 2) + 1.25rem)) 0 0; display: grid; gap: 0.5rem; }
html .pul-foto img { width: 100%; border-radius: 0; }
html .pul-foto > h2:first-of-type { margin-top: 2.2rem; }
html .pul-foto ul { list-style: none; padding: 0; }
html .pul-foto li { position: relative; padding-left: 1.6rem; margin: 0.6rem 0; color: #5f5f5f; }
html .pul-foto li::before { content: ''; position: absolute; left: 0; top: 0.4em; width: 16px; height: 13px; background: url('img/check_red.png') no-repeat; }
/* Stránka, kde jsou v bloku jen fotky: mřížka přes celou šířku. */
html .pul-foto:not(:has(> :not(p:has(img)))) { grid-template-columns: 1fr; }
html .pul-foto:not(:has(> :not(p:has(img)))) > p:has(img) { grid-column: 1; margin: 0; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }

/* ── poptávka: vlevo fotka s textem o soukromí, vpravo formulář ── */
html article:has(.poptavka-info) { display: grid; grid-template-columns: minmax(14rem, 1fr) 2fr; gap: 0 2.5rem; }
html article:has(.poptavka-info) > * { grid-column: 2; }
html article:has(.poptavka-info) > h1 { grid-column: 1 / -1; }
html .poptavka-info {
  grid-column: 1 !important;
  grid-row: 2 / span 6;
  margin: 0;
  padding: 2rem 1.75rem;
  min-height: 22rem;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.7;
  background: linear-gradient(rgb(25 35 47 / 0.55), rgb(25 35 47 / 0.55)), url('img/poptavka_bg.jpg') center / cover no-repeat;
}
html .formular { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
html .formular .formular-cela, html .formular .formular-past { grid-column: 1 / -1; }
html .formular button { background: var(--accent-bright); color: #fff; text-transform: uppercase; border-radius: 0; letter-spacing: 0.08em; }

/* ── tmavá patička #101317 s menu ── */
html body .site-footer { background: #101317; color: #9a9ea6; border-top: 0; margin-top: 0; padding-top: 3rem; }
html body .site-footer a, html body .site-footer strong { color: #dedede; }
html body .site-footer .paticka-menu a { text-transform: uppercase; letter-spacing: 1px; font-family: 'Roboto', var(--font); font-size: 0.85rem; text-decoration: none; }
html body .site-footer .paticka-menu a:hover { color: #bb0001; }
html body .site-footer .footer-bottom { border-top-color: rgb(255 255 255 / 0.12); }
html body .site-footer .footer-brand img { background: #fff; padding: 0.4rem 0.6rem; border-radius: 4px; box-sizing: content-box; }
html body:not(.is-home) main { padding-bottom: 4rem; }

@media (max-width: 900px) {
  html .dovednosti { grid-template-columns: repeat(2, 1fr); }
  html .formular { grid-template-columns: 1fr; }
  html .pul-foto { grid-template-columns: 1fr; }
  html .pul-foto > p:has(img) { grid-column: 1; grid-row: auto; margin: 1.5rem 0 0; }
  html article:has(.poptavka-info) { grid-template-columns: 1fr; }
  html article:has(.poptavka-info) > *, html .poptavka-info { grid-column: 1 !important; }
  html .poptavka-info { grid-row: auto; min-height: 0; margin-bottom: 1.5rem; }
}
@media (max-width: 720px) {
  html .hlavicka-pruh .pruh > .wrap-wide { padding-block: 1.2rem; }
  html body .brand img { height: 64px; }
  html .dva-seznamy { grid-template-columns: 1fr; }
  html .dva-seznamy > div:first-child { text-align: left; }
  html .dva-seznamy > div:first-child ul { margin-left: 0; }
  html .dva-seznamy > div:first-child li::after { display: none; }
  html .dva-seznamy > div:first-child li::before { content: ''; display: inline-block; width: 16px; height: 13px; margin-right: 0.8rem; background: url('img/check.png') no-repeat; vertical-align: -1px; }
  html .strechy { padding-bottom: 5rem; background: linear-gradient(#fff 0, #fff 8rem, transparent 8rem), url('img/homepage_bottom.jpg') center / cover no-repeat; }
  html body.galerie-mrizka .strechy p:has(> picture + picture),
  html body.galerie-mrizka .strechy p:has(> img + img) { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  html .dovednosti { grid-template-columns: 1fr; }
}

/* ── tmavý vzhled (paletka „Vzhled“ → Tmavý, 15. 10. 2026) ──
   Dovymyšlený z tmavě modré lišty menu předlohy: hlavička a plochy v odstínech
   #19232f, červená zůstává na plochy (pruh náboru, čárky, tlačítka), jako text
   světlejší (--accent). Logo má světlou variantu (brand.logo_tmave). Fotky,
   červený pruh a dvoubarevný pás se seznamy zůstávají, jak jsou. */
html[data-vzhled='tmava'] .hlavicka-pruh .pruh { background: #1a222c; }
html[data-vzhled='tmava'] .hlavicka-kontakty { color: var(--fg); }
html[data-vzhled='tmava'] .hlavicka-kontakt a { color: var(--accent); }
html[data-vzhled='tmava'] .hlavicka-kontakt a[href^="tel:"] { color: inherit; }
html[data-vzhled='tmava'] body .hlavicka-pruh > .wrap-wide { background: #0d1218; box-shadow: 0 5px 8px rgb(0 0 0 / 0.45); }
html[data-vzhled='tmava'] .dovednosti h3 { color: var(--fg); }
html[data-vzhled='tmava'] .dovednosti ul,
html[data-vzhled='tmava'] .pul-foto li { color: var(--muted); }
html[data-vzhled='tmava'] .poptavka-vyzva h2 { color: var(--fg); }
html[data-vzhled='tmava'] .poptavka-vyzva h2::after { background: var(--border); }
html[data-vzhled='tmava'] .poptavka-vyzva .btn { color: var(--accent); }
html[data-vzhled='tmava'] .strechy {
  background:
    linear-gradient(var(--bg) 0, var(--bg) 16rem, transparent 16rem),
    url('img/homepage_bottom.jpg') center / cover no-repeat;
}
html[data-vzhled='tmava'] body:not(.is-home) article > h1 + h2 { color: var(--muted); }
html[data-vzhled='tmava'] body .site-footer { background: #0a0e13; }
@media (max-width: 720px) {
  html[data-vzhled='tmava'] .strechy { background: linear-gradient(var(--bg) 0, var(--bg) 8rem, transparent 8rem), url('img/homepage_bottom.jpg') center / cover no-repeat; }
}
/* Tlačítko hledání: v tmavém motivu je --accent světlý text, bílá na něm
   by neměla kontrast — tlačítko proto v červené značky (bílá 5,3). */
html .hledani-form button, html .nav-hledani-panel button { background: var(--accent-bright); color: var(--on-accent); }
