/* style.css — FlatFix.ie design tokens + components */

:root {
  /* Type scale (fluid) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);
  --text-hero: clamp(2.75rem, 1rem + 5.5vw, 5.5rem);

  /* Spacing (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Brand palette — pulled directly from client materials */
  --color-bg: #ffffff;
  --color-surface: #f7f7f5;
  --color-surface-2: #f0efec;
  --color-surface-offset: #ececea;
  --color-border: oklch(0.15 0 0 / 0.12);
  --color-divider: oklch(0.15 0 0 / 0.08);

  --color-text: #0a0a0a;
  --color-text-muted: #4a4a48;
  --color-text-faint: #8a8a86;
  --color-text-inverse: #ffffff;

  --color-ink: #0a0a0a; /* pure near-black */
  --color-ink-2: #151513;

  --color-primary: #ffd400; /* brand yellow/gold */
  --color-primary-hover: #e6bf00;
  --color-primary-active: #cca900;
  --color-primary-highlight: #fff3b8;

  --color-purple: #6b2d8c; /* secondary accent, sparing use */
  --color-purple-hover: #591f77;
  --color-purple-highlight: #e8d9f0;

  --color-success: #2f7a3d;
  --color-error: #b3261e;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows — tone-matched to neutral surface */
  --shadow-sm: 0 1px 2px oklch(0.1 0 0 / 0.08);
  --shadow-md: 0 4px 16px oklch(0.1 0 0 / 0.12);
  --shadow-lg: 0 16px 40px oklch(0.1 0 0 / 0.22);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 1000px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Work Sans', 'Helvetica Neue', sans-serif;

  /* Mobile call bar height, used for scroll padding */
  --mobile-bar-h: 64px;
}

/* ============ LAYOUT PRIMITIVES ============ */

.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.container--wide {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink);
  background: var(--color-primary);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-xl);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--color-ink);
  margin-bottom: var(--space-3);
  max-width: 24ch;
}

.section-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-bottom: var(--space-10);
}

/* Diagonal hazard-stripe accent — sparing use */
.hazard-strip {
  height: 10px;
  width: 100%;
  background: repeating-linear-gradient(
    -45deg,
    var(--color-ink) 0 12px,
    var(--color-primary) 12px 24px
  );
}

.hazard-strip--sm {
  height: 6px;
  max-width: 72px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  min-height: 48px;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-ink);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}
.btn-primary:active {
  background: var(--color-primary-active);
  transform: translateY(1px);
}

.btn-dark {
  background: var(--color-ink);
  color: var(--color-text-inverse);
  border-color: var(--color-ink);
}
.btn-dark:hover {
  background: var(--color-ink-2);
}
.btn-dark:active {
  transform: translateY(1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}
.btn-outline:hover {
  background: var(--color-ink);
  color: var(--color-text-inverse);
}
.btn-outline:active {
  transform: translateY(1px);
}

.btn-outline--light {
  color: var(--color-text-inverse);
  border-color: color-mix(in oklab, white 40%, transparent);
}
.btn-outline--light:hover {
  background: var(--color-text-inverse);
  color: var(--color-ink);
  border-color: var(--color-text-inverse);
}

.btn-block {
  width: 100%;
}

/* ============ HEADER ============ */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in oklab, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.header__logo img {
  height: 44px;
  width: auto;
}

.header__nav {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

.header__nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-ink);
  text-decoration: none;
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
}
.header__nav a:hover {
  border-bottom-color: var(--color-primary);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header__menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  color: var(--color-ink);
}
.header__menu-btn:hover {
  background: var(--color-surface-2);
}

.header__menu-btn svg {
  width: 26px;
  height: 26px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}
.mobile-nav.is-open {
  display: flex;
}
.mobile-nav a {
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--color-divider);
}
.mobile-nav a:active {
  background: var(--color-surface-2);
}

@media (min-width: 900px) {
  .header__nav {
    display: flex;
  }
  .header__menu-btn {
    display: none;
  }
}

