/* ============================================================
   MOMENTUM — auto-service template, scoped theme layer.
   Sharp, technical, modern. Two colour modes selected by the body
   attribute (set from templateId):
     · body[data-template-id="momentum"]      → light (default below)
     · body[data-template-id="momentum-dark"] → dark  (override block
                                                  at the end of file)
   Everything is scoped to those two selectors so it never leaks into
   the other templates. Homepage-specific styles live under `.momentum`.

   Brand colors map onto the platform theme tokens, so each dealer
   stays fully editable: --primary = config primary, --accent = config
   secondary. The neutral surface system + fonts are the fixed layer.
   Fonts: Space Grotesk (display) + Manrope (body), self-hosted via
   next/font (real weights, no render-blocking).
   ============================================================ */

body[data-template-id="momentum"], body[data-template-id="momentum-dark"] {
  /* ── Brand tokens (editable per-dealer via platform theme) ── */
  --accent: var(--secondary, #f6c515);
  --accent-rgb: var(--secondary-rgb, 246 197 21);
  --accent-deep: #e0ad00;

  /* ── Derived navy (fixed dark layer) ───────────────────────── */
  --blue-deep: #0c2d6b;
  --blue-ink: #0a1f47;

  /* ── Type ──────────────────────────────────────────────────── */
  --font-display: var(--font-space-grotesk), system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: var(--font-manrope), system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* ── Cool neutral surface system ───────────────────────────── */
  --paper: #ffffff;
  --mist: #f2f6fc;
  --frost: #e9f0fa;
  --line: #e3eaf4;
  --line-strong: #cdd9ea;
  --ink: #0e1d36;
  --ink-body: #2c3b54;
  --ink-soft: #5a6982;
  --ink-faint: #8b98ae;
  --whatsapp: #1faf53;
  --success: #138a4e;
  --danger: #d23b3b;

  /* Radius derivatives (built on platform --radius) */
  --r-xs: calc(var(--radius) * 0.5);
  --r-sm: calc(var(--radius) * 0.8);
  --r-md: var(--radius);
  --r-lg: calc(var(--radius) * 1.6);
  --r-xl: calc(var(--radius) * 2.4);
  --r-pill: 999px;

  /* Shadows — blue-tinted */
  --sh-sm: 0 1px 2px rgba(12, 45, 107, .06), 0 2px 6px rgba(12, 45, 107, .05);
  --sh-md: 0 6px 18px -6px rgba(12, 45, 107, .16), 0 2px 6px rgba(12, 45, 107, .06);
  --sh-lg: 0 24px 50px -18px rgba(12, 45, 107, .30), 0 6px 16px rgba(12, 45, 107, .08);
  --sh-blue: 0 16px 36px -12px rgb(var(--primary-rgb) / .45);
  --sh-accent: 0 14px 30px -10px rgb(var(--accent-rgb) / .55);

  /* Spacing */
  --pad-section: 104px;
  --pad-card: 26px;
  --gap-grid: 22px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .45s;
  --nx-max: 1320px;
  --nx-px: 28px;

  background: var(--paper);
  color: var(--ink-body);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* ════════════════════════════════════════════════════════════
   HOMEPAGE WRAPPER
   ════════════════════════════════════════════════════════════ */
.momentum {
  line-height: 1.6;
}

.momentum a {
  color: inherit;
  text-decoration: none;
}

.momentum img {
  display: block;
  max-width: 100%;
}

.nx-container {
  max-width: var(--nx-max);
  margin: 0 auto;
  padding: 0 var(--nx-px);
}

@media (min-width:768px) {
  .nx-container {
    padding: 0 44px;
  }
}

.momentum .section {
  padding: var(--pad-section) 0;
}

/* ── Type ───────────────────────────────────────────────────── */
.momentum .eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.momentum .eyebrow::before {
  content: "»»";
  letter-spacing: -.12em;
  color: var(--accent-deep);
  font-weight: 700;
}

.momentum .eyebrow.on-dark {
  color: #cfe0ff;
}

.momentum .eyebrow.on-dark::before {
  color: var(--accent);
}

.momentum h1,
.momentum h2,
.momentum h3,
.momentum h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.04;
  text-wrap: balance;
}

.momentum h1 {
  font-size: clamp(38px, 5.2vw, 70px);
  letter-spacing: -.03em;
}

.momentum h2 {
  font-size: clamp(28px, 3.4vw, 48px);
  letter-spacing: -.025em;
}

.momentum h3 {
  font-size: 21px;
  line-height: 1.18;
}

.momentum h4 {
  font-size: 15px;
}

.momentum p {
  margin: 0;
  color: var(--ink-soft);
}

.momentum .lead {
  font-size: clamp(16px, 1.25vw, 19px);
  color: var(--ink-soft);
  line-height: 1.7;
}

/* Section header */
.momentum .shead {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.momentum .shead .eyebrow {
  align-self: flex-start;
}

.momentum .shead-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.momentum .shead-row p {
  max-width: 440px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.momentum .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  line-height: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .005em;
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.momentum .btn svg {
  transition: transform var(--dur) var(--ease);
}

.momentum .btn:hover svg.arr {
  transform: translateX(3px);
}

.momentum .btn-accent {
  background: var(--accent);
  color: var(--secondary-foreground);
  box-shadow: var(--sh-accent);
}

.momentum .btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -10px rgb(var(--accent-rgb) / .7);
}

.momentum .btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--sh-blue);
}

