/* Chetty's Tyre Breakdown Services - one-page site */

:root {
  --navy-950: #061425;
  --navy-900: #07182b;
  --navy-800: #0b2440;
  --blue: #53a1ec;
  --blue-600: #1f78d1;
  --blue-700: #1862ab;
  --accent: #3d9bff;      /* call-to-action blue */
  --accent-600: #2b87f2;  /* hover */
  --on-accent: #04162a;   /* dark navy text on the accent */
  --wa: #25d366;
  --wa-600: #1ebe5b;
  --ink: #0e1b2b;
  --muted: #4d5f75;
  --line: #d9e2ee;
  --bg: #f3f6fa;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(7, 24, 43, .12);
  --max: 1160px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  padding-bottom: 76px; /* room for the mobile action bar */
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-600); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .6em; font-weight: 800; }
p { margin: 0 0 1em; }

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

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: .75rem 1rem; font-weight: 700;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 3px; }
.site-header :focus-visible, .hero :focus-visible, .section-dark :focus-visible,
.site-footer :focus-visible, .sticky-actions :focus-visible, .lightbox :focus-visible { outline-color: #9ccbff; }

.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.4rem;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 800; font-size: 1rem; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-call { background: var(--accent); color: var(--on-accent); }
.btn-call:hover { background: var(--accent-600); }
.btn-wa { background: var(--wa); color: #04230f; }
.btn-wa:hover { background: var(--wa-600); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-lg { min-height: 54px; padding: .95rem 1.6rem; font-size: 1.05rem; }
.btn-sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .95rem; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 24, 43, .96);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff;
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; }

.brand { display: flex; align-items: center; gap: .7rem; color: inherit; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 9px; background: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; letter-spacing: -.01em; }
.brand-text small { font-size: .78rem; opacity: .75; }

.nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--navy-900); padding: .5rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.nav.open { display: block; }
.nav a { display: block; padding: .8rem .25rem; color: #fff; text-decoration: none; font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.nav a:hover { color: var(--accent); }

.header-call { display: none; margin-left: auto; }

.nav-toggle {
  margin-left: auto; width: 46px; height: 46px; padding: 0;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: transparent; border: 0; border-radius: 10px; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 3px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--navy-900); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7, 24, 43, .9) 0%, rgba(7, 24, 43, .78) 100%);
}
.hero-inner { padding: clamp(3rem, 9vw, 7rem) 0 clamp(2.5rem, 7vw, 5.5rem); }
.hero h1 { font-size: clamp(2.15rem, 6vw, 4rem); max-width: 17ch; margin-bottom: .45em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 54ch; color: rgba(255, 255, 255, .9); margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; padding: 0; margin: 0; font-weight: 600; font-size: .95rem; }
.chips li { display: inline-flex; align-items: center; gap: .45rem; }
.chips .ico { color: var(--accent); }

.stripe {
  height: 12px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, var(--navy-900) 14px 28px);
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.25rem, 7vw, 5.75rem) 0; }
.section-alt { background: var(--bg); }
.section-dark { background: var(--navy-900); color: #fff; }
.section-head { max-width: 760px; margin-bottom: 2.25rem; }
.section h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.section-lead { font-size: 1.1rem; color: var(--muted); }
.section-dark .section-lead { color: rgba(255, 255, 255, .8); }

.eyebrow { margin: 0 0 .6rem; color: var(--blue-600); font-size: .82rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow-light { color: var(--blue); }
.hero .eyebrow-light { color: var(--accent); }

/* Services */
.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 1.4rem 1.5rem 1.6rem; }
.card h3 { font-size: 1.35rem; margin-bottom: .25em; }
.card .tag { color: var(--blue-600); font-weight: 800; font-size: .95rem; margin-bottom: .6rem; }
.card p:last-child { margin-bottom: 0; color: var(--muted); }

/* Split layouts */
.split { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
.values { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.values li { padding: .5rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: .95rem; }
.sign { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.sign img { width: 100%; }

/* Products */
.tiles { display: grid; gap: .9rem; grid-template-columns: repeat(2, 1fr); }
.tiles img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }

/* Fleet */
.fleet-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.fleet-grid img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Testimonials */
.quotes { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.quote { margin: 0; padding: 2.4rem 1.6rem 1.6rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); position: relative; }
.quote::before {
  content: "\201C"; position: absolute; top: .35rem; left: 1.2rem;
  font: 800 4rem/1 Georgia, serif; color: var(--blue);
}
.quote blockquote { margin: 0 0 1rem; }
.quote figcaption { font-weight: 800; }
.quote figcaption::before { content: "\2014\00a0"; color: var(--blue-600); }

/* Gallery */
.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); list-style: none; padding: 0; margin: 0; }
.gallery a { display: block; border-radius: 12px; overflow: hidden; background: var(--bg); }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .35s ease; }
.gallery a:hover img { transform: scale(1.06); }

