/* ============================================================
   Pneuservis IP — ip-pneu.cz
   Dark automotive theme, amber accent
   ============================================================ */

:root {
  --bg: #0d0f12;
  --bg-elev: #15181d;
  --bg-elev-2: #1c2027;
  --border: #262b33;
  --text: #e8eaed;
  --text-muted: #9aa3ad;
  --accent: #f5b301;
  --accent-strong: #ffc62e;
  --accent-contrast: #161103;
  --danger: #d32431;
  --light-bg: #f4f5f7;
  --light-card: #ffffff;
  --light-text: #16191d;
  --light-muted: #5a626b;
  --light-border: #e1e4e8;
  --radius: 14px;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* obsahove odkazy podtrzene (rozlisitelne i bez barvy), UI prvky podtrzeni rusi nize */
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-strong); }
.btn, .main-nav a, .brand { text-decoration: none; }

.container {
  width: min(1140px, 100% - 2.5rem);
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h2 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: 0.5px; text-transform: uppercase; }
h3 { font-size: 1.35rem; letter-spacing: 0.3px; }

.note { color: var(--text-muted); font-size: 0.875rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 6px 20px rgba(245, 179, 1, 0.25);
}
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-contrast); }

.btn-outline {
  border: 2px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-dark {
  background: var(--light-text);
  color: #fff;
}
.btn-dark:hover { background: #000; color: #fff; }

.btn-phone {
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem;
}
.btn-phone svg { width: 18px; height: 18px; }
.btn-phone:hover { background: var(--accent-strong); color: var(--accent-contrast); }

/* ---------- Badges ---------- */
.badge-new {
  display: inline-block;
  background: var(--danger);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.25em 0.7em;
  border-radius: 4px;
}
.badge-inline { vertical-align: middle; margin-left: 0.4em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 15, 18, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.brand:hover { color: var(--text); text-decoration: none; }
.brand strong { color: var(--accent); }
.brand-icon { width: 30px; height: 30px; color: var(--accent); }

.main-nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}
.main-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent); text-decoration: none; }

.nav-toggle {
  display: none;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 75% 20%, rgba(245, 179, 1, 0.07), transparent 60%),
    linear-gradient(180deg, #101317 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
  padding: 4.5rem 0 4rem;
}

.hero-badge {
  margin: 0 0 1.2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.hero-badge .badge-new { margin-right: 0.6em; }

.hero h1 {
  font-size: clamp(2.8rem, 6.5vw, 4.6rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4em;
}
.accent { color: var(--accent); }

.hero-sub {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 46ch;
  margin: 0 0 1.8rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2rem; }

.hero-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
}
.hero-facts li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.hero-facts svg { width: 19px; height: 19px; color: var(--accent); flex-shrink: 0; }

.hero-media img {
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  /* photo has a pure black background — blend it into the dark hero */
  background: #000;
}

/* ---------- Highlights ---------- */
.highlights {
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2.2rem 0;
}
.highlight h2 { margin: 0.5em 0 0.3em; font-size: 1.2rem; text-transform: none; letter-spacing: 0.3px; }
.highlight p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}
.section-head p { color: var(--text-muted); margin: 0; }
.section-head .overline { margin-bottom: 0.8rem; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card:hover { border-color: rgba(245, 179, 1, 0.4); transform: translateY(-3px); }
.service-card p { color: var(--text-muted); font-size: 0.95rem; }
.service-card ul { color: var(--text-muted); font-size: 0.95rem; padding-left: 1.2rem; margin: 0.6rem 0 0; }
.service-card li { margin-bottom: 0.25rem; }

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(245, 179, 1, 0.1);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.service-icon svg { width: 28px; height: 28px; color: var(--accent); }

.service-card details { margin-top: 0.8rem; }
.service-card summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}
.service-card summary:hover { color: var(--accent-strong); }

/* ---------- Feature (dekarbonizace) ---------- */
.section-feature {
  background:
    radial-gradient(ellipse 70% 90% at 15% 10%, rgba(245, 179, 1, 0.06), transparent 55%),
    var(--bg-elev);
  border-block: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}

.feature-text p { color: var(--text-muted); }
.feature-text strong { color: var(--text); }

