/* =====================================================================
   Tyre Time with Tom — retro service-station
   Brand tokens from the brand strategy PDF. All colours live here.
   ===================================================================== */

:root {
  --cream: #F4F1DE;          /* Pantone 7499C */
  --cream-deep: #EAE5CC;     /* derived shade of cream for panels */
  --green: #1B3A2A;          /* Pantone 567C */
  --green-deep: #12291D;     /* derived shade of green for depth */
  --ink: #272B2C;            /* Pantone 447C */
  --gold: #C99839;           /* Pantone 124C */
  --gold-bright: #E0AF4B;    /* derived lift of gold for hovers */
  --gold-deep: #8A6520;      /* derived dark gold — AA-safe as text on cream */

  --font-display: "Lilita One", "Arial Black", sans-serif;
  --font-body: "Montserrat", Verdana, sans-serif;

  --radius: 22px;
  --shadow-sticker: 0.35rem 0.35rem 0 rgba(39, 43, 44, 0.22);
  --maxw: 72rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 6rem; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 0.75rem; }

a { color: inherit; }

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

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

/* ---------------- buttons ---------------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-align: center;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 3px solid var(--green-deep);
  box-shadow: var(--shadow-sticker);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.btn:hover { transform: translate(-2px, -2px); box-shadow: 0.55rem 0.55rem 0 rgba(39, 43, 44, 0.22); }
.btn:active { transform: translate(1px, 1px); box-shadow: 0.15rem 0.15rem 0 rgba(39, 43, 44, 0.22); }

.btn--green { background: var(--green); color: var(--cream); }
.btn--gold  { background: var(--gold); color: var(--green-deep); }
.btn--cream { background: var(--cream); color: var(--green); }
.btn--big   { font-size: 1.375rem; padding: 1rem 2.2rem; }

/* ---------------- header ---------------- */

.siteheader {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.6rem clamp(1.25rem, 4vw, 2.5rem);
  background: var(--green);
  border-bottom: 3px solid var(--green-deep);
}

.siteheader__logo img { width: 130px; height: auto; display: block; }

.siteheader__nav {
  display: flex;
  gap: 1.4rem;
  margin-inline: auto;
}

.siteheader__nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
}

.siteheader__nav a:hover { border-bottom-color: var(--gold); }

.siteheader__actions { display: flex; align-items: center; gap: 1.1rem; }

.siteheader__actions .btn { box-shadow: none; padding: 0.55rem 1.2rem; font-size: 1rem; }

/* burger — hidden on desktop, shown on the right on mobile */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 8px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--cream);
  transition: transform 160ms ease, opacity 160ms ease;
}
.siteheader.nav-open .burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.siteheader.nav-open .burger span:nth-child(2) { opacity: 0; }
.siteheader.nav-open .burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.phonelink {
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.phonelink:hover { color: var(--gold-bright); text-decoration: underline; }

/* ---------------- hero ---------------- */

.hero {
  background:
    linear-gradient(rgba(244, 241, 222, 0.93), rgba(244, 241, 222, 0.93)),
    url("../assets/pattern-cream.jpg?v=5");
  background-size: 900px auto;
  overflow: hidden;
}

.hero__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.hero__copy h1 {
  font-size: clamp(2.75rem, 6.5vw, 4.75rem);
  color: var(--green);
  margin: 0.9rem 0 1.1rem;
}

.hero__sub { font-size: 1.2rem; max-width: 34em; }

.hero__cta { margin-top: 1.8rem; }

.hero__alt { margin-top: 0.8rem; font-size: 0.95rem; }

.hero__art { text-align: center; }

.hero__art img {
  width: min(100%, 26rem);
}

.trustchip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green);
  color: var(--cream);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.95rem;
}

.stars { color: var(--gold); letter-spacing: 0.1em; }

/* staggered hero reveal */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > *, .hero__art {
    animation: rise 640ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero__copy > :nth-child(2) { animation-delay: 80ms; }
  .hero__copy > :nth-child(3) { animation-delay: 160ms; }
  .hero__copy > :nth-child(4) { animation-delay: 240ms; }
  .hero__art { animation-delay: 200ms; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}


/* ---------------- tyre-tread divider ---------------- */

.tread {
  height: 26px;
  background: var(--green);
  --notch: rgba(244, 241, 222, 1);
  background-image: repeating-linear-gradient(
    115deg,
    transparent 0 26px,
    var(--green-deep) 26px 40px
  );
}

.tread--flip { transform: scaleX(-1); }

/* ---------------- quote tool ---------------- */

.quote {
  background: var(--green);
  color: var(--cream);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.quote h2 { color: var(--cream); }

.quote__sub { max-width: 44em; margin-bottom: 2rem; opacity: 0.92; }

.quote__row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.9rem;
}

.quote__slash {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  padding-bottom: 0.45rem;
}

.field { display: flex; flex-direction: column; gap: 0.3rem; }

.field label, .field__caption {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cream);
}

