/* ==========================================================================
   E-cleaning – styly webu
   Barvy vycházejí z grafického manuálu:
     #9FDCA1 (světlá) · #57C36F (střední) · #10AB4B (základní) · #231F20 (černá)
   Výchozí je SVĚTLÝ režim (podle grafického manuálu). Tmavý si návštěvník zapne tlačítkem v hlavičce,
   nastavení systému se nesleduje. Oba režimy jsou řízeny stejnými proměnnými (tokeny) níže.
   ========================================================================== */

/* --- Písmo (Hanken Grotesk, vlastní hosting, licence OFL) ----------------- */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/hanken-grotesk-latin-ext-wght-normal.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: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/hanken-grotesk-latin-wght-normal.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;
}

/* --- Tokeny: světlý režim (výchozí) --------------------------------------- */
:root {
  color-scheme: light;

  --g1: #9fdca1;            /* světlá zelená z loga  */
  --g2: #57c36f;            /* střední zelená z loga */
  --g3: #10ab4b;            /* základní zelená z loga */
  --on-g: #231f20;          /* text na zelených plochách (vždy tmavý) */

  --bg: #ffffff;
  --tint: #f0f9f2;          /* jemně zelený podklad sekcí */
  --card: #ffffff;
  --text: #231f20;
  --muted: #514d4e;
  --line: #dedddd;

  --accent: #0b7a35;        /* odkazy, ikony, akcenty (kontrast 5,4 : 1 na bílé) */
  --btn-bg: #0b7a35;
  --btn-fg: #ffffff;
  --btn-bg-hover: #096a2e;
  --outline: #231f20;

  --band-bg: #0b7a35;       /* kontaktní pás */
  --band-fg: #ffffff;
  --band-btn-bg: #ffffff;
  --band-btn-fg: #0b7a35;

  --focus: #0b7a35;
}

/* --- Tokeny: tmavý režim – zapíná se jen tlačítkem v hlavičce -------------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1a1718;
  --tint: #221e1f;
  --card: #221e1f;
  --text: #f2f0f0;
  --muted: #b9b5b6;
  --line: #3b3637;
  --accent: #57c36f;
  --btn-bg: #10ab4b;
  --btn-fg: #14100f;
  --btn-bg-hover: #2bc061;
  --outline: #f2f0f0;
  --band-bg: #0b6b30;
  --band-btn-fg: #0b6b30;
  --focus: #9fdca1;
}

/* --- Základ --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: var(--accent); }
h1, h2, h3 { text-wrap: balance; }

.wrap {
  width: 100%;
  max-width: 90rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 6.7vw, 6rem);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--btn-bg); color: var(--btn-fg);
  padding: .75rem 1.25rem; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* --- Typografie ------------------------------------------------------------ */
.kicker { font-size: .95rem; font-weight: 600; color: var(--accent); margin-bottom: .75rem; }
h1 {
  font-size: clamp(2.75rem, 7.4vw, 5.5rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -.03em;
}
h2 {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.025em;
}
h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 34em; }
.sub { font-size: 1.2rem; color: var(--muted); margin-top: .9rem; max-width: 40em; }

/* --- Tlačítka -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.5rem; padding: 0 2rem;
  border: 1.5px solid transparent; border-radius: 2px;
  font: inherit; font-size: 1.0625rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-outline { border-color: var(--outline); color: var(--text); background: transparent; }
.btn-outline:hover { background: var(--text); color: var(--bg); }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* --- Hlavička -------------------------------------------------------------- */
.site-header { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 6rem; }
.brand img { height: 2.75rem; width: auto; }
.nav { display: flex; gap: 2.5rem; font-weight: 500; }
.nav a { color: var(--text); text-decoration: none; padding: .5rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--g3); }
.bar-actions { display: flex; align-items: center; gap: .75rem; }
.tel {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 3rem; padding: 0 1.4rem;
  border: 1.5px solid var(--outline); border-radius: 2px;
  color: var(--text); font-weight: 600; text-decoration: none; white-space: nowrap;
}
.tel:hover { background: var(--text); color: var(--bg); }
.tel svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }

