/*
Theme Name: Klíma pre vás
Theme URI: https://klimaprevas.sk
Author: Klíma pre vás
Description: Vlastná block (FSE) téma pre lokálnu firmu na montáž klimatizácií, multisplit systémov a tepelných čerpadiel na Záhorí. Optimalizovaná pre rýchlosť a lokálne SEO.
Version: 1.4.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: klima-pre-vas
Tags: full-site-editing, block-patterns, custom-colors, blog, business
*/

/* The visual system lives in theme.json. This file carries the surgical CSS
   the block system can't express: the header, the promo slider, icons, the
   temperature-axis signature, and content rhythm. */

html { scroll-behavior: smooth; }
:root { scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── Icons (Lucide, inline) ───────────────────────────────── */
.kpv-ico { width: 1.25em; height: 1.25em; display: inline-block; vertical-align: middle; flex: none; }
.kpv-iconchip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 15px;
  background: var(--wp--preset--color--surface); color: var(--wp--preset--color--cold);
  margin-bottom: 0.35rem;
}
.kpv-iconchip .kpv-ico { width: 27px; height: 27px; }
.kpv-iconchip--warm { background: #fdeee7; color: var(--wp--preset--color--ember); }
.kpv-feat { display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px; background: var(--wp--preset--color--surface);
  color: var(--wp--preset--color--cold); margin-bottom: 0.3rem; }
.kpv-feat .kpv-ico { width: 21px; height: 21px; }

/* ── Promo banner (top, rotating deals) ───────────────────── */
.kpv-promo { background: linear-gradient(90deg, #08161f 0%, #0e2a3b 100%); color: #eaf2f6; font-size: 0.85rem; }
.kpv-promo__inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; position: relative; }
.kpv-promo__track { flex: 1; text-align: center; min-height: 1.4em; }
.kpv-promo__slide { margin: 0; display: none; }
.kpv-promo__slide.is-active { display: block; animation: kpvFade 0.5s ease; }
@keyframes kpvFade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.kpv-promo__slide a { color: #7fd0de; font-weight: 600; white-space: nowrap; text-decoration: none; }
.kpv-promo__slide a:hover { text-decoration: underline; }
.kpv-promo__tag { display: inline-block; background: var(--wp--preset--color--ember); color: #fff;
  font-weight: 700; font-size: 0.64rem; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 0.14rem 0.45rem; border-radius: 5px; margin-right: 0.45rem; vertical-align: middle; }
.kpv-promo__prev, .kpv-promo__next, .kpv-promo__close {
  background: transparent; border: 0; color: #9fc0cb; cursor: pointer; padding: 0.25rem;
  display: inline-flex; border-radius: 7px; line-height: 0; }
.kpv-promo__prev:hover, .kpv-promo__next:hover, .kpv-promo__close:hover { color: #fff; background: rgba(255,255,255,0.1); }
.kpv-promo__close { position: absolute; right: 0.5rem; }
.kpv-promo__dots { display: flex; gap: 0.3rem; }
.kpv-promo__dot { width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: rgba(255,255,255,0.28); }
.kpv-promo__dot.is-active { background: #fff; }
@media (max-width: 700px) {
  .kpv-promo__prev, .kpv-promo__next, .kpv-promo__dots { display: none; }
  .kpv-promo__slide a { white-space: normal; }
  .kpv-promo__inner { padding-right: 2.2rem; }
}

/* ── Header (full-width, glassy, solid-on-scroll) ─────────── */
.kpv-topwrap { position: relative; z-index: 50; }
/* NOTE: no backdrop-filter here. A backdrop-filter (or transform/filter) on the
   header would become the containing block for the WP mobile nav overlay
   (position:fixed), trapping it in the header strip. Keep the bar near-solid. */
.kpv-header {
  position: sticky; top: 0; z-index: 50; width: 100%;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--wp--preset--color--hairline);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.kpv-header.is-scrolled { background: #ffffff; box-shadow: 0 8px 30px rgba(11,27,38,0.07); }
.kpv-bar { padding-top: 0.7rem; padding-bottom: 0.7rem; }
.wp-block-site-title a { font-weight: 700; letter-spacing: -0.03em; font-size: 1.22rem; }
.kpv-header .wp-block-navigation { font-weight: 500; }
.kpv-header .wp-block-navigation-item__content { position: relative; }
.kpv-header .wp-block-navigation-item:not(.has-child) .wp-block-navigation-item__content::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 2px;
  background: var(--wp--preset--color--cold); transition: right 0.25s ease; }
.kpv-header .wp-block-navigation-item:not(.has-child) .wp-block-navigation-item__content:hover::after { right: 0; }
.kpv-callbtn .wp-block-button__link { border-radius: 999px; font-weight: 600; padding: 0.55rem 1.15rem; }
/* Mobile: clean logo-left / hamburger-right header (phone lives in promo + footer). */
@media (max-width: 781px) {
  .kpv-bar .wp-block-buttons > .wp-block-button.kpv-callbtn { display: none !important; }
  .kpv-bar .wp-block-navigation__responsive-container-open { margin-left: auto; }
  /* Mobile overlay: left-align the links and add side padding. */
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    padding-left: 1.75rem; padding-right: 1.75rem; align-items: flex-start;
  }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
    align-items: flex-start !important;
    text-align: left;
  }
}

/* ── Buttons / cards ──────────────────────────────────────── */
.wp-block-button__link { transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.is-style-card { transition: transform .18s ease, box-shadow .18s ease; }
.is-style-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(11,33,46,.10); }

/* ── Content rhythm (articles & pages) ────────────────────── */
.wp-block-post-content { line-height: 1.72; }
.wp-block-post-content.is-layout-flow > * + h2 { margin-block-start: 2.6rem; }
.wp-block-post-content.is-layout-flow > * + h3 { margin-block-start: 1.9rem; }
.wp-block-post-content h2 { font-size: 1.6rem; }
.wp-block-post-content h3 { font-size: 1.25rem; }
.wp-block-post-content :is(h2, h3) + * { margin-block-start: 0.55rem; }
.wp-block-post-content :is(ul, ol) { padding-left: 1.2rem; }
.wp-block-post-content li { margin: 0.3rem 0; }
.wp-block-post-content :is(ul, ol) { display: flex; flex-direction: column; gap: 0.3rem; }

/* ── Signature: the temperature axis (teplotná os) ────────── */
.kpv-hero .t-cold { color: #5fb3e6; }
.kpv-hero .t-hot  { color: #ff7a4d; }
.kpv-thermal { max-width: 30rem; margin: 1.75rem 0 0.5rem; }
.kpv-thermal__bar { height: 7px; border-radius: 999px;
  background: linear-gradient(90deg, #0e6fb8 0%, #19a0c9 34%, #e8a33c 68%, #e8552b 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 6px 18px rgba(232,85,43,.18); }
.kpv-thermal__ticks { display: flex; justify-content: space-between; margin-top: 0.6rem;
  font-family: "Geist", system-ui, sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; color: #93b2c0; }
.kpv-thermal__ticks span:first-child { color: #5fb3e6; }
.kpv-thermal__ticks span:last-child  { color: #ff7a4d; }
.kpv-footer { border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, #0e6fb8, #19a0c9 34%, #e8a33c 68%, #e8552b) 1; }

/* ── FAQ accordion ────────────────────────────────────────── */
.kpv-faq details { border-bottom: 1px solid var(--wp--preset--color--hairline); }
.kpv-faq summary { cursor: pointer; list-style: none; padding: 1rem 0; font-weight: 600; }
.kpv-faq summary::-webkit-details-marker { display: none; }
.kpv-faq summary::after { content: "+"; float: right; font-weight: 400; opacity: .6; }
.kpv-faq details[open] summary::after { content: "\2013"; }

/* Trust line + contact lists. */
.kpv-trust { display: flex; flex-wrap: wrap; gap: 0.4rem 1.15rem; align-items: center; }
.kpv-trust .kpv-ico { color: #5fb3e6; width: 1.05em; height: 1.05em; margin-right: 0.15rem; }
.kpv-contact .kpv-ico { margin-right: 0.45rem; }

/* ── Placeholder media ────────────────────────────────────── */
.kpv-ph { display: block; width: 100%; border-radius: 12px; aspect-ratio: 16/10; object-fit: cover; }
.wp-block-post-featured-image img { border-radius: 10px; }