.field select {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green-deep);
  background: var(--cream);
  border: 3px solid var(--green-deep);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  min-width: 5.2rem;
  cursor: pointer;
}

.field--count { margin-left: auto; }

.segmented {
  display: flex;
  border: 3px solid var(--green-deep);
  border-radius: 12px;
  overflow: hidden;
  background: var(--cream);
}

.segmented button {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--green);
  background: transparent;
  border: none;
  padding: 0.55rem 1.15rem;
  cursor: pointer;
}

.segmented button + button { border-left: 2px solid var(--cream-deep); }

.segmented button.is-active {
  background: var(--gold);
  color: var(--green-deep);
}

.sizehelp { margin-top: 1.4rem; max-width: 40rem; }

.sizehelp summary {
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sizehelp__body { padding: 1rem 0 0.4rem; }

.sizehelp__body svg { width: min(100%, 26rem); display: block; margin-bottom: 0.6rem; }

.sizehelp__mark {
  font-family: var(--font-display);
  fill: var(--gold);
  font-size: 17px;
}

.sizehelp__label { fill: var(--cream); font-family: var(--font-body); font-size: 15px; }

.sizehelp__body p { font-size: 0.95rem; opacity: 0.92; max-width: 38em; }

/* tier cards */

.quote__results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.2rem;
  align-items: stretch;
}

.tier {
  position: relative;
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--green-deep);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.7rem;
  box-shadow: var(--shadow-sticker);
  display: flex;
  flex-direction: column;
}

.tier--popular {
  background: var(--cream);
  border-color: var(--gold);
  border-width: 4px;
  transform: rotate(-0.6deg) scale(1.03);
}

.tier__flag {
  position: absolute;
  top: -1rem;
  right: 1.2rem;
  background: var(--gold);
  color: var(--green-deep);
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  border: 3px solid var(--green-deep);
  transform: rotate(2deg);
}

.tier__name { font-size: 1.7rem; color: var(--green); }

.tier__tagline {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold-deep);
  margin-bottom: 0.9rem;
}

.tier__price { font-size: 1rem; }

.tier__amount {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--green);
  line-height: 1;
}

.tier__price--ask {
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.65rem 0;
}

.tier__total {
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 2px solid var(--cream-deep);
  padding-bottom: 0.9rem;
  margin-bottom: 0.9rem;
}

.tier__blurb { font-size: 0.95rem; flex-grow: 1; }

.tier__cta { margin-top: 1.2rem; font-size: 1rem; padding: 0.75rem 1rem; }

.promise {
  position: relative;
  display: flex;
  gap: 1.2rem;
  align-items: center;
  background: var(--green-deep);
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin: 3.2rem auto 0;
  max-width: 46rem;
}

/* the thumb bursts out of the box, sticker-style */
.promise img {
  width: 96px;
  flex-shrink: 0;
  margin: -3.2rem 0.2rem -0.9rem -0.6rem;
  transform: rotate(-12deg);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

@media (max-width: 640px) {
  .promise img { width: 74px; margin: -2.4rem 0 -0.6rem -0.4rem; }
}

.promise h3 {
  font-size: 1.35rem;
  color: var(--gold-bright);
  margin-bottom: 0.3rem;
}

.promise p { font-size: 0.98rem; }

.quote__note {
  margin-top: 1.8rem;
  font-size: 0.95rem;
  opacity: 0.92;
  max-width: 46em;
}

/* ---------------- brand trust bar ---------------- */

.brands { background: var(--cream); padding: 1.9rem 0 1.5rem; }

.brands__label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
  margin-bottom: 1.1rem;
}

.brands__row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1.4rem, 4.5vw, 3.6rem);
  flex-wrap: wrap;
}

.brands__row {
  /* one scale knob: logo heights are in em so everything tracks this */
  font-size: clamp(15px, 1.9vw, 21px);
}

.brands__row img {
  width: auto;
  filter: brightness(0);
  opacity: 0.7;
}

/* per-brand heights tuned so every mark carries similar visual weight */
.b-michelin    { height: 0.9em; }
.b-bridgestone { height: 0.95em; }
.b-continental { height: 1.2em; }
.b-pirelli     { height: 1.3em; }
.b-goodyear    { height: 1.05em; }
.b-toyo        { height: 1.0em; }
.b-hankook     { height: 1.3em; }

