/* ============================================================
   GRANVILLE AUTO MECHANIC — health check, gallery, reviews,
   stats, booking, footer, floating CTAs, service pages, responsive
   ============================================================ */

/* ============ VEHICLE HEALTH CHECK ============ */
.health { position: relative; overflow: hidden; }
.health::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 15% 110%, rgba(0, 123, 255, 0.04), transparent 60%);
}
.health-panel {
  position: relative; border-radius: 26px; overflow: hidden;
  background: linear-gradient(160deg, #161616, #0e0e0e);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  padding: 46px;
}
.health-panel::before {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; top: 0;
  background: linear-gradient(90deg, transparent, var(--steel-line), transparent);
}
.health-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.health-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; display: flex; align-items: center; gap: 12px; }
.health-title .dot { width: 8px; height: 8px; border-radius: 50%; background: #2ECC71; }
.health-status { font-size: 13px; color: var(--txt-dim); font-family: "SF Mono", Menlo, monospace; }
.health-status strong { color: var(--blue); }
.health-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hc-item {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  border-radius: 18px; padding: 24px; cursor: pointer; position: relative; overflow: hidden;
  transition: border-color 0.4s, transform 0.4s var(--ease);
}
.hc-item:hover { border-color: rgba(0, 123, 255, 0.5); transform: translateY(-3px); }
.hc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.hc-head h3 { font-size: 16px; display: flex; align-items: center; gap: 10px; }
.hc-head svg { width: 19px; height: 19px; color: var(--blue); }
.hc-pct { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #2ECC71; }
.hc-bar { height: 6px; border-radius: 10px; background: rgba(255, 255, 255, 0.07); overflow: hidden; margin-bottom: 12px; }
.hc-fill {
  height: 100%; width: 0; border-radius: 10px;
  background: linear-gradient(90deg, var(--blue), #2ECC71);
  transition: width 1.6s var(--ease);
}
.hc-item p { font-size: 12.5px; color: var(--txt-faint); font-family: "SF Mono", Menlo, monospace; }
.health-note { margin-top: 30px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.health-note p { font-size: 14px; color: var(--txt-dim); max-width: 540px; }

/* ============ BEFORE / AFTER ============ */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.ba-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--graphite); }
.ba-frame { position: relative; height: 320px; overflow: hidden; user-select: none; }
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before { filter: grayscale(1) brightness(0.5) contrast(0.92); }
.ba-after { clip-path: inset(0 0 0 50%); }
.ba-divider {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  background: var(--steel); z-index: 3; pointer-events: none;
}
.ba-divider::after {
  content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-size: 17px; box-shadow: var(--shadow-blue);
}
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 4;
  -webkit-appearance: none; appearance: none; margin: 0;
}
.ba-tag {
  position: absolute; top: 14px; z-index: 3; font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 13px; border-radius: 100px;
  background: rgba(10, 10, 10, 0.65); border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.ba-tag.before { left: 14px; }
.ba-tag.after { right: 14px; color: #6CC4FF; border-color: rgba(0, 123, 255, 0.5); }
.ba-meta { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; }
.ba-meta h3 { font-size: 17px; }
.ba-meta span { font-size: 13px; color: var(--txt-faint); }

/* ============ REVIEWS ============ */
.reviews { background: var(--graphite); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.reviews-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 54px; }
.gbadge {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  border-radius: 18px; padding: 18px 26px;
}
.gbadge .g { font-family: var(--font-display); font-size: 34px; font-weight: 700; }
.gbadge .g span { color: var(--blue); }
.gbadge .meta { font-size: 13px; color: var(--txt-dim); }
.gbadge .meta .stars { color: #FFB800; font-size: 15px; letter-spacing: 2px; display: block; }
.slider { position: relative; }
.slides { display: flex; transition: transform 0.7s var(--ease); }
.slide { flex: 0 0 100%; padding: 4px; }
.review-card {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  border-radius: 24px; padding: 46px; max-width: 820px; margin: 0 auto; text-align: center;
}
.review-card .stars { color: #FFB800; font-size: 19px; letter-spacing: 4px; margin-bottom: 22px; }
.review-card blockquote { font-family: var(--font-display); font-size: clamp(19px, 2.4vw, 25px); font-weight: 500; line-height: 1.45; margin-bottom: 26px; }
.review-card cite { font-style: normal; font-size: 14px; color: var(--txt-dim); }
.review-card cite strong { color: #fff; display: block; font-size: 15px; }
.slider-nav { display: flex; justify-content: center; gap: 12px; margin-top: 34px; }
.slider-dot { width: 34px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); border: 0; cursor: pointer; transition: background 0.3s; }
.slider-dot.active { background: var(--blue); }

/* ============ STATS ============ */
.stats { position: relative; overflow: hidden; }
.stats-bg { position: absolute; inset: 0; z-index: -2; }
.stats-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.3) saturate(0.7); }
.stats::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--black) 0%, rgba(10,10,10,0.45) 50%, var(--black) 100%); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 34px 16px; border-radius: var(--radius); background: rgba(10, 10, 10, 0.45); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.stat .num { font-family: var(--font-display); font-size: clamp(38px, 4.4vw, 56px); font-weight: 700; color: #fff; }
.stat .num em { font-style: normal; color: var(--blue); }
.stat .lbl { font-size: 13.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--txt-dim); margin-top: 8px; }

/* ============ BOOKING ============ */
.booking-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.booking-info .contact-rows { display: grid; gap: 14px; margin: 36px 0; }
.crow {
  display: flex; align-items: center; gap: 16px; padding: 19px 22px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 16px;
  transition: border-color 0.35s, transform 0.35s var(--ease);
}
.crow:hover { border-color: rgba(0, 123, 255, 0.45); transform: translateX(5px); }
.crow .ic { width: 44px; height: 44px; flex: none; border-radius: 12px; background: rgba(0, 123, 255, 0.12); border: 1px solid rgba(0, 123, 255, 0.3); display: grid; place-items: center; }
.crow .ic svg { width: 19px; height: 19px; color: var(--blue); }
.crow .t { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--txt-faint); }
.crow .v { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.emergency {
  border-radius: 18px; padding: 24px; display: flex; gap: 16px; align-items: center;
  background: linear-gradient(120deg, rgba(0, 123, 255, 0.14), rgba(0, 123, 255, 0.04));
  border: 1px solid rgba(0, 123, 255, 0.35);
}
.emergency svg { width: 30px; height: 30px; color: var(--blue); flex: none; }
.emergency h3 { font-size: 16px; margin-bottom: 3px; }
.emergency p { font-size: 13.5px; color: var(--txt-dim); }
.booking-form {
  background: linear-gradient(160deg, #181818, #101010);
  border: 1px solid var(--line); border-radius: 26px; padding: 42px; box-shadow: var(--shadow-lg);
}
.booking-form h3 { font-size: 23px; margin-bottom: 6px; }
.booking-form > p { font-size: 14px; color: var(--txt-dim); margin-bottom: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--txt-dim); }
.field input, .field select, .field textarea {
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px; padding: 14px 16px; color: #fff; font-family: var(--font-body); font-size: 15px;
  transition: border-color 0.3s, background 0.3s; outline: none; width: 100%;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L2 5h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field select option { background: var(--graphite); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); background: rgba(0, 123, 255, 0.05); }
.field textarea { resize: vertical; min-height: 90px; }
.booking-form .btn { width: 100%; margin-top: 24px; padding: 19px; font-size: 16px; }
.form-note { text-align: center; font-size: 12.5px; color: var(--txt-faint); margin-top: 16px; }
.form-success { display: none; text-align: center; padding: 60px 20px; }
.form-success.show { display: block; }
.form-success .tick { width: 70px; height: 70px; margin: 0 auto 22px; border-radius: 50%; background: rgba(46, 204, 113, 0.14); border: 1px solid rgba(46, 204, 113, 0.45); display: grid; place-items: center; font-size: 30px; color: #2ECC71; }

/* ============ CTA BAND ============ */
.cta-band { position: relative; overflow: hidden; }
.cta-band .bg { position: absolute; inset: 0; z-index: -2; }
.cta-band .bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.42); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,10,10,0.9), rgba(10,10,10,0.3)); }
.cta-inner { padding: 110px 0; max-width: 640px; }
.cta-inner h2 { font-size: clamp(30px, 4.4vw, 50px); margin-bottom: 18px; }
.cta-inner p { color: var(--txt-dim); font-size: 17px; margin-bottom: 34px; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); background: #070707; padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 50px; padding-bottom: 60px; }
.footer h4 { font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--txt-dim); margin-bottom: 22px; }
.footer-about p { font-size: 14.5px; color: var(--txt-dim); margin: 20px 0; max-width: 300px; }
.footer ul { display: grid; gap: 12px; }
.footer ul a { font-size: 14.5px; color: var(--txt-dim); transition: color 0.3s; }
.footer ul a:hover { color: var(--blue); }
.footer-contact li { display: flex; gap: 12px; font-size: 14.5px; color: var(--txt-dim); align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; color: var(--blue); flex: none; margin-top: 3px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 26px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--txt-faint); }

