/* ==========================================================================
   Grove Autos — dark, refined "prestige workshop" look
   All colours and fonts live here, so the whole look can be tuned in one place.
   ========================================================================== */
:root {
  --ink:      #0a0b0d;   /* page background */
  --ink-2:    #111318;   /* alternate sections */
  --ink-3:    #181b22;   /* cards */
  --line:     rgba(255, 255, 255, 0.09);
  --line-2:   rgba(255, 255, 255, 0.16);
  --text:     #eceae6;   /* warm off-white */
  --text-2:   rgba(236, 234, 230, 0.68);
  --text-3:   rgba(236, 234, 230, 0.42);
  --blue:     #3d6dff;   /* the garage's blue, used sparingly */
  --blue-2:   #5f87ff;
  --silver:   #b9c0c9;

  --display: 'Archivo', 'Inter', system-ui, sans-serif;
  --sans:    'Inter', system-ui, -apple-system, sans-serif;

  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
picture { display: contents; }   /* <picture> wrappers don't change the layout; the <img> inside is styled as before */
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--blue); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.section { padding: 130px 0; }

/* ---------- Type ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--blue); }

.title, .hero-title {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.06;
}
.title { font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 16ch; }
.title em, .hero-title em {
  font-style: normal;
  color: var(--silver);
  font-weight: 300;
}
.lead { color: var(--text-2); font-size: 1.06rem; max-width: 58ch; margin-top: 26px; }
.section-head { margin-bottom: 64px; }
.section-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
/* Built-in line icons (see the <symbol>s at the top of index.html) */
.ico { width: 1.1em; height: 1.1em; flex-shrink: 0; vertical-align: -0.15em; }
.btn .ico { transition: transform .35s var(--ease); }
.btn:hover .ico-go, .link-arrow:hover .ico { transform: translateX(3px); }
.link-arrow .ico { transition: transform .35s var(--ease); }
.btn-primary { background: var(--text); color: var(--ink); }
.btn-primary:hover { background: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { padding: 11px 20px; font-size: 0.7rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-2);
  transition: border-color .35s var(--ease), gap .35s var(--ease);
}
.link-arrow:hover { border-color: var(--blue); gap: 14px; }