/* ============ HERO ============ */

.hero {
  position: relative;
  background: var(--color-ink);
  color: var(--color-text-inverse);
  overflow: hidden;
  padding-block: clamp(var(--space-10), 9vw, var(--space-20));
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    color-mix(in oklab, var(--color-primary) 100%, transparent) 0 3px,
    transparent 3px 46px
  );
  opacity: 0.08;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-12);
  }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink);
  background: var(--color-primary);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}

.hero h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-hero);
  line-height: 1.02;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}
.hero h1 em {
  font-style: italic;
  color: var(--color-primary);
}

.hero p.hero__sub {
  font-size: var(--text-lg);
  color: color-mix(in oklab, white 82%, transparent);
  max-width: 46ch;
  margin-bottom: var(--space-8);
  font-weight: 400;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  font-size: var(--text-sm);
  color: color-mix(in oklab, white 75%, transparent);
}
.hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.hero__trust svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.hero__media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid color-mix(in oklab, white 12%, transparent);
}
.hero__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero__media-badge {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  background: var(--color-primary);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* ============ SERVICES ============ */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1050px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card--featured {
  background: var(--color-ink);
  color: var(--color-text-inverse);
  border-color: var(--color-ink);
}
.service-card--featured .service-card__desc {
  color: color-mix(in oklab, white 78%, transparent);
}
.service-card--featured .service-card__title {
  color: var(--color-text-inverse);
}
.service-card--featured .service-card__icon {
  color: var(--color-primary);
}
.service-card--featured .service-card__price {
  color: var(--color-primary);
}

.service-card__icon {
  width: 40px;
  height: 40px;
  color: var(--color-ink);
  flex-shrink: 0;
}
.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-lg);
  text-transform: uppercase;
  color: var(--color-ink);
  letter-spacing: 0.01em;
}

.service-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  flex-grow: 1;
}

.service-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-divider);
}

.service-card--featured .service-card__footer {
  border-top-color: color-mix(in oklab, white 18%, transparent);
}

.service-card__price {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--color-ink);
}

.service-card__tag {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============ WHY US ============ */

.why-us {
  background: var(--color-ink);
  color: var(--color-text-inverse);
  position: relative;
  overflow: hidden;
}

.why-us .section-label {
  background: var(--color-primary);
}
.why-us .section-title {
  color: var(--color-text-inverse);
}
.why-us .section-sub {
  color: color-mix(in oklab, white 75%, transparent);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 640px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1050px) {
  .why-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.why-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: color-mix(in oklab, white 6%, transparent);
  border: 1px solid color-mix(in oklab, white 12%, transparent);
}

.why-item__icon {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
}
.why-item__icon svg {
  width: 100%;
  height: 100%;
}

.why-item h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-text-inverse);
}

.why-item p {
  font-size: var(--text-sm);
  color: color-mix(in oklab, white 72%, transparent);
}

/* ============ TYRE SIZE GUIDE ============ */

.tyre-guide {
  background: var(--color-surface);
}

.tyre-guide__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}
@media (min-width: 900px) {
  .tyre-guide__layout {
    grid-template-columns: 1fr 1fr;
  }
}

.tyre-code {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.75rem, 1rem + 3vw, 3rem);
  color: var(--color-ink);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  justify-content: center;
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.tyre-code span {
  position: relative;
}

.tyre-code span.hl {
  color: var(--color-purple);
}

.tyre-legend {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.tyre-legend__item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3);
  border-radius: var(--radius-md);
}
.tyre-legend__item:hover {
  background: var(--color-surface-2);
}

.tyre-legend__code {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-base);
  color: var(--color-purple);
  min-width: 3ch;
  flex-shrink: 0;
}

.tyre-legend__text strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-ink);
}
.tyre-legend__text span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============ COVERAGE ============ */

.coverage {
  position: relative;
  background: var(--color-primary);
  color: var(--color-ink);
  text-align: center;
  overflow: hidden;
}

