/*
 * STEBLO – spoločné štýly webu (hlavička, menu, pätička, výzva, tlačidlá).
 * Vychádza z HTML náhľadov klienta z 30.11.2026 (STEBLO_podklady_30_11_2026/01_Nahlady).
 * Štýly jednotlivých stránok sú v assets/css/pages/*.css.
 */

/* ---------- Písma (lokálne, bez Google Fonts) ---------- */
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(../fonts/nunito-600-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: 'Nunito'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(../fonts/nunito-600-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; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-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: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-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: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-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: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-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: 'Roboto'; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap; src: url(../fonts/roboto-400-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: 'Roboto'; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap; src: url(../fonts/roboto-400-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; }
/* Ikony = Bootstrap Icons (rovnaké kódy znakov ako v náhľadoch) */
@font-face { font-family: Icons; src: url(../vendor/bootstrap-icons/fonts/bootstrap-icons.woff2) format('woff2'); font-display: block; }

/* ---------- Základ ---------- */
:root {
  --green: #207907;
  --accent: #658a15;
  --surface: #f3f9ed;
  --line: #e0ead9;
  --nav: #4a4b64;
  --text: #263022;
  --shadow: 0 8px 25px #38423112;
  --service-ink: #24472b;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
body { margin: 0; color: var(--text); background: #fff; font: 16px/1.5 Roboto, Arial, sans-serif; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
img, video { max-width: 100%; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.content { max-width: 1296px; width: calc(100% - max(44px, 8.5vw)); margin-inline: auto; }
.icon { font: normal 20px/1 Icons; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hlavička a menu ---------- */
.site-header { position: relative; z-index: 4; padding: 18px max(18px, 4vw) 0; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  max-width: 1330px; min-height: 72px; padding: 7px 23px;
  margin: auto; border-radius: 4rem; background: var(--surface); box-shadow: 0 5px 22px #49544320;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img {
  display: block; width: 50px; height: 50px; border: 1px solid #dbe7cf;
  border-radius: 50%; background: #fff;
}
.brand a { display: block; text-decoration: none; }
.company { color: var(--green); font: 700 clamp(17px, 1.65vw, 24px)/1.12 Nunito, Arial, sans-serif; white-space: nowrap; }
.telephone { color: var(--nav); font-size: 14px; white-space: nowrap; padding-top: 2px; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 1.65vw, 25px); font: 400 clamp(12px, 1.16vw, 16px)/1.3 Poppins, Arial, sans-serif; color: var(--nav); }
.site-nav a, .site-header summary { white-space: nowrap; }
.site-nav a { text-decoration: none; }
.site-nav .active, .site-nav a:hover, .site-nav summary:hover { color: var(--green); }
.new {
  display: inline-block; vertical-align: .32em; margin-left: 1px; padding: 2px 4px; border-radius: 3px;
  background: var(--accent); color: #fff; font: 700 9px/1.2 Roboto, Arial, sans-serif; text-transform: uppercase;
}
.header-actions { display: flex; align-items: center; gap: 8px; }
.dropdown { position: relative; }
.dropdown summary { display: flex; align-items: center; gap: 7px; cursor: pointer; list-style: none; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-2px) rotate(45deg); }
.dropdown[open] summary::after { transform: translateY(2px) rotate(225deg); }
.dropdown ul {
  position: absolute; z-index: 2; top: 100%; left: 0; min-width: max-content;
  list-style: none; margin: 8px 0 0; padding: 7px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; box-shadow: var(--shadow);
}
.dropdown ul a { display: block; padding: 8px 11px; border-radius: 6px; text-decoration: none; }
.dropdown ul a:hover { color: var(--green); background: var(--surface); }
/* Rozbaľovacie menu Služby (nad rámec náhľadov – rozhodnutie 1.12.2026) */
.nav-services summary { color: inherit; }
.nav-services ul { left: 50%; transform: translateX(-50%); }
.nav-services ul a { color: var(--nav); }
.nav-services ul a.active { color: var(--green); }
.follow { font-size: 14px; font-weight: 650; }
.contact { color: #fff; background: var(--accent); border-radius: 3rem; }
.contact:hover { background: #4f7410; }
/* „Sledujte nás“ je vedľajšie tlačidlo (obrys), hlavné je „Vyžiadať ponuku“ – doplnené 1.12.2026 */
.follow summary { padding: 9px 16px; border: 1px solid #a6be84; border-radius: 3rem; color: #3f6312; background: transparent; }
.follow summary:hover, .follow[open] summary { background: #e4efd9; }
.follow ul { right: 0; left: auto; min-width: 9rem; }
.header-cta {
  display: inline-flex; align-items: center; padding: 10px 17px; border-radius: 3rem;
  color: #fff; background: var(--accent); font-size: 14px; font-weight: 700; white-space: nowrap; text-decoration: none;
}
.header-cta:hover { background: #4f7410; }
.mobile-menu { display: none; }
.nav-mobile-extra { display: none; }
.site-nav .nav-mobile-cta, .site-nav .nav-mobile-cta:hover { color: #fff; }

@media (max-width: 1030px) {
  .header-inner { flex-wrap: wrap; position: relative; padding-inline: 15px; gap: 10px; }
  .mobile-menu { display: block; background: transparent; color: var(--green); border: 1px solid #c8d8b9; border-radius: 2rem; padding: 8px 12px; }
  .site-nav { display: none; order: 3; width: 100%; padding: 8px 10px 10px; flex-wrap: wrap; justify-content: flex-start; font-size: .95rem; }
  .site-nav[data-open] { display: flex; }
  .header-inner:has(.site-nav[data-open]) { border-radius: 26px; }
  .nav-services[open] { flex-basis: 100%; }
  .nav-services ul { position: static; transform: none; margin: 6px 0 2px; padding: 4px; box-shadow: none; }
  /* Na mobile je v lište len logo, „Vyžiadať ponuku“ a Menu; sociálne siete sú v otvorenom menu */
  .follow { display: none; }
  .nav-mobile-extra {
    display: flex; flex-basis: 100%; flex-wrap: wrap; align-items: center; gap: 10px 18px;
    margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line);
  }
  .nav-mobile-social { margin: 0; font-size: .9rem; }
  .nav-mobile-social a { margin-left: 6px; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
}
@media (max-width: 720px) { .content { width: calc(100% - 34px); } }
/* Úzky mobil: tlačidlo ponuky sa presunie do menu (vždy je viditeľné aj plávajúce „Napíšte nám“) */
@media (max-width: 480px) {
  .header-cta { display: none; }
}
@media (max-width: 405px) {
  .site-header { padding-inline: 9px; }
  .header-inner { min-height: 65px; padding-inline: 9px; gap: 5px; }
  .brand { gap: 5px; }
  .brand img { width: 40px; height: 40px; }
  .telephone { font-size: 12px; }
  .follow { font-size: 12px; }
  .follow summary { padding-inline: 8px; gap: 5px; }
  .mobile-menu { padding-inline: 8px; font-size: 13px; }
}

/* ---------- Plávajúce tlačidlá ---------- */
.contact { position: fixed; z-index: 3; bottom: 10px; left: 10px; display: flex; align-items: center; gap: 7px; box-shadow: var(--shadow); padding: 9px 14px; font-size: 14px; font-weight: 700; text-decoration: none; }
.contact .icon { font-size: 17px; }
.back-top {
  position: fixed; right: 10px; bottom: 10px; z-index: 3;
  display: grid; width: 43px; height: 43px; place-items: center; border-radius: 50%;
  color: #fff; background: var(--accent); box-shadow: var(--shadow);
  font-size: 1.35rem; line-height: 1; text-decoration: none;
}
.back-top[hidden] { display: none; }

/* ---------- Výzva „Bezplatná osobná obhliadka“ ---------- */
.offer { padding-block: clamp(26px, 3.2vw, 45px) clamp(34px, 4vw, 60px); }
.offer-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 23px;
  padding: clamp(20px, 2.55vw, 37px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface);
}
.offer-label { margin: 0 0 7px; color: #4b5f41; font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.offer h2 { margin: 0 0 10px; color: var(--green); font: 800 clamp(1.28rem, 1.85vw, 1.65rem)/1.23 Nunito, Arial, sans-serif; }
.offer-phone, .footer-contact a { display: inline-flex; align-items: center; gap: 8px; }
.offer-phone { color: var(--nav); font-weight: 700; text-decoration: none; }
.offer-phone .icon, .footer-contact .icon { color: var(--accent); font-size: 16px; }
.offer-button {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  min-height: 47px; padding: 10px 22px; border: 0; border-radius: 3rem;
  color: #fff; background: var(--accent); font-weight: 700; text-decoration: none;
}
.offer-button:hover, .back-top:hover { background: #4f7410; }

/* ---------- Pätička ---------- */
.site-footer { padding-block: clamp(27px, 3.45vw, 51px) 42px; border-top: 1px solid var(--line); background: var(--surface); color: #46513f; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .63fr) minmax(0, .83fr) minmax(0, 1.15fr); gap: clamp(16px, 2.2vw, 34px); }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--green); text-decoration: none; font: 750 clamp(1.35rem, 2.45vw, 2rem)/1.15 Nunito, Arial, sans-serif; }
.footer-brand img { display: block; width: clamp(47px, 5.2vw, 74px); height: auto; }
.footer-summary { max-width: 57ch; margin: 10px 0 15px; }
.footer-contact, .footer-list { margin: 0; padding: 0; list-style: none; }
.footer-contact { display: grid; grid-template-columns: repeat(2, max-content); gap: 7px clamp(13px, 1.65vw, 24px); }
.footer-contact a, .footer-list a { text-decoration: none; }
.footer-contact a { color: #385e24; }
.footer-list li + li, .footer-details p + p { margin-top: 7px; }
.site-footer h2 { margin: 5px 0 13px; color: var(--green); font: 800 1.04rem/1.3 Nunito, Arial, sans-serif; }
.footer-details p { margin: 0; }
.offer-phone:hover, .footer-contact a:hover, .footer-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-copy { margin-block: clamp(22px, 2.6vw, 34px) 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .8rem; color: #6a7564; text-align: center; }
.footer-copy a { color: inherit; }

/* Na užších obrazovkách miesto pod riadkom ©, aby ho na konci stránky neprekrývali plávajúce tlačidlá */
@media (max-width: 1030px) {
  .site-footer { padding-bottom: 70px; }
}
@media (max-width: 930px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .offer-panel { align-items: start; flex-direction: column; gap: 16px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
  .footer-contact { grid-template-columns: 1fr; }
}
