/* ===== Pneuservis Zezula ===============================
   Palette — from the workshop:
   rubber   #1a1c1e  (tire, strips, footer — black as material)
   concrete #eef0f1  (page background — shop floor)
   chalk    #ffffff  (cards)
   balance-yellow #f6b800  (sidewall balance dot — primary accent)
   balance-red    #cf4632  (second balance dot — trace doses)
   Type — Barlow Condensed (display/signage) + Barlow (body)
======================================================== */

:root {
  --rubber: #1a1c1e;
  --concrete: #eef0f1;
  --chalk: #ffffff;
  --yellow: #f6b800;
  --yellow-bright: #ffc82e;
  --red: #cf4632;
  --ink: #1f2225;
  --text: #2e343a;
  --steel: #646d76;
  --line: #dde1e4;
  --radius: 10px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: inherit; }

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

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

/* Sticky-footer shell */
.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ===== Header ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(238, 240, 241, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.brand img { width: 44px; height: 44px; }

.brand::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
  margin-left: 0.1rem;
  margin-top: 0.2rem;
}

.site-nav { display: flex; align-items: center; gap: 1.4rem; }

.site-nav a {
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.35rem 0.1rem;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover { color: var(--ink); border-bottom-color: var(--line); }

.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--yellow);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle svg { display: block; }

/* ===== Hero — tire bleeding off the right edge ===== */

.hero { overflow: hidden; }

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
  flex: none;
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.7rem, 6.5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(transparent 68%, var(--yellow) 68%);
}

.hero p {
  margin: 0 0 2rem;
  max-width: 33rem;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero-logo {
  width: min(400px, 100%);
  height: auto;
  justify-self: center;
  filter: drop-shadow(0 16px 32px rgba(26, 28, 30, 0.22));
}

/* ===== Buttons — signage, not pills ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.7rem;
  border-radius: 6px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--yellow);
  color: var(--rubber);
  box-shadow: 0 2px 0 rgba(26, 28, 30, 0.25);
}

.btn-primary:hover { background: var(--yellow-bright); }

.btn-ghost {
  border: 2px solid var(--ink);
  color: var(--ink);
}

.btn-ghost:hover { border-color: var(--yellow); background: var(--chalk); }

/* ===== Sections ===== */

.section { padding-block: clamp(3rem, 7vw, 5rem); }

.section-head { max-width: 42rem; margin-bottom: 2.25rem; }

.section-head h2,
.page-head h1 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}

.section-head p { margin: 0; color: var(--steel); }

/* ===== Service cards — quiet chalk, price as the data ===== */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--chalk);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
}

.card p { margin: 0 0 1.4rem; color: var(--steel); font-size: 0.95rem; }

.card .price-hint {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--steel);
}

.card .price-hint strong {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* ===== Call strip ===== */

.strip {
  background: var(--rubber);
  color: #c9ced3;
}

.strip .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 2.4rem;
}

.strip h2 {
  margin: 0 0 0.2rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--chalk);
}

.strip p { margin: 0; color: #8f979e; }

.strip .btn-primary { box-shadow: none; }

/* ===== Page head (subpages) ===== */

.page-head {
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(2rem, 5vw, 3rem);
}

.page-head p { margin: 0; max-width: 38rem; color: var(--steel); }

/* ===== Pricing table ===== */

.price-card {
  background: var(--chalk);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.price-card .table-scroll { overflow-x: auto; }

.price-card table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.price-card caption {
  text-align: left;
  padding: 1.4rem 1.5rem 0.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.price-card th,
.price-card td {
  padding: 0.95rem 1.5rem;
  text-align: left;
}

.price-card thead th {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--steel);
  border-bottom: 2px solid var(--ink);
}

.price-card tbody tr { border-bottom: 1px solid var(--line); }

.price-card tbody tr:last-child { border-bottom: 0; }

.price-card tbody tr:hover { background: #fafbfc; }

.price-card .price {
  text-align: right;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
}

/* Sidewall-style tire size chip */
.chip {
  display: inline-block;
  margin-right: 0.7rem;
  padding: 0.05rem 0.5rem;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  white-space: nowrap;
}

.table-note {
  margin: 1.25rem 0 0;
  color: var(--steel);
  font-size: 0.9rem;
}

/* ===== Contact ===== */

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

.contact-card {
  background: var(--chalk);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.contact-list { margin: 0; display: grid; gap: 1.15rem; }

.contact-list div { display: grid; gap: 0.1rem; }

.contact-list dt {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--steel);
}

.contact-list dd {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.contact-list a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--yellow); }

.contact-list a:hover { background: #fdf3d2; }

.map-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--chalk);
}

.map-card iframe {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
}

.map-card figcaption {
  padding: 0.9rem 1.25rem;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--steel);
  border-top: 1px solid var(--line);
}

/* ===== Footer ===== */

.site-footer {
  background: var(--rubber);
  color: #8f979e;
  margin-top: auto;
  border-top: 3px solid #000;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem;
  font-size: 0.9rem;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #c9ced3;
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover { color: var(--yellow); }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.6rem;
  row-gap: 0.15rem;
}

.credit::before {
  content: "·";
  margin-right: 0.6rem;
  color: #6a727b;
}

.credit a {
  display: inline;
  font-weight: 500;
  color: #c9ced3;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== Mobile ===== */

@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--concrete);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem;
    display: none;
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a[aria-current="page"] { border-bottom: 3px solid var(--yellow); }

  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
    padding-block: 2.5rem 3rem;
  }

  .eyebrow { justify-content: center; }

  .hero p { margin-inline: auto; }

  .hero-actions { justify-content: center; }

  .hero-logo {
    order: -1;
    width: min(230px, 60vw);
  }

  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .price-card table { min-width: 0; }

  .price-card caption { padding: 1.2rem 1rem 0.4rem; font-size: 1.3rem; }

  .price-card th,
  .price-card td { padding: 0.85rem 1rem; }

  .price-card td:first-child { padding-right: 0.4rem; }

  .price-card .price { font-size: 1.15rem; }

  .chip { display: block; width: fit-content; margin: 0 0 0.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