.coverage::before,
.coverage::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--color-ink) 0 12px,
    var(--color-primary) 12px 24px
  );
}
.coverage::before {
  top: 0;
}
.coverage::after {
  bottom: 0;
}

.coverage__inner {
  max-width: 56ch;
  margin-inline: auto;
}

.coverage h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-xl);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.coverage p {
  font-size: var(--text-base);
  margin-bottom: var(--space-6);
  font-weight: 500;
}

/* ============ CONTACT ============ */

.contact {
  background: var(--color-ink);
  color: var(--color-text-inverse);
}

.contact .section-label {
  background: var(--color-primary);
}
.contact .section-title {
  color: var(--color-text-inverse);
}
.contact .section-sub {
  color: color-mix(in oklab, white 75%, transparent);
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: stretch;
}
@media (min-width: 900px) {
  .contact__layout {
    grid-template-columns: 1fr 1fr;
  }
}

.call-card {
  background: var(--color-primary);
  color: var(--color-ink);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--shadow-lg);
  height: 100%;
}

.call-card p {
  flex-grow: 1;
}

.call-card .btn {
  margin-top: auto;
}

.call-card__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.call-card__number {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.75rem, 1.2rem + 3vw, 3rem);
  line-height: 1;
}

.call-card__number a {
  color: inherit;
  text-decoration: none;
}

.call-card p {
  font-size: var(--text-sm);
  font-weight: 500;
}

.form-card {
  background: color-mix(in oklab, white 6%, transparent);
  border: 1px solid color-mix(in oklab, white 14%, transparent);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.form-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.form-card > p {
  font-size: var(--text-sm);
  color: color-mix(in oklab, white 72%, transparent);
  margin-bottom: var(--space-5);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.field label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in oklab, white 75%, transparent);
}
.field input,
.field textarea {
  background: color-mix(in oklab, white 10%, transparent);
  border: 1px solid color-mix(in oklab, white 20%, transparent);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text-inverse);
  min-height: 48px;
}
.field textarea {
  min-height: 96px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: color-mix(in oklab, white 45%, transparent);
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ============ FOOTER ============ */

.footer {
  background: var(--color-ink-2);
  color: color-mix(in oklab, white 70%, transparent);
  padding-block: var(--space-12);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid color-mix(in oklab, white 12%, transparent);
}

.footer__brand img {
  height: 40px;
  width: auto;
  margin-bottom: var(--space-3);
}

.footer__brand p {
  font-size: var(--text-sm);
  max-width: 32ch;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}
.footer__nav a {
  color: color-mix(in oklab, white 80%, transparent);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
}
.footer__nav a:hover {
  color: var(--color-primary);
}

.footer__call {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-text-inverse);
  text-decoration: none;
}
.footer__call svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}
.footer__call:hover {
  color: var(--color-primary);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: color-mix(in oklab, white 55%, transparent);
}

/* ============ STICKY MOBILE CALL BAR ============ */

.mobile-call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 70;
  display: flex;
  background: var(--color-primary);
  box-shadow: 0 -4px 16px oklch(0.1 0 0 / 0.25);
  padding: var(--space-3) var(--space-4);
  padding-bottom: max(var(--space-3), env(safe-area-inset-bottom));
}

.mobile-call-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--text-base);
  color: var(--color-ink);
  text-decoration: none;
  min-height: 48px;
}
.mobile-call-bar svg {
  width: 22px;
  height: 22px;
}

body {
  padding-bottom: var(--mobile-bar-h);
}

@media (min-width: 900px) {
  .mobile-call-bar {
    display: none;
  }
  body {
    padding-bottom: 0;
  }
}

/* ============ UTILITY ============ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: var(--color-ink);
  padding: var(--space-3) var(--space-5);
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

/* ============ V3 PRODUCTION ADDITIONS ============ */

/* Self-hosted fonts */
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/anton-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./fonts/work-sans-latin.woff2') format('woff2');
}