.momentum .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -10px rgb(var(--primary-rgb) / .6);
}

.momentum .btn-wa {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 12px 26px -10px rgba(31, 175, 83, .6);
}

.momentum .btn-wa:hover {
  transform: translateY(-2px);
}

.momentum .btn-line {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}

.momentum .btn-line:hover {
  box-shadow: inset 0 0 0 1.5px var(--primary);
  color: var(--primary);
}

.momentum .btn-line.on-dark {
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3);
}

.momentum .btn-line.on-dark:hover {
  box-shadow: inset 0 0 0 1.5px #fff;
}

.momentum .btn-ghost {
  background: var(--frost);
  color: var(--primary);
}

.momentum .btn-ghost:hover {
  background: #dde9fb;
  transform: translateY(-1px);
}

.momentum .btn-sm {
  padding: 11px 18px;
  font-size: 13px;
}

/* ── Pills / badges ─────────────────────────────────────────── */
.momentum .pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.momentum .pill-glass {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.momentum .hero {
  position: relative;
}

.momentum .hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.1s var(--ease), transform 7s linear;
}

.momentum .hero-bg.on {
  opacity: 1;
}

.momentum .hero-bg-img {
  object-fit: cover;
}

.momentum .hero-dots {
  display: flex;
  gap: 8px;
}

.momentum .hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: var(--line-strong);
  transition: all .3s var(--ease);
}

.momentum .hero-dot.on {
  width: 26px;
  border-radius: 5px;
  background: var(--accent);
}

.momentum .hero-dot.on-dark {
  background: rgba(255, 255, 255, .4);
}

.momentum .hero-dot.on-dark.on {
  background: var(--accent);
}

/* Variant A · CLASSIC.
   Height = viewport minus the header (topbar 53 + nav 80 ≈ 133px) minus a sliver
   so the services marquee peeks above the fold on first load (invites scroll)
   instead of the hero overflowing the screen. */