/* ---------------- how it works ---------------- */

.how { padding: clamp(3rem, 6vw, 5rem) 0; }

.how h2 { color: var(--green); margin-bottom: 2rem; }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

.step img { width: 72px; margin-bottom: 0.9rem; }

.step h3 { font-size: 1.45rem; color: var(--green); margin-bottom: 0.5rem; }

.step__num { color: var(--gold-deep); margin-right: 0.2rem; }

.step p { font-size: 0.98rem; }

/* ---------------- reviews ---------------- */

.reviews {
  background:
    linear-gradient(rgba(27, 58, 42, 0.95), rgba(27, 58, 42, 0.95)),
    url("../assets/pattern-cream.jpg?v=5");
  background-size: 900px auto;
  color: var(--cream);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.reviews .container {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.reviews__number {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 9vw, 7rem);
  line-height: 1;
}

.stars--big { font-size: 1.8rem; }

.reviews__count { max-width: 13em; font-size: 0.98rem; margin: 0.5rem 0 1.4rem; }

.reviews__quotes { display: grid; gap: 1.6rem; }

.reviews__quotes blockquote {
  border-left: 4px solid var(--gold);
  padding-left: 1.3rem;
}

.reviews__quotes p { font-size: 1.05rem; }

.reviews__quotes cite {
  display: block;
  margin-top: 0.6rem;
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold-bright);
}

/* ---------------- service area ---------------- */

.area { padding: clamp(3rem, 6vw, 4.5rem) 0; text-align: center; }

.area h2 { color: var(--green); }

.area__list {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  color: var(--green);
  margin: 1rem 0 0.8rem;
}

.area__note { font-size: 1rem; }

/* ---------------- faq ---------------- */

.faq {
  background: var(--cream-deep);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.faq h2 { color: var(--green); margin-bottom: 1.6rem; }

.faq details {
  background: var(--cream);
  border: 3px solid var(--green);
  border-radius: 16px;
  padding: 1rem 1.3rem;
  margin-bottom: 0.9rem;
  max-width: 46rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--green);
}

.faq details[open] summary { margin-bottom: 0.6rem; }

.faq p { font-size: 0.98rem; }

/* ---------------- final cta ---------------- */

.finalcta {
  background: var(--green);
  color: var(--cream);
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.finalcta img { width: min(70%, 20rem); margin-bottom: 1.2rem; }

.finalcta h2 { color: var(--cream); }

.finalcta p { margin: 0.6rem 0 1.8rem; }

.finalcta__buttons {
  display: flex;
  gap: 1.1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------------- footer ---------------- */

.sitefooter {
  background: var(--green-deep);
  color: var(--cream);
  padding: 2rem 0;
  font-size: 0.95rem;
}

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

.sitefooter a { color: var(--gold-bright); }

/* ---------------- mobile bar ---------------- */

.mobilebar { display: none; }

/* ---------------- responsive ---------------- */

@media (max-width: 900px) {
  .burger { display: flex; }

  .siteheader__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    background: var(--green);
    border-bottom: 3px solid var(--green-deep);
    padding: 0.4rem 0 0.8rem;
  }
  .siteheader.nav-open .siteheader__nav { display: flex; }
  .siteheader__nav a {
    padding: 0.85rem clamp(1.25rem, 4vw, 2.5rem);
    font-size: 1.05rem;
    border-bottom: none;
  }
  .siteheader__nav a:hover { background: var(--green-deep); }

  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__art img { width: min(70%, 18rem); }

  .quote__results { grid-template-columns: 1fr; max-width: 28rem; }
  .tier--popular { transform: none; order: -1; }

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

  .reviews .container { grid-template-columns: 1fr; text-align: center; }
  .reviews__quotes { text-align: left; }
  .reviews__count { margin-inline: auto; }
}

@media (max-width: 640px) {
  .siteheader__actions .phonelink { display: none; }

  .quote__row { gap: 0.5rem; }
  .field select { min-width: 4.4rem; font-size: 1.1rem; padding: 0.5rem 0.5rem; }
  .quote__slash { font-size: 1.5rem; }

  .field--count { margin-left: 0; width: 100%; }
  .segmented { display: flex; width: 100%; }
  .segmented button { flex: 1; }

  .mobilebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    gap: 0.7rem;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
    background: var(--green-deep);
  }

  .mobilebar .btn { flex: 1; font-size: 1.05rem; padding: 0.7rem 0.5rem; box-shadow: none; }

  body { padding-bottom: 4.4rem; }
}