/* ---------- Brand wordmark ---------- */
.brand { display: inline-flex; align-items: baseline; gap: 10px; }
.brand-name {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.brand-sub {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--silver);
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 11, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}
.nav-inner { height: 84px; display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a:not(.btn) {
  position: relative;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color .3s;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform .35s var(--ease);
}
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--text); }
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; width: 34px; height: 34px; cursor: pointer; position: relative; }
.nav-toggle span {
  position: absolute; left: 5px; right: 5px; height: 1px; background: var(--text);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav-toggle span:first-child { top: 13px; }
.nav-toggle span:last-child { top: 21px; }
.nav-toggle.open span:first-child { top: 17px; transform: rotate(45deg); }
.nav-toggle.open span:last-child { top: 17px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px 0 48px;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.75) contrast(1.05);
  animation: hero-zoom 14s var(--ease) both;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,11,13,.55) 0%, rgba(10,11,13,.25) 35%, rgba(10,11,13,.92) 88%, var(--ink) 100%),
    linear-gradient(90deg, rgba(10,11,13,.85) 0%, rgba(10,11,13,.1) 70%);
}
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero-content { margin-bottom: 72px; }
.hero-title { font-size: clamp(3.2rem, 9vw, 7.4rem); font-weight: 600; letter-spacing: -0.035em; line-height: 0.98; }
.hero-lead { color: var(--text-2); font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 44ch; margin-top: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 42px; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-2);
}
.hero-facts li {
  padding: 24px 24px 0 0;
  font-size: 0.82rem;
  color: var(--text-3);
}
.hero-facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.hero-facts span { display: block; color: var(--text); font-weight: 500; font-size: 0.95rem; margin-bottom: 2px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 90px; align-items: center; }
.figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
  border-top: 1px solid var(--line);
}
.figures div { padding-top: 24px; }
.figures dt {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 500;
  font-size: 2rem;
  line-height: 1;
}
.figures dd { color: var(--text-3); font-size: 0.82rem; margin-top: 10px; }
.about-photo { position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(0.85); }
.about-photo::before {
  content: "";
  position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid var(--line-2);
  z-index: -1;
}
.about-photo figcaption {
  margin-top: 30px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ---------- Services ---------- */
.services { background: var(--ink-2); }
.service-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service-list li {
  padding: 40px 32px 46px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .45s var(--ease);
}
.service-list li:hover { background: var(--ink-3); }
.service-list .num {
  display: block;
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--blue-2);
  margin-bottom: 46px;
}
.service-list h3 {
  font-family: var(--display);
  font-stretch: 110%;
  font-weight: 500;
  font-size: 1.22rem;
  margin-bottom: 12px;
}
.service-list p { color: var(--text-2); font-size: 0.92rem; line-height: 1.65; }
.service-list .service-cta { background: var(--blue); }
.service-list .service-cta:hover { background: #3462f2; }
.service-cta h3 { margin-top: 0; }
.service-cta p { color: rgba(255,255,255,.82); margin-bottom: 28px; }
.service-cta .link-arrow { border-color: rgba(255,255,255,.5); }
.service-cta .link-arrow:hover { border-color: #fff; }

/* ---------- Restoration feature ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; min-height: 760px; }
.feature-photo { overflow: hidden; }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; filter: saturate(0.6) contrast(1.06); transition: transform 1.6s var(--ease); }
.feature:hover .feature-photo img { transform: scale(1.03); }
.feature-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px clamp(28px, 7vw, 110px);
  background: var(--ink);
}
.feature-note { color: var(--text-3); font-size: 0.82rem; font-style: italic; margin: 22px 0 40px; }
.feature-text .link-arrow { align-self: flex-start; }

/* ---------- Why us ---------- */
.why { padding: 110px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; }
.why-item .ico { display: block; width: 26px; height: 26px; color: var(--blue-2); margin-bottom: 24px; }
.why-item h3 { font-family: var(--display); font-stretch: 108%; font-weight: 500; font-size: 1.08rem; margin-bottom: 10px; }
.why-item p { color: var(--text-2); font-size: 0.9rem; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  gap: 14px;
}
.g { position: relative; overflow: hidden; background: var(--ink-3); }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }
.g img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
  transition: transform 1.1s var(--ease), filter .6s;
}
.g:hover img { transform: scale(1.05); filter: saturate(1); }
.g figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 50px 22px 18px;
  background: linear-gradient(transparent, rgba(10,11,13,.85));
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Reviews ---------- */
.reviews { background: var(--ink-2); }
.review-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2px; background: var(--line); border: 1px solid var(--line); }
.review { background: var(--ink-2); padding: 48px 40px; display: flex; flex-direction: column; gap: 32px; }
.review p { color: var(--text-2); font-size: 0.96rem; line-height: 1.8; flex: 1; }
.review-lead p { color: var(--text); font-family: var(--display); font-stretch: 105%; font-weight: 300; font-size: 1.28rem; line-height: 1.6; }
.review footer { padding-top: 22px; border-top: 1px solid var(--line); }
.review strong { display: block; font-weight: 600; font-size: 0.9rem; }
.review span { color: var(--text-3); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.reviews-more { margin-top: 48px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: stretch; }
.contact-list { margin: 48px 0 44px; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-list span { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); padding-top: 3px; }
.contact-list a, .contact-list p { font-size: 1rem; }
.contact-list a { transition: color .3s; }
.contact-list a:hover { color: var(--blue-2); }
.contact-list p { color: var(--text-2); }
.map { min-height: 480px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.map iframe { flex: 1; width: 100%; min-height: 480px; border: 0; display: block; filter: grayscale(1) invert(0.92) contrast(0.9); }
.map-load {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 420px;
  background:
    radial-gradient(circle at 50% 45%, rgba(61,109,255,.18), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 39px, var(--line) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, var(--line) 39px 40px),
    var(--ink-2);
  border: 0; color: var(--text); font: inherit; cursor: pointer;
}
.map-load .ico { width: 34px; height: 34px; color: var(--blue-2); }
.map-load strong { font-family: var(--display); font-stretch: 108%; font-weight: 500; font-size: 1.15rem; }
.map-load span { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); }
.map-load:hover span, .map-load:focus-visible span { color: var(--text); }
.map-load:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.map-note { padding: 14px 18px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--text-3); }
.map-note a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.link-arrow.small { font-size: 0.72rem; margin-top: 10px; padding-bottom: 4px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 70px 0 30px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; }
.footer-tag { color: var(--text-3); font-size: 0.85rem; }
.footer-links { display: flex; gap: 26px; align-items: center; font-size: 0.88rem; color: var(--text-2); }
.footer-links a:hover { color: var(--text); }
.footer-bar {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.76rem; color: var(--text-3);
}

/* ---------- Floating call button (phones only) ---------- */
.call-fab .ico { width: 22px; height: 22px; }
.call-fab {
  display: none;
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--blue); color: #fff;
  align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(61, 109, 255, .4);
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .service-list { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 900px) {
  .section { padding: 96px 0; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; gap: 30px;
    background: var(--ink);
    opacity: 0; visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-links a:not(.btn) { font-size: 1.1rem; color: var(--text); }
  .nav-toggle { z-index: 60; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 64px; }
  .about-photo { max-width: 520px; }
  .feature { grid-template-columns: 1fr; min-height: 0; }
  .feature-photo img { height: 420px; }
  .feature-text { padding: 80px 28px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .g-tall { grid-row: span 1; }
  .call-fab { display: inline-flex; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .hero { padding-bottom: 32px; }
  .hero-content { margin-bottom: 48px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts li, .hero-facts li + li { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .figures dt { font-size: 1.5rem; }
  .service-list { grid-template-columns: 1fr; }
  .service-list li { padding: 30px 24px 34px; }
  .service-list .num { margin-bottom: 18px; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .g-wide { grid-column: span 1; }
  .review { padding: 36px 26px; }
  .review-lead p { font-size: 1.1rem; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .footer-bar { flex-direction: column; }
}
