/* ============================================================
   GRANVILLE AUTO MECHANIC — Luxury automotive design system
   Base, header, hero, services, why-choose
   ============================================================ */
:root {
  --black: #1F2329;
  --graphite: #262B32;
  --graphite-2: #2D333B;
  --white: #F5F7FA;
  --blue: #007BFF;
  --blue-dark: #0062CC;
  --txt: rgba(255, 255, 255, 0.92);
  --txt-dim: rgba(255, 255, 255, 0.60);
  --txt-faint: rgba(255, 255, 255, 0.40);
  --line: rgba(255, 255, 255, 0.08);
  --glass: rgba(38, 43, 50, 0.55);
  --steel: #AEB7C6;
  --steel-line: rgba(205, 214, 228, 0.5);
  --radius: 14px;
  --radius-btn: 7px;
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5);
  --shadow-blue: 0 6px 20px rgba(0, 0, 0, 0.4);
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--txt);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--blue); color: #fff; }

/* Film grain — breaks up flat gradients for an analog, photographed feel */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.container { width: min(1200px, 92%); margin: 0 auto; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--blue); }

.section { padding: 110px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 60px; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 48px); margin-bottom: 16px; }
.section-head p { color: var(--txt-dim); font-size: 17px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px; letter-spacing: 0.01em;
  padding: 16px 30px; border-radius: var(--radius-btn); border: 0; cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { transform: translateY(-2px); background: #1f8cff; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04); color: #fff;
  border: 1px solid rgba(205, 214, 228, 0.28);
}
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.09); border-color: var(--steel-line); }
.btn-white { background: var(--steel); color: #11141a; }
.btn-white:hover { transform: translateY(-2px); background: #fff; }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; } .reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; } .reveal-d4 { transition-delay: 0.4s; }

/* ============ TOP BAR + HEADER ============ */
.topbar {
  background: #15181c; border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 12px; font-weight: 500; letter-spacing: 0.02em; padding: 9px 0; text-align: center; color: var(--steel);
}
.topbar strong { color: #fff; }
.topbar a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.topbar a:hover { color: var(--blue); }

.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(25, 28, 33, 0.78);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 13px; font-family: var(--font-display); }
/* Brand logo (chrome GAM mark) */
.logo-img { height: 50px; width: auto; flex: none; display: block; }
.logo-footer { display: block; }
.logo-full { height: 132px; width: auto; display: block; }
/* Crafted emblem — hex bolt-head + alignment tick + G monogram */
.emblem { width: 42px; height: 42px; flex: none; display: block; }
.em-hex { fill: rgba(255, 255, 255, 0.025); stroke: var(--steel-line); stroke-width: 1.5; stroke-linejoin: round; }
.em-bezel { fill: none; stroke: rgba(205, 214, 228, 0.2); stroke-width: 1.1; stroke-linejoin: round; }
.em-mark { fill: var(--blue); }
.em-g { fill: #F5F7FA; font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.logo:hover .em-hex { stroke: var(--steel); }
.logo-text { font-size: 18px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.05; text-transform: uppercase; }
.logo-text span { display: block; font-size: 9.5px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--steel); margin-top: 3px; }
.nav { display: flex; gap: 34px; }
.nav a { font-size: 14.5px; font-weight: 500; color: var(--txt-dim); transition: color 0.3s; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--blue); border-radius: 2px; transition: width 0.35s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a:hover::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.header-phone svg { width: 16px; height: 16px; color: var(--blue); }
.header .btn { padding: 12px 26px; font-size: 14px; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-btn span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* ============ HERO ============ */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  animation: kenburns 22s var(--ease) infinite alternate;
}
@keyframes kenburns { from { transform: scale(1) translateX(0); } to { transform: scale(1.12) translateX(-2%); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.62) 45%, rgba(10, 10, 10, 0.25) 100%),
    linear-gradient(0deg, var(--black) 0%, transparent 32%);
}
.hero-content { max-width: 720px; padding: 140px 0 120px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(20, 23, 28, 0.55); border: 1px solid var(--steel-line);
  color: var(--steel); font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 4px; margin-bottom: 28px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.5); } 60% { box-shadow: 0 0 0 7px rgba(0, 123, 255, 0); } }