.momentum .hero.v-classic {
  min-height: calc(100vh - 190px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.momentum .hero.v-classic .hero-bg {
  transform: scale(1.06);
}

.momentum .hero.v-classic .hero-bg.on {
  transform: scale(1);
}

/* Hero scrim: a NEUTRAL-dark base (readability — white text over any photo) tinted
   with the dealer's OWN brand colours — a primary halo behind the CTAs + a secondary
   accent in the top-right — instead of a fixed navy. Adapts per dealer. Deepen the
   base alphas (.50/.54/.82) for more contrast, lower them to reveal more of the photo. */
.momentum .hero.v-classic .hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(72% 55% at 50% 114%, rgb(var(--primary-rgb) / .34), transparent 60%),
    radial-gradient(52% 46% at 96% -4%, rgb(var(--secondary-rgb) / .22), transparent 55%),
    linear-gradient(180deg, rgba(9, 11, 18, .50) 15%, rgba(8, 10, 16, .54) 50%, rgba(6, 8, 14, .82) 100%);
}

.momentum .hero.v-classic .hero-inner {
  position: relative;
  text-align: center;
  padding: 56px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.momentum .hero.v-classic .hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.momentum .hero.v-classic .hero-title {
  color: #fff;
  margin: 22px 0 24px;
  text-shadow: 0 4px 30px rgba(10, 31, 71, .4);
}

.momentum .hero.v-classic .hero-lead {
  color: rgba(255, 255, 255, .9);
  max-width: 720px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.65;
}

@media (prefers-reduced-motion: no-preference) {
  .momentum .hero.v-classic .hero-text {
    animation: nx-hero-text .55s var(--ease) both;
  }
}

/* Transform-only (no opacity gating) so the text is ALWAYS visible — a paused/
   headless/background-tab render can't strand it at opacity:0. It just misses the
   subtle rise. */
@keyframes nx-hero-text {
  from {
    transform: translateY(12px);
  }

  to {
    transform: none;
  }
}

.momentum .hero.v-classic .hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
  justify-content: center;
}

.momentum .hero.v-classic .hero-dots {
  margin-top: 40px;
  justify-content: center;
}

/* ════════════════════════════════════════════════════════════
   STATS MARQUEE
   ════════════════════════════════════════════════════════════ */
.momentum .marquee {
  background: var(--blue-ink);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.momentum .marquee::before,
.momentum .marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.momentum .marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--blue-ink), transparent);
}

.momentum .marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--blue-ink), transparent);
}

.momentum .marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: nx-mq 38s linear infinite;
}

.momentum .marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes nx-mq {
  to {
    transform: translateX(-50%);
  }
}

.momentum .mq-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 30px;
  white-space: nowrap;
  cursor: pointer;
}

/* hover the bar to pause it (below), then each item is a link to its service */
.momentum a.mq-item:hover .mq-l {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
}

.momentum a.mq-item:hover .mq-n {
  transform: scale(1.12);
}

.momentum .mq-item .mq-n {
  transition: transform .2s var(--ease);
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
}

.momentum .mq-item .mq-l {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .78);
  font-weight: 500;
}

.momentum .mq-item .mq-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  margin-left: 6px;
}

/* ════════════════════════════════════════════════════════════
   FAST BUTTONS
   ════════════════════════════════════════════════════════════ */
.momentum .fast-band {
  background: var(--paper);
  padding: 30px 0;
}

/* auto-fit fills the row for 3-4 buttons, but caps each card at 440px and
   centers the track so 1-2 buttons don't stretch into sparse, half-empty
   banners (content hugging the left, arrow marooned on the right). */
.momentum .fast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 440px));
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
  position: relative;
  z-index: 5;
}

.momentum .fast-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--sh-md), inset 0 0 0 1px var(--line);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.momentum .fast-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg), inset 0 0 0 1px var(--line);
}

.momentum .fast-ico {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--frost);
  color: var(--primary);
}

.momentum .fast-card:first-child .fast-ico {
  background: var(--accent);
  color: var(--secondary-foreground);
}

.momentum .fast-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.25;
}

.momentum .fast-sub {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 3px;
  line-height: 1.45;
}

.momentum .fast-arrow {
  margin-left: auto;
  align-self: center;
  color: var(--ink-faint);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}

.momentum .fast-card:hover .fast-arrow {
  color: var(--primary);
  transform: translateX(4px);
}

@media (max-width:920px) {
  .momentum .fast-grid {
    margin-top: 24px;
  }
}

/* ════════════════════════════════════════════════════════════
   SERVICES SHOWCASE
   ════════════════════════════════════════════════════════════ */
/* Section rhythm: the services block sits on the tinted surface so the
   page alternates plain → tinted → plain between the hero and contact. */
.momentum .svc-section {
  background: var(--mist);
}

.momentum .svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-grid);
  margin-top: 46px;
}

.momentum .svc-card {
  position: relative;
  padding: var(--pad-card);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--sh-sm), inset 0 0 0 1px var(--line);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
}

.momentum .svc-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg), inset 0 0 0 1px var(--line);
}

.momentum .svc-card .svc-num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--line-strong);
}

.momentum .svc-ico {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--frost);
  color: var(--primary);
  margin-bottom: 18px;
  transition: background .3s, color .3s;
}

.momentum .svc-card:hover .svc-ico {
  background: var(--primary);
  color: var(--primary-foreground);
}

