/* ==========================================================================
   GVI Service Centre — shared stylesheet
   Design language shared with teslaserviceauckland.co.nz and the Leaf site
   ========================================================================== */

:root {
  --red: #e01b2e;
  --red-dark: #b31423;
  --ink: #16181c;
  --ink-soft: #2a2e33;
  --yellow: #ffc60b;
  --bg: #f7f5f2;
  --card: #ffffff;
  --card-alt: #faf9f7;
  --field: #fbfaf9;
  --border: #e6e2dd;
  --border-strong: #d9d4ce;
  --muted: #6b7076;
  --muted-strong: #4a4f55;
  --footer-bg: #0f1114;
  --maxw: 1200px;
  --sans: 'Public Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display: 'Bricolage Grotesque', var(--sans);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

*:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

section { padding-top: clamp(44px, 7vw, 80px); padding-bottom: clamp(44px, 7vw, 80px); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.section-head h2 { font-size: clamp(26px, 6.1vw, 44px); margin: 0; }
.section-head p { font-size: 17px; color: var(--muted-strong); max-width: 42ch; margin: 0; }

.lead { font-size: 19px; line-height: 1.6; color: var(--muted-strong); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  font-family: var(--sans);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  min-height: 44px;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.3); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-outline { background: #fff; border-color: var(--border-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Utility bar ---------- */
.utilbar { background: var(--ink); color: #fff; font-size: 13px; }
.utilbar .wrap {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  justify-content: space-between; align-items: center;
  padding-top: 9px; padding-bottom: 9px;
}
.utilbar .muted { opacity: 0.72; }
.utilbar .contacts { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.utilbar a { color: var(--yellow); font-weight: 600; }
.utilbar a:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 30;
}
.site-header .wrap {
  display: flex; align-items: center; gap: 28px;
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand img { height: 34px; width: auto; display: block; }
.brand .brand-text {
  display: flex; flex-direction: column; line-height: 1.05;
  border-left: 1px solid var(--border-strong); padding-left: 12px;
}
.brand .brand-name { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.brand .brand-sub { font-size: 10px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); white-space: nowrap; }
.nav a:hover { color: var(--red); }
.nav a.active { color: var(--red); }

.nav-dd { position: relative; display: flex; align-items: center; }
.nav-dd > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-dd > .dd-menu {
  position: absolute; top: 100%; left: -14px; padding-top: 12px;
  flex-direction: column; min-width: 230px; display: none;
}
.nav-dd:hover > .dd-menu, .nav-dd:focus-within > .dd-menu { display: flex; }
.dd-menu-inner {
  display: flex; flex-direction: column; gap: 2px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(22,24,28,0.13); padding: 10px;
}
.dd-menu-inner a {
  padding: 9px 14px; border-radius: 8px; font-size: 14.5px; font-weight: 500;
  white-space: nowrap; color: var(--ink);
}
.dd-menu-inner a:hover { background: var(--bg); color: var(--red); }
.dd-sep { height: 1px; background: var(--border); margin: 6px 8px; }

.nav-cta { background: var(--red); color: #fff !important; padding: 10px 20px; border-radius: 999px; font-weight: 600; }
.nav-cta:hover { background: var(--red-dark); }

/* mobile menu */
.mobmenu { display: none; position: relative; }
.mobmenu summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; color: var(--ink);
}
.mobmenu summary::-webkit-details-marker { display: none; }
.mobmenu[open] > .mobmenu-panel { display: flex; }
.mobmenu-panel {
  display: none; flex-direction: column; gap: 2px;
  position: absolute; top: 100%; right: 0; margin-top: 10px; z-index: 40;
  min-width: 250px; max-height: 76vh; overflow: auto;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(22,24,28,0.18); padding: 10px;
}
.mobmenu-panel a {
  padding: 11px 14px; border-radius: 8px; color: var(--ink);
  font-size: 15px; font-weight: 500; min-height: 44px; display: flex; align-items: center;
}
.mobmenu-panel a:hover { background: var(--bg); }
.mobmenu-label {
  padding: 10px 14px 4px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: #8a8f95;
}

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(224,27,46,0.22), transparent 60%),
    radial-gradient(760px 520px at 100% 120%, rgba(255,198,11,0.12), transparent 55%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 26px);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid; grid-template-columns: 1fr 480px; gap: 60px; align-items: start;
  padding-top: clamp(44px, 7vw, 66px); padding-bottom: clamp(48px, 8vw, 76px);
}
.hero.hero-slim .wrap {
  grid-template-columns: 1fr; gap: 22px;
  padding-bottom: clamp(38px, 5vw, 54px);
}
.hero.hero-slim .hero-copy { max-width: 52ch; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; padding-top: 10px; }
.hero .tag {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,198,11,0.14); border: 1px solid rgba(255,198,11,0.35);
  color: var(--yellow); padding: 7px 15px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
}
.hero h1 { font-size: clamp(38px, 8.6vw, 62px); line-height: 0.98; letter-spacing: -0.03em; margin: 0; }
.hero .hero-sub { font-size: 20px; line-height: 1.5; color: rgba(255,255,255,0.78); max-width: 40ch; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.16);
  padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 500;
}
.trust-row {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch;
  padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.13); margin-top: 4px;
}
.trust-card {
  background: #fff; color: var(--ink); border-radius: 14px; padding: 16px 22px;
  display: flex; gap: 20px; align-items: center;
}
.trust-card .rating { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 0.9; }
.trust-card .rating-sub { font-size: 13px; color: var(--muted); }
.trust-badges {
  display: flex; gap: 14px; align-items: center;
  background: #fff; border-radius: 14px; padding: 16px 22px;
}
.trust-badges .badge {
  font-family: var(--display); font-weight: 800; font-size: 13px; line-height: 1.15;
  text-align: center; color: var(--ink-soft);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px;
}