.hero h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-sub { font-size: clamp(17px, 2vw, 20px); color: var(--txt-dim); max-width: 540px; margin-bottom: 38px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 54px; }
.hero-rating { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--txt-dim); }
.hero-rating .stars { color: #FFB800; font-size: 16px; letter-spacing: 2px; }
.hero-rating strong { color: #fff; font-family: var(--font-display); }

/* Trust bar */
.trustbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.trustbar-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 26px 18px; font-family: var(--font-display); font-weight: 600; font-size: 15px;
  border-right: 1px solid var(--line);
}
.trust-item:last-child { border-right: 0; }
.trust-item svg { width: 20px; height: 20px; color: var(--blue); flex: none; }

/* ============ SERVICES ============ */
.services { background: var(--black); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--graphite); border: 1px solid var(--line);
  min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform 0.5s var(--ease), border-color 0.5s, box-shadow 0.5s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); border-color: var(--steel-line); box-shadow: var(--shadow-lg); }
.svc-card::before { content: ""; position: absolute; left: 0; top: 0; width: 0; height: 3px; background: var(--blue); z-index: 4; transition: width 0.4s var(--ease); }
.svc-card:hover::before { width: 100%; }
.svc-img { position: absolute; inset: 0; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), filter 0.8s; filter: saturate(0.72) brightness(0.8) contrast(1.05); }
.svc-card:hover .svc-img img { transform: scale(1.06); filter: saturate(0.92) brightness(0.95) contrast(1.05); }
.svc-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10, 10, 10, 0.96) 8%, rgba(10, 10, 10, 0.55) 48%, rgba(10, 10, 10, 0.15) 100%);
}
.svc-body { position: relative; padding: 26px; }
.svc-icon {
  width: 50px; height: 50px; border-radius: 14px; margin-bottom: 16px;
  background: rgba(0, 123, 255, 0.14); border: 1px solid rgba(0, 123, 255, 0.35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: grid; place-items: center; transition: background 0.4s, transform 0.4s var(--ease);
}
.svc-icon svg { width: 23px; height: 23px; color: var(--blue); }
.svc-card:hover .svc-icon { background: var(--blue); transform: scale(1.06); }
.svc-card:hover .svc-icon svg { color: #fff; }
.svc-body h3 { font-size: 21px; margin-bottom: 8px; }
.svc-body p { font-size: 14.5px; color: var(--txt-dim); margin-bottom: 16px; }
.svc-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--blue); }
.svc-link svg { width: 15px; height: 15px; transition: transform 0.35s var(--ease); }
.svc-card:hover .svc-link svg { transform: translateX(5px); }

/* ============ WHY CHOOSE ============ */
.why { background: var(--graphite); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; align-items: center; }
.why-media { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.why-media img { width: 100%; height: 560px; object-fit: cover; }
.why-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(20deg, rgba(10, 10, 10, 0.55), transparent 55%); }
.why-float {
  position: absolute; left: 22px; bottom: 22px; z-index: 2;
  background: rgba(10, 10, 10, 0.6); border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 18px; padding: 18px 22px; display: flex; align-items: center; gap: 16px;
}
.why-float .num { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--blue); }
.why-float .lbl { font-size: 13px; color: var(--txt-dim); line-height: 1.4; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.why-item {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px;
  transition: border-color 0.4s, background 0.4s, transform 0.4s var(--ease);
}
.why-item:hover { border-color: rgba(0, 123, 255, 0.4); background: rgba(0, 123, 255, 0.05); transform: translateY(-4px); }
.why-item svg { width: 24px; height: 24px; color: var(--blue); margin-bottom: 12px; }
.why-item h3 { font-size: 16.5px; margin-bottom: 6px; }
.why-item p { font-size: 13.5px; color: var(--txt-dim); }
