/* ==========================================================================
   KAIN'S TIRES — "Traction & Heritage" design system
   Industrial brutalism + heritage warmth. Derived from the Stitch design
   spec (traction_heritage/DESIGN.md) and the shop's own logo palette.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Racing Red — actions, urgency, brand */
  --red: #b11e2e;
  --red-deep: #8d001b;
  --red-hot: #d3122f;
  /* Service Blue — trust, links, secondary actions */
  --blue: #314fcd;
  --blue-deep: #1136b7;
  /* Tread Yellow — highlight blocks only, never text */
  --yellow: #febb1b;
  --yellow-deep: #5d4200;
  /* Garage Black & Concrete neutrals */
  --ink: #1c1b1b;
  --ink-soft: #313030;
  --ink-wash: rgba(28, 27, 27, 0.55);
  --paper: #fcf9f8;
  --concrete-100: #f6f3f2;
  --concrete-200: #f0eded;
  --concrete-300: #e5e2e1;
  --concrete-400: #dcd9d9;
  --line: #d9d4d2;
  --muted: #5f5754;

  --font-display: "Montserrat", "Arial Black", sans-serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  --container: 1200px;
  --gutter: 1.5rem;
  --section: clamp(4rem, 9vw, 6.5rem);
  --radius: 4px;
  --radius-lg: 8px;

  --shadow-offset: 6px 6px 0 0 var(--ink);
  --shadow-offset-sm: 4px 4px 0 0 rgba(28, 27, 27, 0.12);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

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

p { margin: 0 0 1rem; }

a { color: var(--blue-deep); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--red); }

::selection { background: var(--yellow); color: var(--ink); }

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

/* ---------- Type scale ---------- */
.display {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.headline-lg { font-size: clamp(1.75rem, 3.4vw, 2.4rem); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; }
.headline-md { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.65; }

/* Technical label — mono service-code treatment */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: var(--muted);
}
.kicker::before {
  content: "";
  width: 1.75rem;
  height: 4px;
  background: var(--red);
  flex: none;
}
.kicker--red { color: var(--red-deep); }
.kicker--on-dark { color: var(--yellow); }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--concrete { background: var(--concrete-100); border-block: 1px solid var(--line); }
.section--dark { background: var(--ink); color: var(--paper); }

.grid-2 { display: grid; gap: 3rem; align-items: center; }
.grid-3 { display: grid; gap: var(--gutter); }
.grid-4 { display: grid; gap: var(--gutter); }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Signature motifs ---------- */
/* Caution stripe — thin hazard band used as a section divider */
.stripe {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow) 0 14px,
    var(--ink) 14px 28px
  );
}

/* Subtle diagonal texture for header zones */
.texture {
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0 10px,
    rgba(28, 27, 27, 0.035) 10px 20px
  );
}

/* Framed photo: thick border + hard offset shadow */
.frame {
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-offset);
  background: var(--paper);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* Yellow stat plate */
.plate {
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-offset);
  padding: 1rem 1.25rem;
  color: var(--ink);
}
.plate .plate-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
  display: block;
}
.plate .plate-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 80ms ease, box-shadow 80ms ease, background-color 150ms ease, color 150ms ease;
}
.btn:active { transform: translate(2px, 2px); box-shadow: none; }