/* ---------- Booking form card ---------- */
.book-card {
  background: #fff; border-radius: 20px; padding: 26px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4); color: var(--ink);
}
.book-card h2 { font-size: 24px; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.01em; }
.book-card .form-intro { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0 0 16px; }
.book-form { display: flex; flex-direction: column; gap: 14px; }
.book-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted-strong); }
.book-form input, .book-form select, .book-form textarea {
  width: 100%; min-width: 0;
  border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 11px 12px; font-size: 15px; background: var(--field);
  font-family: var(--sans); color: var(--ink); min-height: 44px;
}
.book-form textarea { resize: vertical; min-height: 84px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.book-form button { margin-top: 4px; width: 100%; }
.form-fineprint { margin: 0; font-size: 12.5px; line-height: 1.5; color: #8a8f95; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Generic content ---------- */
.band { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band-ink { background: var(--ink); color: #fff; }
.band-ink h2, .band-ink h3 { color: #fff; }
.band-ink p { color: rgba(255,255,255,0.82); }
.band-ink a { color: var(--yellow); }

.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(24px, 5vw, 34px); margin-top: 1.6em; }
.prose h3 { font-size: 21px; margin-top: 1.6em; margin-bottom: 0.4em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--red); }

/* ---------- Card grids ---------- */
.card-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  color: var(--ink);
}
a.card { transition: border-color .15s ease, transform .15s ease; }
a.card:hover { border-color: var(--ink); }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 20px; margin: 0; letter-spacing: -0.01em; }
.card p { font-size: 14.5px; line-height: 1.5; color: var(--muted-strong); margin: 0; }
.card .more { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--red); }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature { border-left: 3px solid var(--yellow); padding-left: 14px; display: flex; flex-direction: column; gap: 5px; }
.feature b { font-family: var(--display); font-weight: 800; font-size: 17px; }
.feature span { font-size: 14.5px; line-height: 1.5; color: var(--muted-strong); }
.band-ink .feature span { color: rgba(255,255,255,0.72); }

/* ---------- Service list (services.html) ---------- */
.svc-list { display: flex; flex-direction: column; gap: 14px; }
.svc {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 24px 26px; scroll-margin-top: 90px;
}
.svc h3 { font-family: var(--display); font-weight: 800; font-size: 21px; margin: 0 0 6px; }
.svc p { font-size: 15px; line-height: 1.55; color: var(--muted-strong); margin: 0 0 14px; }
.svc .more { font-size: 13px; font-weight: 700; color: var(--red); }

