/* ============================================================
   Autoservis Novák — demo web
   Identita: světlé pozadí, grafitová hlavička/patička,
   výstražná oranžová. Barlow Condensed (nadpisy) + Barlow.
   ============================================================ */

/* --- Tokens --- */
:root {
  --grafit: #1c1f22;
  --grafit-2: #262a2e;
  --grafit-3: #31363b;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-soft: #fff1e6;
  --bg: #f6f6f4;
  --card: #ffffff;
  --text: #24272b;
  --muted: #5b6167;
  --line: #e4e5e2;
  --green: #16a34a;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(28, 31, 34, .05), 0 8px 24px rgba(28, 31, 34, .08);
  --font-head: "Barlow Condensed", "Barlow", sans-serif;
  --font-body: "Barlow", -apple-system, "Segoe UI", sans-serif;
}

/* --- Reset + základ --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .01em;
  text-transform: uppercase;
}
h1 { font-size: clamp(44px, 7vw, 76px); }
h2 { font-size: clamp(34px, 5vw, 52px); }
h3 { font-size: 24px; }

.container { width: min(1160px, 100% - 48px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--tight { padding: clamp(44px, 6vw, 72px) 0; }

.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 18px; }
.section-head .kick {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 14px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange-dark); margin-bottom: 14px;
}
.section-head .kick::before {
  content: ""; width: 28px; height: 3px; background: var(--orange); border-radius: 2px;
}
.section-head--center .kick::after {
  content: ""; width: 28px; height: 3px; background: var(--orange); border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 200;
  background: var(--orange); color: #fff; font-weight: 600;
  padding: 10px 18px; border-radius: 8px; text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

/* --- Tlačítka --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 17px;
  padding: 14px 28px; border-radius: 8px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); }
.btn--ghost { background: transparent; color: var(--grafit); border-color: var(--grafit); }
.btn--ghost:hover { background: var(--grafit); color: #fff; }
.btn--light { background: #fff; color: var(--grafit); }
.btn--light:hover { background: var(--orange); color: #fff; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--sm { padding: 10px 20px; font-size: 15px; }

/* --- Hlavička --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--grafit); color: #fff;
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.25); }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 76px; padding-block: 12px;
  transition: min-height .2s ease;
}
.site-header.is-scrolled .nav { min-height: 60px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 9px; background: var(--orange);
  display: grid; place-items: center; flex: none;
}
.brand__mark svg { width: 24px; height: 24px; }
.brand__name {
  font-family: var(--font-head); font-weight: 700; font-size: 24px;
  text-transform: uppercase; letter-spacing: .03em; line-height: 1;
}
.brand__name small {
  display: block; font-family: var(--font-body); font-weight: 500; font-size: 11px;
  letter-spacing: .18em; color: rgba(255,255,255,.55); text-transform: uppercase;
}
.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__link {
  font-weight: 500; font-size: 16px; text-decoration: none;
  color: rgba(255,255,255,.78); padding-block: 6px;
  border-bottom: 2px solid transparent; transition: color .15s ease;
}
.nav__link:hover { color: #fff; }
.nav__link[aria-current="page"] { color: #fff; border-bottom-color: var(--orange); }
.nav__side { display: flex; align-items: center; gap: 18px; }
.nav__phone {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 22px;
  text-decoration: none; color: #fff;
}
.nav__phone svg { width: 19px; height: 19px; color: var(--orange); }
.nav__phone:hover { color: var(--orange); }

.open-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
.open-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.open-badge.is-open .open-badge__dot { background: var(--green); box-shadow: 0 0 0 3px rgba(22,163,74,.25); }
.open-badge.is-open { color: #a7f3c4; border-color: rgba(22,163,74,.4); }

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 8px;
}
.nav__toggle-bar, .nav__toggle-bar::before, .nav__toggle-bar::after {
  display: block; width: 24px; height: 2.5px; border-radius: 2px;
  background: #fff; margin-inline: auto;
  transition: transform .2s ease, opacity .15s ease;
}
.nav__toggle-bar::before, .nav__toggle-bar::after { content: ""; }
.nav__toggle-bar::before { transform: translateY(-7.5px); }
.nav__toggle-bar::after { transform: translateY(5px); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::before { transform: translateY(0) rotate(45deg); background: #fff; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::after { transform: translateY(0) rotate(-45deg); background: #fff; }

/* --- Hero --- */
.hero { background: var(--bg); overflow: hidden; }
.hero__inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center; padding-block: clamp(48px, 7vw, 96px);
}
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero__text { color: var(--muted); font-size: 19px; max-width: 480px; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__hours {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; font-size: 14.5px; font-weight: 600; color: var(--text);
  box-shadow: var(--shadow);
}
.hero__hours .open-badge__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.hero__hours.is-open .open-badge__dot { background: var(--green); box-shadow: 0 0 0 3px rgba(22,163,74,.22); }
.hero__hours.is-open { color: var(--green); border-color: rgba(22,163,74,.35); }

.hero__stats {
  display: flex; gap: clamp(24px, 4vw, 48px); margin-top: 34px;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.hero__stat b {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: 30px; color: var(--grafit);
}
.hero__stat span { font-size: 14px; color: var(--muted); }

.hero__media { position: relative; }
.hero__media img {
  border-radius: var(--radius); box-shadow: var(--shadow);
  aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%;
}
.hero__media::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 3px solid var(--orange); border-radius: var(--radius); z-index: -1;
}
.hero__tag {
  position: absolute; left: -14px; bottom: 26px;
  background: var(--grafit); color: #fff; border-radius: 8px;
  padding: 12px 18px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 19px;
  text-transform: uppercase; letter-spacing: .02em;
}
.hero__tag svg { width: 22px; height: 22px; color: var(--orange); }

/* --- Služby (karty) --- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.service-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 26px; position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--orange-soft);
  display: grid; place-items: center; margin-bottom: 18px;
}
.service-card__icon svg { width: 28px; height: 28px; color: var(--orange-dark); }
.service-card h3 { font-size: 22px; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 15.5px; margin-bottom: 14px; }
.service-card a {
  color: var(--orange-dark); font-weight: 600; font-size: 15px; text-decoration: none;
}
.service-card a:hover { text-decoration: underline; }

/* --- Proč k nám --- */
.why { background: var(--grafit); color: #fff; }
.why .section-head p { color: rgba(255,255,255,.65); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.why-item { border-top: 3px solid var(--orange); padding-top: 22px; }
.why-item b {
  font-family: var(--font-head); font-weight: 700; font-size: 44px; line-height: 1;
  display: block; margin-bottom: 6px; color: var(--orange);
}
.why-item b small { font-size: 24px; }
.why-item h3 { font-size: 22px; margin-bottom: 8px; }
.why-item p { color: rgba(255,255,255,.68); font-size: 15.5px; }

/* --- Recenze --- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 14px;
}
.review__stars { display: flex; gap: 3px; color: var(--orange); }
.review__stars svg { width: 18px; height: 18px; }
.review p { font-size: 16px; color: var(--text); flex: 1; }
.review footer { font-size: 14px; color: var(--muted); }
.review footer b { color: var(--grafit); font-size: 15px; }

/* --- CTA pás --- */
.cta-band { background: var(--grafit); color: #fff; position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  background: radial-gradient(closest-side, rgba(249,115,22,.28), transparent);
  pointer-events: none;
}
.cta-band__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding-block: clamp(40px, 6vw, 64px); flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); }
.cta-band p { color: rgba(255,255,255,.65); margin-top: 6px; }
.cta-band__phone {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-head); font-weight: 700; font-size: clamp(26px, 3.5vw, 36px);
  color: #fff; text-decoration: none; white-space: nowrap;
}
.cta-band__phone svg { width: 30px; height: 30px; color: var(--orange); }
.cta-band__phone:hover { color: var(--orange); }

