/* ===================================================
   Stretton's MOT Station - Base styles
   =================================================== */

* { box-sizing: border-box; }

/* scroll-padding-top stops anchor links (e.g. #exhausts, #general-repairs)
   landing flush under the sticky header and hiding the section they're
   meant to jump to. Sized generously for the header's nav row + breadcrumb
   row combined height, plus a little breathing room. Applies to every
   in-page anchor jump site-wide, not just one link. */
html { scroll-behavior: smooth; overflow-x: hidden; scroll-padding-top: 130px; }

body {
  margin: 0;
  font-family: var(--pb-smot-font);
  color: var(--pb-smot-text);
  background: var(--pb-smot-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.2;
  color: var(--pb-smot-navy);
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.pb-smot-container {
  max-width: var(--pb-smot-maxwidth);
  margin: 0 auto;
  padding: 0 var(--pb-smot-space-md);
}

.pb-smot-section {
  padding: var(--pb-smot-space-2xl) 0;
}

.pb-smot-section--alt {
  background: var(--pb-smot-offwhite);
}

.pb-smot-section--dark {
  background: var(--pb-smot-navy);
  color: var(--pb-smot-white);
}
.pb-smot-section--dark h2,
.pb-smot-section--dark h3,
.pb-smot-section--cta h2,
.pb-smot-section--cta h3 { color: var(--pb-smot-white); }

.pb-smot-section--cta {
  color: var(--pb-smot-white);
}

/* Eyebrow - small label above headings, used for pricing + section tags */
.pb-smot-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pb-smot-gold-dark);
  margin-bottom: 0.5em;
}

.pb-smot-section--dark .pb-smot-eyebrow {
  color: var(--pb-smot-gold);
}

/* Price badge - pill treatment used wherever a price sits under/beside a heading,
   e.g. home service cards, tyres cards. Distinct from .pb-smot-eyebrow (plain
   uppercase label) so pricing always reads with a bit more weight/oomph. */
.pb-smot-price-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(232, 163, 61, 0.14);
  color: var(--pb-smot-gold-dark);
  border: 1px solid rgba(232, 163, 61, 0.35);
  padding: 0.28em 0.75em;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.6em;
}

/* Buttons */
.pb-smot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: var(--pb-smot-radius);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.pb-smot-btn--primary {
  background: var(--pb-smot-gold);
  color: var(--pb-smot-white);
}
.pb-smot-btn--primary:hover {
  background: var(--pb-smot-gold-dark);
  transform: translateY(-1px);
}
.pb-smot-btn--primary svg { color: var(--pb-smot-white); }

.pb-smot-btn--outline {
  background: transparent;
  color: var(--pb-smot-white);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.pb-smot-btn--outline:hover {
  border-color: var(--pb-smot-white);
  background: rgba(255,255,255,0.08);
}

.pb-smot-btn--ghost {
  background: transparent;
  color: var(--pb-smot-navy);
  border: 1.5px solid var(--pb-smot-border);
}
.pb-smot-btn--ghost:hover {
  border-color: var(--pb-smot-navy);
}

.pb-smot-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Cards - the one shape used everywhere: grid items, service cards, stat cards */
.pb-smot-card {
  background: var(--pb-smot-white);
  border: 1px solid var(--pb-smot-border);
  border-radius: var(--pb-smot-radius);
  padding: var(--pb-smot-space-md);
  box-shadow: var(--pb-smot-shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.pb-smot-card:hover {
  box-shadow: var(--pb-smot-shadow-hover);
  transform: translateY(-2px);
}

/* [hidden] override - class-based display rules can fight this without it */
[hidden] { display: none !important; }

/* Visually hidden but accessible */
.pb-smot-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Skip link */
.pb-smot-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--pb-smot-navy);
  color: var(--pb-smot-white);
  padding: 0.75em 1.25em;
  z-index: 999;
  border-radius: 0 0 var(--pb-smot-radius) 0;
}
.pb-smot-skip:focus {
  left: 0;
}

/* Focus visibility - kept even with custom buttons/links */
a:focus-visible,
button:focus-visible,
.pb-smot-btn:focus-visible {
  outline: 2px solid var(--pb-smot-blue);
  outline-offset: 2px;
}

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