.btn--red {
  background: var(--red);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 4px 4px 0 0 var(--ink);
}
.btn--red:hover { background: var(--red-deep); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--blue-deep);
  border-color: var(--blue);
}
.btn--ghost:hover { background: var(--blue); color: #fff; }

.btn--ghost-light {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.btn--yellow {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 0 var(--ink);
}
.btn--yellow:hover { background: #ffcb4d; }

.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Header ---------- */
.topbar {
  background: var(--ink);
  color: var(--concrete-300);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 0.45rem;
}
.topbar a { color: var(--yellow); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .topbar-right { display: none; }
@media (min-width: 720px) { .topbar .topbar-right { display: block; } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}
.brand img { height: 52px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-name .red { color: var(--red); }
.brand-name .blue { color: var(--blue-deep); }
.brand-tag {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-top: 0.3rem;
}

.nav-desktop { display: none; align-items: center; gap: 1.4rem; }
.nav-desktop a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 0.25rem;
  border-bottom: 3px solid transparent;
}
.nav-desktop a:hover { color: var(--red); }
.nav-desktop a[aria-current="page"] { color: var(--red-deep); border-bottom-color: var(--red); }
/* ---------- Language dropdown (flag switcher) ---------- */
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.6rem;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  color: var(--blue-deep);
  background: #fff;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary .caret { font-size: 0.55rem; transition: transform 150ms ease; }
.lang-menu[open] summary .caret { transform: rotate(180deg); }
.lang-menu summary:hover { border-color: var(--ink); color: var(--ink); }
.lang-menu ul {
  list-style: none;
  margin: 0;
  padding: 0.3rem;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-offset-sm);
  min-width: 10.5rem;
  z-index: 60;
}
.lang-menu li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.lang-menu li a:hover { background: var(--concrete-100); color: var(--red-deep); }
.flag { width: 18px; height: 12px; flex: none; border: 1px solid rgba(28, 27, 27, 0.25); border-radius: 1px; }

/* ---------- Cross-language banner (no auto-redirect, dismissible) ---------- */
.lang-banner { background: var(--blue); color: #fff; }
.lang-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding-block: 0.55rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
  text-align: center;
}
.lang-banner a { color: #fff; font-weight: 700; text-underline-offset: 3px; }
.lang-banner a:hover { color: var(--yellow); }
.lang-banner button {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.8rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}
.lang-banner button:hover { border-color: #fff; }
@media (min-width: 1080px) { .nav-desktop { display: flex; } }

.header-cta { display: none; }
@media (min-width: 720px) { .header-cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span { height: 3px; background: var(--ink); transition: transform 150ms ease, opacity 150ms ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (min-width: 1080px) { .nav-toggle { display: none; } }

.nav-mobile {
  display: none;
  border-top: 2px solid var(--ink);
  background: var(--paper);
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 0.9rem var(--gutter);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav-mobile a[aria-current="page"] { color: var(--red-deep); background: var(--concrete-100); }
.nav-mobile a:hover { background: var(--concrete-200); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.38;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20, 19, 19, 0.96) 20%, rgba(20, 19, 19, 0.55) 60%, rgba(20, 19, 19, 0.25) 100%);
}
.hero .container { position: relative; z-index: 1; padding-block: clamp(5rem, 12vw, 9rem); }
.hero-inner { max-width: 640px; }
.hero .lead { color: var(--concrete-300); max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2.25rem; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(252, 249, 248, 0.35);
  color: var(--concrete-300);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.chip svg { width: 0.9rem; height: 0.9rem; fill: var(--yellow); }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 2px solid var(--concrete-300);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.card:hover { border-color: var(--ink); box-shadow: var(--shadow-offset-sm); }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: rgba(49, 79, 205, 0.1);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 28px; height: 28px; fill: var(--blue-deep); }
.card p { color: var(--muted); flex-grow: 1; }

.card-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--red-deep);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.card-link:hover { text-decoration: underline; text-underline-offset: 4px; color: var(--red); }
.card-link svg { width: 1em; height: 1em; fill: currentColor; transition: transform 150ms ease; }
.card:hover .card-link svg, .card-link:hover svg { transform: translateX(4px); }

/* Check list */
.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; padding-block: 0.45rem; }
.checklist svg { width: 1.25rem; height: 1.25rem; flex: none; fill: var(--red); margin-top: 0.2rem; }

/* ---------- Section headers ---------- */
.section-head { max-width: 44rem; margin-bottom: 3rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-head p { color: var(--muted); }
.section--dark .section-head p { color: var(--concrete-400); }

/* ---------- Review cards ---------- */
.review {
  background: #fff;
  border: 2px solid var(--concrete-300);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.review-stars { color: var(--yellow-deep); display: flex; gap: 2px; }
.review-stars svg { width: 1.1rem; height: 1.1rem; fill: var(--yellow); stroke: var(--ink); stroke-width: 0.5; }
.review blockquote { margin: 0; font-size: 0.98rem; color: var(--ink-soft); flex-grow: 1; }
.review figcaption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: var(--gutter); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery figure { margin: 0; position: relative; border: 2px solid var(--ink); overflow: hidden; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  background: rgba(28, 27, 27, 0.85);
  color: var(--concrete-300);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 0.7rem;
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--paper); }
.cta-band .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 3rem;
}
.cta-band h2 { margin: 0 0 0.4rem; }
.cta-band p { margin: 0; color: var(--concrete-400); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }

.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.field .hint { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.06em; color: var(--muted); text-transform: none; margin-left: 0.4rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 0.9rem;
  border: 2px solid var(--concrete-400);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}
.field textarea { min-height: 120px; resize: vertical; }

.form-note { font-size: 0.85rem; color: var(--muted); }

/* ---------- Tables (hours) ---------- */
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 0.65rem 0.25rem; text-align: left; border-bottom: 1px solid var(--line); }
.hours th { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; }
.hours td { text-align: right; font-family: var(--font-mono); font-size: 0.85rem; }
.hours .closed td, .hours .closed th { color: var(--red-deep); }
.hours .today th, .hours .today td { background: var(--concrete-100); }

/* ---------- Info cards (location) ---------- */
.info-card {
  background: #fff;
  border: 2px solid var(--concrete-300);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.info-card svg { width: 30px; height: 30px; flex: none; fill: var(--blue-deep); }
.info-card :is(h2, h3) { margin-bottom: 0.35rem; }
.info-card p { margin: 0; color: var(--muted); }

.map-frame { border: 3px solid var(--ink); box-shadow: var(--shadow-offset); }
.map-frame iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- Tire catalog ---------- */
.tire-card {
  background: #fff;
  border: 2px solid var(--concrete-300);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.tire-card:hover { border-color: var(--blue); box-shadow: var(--shadow-offset-sm); }
.tire-media { position: relative; aspect-ratio: 4 / 3; border-bottom: 2px solid var(--concrete-300); overflow: hidden; }
.tire-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.tire-card:hover .tire-media img { transform: scale(1.04); }
.tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border: 2px solid var(--ink);
}
.tag--new { background: var(--yellow); color: var(--ink); }
.tag--used { background: var(--concrete-300); color: var(--ink); }
.tire-body { padding: 1.25rem; display: flex; flex-direction: column; flex-grow: 1; }
.tire-size { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--blue-deep); margin-bottom: 0.6rem; }
.tire-body p { color: var(--muted); font-size: 0.92rem; flex-grow: 1; }
.tire-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 0.9rem; margin-top: 0.5rem; }
.price { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--red-deep); }
.price small { font-family: var(--font-mono); font-weight: 400; font-size: 0.65rem; color: var(--muted); display: block; letter-spacing: 0.08em; }

/* Filters */
.filters {
  background: #fff;
  border: 2px solid var(--concrete-300);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.filters h2 { padding-bottom: 0.75rem; border-bottom: 2px solid var(--concrete-300); }
.filter-group { margin-top: 1.4rem; }
.filter-group h3 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.7rem;
}
.filter-option { display: flex; align-items: center; gap: 0.6rem; padding-block: 0.3rem; cursor: pointer; }
.filter-option input { width: 1.15rem; height: 1.15rem; accent-color: var(--red); }

.shop-layout { display: grid; gap: 2rem; }
@media (min-width: 900px) { .shop-layout { grid-template-columns: 260px 1fr; align-items: start; } .filters { position: sticky; top: 110px; } }

/* ---------- Blog ---------- */
.post-card {
  background: #fff;
  border: 2px solid var(--concrete-300);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.post-card:hover { border-color: var(--ink); box-shadow: var(--shadow-offset-sm); }
.post-media { aspect-ratio: 16 / 9; border-bottom: 2px solid var(--concrete-300); overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.post-card:hover .post-media img { transform: scale(1.04); }
.post-body { padding: 1.4rem; display: flex; flex-direction: column; flex-grow: 1; }
.post-meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
}
.post-meta .cat { color: var(--blue-deep); font-weight: 600; }
.post-body :is(h2, h3) a { color: var(--ink); text-decoration: none; }
.post-body :is(h2, h3) a:hover { color: var(--red-deep); }
.post-body p { color: var(--muted); font-size: 0.95rem; flex-grow: 1; }

/* ---------- Values (about) ---------- */
/* Tricolor top-dash keyed to the logo palette; one per value block */
.value-block { margin-bottom: 2.25rem; }
.value-block::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 5px;
  background: var(--red);
  margin-bottom: 0.9rem;
}
.value-block:nth-of-type(2)::before { background: var(--blue); }
.value-block:nth-of-type(3)::before { background: var(--yellow); }
.value-block p { color: var(--muted); margin: 0; }

/* Heading with a short caution-stripe underline — kicker-free section head */
.h-stripe { display: inline-block; }
.h-stripe::after {
  content: "";
  display: block;
  height: 8px;
  width: 6rem;
  margin-top: 0.6rem;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 10px, var(--ink) 10px 20px);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--concrete-400); border-top: 6px solid var(--red); }
