/* HJS Tyres & Recovery 247 — site styles
   Palette taken from the logo: charcoal #2a3038 and amber #f5b301 */

:root {
  --charcoal: #2a3038;
  --charcoal-dark: #1c2127;
  --charcoal-mid: #353c45;
  --ink: #1a1f24;
  --amber: #f5b301;
  --amber-deep: #e09c00;
  --amber-soft: #fff6d8;
  --fog: #f3f4f6;
  --line: #e3e5e9;
  --muted: #5c6470;
  --white: #ffffff;
  --whatsapp: #128c47;
  --whatsapp-dark: #0e743a;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(28, 33, 39, 0.08);
  --header-h: 5.25rem;
  --bar-h: 4.5rem;
  --max: 70rem;
  --font: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--charcoal);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--amber-deep);
}

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 200;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 8px;
}

.skip-link:focus {
  top: 0;
}

/* Layout */

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - 2rem, 46rem);
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(28, 33, 39, 0.04);
}

.header-accent {
  height: 5px;
  background: var(--amber);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
  flex: 1 1 auto;
}

.brand:hover {
  color: var(--ink);
}

.brand-logo {
  width: 4.5rem;
  height: auto;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.brand-tag {
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-toggle {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--charcoal);
  border-radius: 1px;
}

.nav-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.header-phone {
  display: none;
}

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 0.5rem 0 1rem;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-nav a {
  display: block;
  text-decoration: none;
  font-weight: 600;
  padding: 0.85rem 0.35rem;
  min-height: 2.75rem;
  color: var(--ink);
  border-bottom: 1px solid var(--fog);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--charcoal);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 4px 0 0 var(--amber);
  padding-left: 0.7rem;
}

.nav-checkbox:checked ~ .site-nav,
.site-nav.is-open {
  display: block;
}

.nav-checkbox:focus-visible + .nav-toggle {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}

.btn:hover {
  color: inherit;
}

.btn-amber {
  background: var(--amber);
  color: var(--ink);
  border-color: var(--amber);
}

.btn-amber:hover {
  background: var(--amber-deep);
  border-color: var(--amber-deep);
  color: var(--ink);
}

.btn-dark {
  background: var(--charcoal-dark);
  color: var(--white);
  border-color: var(--charcoal-dark);
}

.btn-dark:hover {
  background: var(--charcoal);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: var(--amber);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  border-color: var(--whatsapp);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  color: var(--white);
  border-color: var(--whatsapp-dark);
}

.btn svg {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero */

.hero {
  background:
    linear-gradient(160deg, var(--charcoal-dark) 0%, var(--charcoal) 52%, #171b20 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  display: block;
  height: 6px;
  background: var(--amber);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  padding: 2.4rem 0 2.6rem;
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.7rem;
}

.hero h1,
.page-hero h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 5.2vw, 3.15rem);
}

.hero-lead,
.page-hero .lead {
  margin: 0 0 1.4rem;
  font-size: 1.15rem;
  color: #d5d8dd;
  max-width: 40rem;
}

.phone-display {
  margin: 0 0 1.25rem;
}

.phone-display .label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c4c8ce;
  margin-bottom: 0.2rem;
}