.momentum .svc-card h3 {
  font-size: 19px;
  margin-bottom: 9px;
}

.momentum .svc-card .svc-sum {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 18px;
}

.momentum .svc-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
}

.momentum .svc-link svg {
  transition: transform var(--dur) var(--ease);
}

.momentum .svc-card:hover .svc-link svg {
  transform: translateX(4px);
}

.momentum .svc-more {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

@media (max-width:920px) {
  .momentum .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:560px) {
  .momentum .svc-grid {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════════════════════════════════
   GALLERY STRIP
   ════════════════════════════════════════════════════════════ */
.momentum .gal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 232px;
  grid-auto-flow: dense;
  gap: 14px;
  margin-top: 40px;
}

.momentum .gal-item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}

/* placed by measured aspect ratio (see GalleryStrip) */
.momentum .gal-item.gi-wide {
  grid-column: span 2;
}

.momentum .gal-item.gi-tall {
  grid-row: span 2;
}

.momentum .gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.momentum .gal-item:hover img {
  transform: scale(1.07);
}

.momentum .gal-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 31, 71, .4));
}

.momentum .gal-cap {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  text-shadow: 0 1px 6px rgba(10, 31, 71, .6);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.momentum .gal-item:hover .gal-cap {
  opacity: 1;
  transform: none;
}

@media (max-width:760px) {
  .momentum .gal-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 165px;
  }
}

/* ════════════════════════════════════════════════════════════
   FAQ
   ════════════════════════════════════════════════════════════ */
.momentum .faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.momentum .faq-intro h2 {
  margin: 16px 0 16px;
}

.momentum .faq-intro .lead {
  margin-bottom: 26px;
}

.momentum .faq-card {
  padding: 22px;
  border-radius: var(--r-lg);
  margin-top: 8px;
  background: var(--blue-ink);
  color: #fff;
  background-image: radial-gradient(circle at 100% 0%, rgb(var(--primary-rgb) / .5), transparent 60%);
}

.momentum .faq-card h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.momentum .faq-card h4 .fc-ico {
  color: var(--accent);
}

.momentum .faq-card p {
  color: rgba(255, 255, 255, .72);
  font-size: 13.5px;
}

.momentum .faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.momentum .faq-item {
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
  transition: box-shadow .25s, background .25s;
}

.momentum .faq-item.open {
  box-shadow: inset 0 0 0 1.5px var(--primary), var(--sh-sm);
}

.momentum .faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 22px;
}

.momentum .faq-summary span:first-child {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}

.momentum .faq-toggle {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--frost);
  color: var(--primary);
  transition: background .25s, color .25s;
}

.momentum .faq-item.open .faq-toggle {
  background: var(--primary);
  color: var(--primary-foreground);
}

.momentum .faq-answer {
  padding: 0 22px 21px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.65;
}

@media (max-width:860px) {
  .momentum .faq-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ════════════════════════════════════════════════════════════
   LOCATION / CONTACT
   ════════════════════════════════════════════════════════════ */
.momentum .loc {
  background: var(--mist);
}

.momentum .loc-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: stretch;
}

.momentum .loc-info .shead {
  margin-bottom: 28px;
}

.momentum .cfields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.momentum .cf {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}

.momentum .cf-ico {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  background: var(--frost);
  color: var(--primary);
}

.momentum .cf-lbl {
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
  margin-bottom: 4px;
}

.momentum .cf-val {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
}

.momentum .cf-val.strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}

.momentum .loc-cta {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.momentum .loc-map {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  min-height: 440px;
  background: linear-gradient(135deg, rgb(var(--primary-rgb) / .06), rgb(var(--accent-rgb) / .05)), var(--frost);
  box-shadow: var(--sh-md), inset 0 0 0 1px var(--line);
}

.momentum .loc-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(.2) contrast(1.05);
}

.momentum .loc-map-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line-strong) 1px, transparent 1px), linear-gradient(90deg, var(--line-strong) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: .5;
}

.momentum .loc-map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.momentum .loc-map-pin .lmp-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  padding: 9px 15px;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
}

.momentum .loc-map-pin .lmp-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgb(var(--primary-rgb) / .18), 0 6px 14px rgb(var(--primary-rgb) / .4);
}

