/* =========================================
   HORNCHURCH TYRES — style.css
   Palette drawn from shop signage:
   Deep royal blue + warm gold
   ========================================= */

/* 1. Custom Properties
   ========================================= */
:root {
  --blue:       #1C3D8C;
  --blue-dark:  #0E2358;
  --blue-mid:   #2A52B8;
  --gold:       #F4B800;
  --gold-dark:  #D4A000;
  --green-wa:   #25D366;
  --green-wa-h: #1EBD5A;
  --white:      #FFFFFF;
  --off-white:  #F5F7FC;
  --grey-light: #E8ECF4;
  --text:       #1A1A2E;
  --text-muted: #5A6476;
  --border:     #D8DCE8;

  --font-head: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Barlow', Arial, sans-serif;

  --radius:    6px;
  --radius-lg: 14px;
  --max-w:     1200px;
  --header-h:  72px;

  --shadow-sm: 0 2px 10px rgba(14,35,88,.08);
  --shadow-md: 0 5px 28px rgba(14,35,88,.13);
  --shadow-lg: 0 10px 52px rgba(14,35,88,.18);
}

/* 2. Reset & Base
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  padding-top: var(--header-h);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* 3. Typography
   ========================================= */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.7rem); font-weight: 700; }
h4 { font-size: 1rem; letter-spacing: 0.06em; }
p { max-width: 66ch; }

/* 4. Layout
   ========================================= */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.section         { padding-block: 5rem; }
.section--sm     { padding-block: 3rem; }
.section--dark   { background: var(--blue-dark); color: var(--white); }
.section--blue   { background: var(--blue);      color: var(--white); }
.section--gold   { background: var(--gold);      color: var(--text);  }
.section--grey   { background: var(--off-white); }

.grid-2    { display: grid; grid-template-columns: repeat(2,1fr);    gap: 1.5rem; }
.grid-3    { display: grid; grid-template-columns: repeat(3,1fr);    gap: 1.5rem; }
.grid-4    { display: grid; grid-template-columns: repeat(4,1fr);    gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.5rem; }

.text-center   { text-align: center; }
.text-center p { margin-inline: auto; }

.section-label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.section--dark .section-label,
.section--blue .section-label { color: var(--gold); }
.section--grey .section-label { color: var(--blue); }

/* 5. Buttons
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.8rem 1.9rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn:active        { transform: scale(0.97); }
.btn svg           { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary { background: var(--gold);  color: var(--blue-dark); border-color: var(--gold);  }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); }

.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.75); }
.btn-outline:hover { background: var(--white); color: var(--blue-dark); border-color: var(--white); }

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

.btn-ghost { background: rgba(255,255,255,.1); color: var(--white); border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }

/* Call + WhatsApp icon buttons (header/footer) */
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.48rem 1rem;
  border-radius: var(--radius);
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.btn-icon:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-icon:active        { transform: scale(0.97); }
.btn-icon svg           { width: 16px; height: 16px; flex-shrink: 0; }

.btn-call     { background: var(--gold);     color: var(--blue-dark); }
.btn-call:hover { background: var(--gold-dark); }

.btn-whatsapp { background: var(--green-wa); color: var(--white); }
.btn-whatsapp:hover { background: var(--green-wa-h); }

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  align-items: center;
}

/* 6. Header
   ========================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--blue-dark);
  z-index: 1000;
  box-shadow: 0 3px 16px rgba(0,0,0,.35);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 1rem;
}

/* Logo */
.logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1;
  flex-shrink: 0;
  gap: 3px;
}
.logo-main {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.45rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white);
}
.logo-tag {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
}

/* Nav */
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 0.15rem; align-items: center; }
.main-nav a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  padding: 0.42rem 0.68rem;
  border-radius: var(--radius);
  transition: color .2s, background .2s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,.13);
}
.main-nav a.active { color: var(--gold); }

/* Header CTA cluster */
.header-ctas {
  display: flex;
  gap: 0.45rem;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius);
  transition: background .2s;
  margin-left: auto;
}
.hamburger:hover           { background: rgba(255,255,255,.12); }
.hamburger:focus-visible   { outline: 3px solid var(--gold); }
.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transform-origin: center;
  transition: transform .25s, opacity .25s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg);  }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 7. Hero Sections
   ========================================= */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--blue-dark);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    140deg,
    rgba(14,35,88,.88) 0%,
    rgba(28,61,140,.65) 60%,
    rgba(14,35,88,.70) 100%
  );
}
.hero-inner {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding-block: 5rem;
}
.hero h1       { color: var(--white); margin-bottom: 1rem; }
.hero h1 .gold { color: var(--gold); }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.88);
  max-width: 52ch;
}