/* --- Stránka služeb: řádky s fotkou --- */
.service-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px);
  align-items: center; padding-block: clamp(36px, 5vw, 56px);
}
.service-row + .service-row { border-top: 1px solid var(--line); }
.service-row--flip .service-row__media { order: 2; }
.service-row__media img {
  border-radius: var(--radius); box-shadow: var(--shadow);
  aspect-ratio: 16 / 11; object-fit: cover; width: 100%;
}
.service-row__num {
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  color: var(--orange-dark); letter-spacing: .14em; display: block; margin-bottom: 10px;
}
.service-row h2 { font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 12px; }
.service-row__text { color: var(--muted); margin-bottom: 16px; }
.service-row__list { margin-bottom: 22px; display: grid; gap: 9px; }
.service-row__list li {
  display: flex; gap: 10px; align-items: baseline; font-size: 15.5px;
}
.service-row__list svg { width: 17px; height: 17px; color: var(--green); flex: none; transform: translateY(2px); }

/* --- Ceník --- */
.price-groups { display: grid; gap: 26px; }
.price-group {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px;
}
.price-group h3 {
  font-size: 21px; padding-bottom: 14px; margin-bottom: 6px;
  border-bottom: 2px solid var(--grafit); display: flex; justify-content: space-between; gap: 12px;
}
.price-group h3 span { color: var(--orange-dark); }
.price-rows { display: grid; }
.price-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding-block: 13px; border-bottom: 1px dashed var(--line);
}
.price-row:last-child { border-bottom: 0; }
.price-row__what { font-size: 16px; }
.price-row__what small { display: block; color: var(--muted); font-size: 13.5px; }
.price-row__price { font-family: var(--font-head); font-weight: 700; font-size: 22px; white-space: nowrap; }
.price-note {
  margin-top: 26px; background: var(--orange-soft); border: 1px solid rgba(234,88,12,.25);
  border-radius: var(--radius); padding: 18px 22px; display: flex; gap: 12px;
  font-size: 15px; color: #7c3a12;
}
.price-note svg { width: 20px; height: 20px; flex: none; color: var(--orange-dark); transform: translateY(2px); }