.phone-display a {
  color: var(--amber);
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.phone-display a:hover {
  color: #ffd24d;
  text-decoration: underline;
}

.hero-meta {
  margin: 1.25rem 0 0;
  color: #c4c8ce;
  font-size: 1rem;
}

.hero-meta strong {
  color: var(--white);
  font-weight: 700;
}

.hero-logo-card {
  display: none;
}

/* Page (inner) hero — slightly tighter */

.page-hero .hero-grid {
  padding: 2rem 0 2.15rem;
}

/* Sections */

.section {
  padding: 3.25rem 0;
}

.section-fog {
  background: var(--fog);
}

.section h2 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.section-intro {
  margin: 0 0 1.75rem;
  color: var(--muted);
  max-width: 40rem;
}

/* Service cards */

.card-grid {
  display: grid;
  gap: 1.15rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.3rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  border-top: 4px solid var(--amber);
}

.card h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

.card-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 8px;
  background: var(--amber-soft);
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.card .phone-inline {
  margin: 0.15rem 0 0.15rem;
}

.card-link {
  font-weight: 700;
  text-decoration: none;
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.75rem;
}

.card-link:hover {
  color: var(--amber-deep);
}

/* Phone as visible text, repeated in sections */

.phone-inline {
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.phone-inline a {
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.01em;
  border-bottom: 2px solid var(--amber);
}

.phone-inline a:hover {
  color: var(--amber-deep);
}

/* Areas */

.area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.area-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
  font-size: 1rem;
}

/* Why choose us */

.reasons {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.reasons li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.15rem 1.15rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1rem;
  align-items: start;
}

.reasons h3 {
  margin: 0 0 0.2rem;
  font-size: 1.12rem;
  font-weight: 800;
  grid-column: 2;
}

.reasons p {
  margin: 0;
  color: var(--muted);
  grid-column: 2;
}

.reason-mark {
  grid-row: 1 / span 2;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Hours / contact */

.contact-panel {
  display: grid;
  gap: 1.5rem;
}

.hours-box,
.contact-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
}

.hours-box h3,
.contact-box h3 {
  margin: 0 0 0.7rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.hours-box dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.25rem;
}

.hours-box dt {
  font-weight: 700;
}

.hours-box dd {
  margin: 0;
  color: var(--muted);
}

.note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

/* Service page body copy */

.prose p {
  margin: 0 0 1rem;
}

.prose h2 {
  margin: 2rem 0 0.6rem;
}

.prose ul {
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
}

.prose li {
  margin: 0.3rem 0;
}

.cta-band {
  background: var(--charcoal-dark);
  color: var(--white);
  padding: 2rem 0;
  border-top: 5px solid var(--amber);
}

.cta-band h2 {
  color: var(--white);
  margin: 0 0 0.4rem;
}

.cta-band p {
  color: #d5d8dd;
  margin: 0 0 1rem;
}

.cta-band .phone-display {
  margin-bottom: 1rem;
}

/* Privacy */

.draft-banner {
  background: var(--amber-soft);
  border: 1px solid #f0d36a;
  border-left: 5px solid var(--amber);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin: 0 0 1.5rem;
}

.draft-banner strong {
  display: block;
  margin-bottom: 0.25rem;
}

.prose h2 {
  font-size: 1.35rem;
}

/* Footer */

.site-footer {
  background: var(--charcoal-dark);
  color: #cfd3d8;
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

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

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

.footer-brand img {
  width: 8.5rem;
  border-radius: 10px;
  background: var(--white);
  margin-bottom: 0.85rem;
}

.footer-name {
  color: var(--white);
  font-weight: 800;
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.site-footer h2 {
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}

.footer-links,
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a,
.footer-contact li {
  display: block;
  padding: 0.3rem 0;
  min-height: 2.25rem;
  text-decoration: none;
  font-weight: 600;
}

.footer-phone a {
  color: var(--amber);
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.footer-phone a:hover {
  color: #ffd24d;
}

.footer-legal {
  margin-top: 2rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.92rem;
  color: #9aa1a9;
}

/* Mobile sticky call bar */

.call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  background: var(--charcoal-dark);
  color: var(--white);
  border-top: 3px solid var(--amber);
  padding: 0.5rem 0.85rem calc(0.5rem + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 0.7rem;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.2);
}

.call-bar-text {
  flex: 1;
  min-width: 0;
  line-height: 1.2;
}

.call-bar-text .call-bar-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c4c8ce;
}

.call-bar-text a {
  color: var(--amber);
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.call-bar-text a:hover {
  color: #ffd24d;
}

.call-bar .btn {
  min-height: 2.75rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* Space for the fixed bar on small screens */
body {
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
}

/* Desktop */

@media (min-width: 800px) {
  body {
    padding-bottom: 0;
  }

  .call-bar {
    display: none;
  }

  .nav-toggle,
  .nav-checkbox {
    display: none;
  }

  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand phone"
      "nav nav";
    align-items: center;
    gap: 0.15rem 1.25rem;
    min-height: auto;
    padding-top: 0.65rem;
    padding-bottom: 0;
  }

  .brand {
    grid-area: brand;
    flex: 0 0 auto;
  }

  .brand-logo {
    width: 5rem;
  }

  .brand-name,
  .brand-tag {
    white-space: nowrap;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .site-nav {
    display: block;
    position: static;
    grid-area: nav;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--line);
    box-shadow: none;
    padding: 0;
    flex: 1 1 auto;
  }

  .site-nav ul {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.15rem;
    width: auto;
    margin: 0;
    padding: 0.3rem 0 0.45rem;
  }

  .site-nav a {
    border: 0;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 1rem;
  }

  .site-nav a[aria-current="page"] {
    box-shadow: none;
    padding-left: 0.7rem;
    background: var(--amber-soft);
  }

  .header-phone {
    grid-area: phone;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-left: 0.25rem;
    text-decoration: none;
    color: var(--ink);
    font-weight: 800;
    font-size: 1.12rem;
    letter-spacing: -0.015em;
    min-height: 3rem;
    padding: 0.35rem 0.2rem 0.35rem 0.2rem;
    white-space: nowrap;
  }

  .header-phone:hover {
    color: var(--amber-deep);
  }

  .header-phone .btn {
    margin-left: 0.15rem;
  }

  .hero-grid {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 3rem;
    padding: 3.4rem 0 3.6rem;
  }

  .hero-logo-card {
    display: block;
    background: var(--white);
    border-radius: 16px;
    padding: 1.15rem 1.25rem;
    width: 17.5rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .contact-panel {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
  }

  .section {
    padding: 4rem 0;
  }
}

@media (min-width: 1100px) {
  .site-nav a {
    padding: 0.55rem 0.85rem;
  }
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer-contact a {
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--amber);
}