@media (max-width:860px) {
  .momentum .loc-grid {
    grid-template-columns: 1fr;
  }

  .momentum .loc-map {
    min-height: 320px;
  }
}

/* ════════════════════════════════════════════════════════════
   MOBILE POLISH — tighter rhythm, comfortable tap targets,
   full-bleed-friendly hero + stacked CTAs.
   ════════════════════════════════════════════════════════════ */
@media (max-width:640px) {
  body[data-template-id="momentum"], body[data-template-id="momentum-dark"] {
    --pad-section: 64px;
    --pad-card: 22px;
    --nx-px: 18px;
  }

  .momentum .hero.v-classic {
    min-height: calc(100vh - 196px);
  }

  .momentum .hero.v-classic .hero-inner {
    padding: 104px 0 62px;
  }

  .momentum .hero.v-classic .hero-title {
    margin: 18px 0 18px;
  }

  .momentum .hero-ctas {
    width: 100%;
    gap: 10px;
  }

  .momentum .hero-ctas .btn {
    flex: 1 1 calc(50% - 5px);
    justify-content: center;
    padding: 14px 16px;
  }

  .momentum .pill {
    font-size: 11px;
  }

  .momentum .mq-item {
    padding: 14px 20px;
  }

  .momentum .mq-item .mq-n {
    font-size: 16px;
  }

  .momentum .shead-row {
    gap: 16px;
  }

  .momentum .svc-card {
    padding: 22px;
  }

  .momentum .faq-summary {
    padding: 16px 18px;
    gap: 12px;
  }

  .momentum .faq-summary span:first-child {
    font-size: 15px;
  }

  .momentum .cf {
    padding: 15px;
    gap: 13px;
  }

  .momentum .loc-map {
    min-height: 280px;
  }

  .momentum .btn {
    padding: 13px 20px;
  }
}

@media (max-width:380px) {
  .momentum .hero-ctas .btn {
    flex: 1 1 100%;
  }
}

/* ── Page enter ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .momentum.page-enter>* {
    animation: nx-fadeUp .6s var(--ease) both;
  }
}

/* Transform-only reveal (see nx-hero-text) — sections stay visible even when the
   animation is paused or never runs; they only forgo the subtle rise. */
@keyframes nx-fadeUp {
  from {
    transform: translateY(18px);
  }

  to {
    transform: none;
  }
}

/* ════════════════════════════════════════════════════════════
   SHARED CHROME tone-matching (header / footer accents inherit
   the platform tokens automatically; nothing template-specific
   required here beyond the brand colors already wired above).
   ════════════════════════════════════════════════════════════ */

/* Footer text links (nav, services, phone, address, email, legal) hover to
   the accent (secondary) color. The icon buttons (social / scroll-top) carry
   rounded-* classes and keep their own hover treatment, so they're excluded.
   Each selector repeats the full descendant path — a comma list must not share
   the `footer a…` tail, or the bare `body[...]` selector would match on its own. */
body[data-template-id="momentum"] footer a:not([class*="rounded-"]):hover,
body[data-template-id="momentum-dark"] footer a:not([class*="rounded-"]):hover {
  color: var(--secondary);
}
/* ════════════════════════════════════════════════════════════
   DARK MODE  ·  body[data-template-id="momentum-dark"]
   Same layout as light; only the surface system + a few
   light-specific treatments are overridden. Depth ladder:
   page #0e0f12 < mist < paper < frost, with near-black bands
   (hero / marquee / faq-card) receding for contrast.
   ════════════════════════════════════════════════════════════ */