/* Shorter hero for inner pages */
.hero--page {
  min-height: 34vh;
  align-items: flex-end;
}
.hero--page .hero-inner { padding-block: 2.5rem 3rem; }
.hero--page h1 { font-size: clamp(1.8rem, 5vw, 3.2rem); }
.hero--page .hero-sub { font-size: 1rem; }

/* 8. Trust Strip
   ========================================= */
.trust-strip {
  background: var(--blue);
  padding-block: 1.6rem;
}
.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2.5rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
}
.trust-item svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }

/* 9. About Section
   ========================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}
.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3/4;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2  { margin-bottom: 1.25rem; color: var(--blue-dark); }
.about-text p   { color: var(--text-muted); margin-bottom: 1rem; }
.about-text p:last-of-type { margin-bottom: 1.5rem; }

/* 10. Service Cards
   ========================================= */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .22s, transform .22s;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-icon {
  width: 52px; height: 52px;
  background: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  border: 2px solid var(--grey-light);
}
.service-icon svg { width: 26px; height: 26px; color: var(--blue); }
.service-card h3  { font-size: 1.2rem; margin-bottom: 0.55rem; color: var(--blue-dark); }
.service-card p   { font-size: 0.95rem; color: var(--text-muted); margin: 0; max-width: 100%; }

/* 11. Testimonials
   ========================================= */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.stars        { color: var(--gold); font-size: 1.1rem; letter-spacing: 0.06em; }
.t-body       { font-style: italic; color: var(--text); line-height: 1.72; flex: 1; margin: 0; max-width: 100%; }
.t-meta       { margin-top: auto; }
.t-name       { font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue-dark); }
.t-car        { font-size: 0.83rem; color: var(--text-muted); margin: 0; max-width: 100%; }

/* 12. Gallery
   ========================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: 1rem;
}
.gallery-item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--grey-light);
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.gallery-item:hover { transform: scale(1.025); box-shadow: var(--shadow-md); }
.gallery-item:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.gallery-item:hover img { transform: scale(1.06); }

/* 13. Lightbox
   ========================================= */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000;
}
.lightbox[hidden] { display: none; }
.lb-figure {
  display: flex; flex-direction: column; align-items: center;
  max-width: 92vw; max-height: 92vh;
}
.lb-figure img {
  max-width: 88vw; max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  display: block;
}
.lb-caption {
  color: rgba(255,255,255,.75);
  margin-top: .85rem;
  font-size: .88rem;
  text-align: center;
  max-width: 70ch;
}
.lb-close {
  position: fixed; top: 1rem; right: 1.25rem;
  background: none; border: none; color: #fff;
  font-size: 2.25rem; line-height: 1; cursor: pointer; padding: .25rem .5rem;
  opacity: .8; transition: opacity .15s;
}
.lb-close:hover { opacity: 1; }
.lb-prev, .lb-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); border: none; color: #fff;
  font-size: 2.5rem; line-height: 1; cursor: pointer;
  padding: .6rem .9rem; border-radius: var(--radius);
  transition: background .2s; user-select: none;
}
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.28); }
.lb-prev { left: .75rem; }
.lb-next { right: .75rem; }

/* 14. Video
   ========================================= */
.video-section { background: var(--off-white); }
.video-layout  {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.video-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 420px;
  margin-inline: auto;
}
.yt-thumb { display: block; position: relative; line-height: 0; }
.yt-thumb img { width: 100%; height: auto; display: block; }
.yt-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: #fff;
  background: rgba(0,0,0,.35);
  transition: background .2s;
}
.yt-thumb:hover .yt-play { background: rgba(255,0,0,.75); }
.video-text h2   { color: var(--blue-dark); margin-bottom: 1rem; }
.video-text p    { color: var(--text-muted); margin-bottom: 1rem; }

/* 14. Contact
   ========================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}
.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.contact-detail:last-child { margin-bottom: 0; }
.cd-icon {
  width: 46px; height: 46px;
  background: var(--off-white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.cd-icon svg   { width: 20px; height: 20px; color: var(--blue); }
.cd-body h4    { font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.2rem; }
.cd-body p,
.cd-body a     { font-size: 1rem; color: var(--text); text-decoration: none; display: block; margin: 0; max-width: 100%; line-height: 1.6; }
.cd-body a:hover { color: var(--blue); }
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.map-wrap iframe { width: 100%; height: 440px; display: block; border: none; }

/* 15. Local Businesses
   ========================================= */