/* Contact */
.contact { align-items: start; }
.info { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.info li { display: flex; gap: 1rem; align-items: flex-start; }
.info .ico { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: rgba(83, 161, 236, .18); color: var(--blue); }
.info span { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.info a, .info b { color: #fff; font-size: 1.15rem; font-weight: 700; text-decoration: none; }
.info a:hover { color: var(--accent); }

.form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.form h3 { font-size: 1.5rem; margin-bottom: .2em; }
.form-note { color: var(--muted); font-size: .95rem; }
.field { margin-bottom: 1rem; }
.field-row { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
.form label { display: block; margin-bottom: .35rem; font-weight: 700; font-size: .95rem; }
.opt { font-weight: 500; color: var(--muted); }
.form input, .form textarea {
  width: 100%; padding: .8rem .9rem; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
}
.form input { min-height: 48px; }
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(31, 120, 209, .25); }
.form input:user-invalid, .form textarea:user-invalid { border-color: #c62828; }
.form .btn { width: 100%; margin-top: .25rem; }
.form-status { margin: 1rem 0 0; font-weight: 600; min-height: 1.5em; }
.form-status[data-state="ok"] { color: #136c32; }
.form-status[data-state="err"] { color: #b3261e; }

/* Footer */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .75); padding: 2rem 0; font-size: .95rem; }
.footer-inner { display: flex; flex-direction: column; gap: 1rem; }
.footer-inner p { margin: 0; }
.site-footer .brand { color: #fff; }

/* ---------- Sticky call / WhatsApp ---------- */
.sticky-actions {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
  padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(7, 24, 43, .96);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .25);
}
.sticky-actions .btn { min-height: 52px; font-size: 1.05rem; }

/* ---------- Lightbox ---------- */
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(3, 10, 20, .93); }
.lightbox img { max-width: min(92vw, 1400px); max-height: 86vh; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.lb-btn {
  position: absolute; width: 52px; height: 52px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); color: #fff; border: 0; border-radius: 50%;
  font-size: 2rem; line-height: 1; cursor: pointer;
}
.lb-btn:hover { background: rgba(255, 255, 255, .28); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: .75rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .75rem; top: 50%; transform: translateY(-50%); }

/* ---------- Larger screens ---------- */
@media (min-width: 600px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 599px) {
  .hero-actions .btn { width: 100%; }
}

/* Tablet: two service cards per row, the third spans the full row */
@media (min-width: 600px) and (max-width: 899px) {
  .cards .card:last-child { grid-column: 1 / -1; flex-direction: row; }
  .cards .card:last-child img { width: 45%; aspect-ratio: auto; }
  .cards .card:last-child .card-body { align-self: center; }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  html { scroll-padding-top: 84px; }

  .header-inner { min-height: 76px; gap: 1.5rem; }
  .nav-toggle { display: none; }
  .nav {
    display: flex; position: static; gap: 1.6rem; margin-left: auto; padding: 0; background: none; border: 0;
  }
  .nav a { padding: .4rem 0; border: 0; font-size: .98rem; }
  .header-call { display: inline-flex; margin-left: 0; }

  .hero::before {
    background: linear-gradient(90deg, rgba(7, 24, 43, .94) 0%, rgba(7, 24, 43, .78) 42%, rgba(7, 24, 43, .18) 100%);
  }

  .split { grid-template-columns: 1.1fr .9fr; gap: 4rem; }
  .contact { grid-template-columns: 1fr 1fr; }

  .tiles { grid-template-columns: repeat(4, 1fr); }

  .fleet-grid { grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; }
  .fleet-grid .big { grid-row: 1 / span 2; aspect-ratio: auto; }
  .fleet-grid img:not(.big) { aspect-ratio: 16 / 10; }

  .gallery { grid-template-columns: repeat(4, 1fr); gap: 1rem; }

  .site-footer { padding: 2rem 0 5.5rem; } /* keep the floating buttons clear of the footer text */
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }

  /* Floating pills instead of the full-width bar */
  .sticky-actions {
    left: auto; right: 1.5rem; bottom: 1.5rem;
    display: flex; gap: .6rem; padding: 0; background: none; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .sticky-actions .btn { box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }
}

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

/* ---------- 404 page ---------- */
.page-404 { padding-bottom: 0; }
.notfound { text-align: center; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3rem); }
.notfound .section-lead { max-width: 46ch; margin-inline: auto; }
.notfound-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.75rem; }