body[data-template-id="momentum-dark"] {
  /* Surface ladder (deepest → most elevated) */
  --paper: #181a1e;
  --mist: #131418;
  --frost: #23252b;

  /* Hairlines — light, low-alpha so they read on dark */
  --line: rgba(160, 164, 176, .14);
  --line-strong: rgba(160, 164, 176, .26);

  /* Text ladder */
  --ink: #f1f2f4;
  --ink-body: #c8ccd2;
  --ink-soft: #979ba4;
  --ink-faint: #6d717a;

  /* Near-black bands (hero fallback / marquee / faq-card) */
  --blue-ink: #0a0b0d;
  --blue-deep: #141518;
  /* On dark, use the dealer's full-brightness accent (not the muted light-mode
     --accent-deep) for eyebrow arrows / small accents — hue-correct per dealer. */
  --accent-deep: var(--accent);

  /* Black-based shadows so elevation actually reads on dark */
  --sh-sm: 0 1px 2px rgba(0, 0, 0, .45), 0 3px 10px rgba(0, 0, 0, .35);
  --sh-md: 0 10px 28px -10px rgba(0, 0, 0, .6), 0 3px 10px rgba(0, 0, 0, .4);
  --sh-lg: 0 34px 66px -22px rgba(0, 0, 0, .72), 0 10px 24px rgba(0, 0, 0, .45);

  /* !important throughout this rule: app/globals.css hard-forces the shared
     <body>/<html>/<h2> to a light "Hard-Force Light Mode" with !important, so the
     dark template can only win with !important + higher specificity. */
  background: #0e0f12 !important;
  color: var(--ink-body) !important;
  color-scheme: dark !important;
}

/* The shared <html> is forced white by globals.css. When a stray horizontal
   overflow makes the document wider than the viewport (e.g. the header's hidden
   nav-width measurer on mobile — harmless and invisible in light mode because
   html==body==white), that white html shows as a strip beside the dark page.
   Match html to the page colour and clip the (pre-existing, benign) x-overflow
   so the dark template has neither a white strip nor a phantom sideways scroll. */
html.momentum-dark-root {
  background: #0e0f12 !important;
  overflow-x: hidden;
}

/* globals.css sets `h2 { color:#020617 !important }` — re-tone every heading to
   the light ink so section titles aren't dark-on-dark in the dark template. */
body[data-template-id="momentum-dark"] .momentum h1,
body[data-template-id="momentum-dark"] .momentum h2,
body[data-template-id="momentum-dark"] .momentum h3,
body[data-template-id="momentum-dark"] .momentum h4 {
  color: var(--ink) !important;
}

/* Fast band: let the elevated cards float on the page bg (both would be
   --paper otherwise and blend, since dark shadows are subtle). */
body[data-template-id="momentum-dark"] .momentum .fast-band {
  background: transparent;
}

/* Icon chips: brand-tinted with a white glyph so they read on dark
   regardless of the dealer's primary hue (the first fast-ico stays yellow
   via its more specific first-child rule). */
body[data-template-id="momentum-dark"] .momentum .fast-ico,
body[data-template-id="momentum-dark"] .momentum .svc-ico,
body[data-template-id="momentum-dark"] .momentum .cf-ico,
body[data-template-id="momentum-dark"] .momentum .faq-toggle {
  /* Brand tint over a tiny white lift + a crisp hairline ring → the chip reads
     for any dealer hue (bright or dark) and the white glyph always contrasts. */
  background: linear-gradient(0deg, rgb(var(--primary-rgb) / .34), rgb(var(--primary-rgb) / .34)), rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
  color: #fff;
}

/* Section eyebrows use var(--primary), which is dark-on-dark for a dark dealer
   primary. Re-tone to the dealer's accent — brand-driven and reliably bright,
   and it matches the accent-coloured »» arrows for a cohesive kicker. */
body[data-template-id="momentum-dark"] .momentum .eyebrow {
  color: var(--accent);
}

/* Ghost button: light label + neutral lift on hover so it reads for any primary
   (the light-mode #dde9fb fill and var(--primary) label would fail on dark). */
body[data-template-id="momentum-dark"] .momentum .btn-ghost {
  color: #e7eefc;
}

body[data-template-id="momentum-dark"] .momentum .btn-ghost:hover {
  background: rgba(255, 255, 255, .1);
}

/* faq-card is a near-black band in light mode; on dark it blends into the page.
   Lift the surface and strengthen the brand glow so it reads as a highlight. */
body[data-template-id="momentum-dark"] .momentum .faq-card {
  background-color: #1a1c22;
  background-image: radial-gradient(circle at 100% 0%, rgb(var(--primary-rgb) / .45), transparent 62%);
}

/* Subtle top highlight on the main surfaces → lifted, premium feel. */
body[data-template-id="momentum-dark"] .momentum .fast-card,
body[data-template-id="momentum-dark"] .momentum .svc-card,
body[data-template-id="momentum-dark"] .momentum .cf,
body[data-template-id="momentum-dark"] .momentum .faq-item {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 42%);
}