.site-footer .footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 4rem;
}
@media (min-width: 720px) { .site-footer .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer h3 {
  color: var(--paper);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.6rem; }
.site-footer a { color: var(--concrete-400); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; text-underline-offset: 4px; }
.footer-brand img { height: 64px; width: auto; margin-bottom: 1rem; }
.footer-hours { width: 100%; font-size: 0.85rem; }
.footer-hours td { padding-block: 0.3rem; border-bottom: 1px solid rgba(252, 249, 248, 0.12); }
.footer-hours td:last-child { text-align: right; font-family: var(--font-mono); font-size: 0.75rem; }
.footer-hours .closed { color: #ff9d9d; }
.footer-legal {
  border-top: 1px solid rgba(252, 249, 248, 0.15);
  padding-block: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}
.footer-legal a { color: var(--concrete-400); }

/* ---------- Sticky mobile call bar ---------- */
.callbar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 3px solid var(--ink);
}
.callbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 0.5rem;
}
.callbar svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.callbar .call { background: var(--red); color: #fff; }
.callbar .book { background: var(--yellow); color: var(--ink); }
@media (min-width: 720px) { .callbar { display: none; } }
body { padding-bottom: 56px; }
@media (min-width: 720px) { body { padding-bottom: 0; } }

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

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.page-hero p { color: var(--concrete-400); max-width: 40rem; margin-bottom: 0; }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.22; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
