/* ============================================================
   NEREX · Akıllı Oto Servis template — scoped theme layer.
   Light, sharp, technical. Blue structure + yellow accent.
   Everything is scoped under body[data-template-id="nerex"] so it
   never leaks into the other templates. Homepage-specific section
   styles live under the `.nerex` wrapper.

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

body[data-template-id="nerex"] {
  /* ── 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 Nerex 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 rgba(var(--primary-rgb), .45);
  --sh-accent: 0 14px 30px -10px rgba(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
   ════════════════════════════════════════════════════════════ */
.nerex {
  line-height: 1.6;
}

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

.nerex 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;
  }
}

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

/* ── Type ───────────────────────────────────────────────────── */
.nerex .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;
}

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

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

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

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

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

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

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

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

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

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

/* Inline brand link (e.g. "Nerex" inside body copy) */
.nerex .nx-inline-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(var(--primary-rgb), .4);
  transition: color .2s, text-decoration-color .2s;
}

.nerex .nx-inline-link:hover {
  color: var(--accent-deep);
  text-decoration-color: currentColor;
}

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

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

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

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

/* ── Buttons ────────────────────────────────────────────────── */
.nerex .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);
}

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

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

.nerex .btn-accent {
  background: var(--accent);
  color: var(--blue-ink);
  box-shadow: var(--sh-accent);
}

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

.nerex .btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--sh-blue);
}

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

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

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

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

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

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

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

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

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

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

/* ── Pills / badges ─────────────────────────────────────────── */
.nerex .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;
}

.nerex .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);
}

.nerex .cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 11px;
  border-radius: var(--r-pill);
  background: var(--paper);
  box-shadow: var(--sh-sm), inset 0 0 0 1px var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
}

.nerex .cert-badge .cb-ico {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--blue-ink);
}

.nerex .stars {
  display: inline-flex;
  gap: 2px;
  color: var(--accent-deep);
}

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

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

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

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

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

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

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

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

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

/* Variant A · CLASSIC */
.nerex .hero.v-classic {
  min-height: 86vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

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

/* Hero görsel karartması (okunurluk).  rgba(10,31,71, ALFA) = Nerex laciverti.
   3 alfa = üst / orta(başlık hizası) / alt.  Daha okunur isteyen orta+alt'ı
   yükseltir (örn .60/.78), görsel daha çok görünsün isteyen düşürür (örn .42/.62). */
.nerex .hero.v-classic .hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 31, 71, .55) 20%, rgba(10, 31, 71, .50) 50%, rgba(10, 31, 71, .72) 100%);
}

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

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

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

.nerex .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) {
  .nerex .hero.v-classic .hero-text {
    animation: nx-hero-text .55s var(--ease) both;
  }
}

@keyframes nx-hero-text {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

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

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

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

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

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

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

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

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

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

.nerex .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 */
.nerex a.mq-item:hover .mq-l {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
}

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

.nerex .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);
}

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

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

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

/* auto-fit: any number of buttons fills the row evenly — empty tracks
   collapse, so 2 buttons become two equal half-width cards (no dead space
   over the marquee), 4 buttons become four, and it wraps cleanly on mobile. */
.nerex .fast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 14px;
  margin-top: 16px;
  position: relative;
  z-index: 5;
}

.nerex .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);
}

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

.nerex .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);
}

.nerex .fast-card:first-child .fast-ico {
  background: var(--accent);
  color: var(--blue-ink);
}

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

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

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

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

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

/* ════════════════════════════════════════════════════════════
   ADVANTAGES (Nerex güvencesi — fixed)
   ════════════════════════════════════════════════════════════ */
.nerex .adv {
  background: var(--mist);
  position: relative;
  overflow: hidden;
}

.nerex .adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-grid);
  margin-top: 48px;
}

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

.nerex .adv-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--accent);
  border-radius: 0 4px 4px 0;
  transition: height var(--dur) var(--ease);
}

.nerex .adv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md), inset 0 0 0 1px var(--line-strong);
}

.nerex .adv-card:hover::after {
  height: 100%;
}

.nerex .adv-ico {
  width: 54px;
  height: 54px;
  border-radius: var(--r-md);
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  background: var(--frost);
  color: var(--primary);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.nerex .adv-card:hover .adv-ico {
  background: var(--primary);
  color: #fff;
  transform: rotate(-4deg) scale(1.06);
}

.nerex .adv-card h3 {
  font-size: 18px;
  margin-bottom: 9px;
}

.nerex .adv-card p {
  font-size: 14.5px;
  line-height: 1.6;
}

@media (max-width:900px) {
  .nerex .adv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ════════════════════════════════════════════════════════════
   SERVICES SHOWCASE
   ════════════════════════════════════════════════════════════ */
.nerex .svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-grid);
  margin-top: 46px;
}

.nerex .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;
}

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

.nerex .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);
}

.nerex .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;
}

.nerex .svc-card:hover .svc-ico {
  background: var(--primary);
  color: #fff;
}

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

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

.nerex .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);
}

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

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

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

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

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

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

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

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

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

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

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

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

.nerex .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);
}

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

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

/* ════════════════════════════════════════════════════════════
   SERVICE AREAS (local SEO)
   ════════════════════════════════════════════════════════════ */
.nerex .srv-areas {
  background: var(--paper);
}

.nerex .sa-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.nerex .sa-left h2 {
  margin: 16px 0 16px;
}

.nerex .sa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.nerex .sa-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  background: var(--mist);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .25s var(--ease), background .25s, color .25s;
}

.nerex .sa-chip:hover {
  transform: translateY(-3px);
  background: var(--primary);
  color: #fff;
  box-shadow: var(--sh-blue);
}

.nerex .sa-chip svg {
  color: var(--accent-deep);
  transition: color .25s;
}

.nerex .sa-chip:hover svg {
  color: var(--accent);
}

@media (max-width:860px) {
  .nerex .sa-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

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

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

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

.nerex .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%, rgba(var(--primary-rgb), .5), transparent 60%);
}

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

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

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

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

.nerex .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;
}

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

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

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

.nerex .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;
}

.nerex .faq-item.open .faq-toggle {
  background: var(--primary);
  color: #fff;
}

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

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

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

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

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

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

.nerex .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);
}

.nerex .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);
}

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

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

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

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

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

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

.nerex .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;
}

.nerex .loc-map-road {
  position: absolute;
  inset: 0;
  opacity: .6;
}

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

.nerex .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);
}

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

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

  .nerex .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="nerex"] {
    --pad-section: 64px;
    --pad-card: 22px;
    --nx-px: 18px;
  }

  .nerex .hero.v-classic {
    min-height: 78vh;
  }

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

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

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

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

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

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

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

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

  .nerex .adv-card,
  .nerex .svc-card {
    padding: 22px;
  }

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

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

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

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

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

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

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

@keyframes nx-fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    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
   Nerex yellow. The icon buttons (social / scroll-top) carry rounded-* classes
   and keep their own hover treatment, so they're excluded. */
body[data-template-id="nerex"] footer a:not([class*="rounded-"]):hover {
  color: var(--secondary);
}