/* Ambient brand wash at the top of the tinted sections → the dark surfaces
   carry the dealer's hue instead of reading as flat neutral navy. */
body[data-template-id="momentum-dark"] .momentum .svc-section,
body[data-template-id="momentum-dark"] .momentum .loc {
  background-image: radial-gradient(70% 60% at 92% -12%, rgb(var(--primary-rgb) / .08), transparent 58%);
}

/* Cards lift into a brand-tinted ring on hover — interaction feedback that is
   the dealer's colour, not a generic neutral line. */
body[data-template-id="momentum-dark"] .momentum .fast-card:hover,
body[data-template-id="momentum-dark"] .momentum .svc-card:hover {
  box-shadow: var(--sh-lg), inset 0 0 0 1px rgb(var(--primary-rgb) / .55);
}

/* ── Shared homepage components in dark mode ─────────────────────────────────
   NewsSection, ReferencesGrid and the home-content Section blocks are built for
   a light page (white / slate-50 section bg, slate-900 headings, dark RichText).
   Momentum's own sections use `.section`, NOT `.section-padding`, so scoping to
   `.section-padding` + the shared Tailwind utilities re-skins ONLY those shared
   blocks. Their headings/paragraphs are already lightened by the `.momentum
   h1-h4` / `.momentum p` rules above; here we just strip the light surfaces so
   the dark page shows behind that already-light text. */
body[data-template-id="momentum-dark"] .momentum .section-padding {
  background-color: transparent !important;
}

/* Kill light decorative gradient washes (e.g. ReferencesGrid's slate fade). */
body[data-template-id="momentum-dark"] .momentum .section-padding [class*="from-slate"],
body[data-template-id="momentum-dark"] .momentum .section-padding [class*="from-white"] {
  display: none;
}

/* Home-content RichText defaults to dark ink for light pages → re-tone to light. */
body[data-template-id="momentum-dark"] .momentum .section-padding .rich-text {
  color: rgba(255, 255, 255, .74);
}

body[data-template-id="momentum-dark"] .momentum .section-padding .rich-text strong,
body[data-template-id="momentum-dark"] .momentum .section-padding .rich-text b {
  color: #fff;
}

/* Tiny slate meta labels (e.g. the contact block's "E-posta Adresimiz"). */
body[data-template-id="momentum-dark"] .momentum .section-padding .text-slate-400 {
  color: var(--ink-faint) !important;
}

/* Keep the embedded Google map in its natural colours on dark too (no invert) —
   only the base light grayscale tint applies; the map stays legible and normal. */
body[data-template-id="momentum-dark"] .momentum .loc-map iframe {
  filter: none;
}

/* ════════════════════════════════════════════════════════════
   MODERN PASS — quieter section markers, bolder display type,
   cleaner surfaces + more intentional motion. Base layer, so it
   applies to BOTH colour modes (scoped to .momentum only).
   ════════════════════════════════════════════════════════════ */

/* Sophisticated section markers: retire the repeated »» uppercase kicker
   (a template tell) for a single quiet brand rule above each heading. */
.momentum .shead .eyebrow,
.momentum .faq-intro .eyebrow {
  display: none;
}

.momentum .shead h2::before,
.momentum .faq-intro h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
  margin-bottom: 20px;
}

/* Retire the /01 /02 numbered scaffolding on service cards. */
.momentum .svc-num {
  display: none;
}

/* Bolder, more dramatic display type. */
.momentum .hero-title {
  font-size: clamp(42px, 5.6vw, 78px);
  letter-spacing: -.035em;
}

.momentum h2 {
  font-size: clamp(30px, 3.9vw, 54px);
}

/* Cleaner service/showcase cards: more generous radius, a hairline-thin border
   and a softer resting shadow that deepens on a smooth, intentional lift. */
.momentum .svc-card,
.momentum .fast-card,
.momentum .cf {
  border-radius: var(--r-xl);
}

.momentum .svc-card:hover {
  transform: translateY(-6px);
}

/* Micro-interaction: the service icon nudges + tilts a hair on card hover. */
.momentum .svc-card .svc-ico {
  transition: background .3s, color .3s, transform .45s var(--ease);
}

.momentum .svc-card:hover .svc-ico {
  transform: translateY(-2px) rotate(-3deg);
}