/* Header phone */
.header__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 0.8rem + 1vw, 1.375rem);
  letter-spacing: 0.02em;
  color: var(--color-ink);
  text-decoration: none;
  background: var(--color-primary);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  min-height: 44px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.header__phone:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}
.header__phone svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
@media (max-width: 419px) {
  .header__phone-num { display: none; }
  .header__phone { padding-inline: var(--space-3); }
}

/* Buttons */
.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  min-height: 56px;
}
.btn-whatsapp {
  background: #1eb955;
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}
.btn-whatsapp:hover {
  background: #179447;
  box-shadow: var(--shadow-md);
}
.btn-whatsapp:active { transform: translateY(1px); }

/* Hero refinements */
.hero h1 .h1-break { display: block; }

.hero__speedlines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero__speedlines span {
  position: absolute;
  height: 3px;
  width: 240px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, transparent, var(--color-primary));
  opacity: 0;
  animation: speedline 3.2s ease-in-out infinite;
}
.hero__speedlines span:nth-child(1) { top: 16%; animation-delay: 0s; }
.hero__speedlines span:nth-child(2) { top: 52%; width: 160px; animation-delay: 1.1s; }
.hero__speedlines span:nth-child(3) { top: 84%; width: 320px; animation-delay: 2.2s; }
@keyframes speedline {
  0%   { transform: translateX(-30vw); opacity: 0; }
  15%  { opacity: 0.5; }
  60%  { opacity: 0.25; }
  100% { transform: translateX(110vw); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__speedlines { display: none; }
}

/* Animated hazard strip */
.hazard-strip--animated {
  background-size: 34px 34px;
  animation: hazard-move 18s linear infinite;
  background: repeating-linear-gradient(
    -45deg,
    var(--color-ink) 0 12px,
    var(--color-primary) 12px 24px
  );
}
@keyframes hazard-move {
  from { background-position: 0 0; }
  to   { background-position: 340px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hazard-strip--animated { animation: none; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal--delay { transition-delay: 0.12s; }
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* Service CTA card */
.service-card--cta {
  background: var(--color-primary);
  border-color: var(--color-primary);
  justify-content: center;
}
.service-card--cta .service-card__desc { color: var(--color-ink); }
.service-card--cta .btn { margin-top: var(--space-2); }

/* Section CTA band (dark sections) */
.section-cta {
  margin-top: var(--space-12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: color-mix(in oklab, white 5%, transparent);
  border: 1px solid color-mix(in oklab, white 14%, transparent);
}
.section-cta p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  text-transform: uppercase;
  color: var(--color-text-inverse);
}
.section-cta__btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* About / fleet */
.about {
  background: var(--color-bg);
  overflow: hidden;
}
.about__grid {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}
@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-16);
  }
}
.about__media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about__media img { width: 100%; }
.about__media figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(to top, oklch(0.1 0 0 / 0.82), transparent);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
}
.about__text .section-title { max-width: 20ch; }
.about__text > p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
  max-width: 54ch;
}
.about__points {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.about__points li {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--text-base);
}
.about__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background:
    linear-gradient(-45deg, var(--color-ink) 25%, var(--color-primary) 25%, var(--color-primary) 50%, var(--color-ink) 50%, var(--color-ink) 75%, var(--color-primary) 75%);
  background-size: 8px 8px;
}
.about__points a {
  color: var(--color-ink);
  font-weight: 700;
  text-decoration-color: var(--color-primary);
  text-decoration-thickness: 2px;
}

/* Gallery */
.gallery-wrap { margin-top: clamp(var(--space-12), 7vw, var(--space-20)); }
.gallery__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-lg);
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
.gallery__item { margin: 0; }
.gallery__btn {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
  position: relative;
}
.gallery__btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.gallery__btn img { width: 100%; }
.gallery__item figcaption {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}