/* ============ FLOATING CONTACT ============ */
.float-desktop {
  position: fixed; right: 26px; bottom: 26px; z-index: 1200;
  display: flex; flex-direction: column; gap: 12px;
}
.float-desktop .btn { box-shadow: 0 14px 44px rgba(0, 0, 0, 0.6); padding: 15px 26px; font-size: 14px; }
.float-mobile {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
  grid-template-columns: 1fr 1fr 1.4fr;
  background: rgba(10, 10, 10, 0.85); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
.float-mobile a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 17px 8px; font-family: var(--font-display); font-weight: 600; font-size: 14px;
}
.float-mobile a svg { width: 17px; height: 17px; }
.float-mobile .fm-book { background: var(--blue); }

/* ============ SERVICE PAGES ============ */
.page-hero { position: relative; padding: 130px 0 90px; overflow: hidden; }
.page-hero .bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.34) saturate(0.85); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--black), transparent 60%); }
.breadcrumbs { font-size: 13px; color: var(--txt-faint); margin-bottom: 22px; }
.breadcrumbs a { color: var(--txt-dim); } .breadcrumbs a:hover { color: var(--blue); }
.page-hero h1 { font-size: clamp(34px, 5vw, 58px); max-width: 760px; margin-bottom: 20px; }
.page-hero p { font-size: 18px; color: var(--txt-dim); max-width: 620px; margin-bottom: 34px; }
.svc-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 60px; align-items: start; }
.svc-content h2 { font-size: clamp(24px, 3vw, 34px); margin: 44px 0 18px; }
.svc-content h2:first-child { margin-top: 0; }
.svc-content p { color: var(--txt-dim); margin-bottom: 18px; font-size: 16px; }
.svc-content ul { display: grid; gap: 12px; margin: 22px 0; }
.svc-content ul li { display: flex; gap: 12px; align-items: flex-start; color: var(--txt-dim); font-size: 15.5px; }
.svc-content ul li::before { content: "✓"; color: var(--blue); font-weight: 700; flex: none; }
.svc-side { position: sticky; top: 110px; display: grid; gap: 20px; }
.side-card { background: var(--graphite); border: 1px solid var(--line); border-radius: 20px; padding: 30px; }
.side-card h3 { font-size: 18px; margin-bottom: 16px; }
.side-card .btn { width: 100%; margin-top: 14px; }
.side-links { display: grid; gap: 10px; }
.side-links a { font-size: 14.5px; color: var(--txt-dim); padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); transition: 0.3s; }
.side-links a:hover { color: #fff; border-color: rgba(0, 123, 255, 0.4); }
.faq { display: grid; gap: 14px; margin-top: 26px; }
.faq details { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 14px; padding: 0; overflow: hidden; }
.faq summary { cursor: pointer; padding: 20px 24px; font-family: var(--font-display); font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 20px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 24px 20px; color: var(--txt-dim); font-size: 15px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .booking-grid { grid-template-columns: 1fr; gap: 44px; }
  .why-media img { height: 420px; }
  .trustbar-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item { border-bottom: 1px solid var(--line); }
  .trust-item:nth-child(n+3) { border-bottom: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .health-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-layout { grid-template-columns: 1fr; }
  .svc-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 76px 0; }
  .nav, .header-cta .btn, .header-phone { display: none; }
  .menu-btn { display: block; }
  .nav.open {
    display: flex; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: rgba(25, 28, 33, 0.98);
    border-bottom: 1px solid var(--line); padding: 10px 0;
  }
  .nav.open a { padding: 15px 6%; font-size: 16px; }
  .nav.open a::after { display: none; }
  .hero { min-height: 88vh; }
  .hero-content { padding: 90px 0 90px; }
  .hero-actions .btn { width: 100%; }
  .services-grid, .gallery-grid, .health-grid { grid-template-columns: 1fr; }
  .health-panel { padding: 28px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .booking-form { padding: 30px 24px; }
  .float-desktop { display: none; }
  .float-mobile { display: grid; }
  body { padding-bottom: 54px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .review-card { padding: 32px 24px; }
}
