/* Auto Boréal Esthétique — single-page marketing site
   Black canvas, lime accent, premium automotive tone. */

:root {
  --bg: #000000;
  --bg-elev: #0a0a0a;
  --bg-card: #0e0e0e;
  --bg-card-hover: #131313;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);
  --fg: #ffffff;
  --fg-muted: rgba(255,255,255,0.62);
  --fg-dim: rgba(255,255,255,0.42);
  --lime: #A3E635;
  --lime-soft: rgba(163,230,53,0.14);
  --lime-glow: rgba(163,230,53,0.35);
  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Typography */
.display {
  font-family: "Space Grotesk", "Geist", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.92;
}
.label {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

::selection { background: var(--lime); color: #000; }

/* Focus ring — lime */
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Grain overlay */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* Container */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 768px) { .wrap { padding: 0 24px; } }

/* Section bones */
section { position: relative; padding: 140px 0; }
@media (max-width: 768px) { section { padding: 80px 0; } }

.section-head { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; margin-bottom: 80px; }
.section-head .label { padding-top: 8px; }
.section-head h2 { margin: 0; font-size: clamp(40px, 5.6vw, 84px); }
.section-head .lede { margin-top: 24px; color: var(--fg-muted); font-size: 18px; max-width: 56ch; }
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms ease-out, transform 700ms ease-out; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
}

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  transition: background 220ms ease, border-color 220ms ease, padding 220ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding: 12px 48px;
}
@media (max-width: 768px) { .nav, .nav.scrolled { padding: 12px 20px; } }

.nav-logo { display: flex; align-items: center; gap: 16px; }
.nav-logo .wm { font-family: "Space Grotesk", sans-serif; font-weight: 700; letter-spacing: -0.02em; font-size: 15px; }
.nav-logo .wm small { display: block; font-size: 9px; letter-spacing: 0.25em; color: var(--fg-dim); font-weight: 500; }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 13px; color: var(--fg-muted); transition: color 160ms ease; }
.nav-links a:hover { color: var(--fg); }
@media (max-width: 880px) { .nav-links .desktop-only { display: none; } }

.lang-toggle {
  display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.03);
}
.lang-toggle button {
  background: transparent; border: 0; color: var(--fg-muted);
  padding: 6px 14px; font-size: 11px; letter-spacing: 0.16em; font-weight: 600;
  border-radius: 999px;
}
.lang-toggle button.active { background: var(--lime); color: #000; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  white-space: nowrap;
}
.btn-lime { background: var(--lime); color: #000; }
.btn-lime:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px var(--lime-glow); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-sm { padding: 9px 16px; font-size: 11px; }
.btn-lg { padding: 18px 28px; font-size: 14px; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 0;
  display: flex; align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute; inset: -8% -2% -8% -2%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 0;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.85) 80%, #000 100%),
    radial-gradient(60% 50% at 70% 60%, rgba(163,230,53,0.10), transparent 70%);
}
.hero-inner { position: relative; z-index: 2; padding: 0 48px 96px; width: 100%; }
@media (max-width: 768px) { .hero-inner { padding: 0 24px 64px; } }

.hero h1 {
  margin: 28px 0 0;
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.88;
}
.hero h1 .accent { color: var(--lime); }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span { display: inline-block; transform: translateY(110%); animation: rise 900ms cubic-bezier(.2,.7,.2,1) forwards; }
.hero h1 .line:nth-child(2) span { animation-delay: 90ms; }
.hero h1 .line:nth-child(3) span { animation-delay: 180ms; }
@keyframes rise { to { transform: none; } }

.hero-sub { margin-top: 36px; max-width: 60ch; color: var(--fg-muted); font-size: 17px; line-height: 1.55; }
.hero-ctas { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero-meta {
  position: absolute; right: 48px; bottom: 96px; z-index: 2;
  display: flex; flex-direction: column; gap: 14px;
  text-align: right;
}
.hero-meta .rating { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.hero-meta .rating .stars { color: var(--lime); letter-spacing: 0.1em; font-size: 14px; }
.hero-meta .rating .num { font-family: "Space Grotesk"; font-weight: 600; font-size: 14px; }
.hero-meta .city { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-dim); }
@media (max-width: 880px) { .hero-meta { display: none; } }

.hero-scroll {
  position: absolute; left: 48px; bottom: 32px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--fg-dim);
}
.hero-scroll .bar { width: 32px; height: 1px; background: var(--fg-dim); position: relative; overflow: hidden; }
.hero-scroll .bar::before { content: ""; position: absolute; inset: 0; background: var(--lime); animation: slide 2.2s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 60% { transform: translateX(100%); } 100% { transform: translateX(100%); } }
@media (max-width: 768px) { .hero-scroll { left: 24px; } }