.biz-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color .2s, box-shadow .2s;
}
.biz-card--placeholder { border-style: dashed; }
.biz-card:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.biz-img {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--grey-light);
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border: 2px solid var(--border);
}
.biz-img svg   { width: 32px; height: 32px; color: var(--text-muted); }
.biz-cat       { font-family: var(--font-head); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; margin-bottom: 0.35rem; }
.biz-card h3   { font-size: 1.05rem; margin-bottom: 0.4rem; color: var(--blue-dark); }
.biz-card p    { font-size: 0.88rem; color: var(--text-muted); margin: 0; max-width: 100%; }
.biz-card p + p { margin-top: 0.6rem; }
.biz-phone     { font-weight: 700; font-size: 1rem; color: var(--blue-dark); text-decoration: none; display: inline-block; margin-top: 0.25rem; }
.biz-phone:hover { text-decoration: underline; }

/* 16. CTA Band
   ========================================= */
.cta-band { background: var(--gold); padding-block: 4rem; text-align: center; }
.cta-band h2 { color: var(--blue-dark); margin-bottom: 0.6rem; }
.cta-band p  { color: var(--blue-dark); max-width: 50ch; margin-inline: auto; margin-bottom: 0; }
.cta-band .cta-group { justify-content: center; }
.cta-band .btn-primary { background: var(--blue-dark); color: var(--white); border-color: var(--blue-dark); }
.cta-band .btn-primary:hover { background: var(--blue); border-color: var(--blue); }
.cta-band .btn-whatsapp { background: var(--green-wa); color: var(--white); }

/* 17. Footer
   ========================================= */
.site-footer { background: var(--blue-dark); color: var(--white); }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: 4.5rem;
}
.footer-brand .logo-main { font-size: 1.3rem; }
.footer-brand .logo-tag  { color: var(--gold); display: block; margin-top: 3px; }
.footer-addr {
  margin-top: 0.85rem;
  font-size: 1.05rem;
  color: rgba(255,255,255,.88);
  line-height: 1.9;
  font-weight: 500;
}
.footer-addr a { color: rgba(255,255,255,.92); text-decoration: none; }
.footer-addr a:hover { color: var(--gold); }
.footer-section h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.85rem;
}
.footer-section ul    { display: flex; flex-direction: column; gap: 0.42rem; }
.footer-section a {
  font-size: 0.9rem;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  transition: color .2s;
}
.footer-section a:hover { color: var(--white); }
.footer-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 1.4rem;
  text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,.45); max-width: 100%; }

/* 18. Misc utilities
   ========================================= */
.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;
}
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem;   }
.mt-3 { margin-top: 1.5rem; }

/* 19. Responsive — Tablet
   ========================================= */
@media (max-width: 960px) {
  :root { --header-h: 62px; }

  .main-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--blue-dark);
    padding: 1.25rem 1.5rem 1.75rem;
    box-shadow: 0 10px 32px rgba(0,0,0,.35);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
    z-index: 999;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav ul  { flex-direction: column; gap: 0.2rem; }
  .main-nav a   { display: block; padding: 0.7rem 1rem; font-size: 1.05rem; }

  .hamburger    { display: flex; }
  .header-ctas  { display: none; }

  .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
  .about-grid  { grid-template-columns: 1fr; gap: 2.5rem; }
  .video-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; padding-block: 3rem; }
  .hero { min-height: 72vh; }
}

/* 20. Responsive — Mobile
   ========================================= */
@media (max-width: 600px) {
  :root { --header-h: 58px; }

  h1  { font-size: 2rem; }
  h2  { font-size: 1.6rem; }
  .section { padding-block: 3rem; }

  .grid-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; padding-block: 2.5rem; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .trust-items  { gap: 0.85rem 1.5rem; }

  .logo-main  { font-size: 1.15rem; }
  .logo-tag   { font-size: 0.62rem; }

  .cta-group { flex-direction: column; align-items: flex-start; }
  .cta-band .cta-group { align-items: center; }

  .hero { min-height: 65vh; }
  .hero--page { min-height: 28vh; }

  .about-img { aspect-ratio: 4/3; }
  .video-wrap { max-width: 100%; }
}