.theme-toggle {
  display: none;               /* zobrazí se jen s JavaScriptem (třída .js) */
  align-items: center; justify-content: center;
  width: 3rem; height: 3rem; padding: 0;
  border: 1.5px solid var(--outline); border-radius: 2px;
  background: transparent; color: var(--text); cursor: pointer;
}
.js .theme-toggle { display: inline-flex; }
.theme-toggle:hover { background: var(--text); color: var(--bg); }
.theme-toggle svg { width: 1.35rem; height: 1.35rem; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* --- Hero ------------------------------------------------------------------ */
.hero { padding-block: clamp(3rem, 8vw, 6.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { margin-bottom: 2rem; }
.hero .lead { margin-bottom: 2.25rem; }

.proof { background: var(--tint); }
.proof li { display: flex; align-items: center; gap: 1.25rem; padding: 1.4rem 1.5rem; }
.proof li + li { border-top: 1px solid var(--line); }
.proof-mark { width: 3.5rem; height: 3.5rem; flex-shrink: 0; display: grid; place-items: center; color: var(--on-g); }
.proof-mark svg { width: 1.9rem; height: 1.9rem; }
.proof li:nth-child(1) .proof-mark { background: var(--g1); }
.proof li:nth-child(2) .proof-mark { background: var(--g2); }
.proof li:nth-child(3) .proof-mark { background: var(--g3); }
.proof strong { display: block; font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.proof div span { display: block; color: var(--muted); font-size: 1rem; line-height: 1.4; margin-top: .2rem; }

/* pruh se třemi zelenými – poměry převzaty z loga (panel E : pomlčka : cleaning) */
.stripe { display: flex; height: .75rem; }
.stripe i { display: block; }
.stripe i:nth-child(1) { flex: 0 0 10.9%; background: var(--g1); }
.stripe i:nth-child(2) { flex: 0 0 10.9%; background: var(--g2); }
.stripe i:nth-child(3) { flex: 1 1 auto; background: var(--g3); }

/* --- Sekce ----------------------------------------------------------------- */
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section-tint { background: var(--tint); }
.section-head { margin-bottom: clamp(2.25rem, 5vw, 4rem); }

/* služby */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.5rem 3rem; }
.service { border-top: 2px solid var(--text); padding-top: 1.75rem; }
.service svg { width: 2.4rem; height: 2.4rem; color: var(--accent); margin-bottom: 1rem; }
.service h3 { margin-bottom: .8rem; }
.service p { color: var(--muted); }

/* tři E */
.eee { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.eee-item { position: relative; overflow: hidden; color: var(--on-g); padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3.4vw, 3rem); padding-right: 8.5rem; min-height: 15rem; }
.eee-item:nth-of-type(1) { background: var(--g1); }
.eee-item:nth-of-type(2) { background: var(--g2); }
.eee-item:nth-of-type(3) { background: var(--g3); }
.eee-item h3 { position: relative; font-size: clamp(1.9rem, 3.2vw, 2.9rem); font-weight: 500; letter-spacing: -.02em; margin-bottom: .9rem; }
.eee-item p { position: relative; font-size: 1.2rem; line-height: 1.45; max-width: 15em; }
.eee-item::after {
  content: ""; position: absolute; right: clamp(1.25rem, 3vw, 2.5rem); bottom: clamp(1.25rem, 3vw, 2.5rem);
  width: 5.5rem; aspect-ratio: 29.7 / 47.6;
  background: url("/assets/img/e-glyph.svg") no-repeat center / contain;
  opacity: .7; pointer-events: none;
}

/* ceník */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.price { background: var(--tint); border-top: 6px solid var(--g3); padding: clamp(1.75rem, 3vw, 2.75rem); }
.price h3 { font-size: 1.75rem; }
.big { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .9rem; margin: 1rem 0 1.25rem; font-variant-numeric: tabular-nums; }
.big b { font-size: clamp(3.4rem, 6.6vw, 6rem); font-weight: 300; line-height: 1.05; letter-spacing: -.03em; }
.big small { font-size: 1.2rem; color: var(--muted); }
.ticks { display: grid; gap: .9rem; font-size: 1.125rem; }
.ticks li { display: flex; gap: .9rem; align-items: baseline; }
.ticks li::before { content: ""; flex: 0 0 .5rem; height: .5rem; background: var(--g3); transform: translateY(-.1rem); }
.note { color: var(--muted); font-size: 1rem; margin-top: 2rem; }

/* kroky */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; counter-reset: krok; }
.step { counter-increment: krok; padding-right: 1.5rem; }
.step::before {
  content: counter(krok);
  display: grid; place-items: center; width: 4rem; height: 4rem; margin-bottom: 1.4rem;
  color: var(--on-g); font-size: 1.9rem; font-weight: 500;
}
.step:nth-child(1)::before { background: var(--g1); }
.step:nth-child(2)::before { background: var(--g2); }
.step:nth-child(3)::before { background: var(--g3); }
.step h3 { font-size: 1.6rem; margin-bottom: .75rem; }
.step p { color: var(--muted); font-size: 1.125rem; }

/* rezervace (Calendly) */
.calendly-inline-widget {
  min-width: 320px; height: 660px;
  border: 1px solid var(--line); border-radius: 2px; background: var(--card);
}

.booking-thanks { background: var(--tint); border-top: 6px solid var(--g3); padding: 1.5rem 1.75rem; margin-bottom: 1.5rem; }
.booking-thanks[hidden] { display: none; }
.booking-thanks h3 { margin-bottom: .5rem; }
.booking-thanks p { color: var(--muted); max-width: 46em; }
.booking-thanks a[href^="tel:"] { white-space: nowrap; }
.booking-thanks:focus { outline: none; }

/* kontakt */
.contact { background: var(--band-bg); color: var(--band-fg); padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.contact a { color: inherit; }
.contact .kicker { color: var(--band-fg); opacity: .9; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.contact h2 { font-size: clamp(2.4rem, 5.6vw, 4.25rem); font-weight: 300; letter-spacing: -.03em; line-height: 1.04; }
.contact .sub { color: var(--band-fg); opacity: .95; }
.contact .cta-row { margin-top: 2rem; }
.contact .btn-primary { background: var(--band-btn-bg); color: var(--band-btn-fg); }
.contact .btn-primary:hover { background: #e8f5ec; }
.contact .btn-outline { border-color: var(--band-fg); color: var(--band-fg); }
.contact .btn-outline:hover { background: var(--band-fg); color: var(--band-btn-fg); }
.contact :focus-visible { outline-color: #fff; }
.company { display: grid; gap: .55rem; font-size: 1.15rem; border-left: 1px solid rgba(255, 255, 255, .5); padding-left: clamp(1.5rem, 3.4vw, 3rem); }
.company strong { font-size: 1.5rem; font-weight: 700; }

/* patička */
.site-footer { padding-block: 2.75rem; color: var(--muted); font-size: .95rem; }
.footer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.footer-bar img { height: 2.5rem; width: auto; }

/* stránka 404 */
.notfound { min-height: 60vh; display: grid; align-content: center; gap: 1.5rem; padding-block: 5rem; }
.notfound h1 { font-size: clamp(3rem, 9vw, 7rem); }

/* --- Responzivita ---------------------------------------------------------- */
@media (max-width: 62rem) {
  .nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .company { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, .5); padding-top: 2rem; }
}
@media (max-width: 48rem) {
  .bar { min-height: 5rem; gap: .75rem; }
  .brand img { height: 2.25rem; }
  .tel { padding: 0 1rem; }
  .services, .price-grid, .steps, .eee { grid-template-columns: 1fr; }
  .steps { gap: 2.5rem; }
  .eee-item { min-height: 12rem; padding-right: 6.5rem; }
  .eee-item::after { width: 3.6rem; }
  .btn { width: 100%; }
  .price h3 { font-size: 1.5rem; }
}
@media (max-width: 26rem) {
  .tel span { display: none; }   /* na nejužších displejích zůstane jen ikona telefonu */
  .tel { padding: 0; width: 3rem; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .theme-toggle, .nav, .calendly-inline-widget { display: none !important; }
}