.hero-marquee {
  position: absolute; left: 0; right: 0; top: 96px; z-index: 1;
  font-family: "Space Grotesk"; font-weight: 700; letter-spacing: -0.04em;
  font-size: clamp(80px, 14vw, 220px); color: rgba(255,255,255,0.04);
  white-space: nowrap; overflow: hidden; pointer-events: none;
  -webkit-text-stroke: 1px rgba(255,255,255,0.06); color: transparent;
}
.hero-marquee .track { display: inline-block; animation: marquee 38s linear infinite; padding-right: 40px; }
@keyframes marquee { from { transform: none; } to { transform: translateX(-50%); } }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1100px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

.svc-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  min-height: 360px;
  display: flex; flex-direction: column;
  transition: transform 280ms ease, border-color 280ms ease, background 280ms ease, box-shadow 280ms ease;
  overflow: hidden;
}
.svc-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow 280ms ease;
  pointer-events: none;
}
.svc-card:hover {
  transform: translateY(-4px);
  border-color: var(--lime);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 60px -20px var(--lime-glow);
}
.svc-card .svc-num { position: absolute; top: 24px; right: 24px; font-family: "Space Grotesk"; font-size: 11px; color: var(--fg-dim); letter-spacing: 0.2em; }
.svc-card .svc-icon { width: 56px; height: 56px; margin-bottom: 56px; color: var(--lime); }
.svc-card .svc-tag { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 12px; }
.svc-card h3 { font-family: "Space Grotesk"; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 0; line-height: 1.15; }
.svc-card p { color: var(--fg-muted); font-size: 14px; line-height: 1.55; margin: 12px 0 0; }
.svc-card .svc-foot {
  margin-top: auto; padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line);
}
.svc-card .price { font-family: "Space Grotesk"; font-size: 14px; font-weight: 600; }
.svc-card .arrow { color: var(--lime); transition: transform 200ms ease; }
.svc-card:hover .arrow { transform: translateX(4px); }
.svc-disclaimer { margin-top: 28px; font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--fg-dim); letter-spacing: 0.04em; }