/* --- Kontakt --- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact-cards { display: grid; gap: 16px; }
.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; display: flex; gap: 16px; align-items: flex-start;
}
.contact-card__icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--orange-soft);
  display: grid; place-items: center; flex: none;
}
.contact-card__icon svg { width: 22px; height: 22px; color: var(--orange-dark); }
.contact-card h3 { font-size: 16px; letter-spacing: .06em; margin-bottom: 4px; }
.contact-card p, .contact-card a { font-size: 16px; color: var(--muted); text-decoration: none; }
.contact-card a:hover { color: var(--orange-dark); text-decoration: underline; }
.contact-card a b { font-family: var(--font-head); font-size: 21px; color: var(--grafit); font-weight: 700; }

.hours-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.hours-table td { padding-block: 7px; border-bottom: 1px dashed var(--line); color: var(--muted); }
.hours-table td:last-child { text-align: right; color: var(--text); font-weight: 500; }
.hours-table tr[data-today] td { color: var(--orange-dark); font-weight: 700; }

.mapa {
  margin-top: 16px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--card);
}
.mapa svg { display: block; width: 100%; height: auto; }

/* --- Formulář --- */
.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow);
}
.form-card h2 { font-size: 28px; margin-bottom: 6px; }
.form-card > p { color: var(--muted); margin-bottom: 24px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__field--full { grid-column: 1 / -1; }
.form__field label { font-weight: 600; font-size: 15px; }
.form__field input, .form__field textarea, .form__field select {
  font-family: var(--font-body); font-size: 16px; color: var(--text);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 8px;
  padding: 12px 14px; transition: border-color .15s ease;
}
.form__field input:focus, .form__field textarea:focus, .form__field select:focus {
  outline: none; border-color: var(--orange); background: #fff;
}
.form__field textarea { resize: vertical; min-height: 110px; }
.form__error { color: #dc2626; font-size: 13.5px; }
.form__note { font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.form__hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-success {
  text-align: center; padding: clamp(28px, 5vw, 48px) 24px;
}
.form-success__icon {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  background: rgba(22,163,74,.12); display: grid; place-items: center;
}
.form-success__icon svg { width: 32px; height: 32px; color: var(--green); }
.form-success h3 { font-size: 26px; margin-bottom: 8px; }
.form-success p { color: var(--muted); }

/* --- Patička --- */
.site-footer { background: var(--grafit); color: rgba(255,255,255,.7); margin-top: 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
  padding-block: clamp(44px, 6vw, 64px) 36px;
}
.site-footer h3 {
  font-size: 15px; letter-spacing: .14em; color: #fff; margin-bottom: 14px;
}
.site-footer ul { display: grid; gap: 9px; }
.site-footer a { text-decoration: none; font-size: 15px; }
.site-footer a:hover { color: var(--orange); }
.footer-about p { font-size: 15px; max-width: 300px; margin-top: 14px; }
.footer-hours { font-size: 15px; display: grid; gap: 7px; }
.footer-hours span { float: right; color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 20px; display: flex; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; font-size: 13.5px; color: rgba(255,255,255,.45);
}
.footer-bottom a { text-decoration: none; font-style: italic; }
.footer-bottom a:hover { color: var(--orange); }

/* --- Reveal animace --- */
.reveal { opacity: 0; transform: translateY(22px); }
@media (prefers-reduced-motion: no-preference) {
  .reveal { transition: opacity .6s ease, transform .6s ease; }
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --- Responzivita --- */
@media (max-width: 1020px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--grafit-2); flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 24px 18px; display: none;
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 24px 40px rgba(0,0,0,.3);
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu .nav__link { padding-block: 13px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 17px; }
  .nav__toggle { display: block; }
  .nav__side { gap: 14px; }
  .open-badge--header { display: none; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .hero__inner { grid-template-columns: 1fr; padding-block: 40px; }
  .hero__media { max-width: 560px; }
  .hero__media::before { inset: 14px -14px -14px 14px; }
  .service-row { grid-template-columns: 1fr; gap: 20px; }
  .service-row--flip .service-row__media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 620px) {
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .nav__phone span { display: none; }
  .hero__stats { flex-wrap: wrap; gap: 18px 28px; }
  .hero__tag { left: 10px; bottom: 14px; font-size: 16px; }
}

/* --- Tisk --- */
@media print {
  .site-header, .site-footer, .cta-band, .nav, .btn { display: none !important; }
  body { background: #fff; }
}