/* ---------- Reviews ---------- */
.reviews-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; margin-bottom: 36px; }
.stars { color: var(--yellow); letter-spacing: 0.12em; font-size: 17px; }
.reviews-head a { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.review-scroller {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 14px; align-items: stretch;
}
.review-scroller::-webkit-scrollbar { height: 6px; }
.review-scroller::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.review {
  flex: 0 0 420px; max-width: 88vw; scroll-snap-align: start;
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 30px; margin: 0; display: flex; flex-direction: column; gap: 16px;
}
.review blockquote { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-soft); }
.review figcaption { font-size: 14px; font-weight: 600; color: var(--muted); margin-top: auto; }

/* ---------- Visit ---------- */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.hours-row {
  display: flex; justify-content: space-between; font-size: 16px;
  padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.hours-row .closed { color: rgba(255,255,255,0.5); }
.hours-row .open { color: rgba(255,255,255,0.78); }
.hours-label { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yellow); }

.map-embed {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--border); line-height: 0;
}
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; filter: grayscale(0.3) contrast(1.03); }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-media {
  border-radius: 20px; overflow: hidden; min-height: 260px;
  background: linear-gradient(135deg, #1f2937, #0f172a);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.35); font-family: var(--display); font-weight: 800;
}

/* ---------- CTA strip ---------- */
.cta-strip { background: var(--ink); color: #fff; text-align: center; }
.cta-strip h2 { font-size: clamp(26px, 6vw, 42px); margin: 0 0 14px; }
.cta-strip p { color: rgba(255,255,255,0.78); max-width: 52ch; margin: 0 auto 24px; font-size: 18px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: rgba(255,255,255,0.55); font-size: 14px; }
.site-footer .wrap { padding-top: 48px; padding-bottom: 40px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
.site-footer h4 { font-family: var(--display); font-weight: 800; font-size: 15px; color: #fff; margin: 0 0 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: rgba(255,255,255,0.72); }
.site-footer a:hover { color: #fff; }
.footer-brand-name { font-family: var(--display); font-weight: 800; font-size: 20px; color: #fff; letter-spacing: -0.02em; }
.footer-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between;
}
.footer-bottom span { max-width: 60ch; line-height: 1.5; }

/* ---------- Thanks page ---------- */
.thanks { min-height: 60vh; display: flex; align-items: center; }
.thanks .wrap { text-align: center; max-width: 620px; }
.thanks h1 { font-size: clamp(32px, 7vw, 52px); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .visit-grid { grid-template-columns: 1fr; gap: 40px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .nav > a:not(.nav-cta), .nav .nav-dd { display: none; }
  .mobmenu { display: block; }
  .nav { gap: 12px; }
}
@media (max-width: 620px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .brand .brand-text { display: none; }
  .utilbar .muted:first-child { display: none; }
  .review { flex-basis: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition: none !important; }
}


/* ==========================================================================
   Single-page build — September 2026
   Brand line, accreditation logos, Google mark, photography, ghost background
   ========================================================================== */

.brand img { height: 52px; }
.brand .brand-name, .brand .brand-sub { white-space: nowrap; }

.trust-badges img { height: 54px; width: auto; display: block; }
.trust-badges img[alt*="AA"] { border-radius: 4px; }

.reviews-head .google-mark img { height: 56px; width: auto; display: block; }

.split-media { min-height: 0; background: #0f172a; }
.split-media img { display: block; width: 100%; height: 100%; min-height: 260px; object-fit: cover; }

/* Ghost workshop photo behind the services grid */
.has-ghost { position: relative; overflow: hidden; }
.has-ghost::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(247,245,242,0.78) 0%, rgba(247,245,242,0.45) 50%, rgba(247,245,242,0.85) 100%),
    url("assets/workshop-bays.jpg") center / cover no-repeat;
  opacity: 0.55;
}
.has-ghost > .wrap { position: relative; z-index: 1; }

.review { flex: 0 0 min(420px, 88vw); }

/* The tagline is a long unshrinkable line — retire it before it meets the nav. */
@media (max-width: 900px) {
  .brand .brand-text { display: none; }
}

@media (max-width: 620px) {
  .brand img { height: 42px; }
}