.feature-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
.feature-cols h3 { font-size: 1.15rem; color: var(--accent); }
.feature-cols ul {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-left: 1.2rem;
  margin: 0;
}
.feature-cols li { margin-bottom: 0.35rem; }

.feature-prices {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  position: sticky;
  top: 96px;
}
.feature-prices h3 { color: var(--accent); text-transform: uppercase; letter-spacing: 1px; }
.feature-prices .btn { width: 100%; justify-content: center; margin-top: 1.2rem; }

.price-tile {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--border);
}
.price-tile:last-of-type { border-bottom: 0; }
.price-label { color: var(--text-muted); font-size: 0.95rem; }
.price-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

/* ---------- Ceník (light section) ---------- */
.section-light {
  background: var(--light-bg);
  color: var(--light-text);
}
.section-light .section-head p { color: var(--light-muted); }
.section-light .note { color: var(--light-muted); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.price-card {
  background: var(--light-card);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: 0 2px 10px rgba(20, 24, 30, 0.04);
}
.price-card h3 { margin-bottom: 0.8rem; }
.price-card-sub { color: var(--light-muted); font-size: 0.875rem; margin: 0.2rem 0 0.6rem; }

.price-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.price-card td {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--light-border);
  vertical-align: top;
}
.price-card tr:last-child td { border-bottom: 0; }
.price-card td:last-child {
  text-align: right;
  font-weight: 600;
  padding-left: 1rem;
}
.price-card td small { font-weight: 400; color: var(--light-muted); }

.price-card-accent { border-top: 4px solid var(--accent); }

.price-card-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.price-card-contact img { border-radius: 10px; }
.price-card-contact p { margin: 0; color: var(--light-muted); }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-block { margin-bottom: 1.8rem; }
.contact-block h3 { color: var(--accent); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }
.contact-block p { margin: 0.3rem 0; }
.contact-links { font-size: 0.9rem; }

.hours-table { border-collapse: collapse; width: 100%; max-width: 420px; }
.hours-table td {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.hours-table tr:last-child td { border-bottom: 0; }
.hours-table td:first-child { color: var(--text-muted); padding-right: 1.5rem; }
.hours-table small { color: var(--text-muted); }

.contact-map iframe {
  width: 100%;
  height: 420px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  filter: grayscale(0.2);
}

/* ---------- Kontaktní formulář ---------- */
.contact-form-wrap {
  margin-top: 3rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  max-width: 720px;
}
.contact-form-wrap h3 { color: var(--accent); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }

.form-status {
  display: none;
  padding: 0.85rem 1.2rem;
  border-radius: 10px;
  margin: 0 0 1.2rem;
  font-size: 0.95rem;
}
.form-status:target, .form-status.visible { display: block; }
.form-status-ok { background: rgba(46, 160, 67, 0.12); border: 1px solid #2ea043; color: #8de2a4; }
.form-status-err { background: rgba(211, 36, 49, 0.12); border: 1px solid var(--danger); color: #ff9aa2; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.form-row { display: flex; flex-direction: column; gap: 0.35rem; }
.form-row-full { grid-column: 1 / -1; }

.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-row input,
.form-row textarea {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.15s ease;
}
.form-row textarea { resize: vertical; min-height: 130px; }
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 179, 1, 0.15);
}

/* honeypot — mimo obrazovku, pro lidi neviditelný */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; }
  .contact-form .btn { width: 100%; justify-content: center; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 2.2rem 0;
  text-align: center;
}
.site-footer p { margin: 0.3rem 0; font-size: 0.95rem; }
.footer-copy { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.8rem; }

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 3rem 0; }
  .hero-media { order: -1; }
  .hero-media img { max-height: 300px; object-fit: cover; width: 100%; }
  .highlights-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .services-grid, .pricing-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-prices { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 0.9rem 1.5rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
  }
  .main-nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: flex; margin-left: auto; }
  .btn-phone { margin-left: auto; }
  .btn-phone + .nav-toggle { margin-left: 0; }
  .header-inner { gap: 0.8rem; }
  .feature-cols { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .price-card, .service-card, .feature-prices { padding: 1.3rem; }
  .brand { font-size: 1.25rem; }
  .brand-icon { width: 24px; height: 24px; }
  .btn-phone-label { display: none; }
  .btn-phone { padding: 0.6rem; border-radius: 50%; }
  .btn-phone svg { width: 20px; height: 20px; }
}