/* Gallery — masonry */
.gallery {
  column-count: 3; column-gap: 18px;
}
@media (max-width: 900px) { .gallery { column-count: 2; } }
@media (max-width: 560px) { .gallery { column-count: 1; } }
.g-card {
  display: block;
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}
.g-card .imgs { position: relative; width: 100%; }
.g-card img { width: 100%; height: 100%; display: block; object-fit: cover; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; pointer-events: none; }
.g-card .after-wrap { position: absolute; inset: 0; overflow: hidden; }
.g-card .after-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; }
.g-card .handle {
  position: absolute; top: 0; bottom: 0; width: 2px; background: var(--lime);
  box-shadow: 0 0 24px var(--lime-glow);
  transform: translateX(-50%);
  pointer-events: none;
}
.g-card .handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 32px; height: 32px; border-radius: 999px; background: var(--lime); color: #000;
  display: flex; align-items: center; justify-content: center;
}
.g-card .tag {
  position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px;
  font-family: "Space Grotesk"; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  background: rgba(0,0,0,0.55); border: 1px solid var(--line);
}
.g-card .tag.before { left: 12px; }
.g-card .tag.after { right: 12px; background: var(--lime); color: #000; border-color: var(--lime); }

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .review-grid { grid-template-columns: 1fr; } }
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 28px;
  transition: border-color 220ms ease, transform 220ms ease;
}
.review-card:hover { border-color: var(--lime); transform: translateY(-3px); }
.review-card .stars { color: var(--lime); font-size: 14px; letter-spacing: 0.18em; }
.review-card blockquote {
  margin: 0; font-family: "Space Grotesk"; font-size: 22px; font-weight: 500;
  letter-spacing: -0.01em; line-height: 1.3;
}
.review-card .author { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.review-card .avatar { width: 36px; height: 36px; border-radius: 999px; background: linear-gradient(135deg, var(--lime), #4ade80); color: #000; display: flex; align-items: center; justify-content: center; font-family: "Space Grotesk"; font-weight: 700; font-size: 13px; }
.review-card .author-name { font-family: "Space Grotesk"; font-weight: 600; font-size: 13px; }
.review-card .author-role { color: var(--fg-dim); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }

.review-stats {
  margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.review-stats .stat { padding: 28px 32px; border-right: 1px solid var(--line); text-align: center; }
.review-stats .stat:last-child { border-right: 0; }
.review-stats .v { font-family: "Space Grotesk"; font-size: clamp(36px, 4vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.review-stats .v.lime { color: var(--lime); }
.review-stats .l { margin-top: 10px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-muted); }
@media (max-width: 720px) {
  .review-stats { grid-template-columns: 1fr; }
  .review-stats .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .review-stats .stat:last-child { border-bottom: 0; }
}

/* About */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 980px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }
.about-grid h2 { font-size: clamp(40px, 5vw, 72px); margin: 16px 0 24px; }
.about-grid p { color: var(--fg-muted); font-size: 16px; line-height: 1.65; margin: 0 0 16px; }
.about-stats { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.about-stats .v { font-family: "Space Grotesk"; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.about-stats .l { color: var(--fg-muted); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 4px; }
.about-photo {
  aspect-ratio: 4/5;
  background-size: cover; background-position: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.about-photo .caption {
  position: absolute; left: 20px; bottom: 20px; padding: 8px 14px;
  background: rgba(0,0,0,0.65); border: 1px solid var(--line);
  border-radius: 999px; font-family: "JetBrains Mono", monospace; font-size: 11px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* Location */
.loc-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
@media (max-width: 980px) { .loc-grid { grid-template-columns: 1fr; } }
.loc-map {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  position: relative; min-height: 480px;
  background: #0a0a0a;
}
.loc-map iframe { width: 100%; height: 100%; min-height: 480px; border: 0; filter: invert(0.92) hue-rotate(180deg) saturate(0.3); }
.loc-info { display: flex; flex-direction: column; gap: 18px; }
.loc-info .info-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
  background: var(--bg-card);
}
.loc-info .info-card .label { margin-bottom: 8px; }
.loc-info .info-card .v { font-family: "Space Grotesk"; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; white-space: pre-line; }
.loc-info .info-card a.v { color: var(--lime); }
.loc-info .hours-card { padding: 22px 24px; }
.loc-info .hours-card table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.loc-info .hours-card td { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.loc-info .hours-card td:last-child { text-align: right; font-family: "JetBrains Mono", monospace; color: var(--fg-muted); }
.loc-info .hours-card tr:last-child td { border-bottom: 0; }
.loc-info .hours-card .note { margin-top: 12px; font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--fg-dim); }
.loc-socials { display: flex; gap: 10px; margin-top: 6px; }
.loc-socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--fg-muted);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}
.loc-socials a:hover { color: var(--lime); border-color: var(--lime); }

/* Final CTA */
.cta-band {
  background:
    radial-gradient(60% 100% at 50% 100%, rgba(163,230,53,0.22), transparent 70%),
    #000;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 120px 0;
  text-align: center;
}
.cta-band h2 {
  font-family: "Space Grotesk"; font-weight: 700; letter-spacing: -0.04em;
  font-size: clamp(48px, 8vw, 128px); line-height: 0.95; margin: 0;
}
.cta-band h2 .accent { color: var(--lime); }
.cta-band .sub { color: var(--fg-muted); margin-top: 24px; font-size: 18px; }
.cta-band .actions { margin-top: 44px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer { padding: 56px 0 32px; border-top: 1px solid var(--line); }
.footer-logo {
  display: block; width: 100%; max-width: 280px; height: auto;
  margin: -16px 0 18px -8px;
  filter: drop-shadow(0 0 22px rgba(163,230,53,0.18));
}
@media (max-width: 600px) { .footer-logo { max-width: 220px; margin-left: 0; } }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { font-family: "Space Grotesk"; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-dim); margin: 0 0 16px; font-weight: 500; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--fg-muted); font-size: 13px; }
.footer ul a:hover { color: var(--lime); }
.footer .bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 12px; color: var(--fg-dim); font-family: "JetBrains Mono", monospace; }
@media (max-width: 600px) { .footer .bottom { flex-direction: column; gap: 10px; text-align: center; } }

/* Booking modal */
.modal-veil { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity 220ms ease; }
.modal-veil.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 540px; background: #0a0a0a; border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); padding: 36px; transform: translateY(20px) scale(0.98);
  transition: transform 240ms ease; max-height: 90vh; overflow-y: auto;
}
.modal-veil.open .modal { transform: none; }
.modal h3 { font-family: "Space Grotesk"; font-size: 28px; letter-spacing: -0.02em; margin: 0; }
.modal .sub { color: var(--fg-muted); font-size: 14px; margin-top: 8px; }
.modal label { display: block; margin-top: 18px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-muted); }
.modal input, .modal select, .modal textarea {
  margin-top: 8px; width: 100%; padding: 12px 14px; background: #0e0e0e;
  border: 1px solid var(--line-strong); border-radius: 10px; color: var(--fg);
  font-family: inherit; font-size: 14px;
}
.modal input:focus, .modal select:focus, .modal textarea:focus { outline: 0; border-color: var(--lime); }
.modal-actions { margin-top: 28px; display: flex; gap: 12px; justify-content: flex-end; }
.modal .close-x { position: absolute; top: 16px; right: 16px; background: transparent; border: 0; color: var(--fg-muted); font-size: 20px; }
.modal-success { text-align: center; padding: 24px 0; }
.modal-success .check { width: 56px; height: 56px; border-radius: 999px; background: var(--lime); color: #000; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 26px; }