/* Tyre guide poster */
.tyre-guide__poster {
  margin: 0;
  max-width: 460px;
  justify-self: center;
  width: 100%;
}
.tyre-guide__poster .gallery__btn { box-shadow: var(--shadow-md); }
.tyre-guide__poster figcaption {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
}
.tyre-guide__zoom {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
  background: var(--color-ink);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}
.tyre-guide__hint {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 52ch;
}
.tyre-guide__hint a {
  color: var(--color-ink);
  font-weight: 700;
  text-decoration-color: var(--color-primary);
  text-decoration-thickness: 2px;
}

/* Coverage buttons */
.coverage__btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

/* Areas */
.areas { background: var(--color-surface); }
.areas__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.areas__list li {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink);
}
.areas__list li.areas__more {
  background: var(--color-ink);
  color: var(--color-primary);
  border-color: var(--color-ink);
  font-style: italic;
}
.areas__note {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
}
.areas__note a {
  color: var(--color-ink);
  font-weight: 700;
  text-decoration-color: var(--color-primary);
  text-decoration-thickness: 2px;
}

/* FAQ */
.faq { background: var(--color-bg); }
.faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 800px;
}
.faq__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq__item[open] {
  border-color: var(--color-ink);
  box-shadow: var(--shadow-sm);
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-ink);
}
.faq__item summary:hover { background: var(--color-surface-2); }
.faq__chev {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  position: relative;
  transition: transform var(--transition-interactive);
}
.faq__chev::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2.5px solid var(--color-ink);
  border-bottom: 2.5px solid var(--color-ink);
  transform: translate(-50%, -65%) rotate(45deg);
}
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__answer {
  padding: 0 var(--space-6) var(--space-5);
}
.faq__answer p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 62ch;
}
.faq__answer a {
  color: var(--color-ink);
  font-weight: 700;
  text-decoration-color: var(--color-primary);
  text-decoration-thickness: 2px;
}

/* Contact info column */
.call-card__btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: auto;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.contact-info__item {
  background: color-mix(in oklab, white 6%, transparent);
  border: 1px solid color-mix(in oklab, white 14%, transparent);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
}
.contact-info__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}
.contact-info__value {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-text-inverse);
  text-decoration: none;
  margin-bottom: var(--space-1);
  overflow-wrap: anywhere;
}
a.contact-info__value:hover { color: var(--color-primary); }
.contact-info__item p {
  font-size: var(--text-sm);
  color: color-mix(in oklab, white 70%, transparent);
}

/* Footer contact */
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer__email {
  color: color-mix(in oklab, white 80%, transparent);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
}
.footer__email:hover { color: var(--color-primary); }

/* Sticky mobile bar: call + WhatsApp */
.mobile-call-bar {
  gap: var(--space-3);
}
.mobile-call-bar__call {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--text-base);
  color: var(--color-ink);
  text-decoration: none;
  min-height: 48px;
}
.mobile-call-bar__call svg { width: 22px; height: 22px; }
.mobile-call-bar__wa {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-height: 48px;
  border-radius: var(--radius-md);
  background: #1eb955;
  color: #fff;
}
.mobile-call-bar__wa svg { width: 24px; height: 24px; }

/* Lightbox */
.lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 760px);
  max-height: 90dvh;
  margin: auto;
}
.lightbox::backdrop {
  background: oklch(0.08 0 0 / 0.88);
  backdrop-filter: blur(4px);
}
.lightbox img {
  max-width: 100%;
  max-height: 84dvh;
  width: auto;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-inline: auto;
}
.lightbox__close {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-ink);
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 700;
  z-index: 10;
  box-shadow: var(--shadow-md);
}
.lightbox__close:hover { background: var(--color-primary-hover); }

/* QA refinements */
.service-card__price { font-size: var(--text-base); }
.service-card__tag { text-align: right; }
.contact__layout { align-items: start; }
.call-card { height: auto; }
.call-card p { flex-grow: 0; }
.service-card__footer { flex-wrap: wrap; }
.service-card__price { white-space: nowrap; }
.service-card__tag { margin-left: auto; }