/* Buttons: a touch more travel + spring on hover for a livelier feel. */
.momentum .btn-accent:hover,
.momentum .btn-primary:hover {
  transform: translateY(-3px);
}

/* ════════════════════════════════════════════════════════════
   MOMENTUM-DARK · SHARED SUB-PAGES
   Service detail, service list, blog list/detail, insurance,
   about, contact are SHARED, light-built pages rendered directly
   in <main> (NOT inside the .momentum homepage wrapper). Re-skin
   their light surfaces + dark slate text for the dark template.
   `:not(.momentum *)` excludes the homepage — its main is entirely
   .momentum and is dark-handled above — so these rules only touch
   the shared sub-pages. Requires Selectors-4 :not() (Chrome 88+,
   Safari 15+ — within the project browserslist).
   ════════════════════════════════════════════════════════════ */

/* Sub-page canvas (the page's own <main>/<article> light bg) → deep dark */
body[data-template-id="momentum-dark"] main[class*="bg-slate-50"],
body[data-template-id="momentum-dark"] main[class*="bg-white"],
body[data-template-id="momentum-dark"] main article[class*="bg-white"]:not(.momentum *) {
  background-color: #0e0f12 !important;
}

/* Light surfaces (cards, hero panels) inside sub-pages → dark surfaces */
body[data-template-id="momentum-dark"] main .bg-white:not(.momentum *) {
  background-color: #181a1e !important;
}

body[data-template-id="momentum-dark"] main .bg-slate-50:not(.momentum *) {
  background-color: #131418 !important;
}

body[data-template-id="momentum-dark"] main .bg-slate-100:not(.momentum *) {
  background-color: #23252b !important;
}

/* Dark slate text → light ladder */
body[data-template-id="momentum-dark"] main .text-slate-950:not(.momentum *),
body[data-template-id="momentum-dark"] main .text-slate-900:not(.momentum *),
body[data-template-id="momentum-dark"] main .text-slate-800:not(.momentum *) {
  color: #f1f2f4 !important;
}

body[data-template-id="momentum-dark"] main .text-slate-700:not(.momentum *),
body[data-template-id="momentum-dark"] main .text-slate-600:not(.momentum *) {
  color: #c8ccd2 !important;
}

body[data-template-id="momentum-dark"] main .text-slate-500:not(.momentum *),
body[data-template-id="momentum-dark"] main .text-slate-400:not(.momentum *),
body[data-template-id="momentum-dark"] main .text-slate-300:not(.momentum *) {
  color: #979ba4 !important;
}

/* Borders → dark hairlines */
body[data-template-id="momentum-dark"] main [class*="border-slate"]:not(.momentum *) {
  border-color: rgba(160, 164, 176, .14) !important;
}

/* RichText (base, not .rt-dark) inherits the light body colour — make its
   headings/bold/links read on the now-dark surface. */
body[data-template-id="momentum-dark"] main .rich-text:not(.momentum *) {
  color: #c8ccd2;
}

body[data-template-id="momentum-dark"] main .rich-text h1:not(.momentum *),
body[data-template-id="momentum-dark"] main .rich-text h2:not(.momentum *),
body[data-template-id="momentum-dark"] main .rich-text h3:not(.momentum *),
body[data-template-id="momentum-dark"] main .rich-text h4:not(.momentum *),
body[data-template-id="momentum-dark"] main .rich-text strong:not(.momentum *),
body[data-template-id="momentum-dark"] main .rich-text b:not(.momentum *) {
  color: #f1f2f4;
}

body[data-template-id="momentum-dark"] main .rich-text a:not(.momentum *) {
  color: #93c5fd;
}

/* Components that receive their white bg via @apply (premium-card, glass-panel,
   premium-btn-outline) aren't matched by the class-based `.bg-white` rule above,
   so re-skin them explicitly for the dark template. */
body[data-template-id="momentum-dark"] main .premium-card:not(.momentum *),
body[data-template-id="momentum-dark"] main .glass-panel:not(.momentum *) {
  background-color: #181a1e !important;
  border-color: rgba(160, 164, 176, .14) !important;
}

body[data-template-id="momentum-dark"] main .premium-btn-outline:not(.momentum *) {
  background-color: transparent !important;
}
