/* RCG Motors — site styles. Palette and type follow the original site. */

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #dc2626;
  --red-dark: #b91c1c;
  --red-light: #f87171;
  --red-tint: #fef2f2;
  --red-tint-2: #fee2e2;

  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --star: #facc15;
  --ok: #15803d;

  --shadow-xs: 0 1px 2px rgba(17, 24, 39, 0.05);
  --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.06), 0 4px 12px -4px rgba(17, 24, 39, 0.08);
  --shadow: 0 2px 6px rgba(17, 24, 39, 0.05), 0 12px 28px -12px rgba(17, 24, 39, 0.14);

  --radius: 12px;
  --radius-sm: 10px;

  --nav-h: 64px;
  --gutter: clamp(16px, 4vw, 32px);
  --measure: 1160px;
  --section-y: clamp(56px, 7vw, 96px);
  --section-y-sm: clamp(36px, 4.5vw, 56px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  scrollbar-color: var(--gray-400) var(--gray-100);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

html.nav-locked {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--gray-700);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

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

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
}

.hero :focus-visible,
.dark :focus-visible,
.band :focus-visible,
.site-nav:not(.is-solid) :focus-visible {
  outline-color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nowrap {
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--white);
  color: var(--gray-900);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 12px;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section-sm {
  padding-block: var(--section-y-sm);
}

.bg-white {
  background: var(--white);
}

.bg-gray {
  background: var(--gray-50);
}

.bg-gray-2 {
  background: var(--gray-100);
}

.dark {
  background: var(--gray-900);
  color: var(--white);
}

/* Type -------------------------------------------------------------- */

h1,
h2,
h3 {
  margin: 0;
  color: var(--gray-900);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.dark h2,
.dark h3,
.band h2 {
  color: var(--white);
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  line-height: 1.2;
}

h3 {
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.section-head {
  max-width: 40rem;
  margin: 0 auto clamp(32px, 4vw, 48px);
  text-align: center;
}

.rule {
  display: block;
  width: 40px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: var(--red);
}

.rule--left {
  margin-left: 0;
}

.section-head p {
  margin: 16px auto 0;
  color: var(--gray-600);
  text-wrap: pretty;
}

/* Buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn .icon {
  font-size: 1.05em;
}

.btn-red {
  background: var(--red);
  color: var(--white);
}

.btn-red:hover {
  background: var(--red-dark);
}

.btn-white {
  background: var(--white);
  color: var(--red);
}

.btn-white:hover {
  background: var(--red-tint);
}

.btn-pill {
  border-radius: 999px;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.link-arrow:hover {
  color: var(--red-dark);
}

.link-arrow .icon {
  transition: translate 0.2s var(--ease-out);
}

.link-arrow:hover .icon {
  translate: 3px 0;
}

.live-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: #22c55e;
  animation: live 2.4s var(--ease-out) infinite;
}

@keyframes live {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  }
  70%,
  100% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--red-tint);
  color: var(--red);
  font-size: 21px;
}

.icon-tile--white {
  background: var(--white);
  border: 1px solid var(--gray-200);
}

/* Navigation -------------------------------------------------------- */

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  /* No backdrop-filter here: it would trap the fixed phone menu inside the bar */
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  transition: background-color 0.3s, border-color 0.3s;
}

/* Over the hero the bar is clear; it turns solid once you scroll. */
.js .site-nav:not(.is-solid) {
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
  border-color: transparent;
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
}

.brand img {
  width: 26px;
  height: auto;
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-name {
  color: var(--red);
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-tag {
  color: var(--gray-500);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: block;
  padding-block: 6px;
  color: var(--gray-600);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 1px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease-out);
}

.nav-links a:hover,
.nav-links a[aria-current="true"] {
  color: var(--gray-900);
}

.nav-links a[aria-current="true"]::after {
  transform: scaleX(1);
}

.nav-menu-foot {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-600);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav-status .icon {
  color: var(--red);
  font-size: 15px;
}

.js .site-nav:not(.is-solid) .nav-status .icon {
  color: var(--red-light);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--gray-600);
  font-size: 17px;
  transition: background-color 0.2s, color 0.2s;
}

.nav-icon:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.nav-call {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.875rem;
  white-space: nowrap;
}

.nav-call-short {
  display: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--gray-800);
  font-size: 22px;
  cursor: pointer;
}

.nav-toggle .icon-close,
.nav-open .nav-toggle .icon-menu {
  display: none;
}

.nav-open .nav-toggle .icon-close {
  display: block;
}

/* Clear state over the hero */
.js .site-nav:not(.is-solid) .brand-tag,
.js .site-nav:not(.is-solid) .nav-status,
.js .site-nav:not(.is-solid) .nav-links a {
  color: rgba(255, 255, 255, 0.82);
}

.js .site-nav:not(.is-solid) .nav-links a:hover,
.js .site-nav:not(.is-solid) .nav-links a[aria-current="true"] {
  color: var(--white);
}

.js .site-nav:not(.is-solid) .nav-icon,
.js .site-nav:not(.is-solid) .nav-toggle {
  color: var(--white);
}

.js .site-nav:not(.is-solid) .nav-icon:hover {
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 1180px) {
  .nav-status {
    display: none;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-icon {
    display: none;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 12px var(--gutter) calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    opacity: 0;
    visibility: hidden;
    translate: 0 -8px;
    transition: opacity 0.2s var(--ease-out), translate 0.2s var(--ease-out), visibility 0.2s;
  }

  .nav-open .nav-menu {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
  }

  .nav-links {
    display: block;
  }

  .nav-links a,
  .js .site-nav:not(.is-solid) .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-900);
    font-size: 1.125rem;
    font-weight: 600;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-menu-foot {
    display: grid;
    gap: 12px;
    margin-top: auto;
  }

  .nav-menu-foot .btn {
    min-height: 50px;
  }

  .nav-menu-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--gray-600);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
  }
}

@media (max-width: 420px) {
  .brand-tag {
    display: none;
  }

  .nav-call-full {
    display: none;
  }

  .nav-call-short {
    display: inline;
  }
}

/* Hero -------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + clamp(24px, 5vh, 64px)) 0 clamp(72px, 12vh, 120px);
  overflow: hidden;
  background: #05070c;
  color: var(--white);
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}

/* Darken behind the copy, let the road scene show at the bottom */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 42%, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 75%),
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.1) 55%, rgba(0, 0, 0, 0.05) 75%, rgba(0, 0, 0, 0.45));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 46rem;
}

.hero-logo {
  width: min(100%, 240px);
  height: auto;
  margin-bottom: clamp(14px, 2.5vh, 24px);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
}

.hero-title {
  color: var(--white);
  /* Two lines at every width: each phrase stays whole */
  font-size: clamp(1.25rem, 6.2vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.hero-title span {
  display: block;
  white-space: nowrap;
}

.hero-lede {
  margin: 14px 0 28px;
  max-width: 32rem;
  color: var(--gray-200);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.55;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero-call {
  min-height: 56px;
  padding: 8px 24px 8px 20px;
  gap: 12px;
  box-shadow: 0 0 18px rgba(220, 38, 38, 0.45), 0 8px 20px -8px rgba(220, 38, 38, 0.7);
}

.hero-call:hover {
  box-shadow: 0 0 26px rgba(220, 38, 38, 0.6), 0 10px 24px -8px rgba(220, 38, 38, 0.8);
}

.hero-call .icon {
  font-size: 1.3rem;
}

.hero-call-text {
  display: grid;
  text-align: left;
  line-height: 1.15;
}

.hero-call-text small {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero-call-text strong {
  font-size: 1.25rem;
  font-weight: 800;
  white-space: nowrap;
}

.btn-glass {
  min-height: 56px;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-weight: 500;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--gray-200);
  font-size: 0.8125rem;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.hero-trust li,
.hero-trust a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-trust .icon {
  color: var(--red-light);
}

.hero-trust a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 4px;
}

.hero-trust a:hover {
  text-decoration-color: var(--white);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(14px, 2.5vh, 24px);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  translate: -50% 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  transition: background-color 0.2s;
}

.scroll-cue span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.scroll-cue .icon {
  animation: bob 1.8s ease-in-out infinite;
}

.scroll-cue:hover {
  background: rgba(255, 255, 255, 0.12);
}

@keyframes bob {
  0%,
  100% {
    translate: 0 -1px;
  }
  50% {
    translate: 0 3px;
  }
}

@media (max-width: 560px) {
  .hero-logo {
    width: 168px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .btn-glass {
    min-height: 48px;
  }
}

@media (max-height: 640px) {
  .scroll-cue {
    display: none;
  }
}

/* Entrance: content is visible without JS; one staggered fade on load. */
.js .hero [data-enter] {
  opacity: 0;
  translate: 0 12px;
  transition: opacity 0.8s var(--ease-out), translate 0.8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.js .hero.is-in [data-enter] {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .js .hero [data-enter] {
    opacity: 1;
    translate: none;
    transition: none;
  }

  .live-dot,
  .scroll-cue .icon {
    animation: none;
  }
}

/* Need immediate help ----------------------------------------------- */

.help-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.help-intro p {
  margin: 16px 0 24px;
  max-width: 26rem;
  color: var(--gray-600);
}

.help-intro .help-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--gray-500);
  font-size: 0.8125rem;
}

.help-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--gray-200);
}

.help-item {
  display: flex;
  gap: 18px;
  padding-block: 24px;
  border-bottom: 1px solid var(--gray-200);
}

.help-copy p {
  margin: 4px 0 10px;
  color: var(--gray-600);
  font-size: 0.9375rem;
}

@media (max-width: 860px) {
  .help-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Why choose -------------------------------------------------------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.why-item {
  display: flex;
  gap: 14px;
}

.why-item + .why-item {
  padding-left: 24px;
  border-left: 1px solid var(--gray-200);
}

.why-item h3 {
  font-size: 0.9375rem;
}

.why-item p {
  margin: 4px 0 0;
  color: var(--gray-600);
  font-size: 0.875rem;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .why-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .why-item + .why-item {
    padding-left: 0;
    padding-top: 20px;
    border-left: 0;
    border-top: 1px solid var(--gray-200);
  }
}

/* Services ---------------------------------------------------------- */

.services-grid {
  --cols: 4;
  --gap: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.services-grid > li {
  flex: 0 1 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.25s var(--ease-out);
}

.service-card:hover {
  border-color: var(--red-tint-2);
  box-shadow: var(--shadow-sm);
}

.service-art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 136px;
  padding: 16px;
  border-bottom: 1px solid var(--gray-100);
}

.service-art img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 104px;
  object-fit: contain;
}

.service-body {
  padding: 16px 18px 20px;
}

.service-body h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.service-body p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.875rem;
  line-height: 1.55;
}

@media (max-width: 1060px) {
  .services-grid {
    --cols: 3;
  }
}

@media (max-width: 760px) {
  .services-grid {
    --cols: 2;
    --gap: 14px;
  }
}

@media (max-width: 520px) {
  .services-grid {
    --cols: 1;
    --gap: 10px;
  }

  .service-art {
    height: 112px;
    padding: 12px;
  }

  .service-art img {
    max-height: 88px;
  }

  .service-body {
    padding: 14px 16px 16px;
  }
}

/* Red call band ----------------------------------------------------- */

.band {
  background: var(--red);
  color: var(--white);
}

.band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.band h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
}

.band p {
  margin: 6px 0 0;
  color: var(--red-tint-2);
}

/* About ------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.about-copy p {
  margin: 0 0 16px;
  color: var(--gray-600);
}

.aa-box {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
}

.aa-box img {
  flex: none;
  width: 48px;
  height: auto;
}

.about-copy .aa-box p {
  margin: 0;
  font-size: 0.9375rem;
}

.about-copy .about-tagline {
  margin: 0;
  color: var(--gray-800);
  font-weight: 500;
}

.about-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.about-photo {
  width: 100%;
  height: auto;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.cm-badge {
  display: block;
  transition: opacity 0.2s;
}

.cm-badge:hover {
  opacity: 0.85;
}

.cm-badge img {
  width: 140px;
  height: auto;
  border-radius: 8px;
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-photo {
    aspect-ratio: 4 / 3;
    max-width: none;
    object-position: 50% 30%;
  }
}

/* Testimonials ------------------------------------------------------ */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--white);
}

.review {
  height: 100%;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.review blockquote {
  flex: 1;
  margin: 0 0 18px;
  color: var(--gray-700);
  font-size: 0.9375rem;
  font-style: italic;
  line-height: 1.6;
}

.stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
  color: var(--star);
  font-size: 15px;
}

.stars .icon {
  fill: currentColor;
  stroke-width: 1;
}

.review figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-900);
  font-size: 0.9375rem;
  font-weight: 600;
}

.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red-tint-2);
  color: var(--red-dark);
  font-size: 0.8125rem;
  font-weight: 700;
}

.review cite {
  font-style: normal;
}

.review-place {
  display: block;
  color: var(--gray-500);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Outside 30 miles -------------------------------------------------- */

.beyond-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: 16px;
  background: var(--gray-900);
  color: var(--white);
}

.beyond-copy {
  padding: clamp(28px, 4.5vw, 56px);
}

.beyond-copy h2 {
  color: var(--white);
}

.beyond-copy > p {
  margin: 12px 0 24px;
  max-width: 30rem;
  color: var(--gray-300);
}

.beyond-list {
  display: grid;
  gap: 0;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.beyond-list li {
  display: flex;
  gap: 14px;
  padding-block: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.beyond-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.16);
  color: var(--red-light);
  font-size: 18px;
}

.beyond-list h3 {
  color: var(--white);
  font-size: 0.9375rem;
}

.beyond-list p {
  margin: 2px 0 0;
  color: var(--gray-400);
  font-size: 0.875rem;
  line-height: 1.55;
}

.beyond-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.beyond-actions .link-arrow {
  color: var(--red-light);
}

.beyond-actions .link-arrow:hover {
  color: #fca5a5;
}

.beyond-media {
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 40px);
  background: radial-gradient(circle at 50% 50%, rgba(220, 38, 38, 0.08), transparent 60%);
}

.cov-map {
  width: 100%;
  max-width: 520px;
  height: auto;
  overflow: visible;
  font-family: var(--font);
}

.cov-guide {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-dasharray: 2 6;
}

.cov-fill {
  fill: rgba(220, 38, 38, 0.12);
  transition: opacity 1.2s var(--ease-out) 0.4s;
}

.cov-ring {
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.6s var(--ease-out);
}

.cov-ring-label {
  fill: var(--red-light);
  font-size: 14px;
  font-weight: 600;
}

.cov-town circle {
  fill: var(--white);
}

.cov-town text {
  fill: var(--gray-200);
  font-size: 13px;
  font-weight: 500;
}

.cov-town.is-out circle {
  fill: var(--gray-500);
}

.cov-town.is-out text {
  fill: var(--gray-500);
  font-size: 12px;
  font-weight: 400;
}

.cov-town {
  transition: opacity 0.6s var(--ease-out) var(--d, 0ms);
}

.cov-base {
  fill: var(--red);
}

.cov-base-label {
  fill: var(--white);
  font-size: 15px;
  font-weight: 700;
}

.cov-pulse {
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: cov-pulse 2.4s var(--ease-out) infinite;
}

@keyframes cov-pulse {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(4);
  }
}

/* Draw once when the map scrolls into view (JS adds .is-in) */
.js .beyond-media:not(.is-in) .cov-ring {
  stroke-dashoffset: 1;
}

.js .beyond-media:not(.is-in) .cov-fill,
.js .beyond-media:not(.is-in) .cov-ring-label,
.js .beyond-media:not(.is-in) .cov-town {
  opacity: 0;
}

.cov-ring-label {
  transition: opacity 0.6s var(--ease-out) 1.2s;
}

@media (prefers-reduced-motion: reduce) {
  .cov-ring,
  .cov-fill,
  .cov-town,
  .cov-ring-label {
    transition: none;
  }

  .cov-pulse {
    animation: none;
    opacity: 0;
  }
}

@media (max-width: 860px) {
  .beyond-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .beyond-media {
    order: -1;
    padding-bottom: 0;
  }
}

/* FAQ --------------------------------------------------------------- */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.section-head--left {
  margin: 0;
  text-align: left;
}

.section-head--left p a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.faq-list {
  border-top: 1px solid var(--gray-200);
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
  color: var(--gray-900);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .icon {
  color: var(--gray-500);
  transition: transform 0.25s var(--ease-out);
}

.faq-item[open] summary .icon {
  transform: rotate(180deg);
}

.faq-item summary:hover {
  color: var(--red);
}

.faq-item p {
  margin: -4px 0 18px;
  max-width: 40rem;
  color: var(--gray-600);
  font-size: 0.9375rem;
}

@media (max-width: 860px) {
  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Contact ----------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "map info"
    "map form";
  grid-template-rows: auto 1fr;
  gap: 20px clamp(28px, 4vw, 48px);
  align-items: start;
}

.contact-map {
  grid-area: map;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: stretch;
}

.contact-info {
  grid-area: info;
}

.contact-info > p {
  margin: 16px 0 20px;
  color: var(--gray-600);
}

.contact-grid > .form-card {
  grid-area: form;
}

.map-panel {
  position: relative;
  flex: 1;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--gray-200);
  isolation: isolate;
}

#service-map {
  position: absolute;
  inset: 0;
}

#service-map .leaflet-tile-pane {
  filter: grayscale(1) brightness(1.04) contrast(0.92);
}

.map-legend {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-xs);
  color: var(--gray-800);
  font-size: 0.75rem;
  font-weight: 500;
  pointer-events: none;
}

.map-legend i {
  width: 10px;
  height: 10px;
  border: 2px solid var(--red);
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.2);
}

.base-pin {
  width: 16px;
  height: 16px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.you-pin {
  width: 14px;
  height: 14px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--gray-900);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.checker-card,
.form-card {
  padding: clamp(18px, 2.5vw, 24px);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
}

.checker-card h3,
.form-card h3 {
  margin-bottom: 4px;
}

.checker-card > p {
  margin: 0 0 14px;
  color: var(--gray-600);
  font-size: 0.875rem;
}

.form-card h3 {
  margin-bottom: 16px;
}

.checker label,
.form-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--gray-700);
  font-size: 0.8125rem;
  font-weight: 600;
}

.checker-row {
  display: flex;
  gap: 8px;
}

.field {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-900);
  font: inherit;
  font-size: 0.9375rem;
  caret-color: var(--red);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field::placeholder {
  color: var(--gray-500);
}

.field:hover {
  border-color: var(--gray-400);
}

.field:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.field:user-invalid {
  border-color: var(--red);
}

.checker-row .btn {
  flex: none;
}

.btn-locate {
  margin-top: 8px;
  min-height: 36px;
  padding: 6px 12px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 0.8125rem;
}

.btn-locate:hover {
  background: var(--gray-200);
}

.result {
  margin-top: 14px;
}

.result:empty {
  display: none;
}

.result-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
}

.result-in {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.result-out {
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.result-card p {
  margin: 0;
}

.result-title {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--gray-900);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}

.result-title .icon {
  margin-top: 0.15em;
}

.result-in .result-title .icon {
  color: var(--ok);
}

.result-out .result-title .icon {
  color: #b45309;
}

.result-card .body {
  color: var(--gray-700);
  font-size: 0.875rem;
}

.result-card .btn {
  justify-self: start;
  min-height: 40px;
  font-size: 0.875rem;
}

.result-note {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.875rem;
}

.result-note a {
  color: var(--red);
  font-weight: 600;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.info-item > .icon {
  margin-top: 2px;
  color: var(--red);
  font-size: 20px;
}

.info-item h3 {
  font-size: 0.9375rem;
}

.info-item p,
.info-item address {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.9375rem;
  font-style: normal;
}

.info-item a {
  color: var(--gray-900);
  font-weight: 600;
  text-decoration: none;
}

.info-item a:hover {
  color: var(--red);
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

textarea.field {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.form-hint {
  margin: 0;
  color: var(--gray-500);
  font-size: 0.8125rem;
}

.form-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.form-status .icon {
  margin-top: 0.15em;
  font-size: 1.15em;
}

.form-status p {
  margin: 0;
}

.form-status strong {
  display: block;
}

.form-status.is-ok {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #14532d;
}

.form-status.is-fail {
  background: var(--red-tint);
  border: 1px solid var(--red-tint-2);
  color: #7f1d1d;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "info"
      "map"
      "form";
    grid-template-rows: auto;
  }

  .map-panel {
    flex: none;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 520px) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .checker-row {
    flex-direction: column;
  }

  .form-foot .btn {
    width: 100%;
  }

  .map-panel {
    aspect-ratio: 1 / 1;
  }
}

/* Footer ------------------------------------------------------------ */

.site-footer {
  padding-top: clamp(44px, 6vw, 72px);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--gray-900);
  color: var(--gray-400);
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 32px clamp(24px, 4vw, 56px);
  padding-bottom: clamp(32px, 4vw, 48px);
}

.footer-brand .brand-name {
  color: var(--white);
}

.footer-brand .brand-tag {
  color: var(--gray-400);
}

.footer-brand p {
  margin: 14px 0 20px;
  max-width: 22rem;
  line-height: 1.6;
}

.footer-brand .btn {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.875rem;
}

.footer-col h2 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
}

.footer-col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
}

.footer-bottom p {
  margin: 0;
}

.apexia {
  display: block;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.apexia:hover {
  opacity: 1;
}

.apexia img {
  width: auto;
  height: 24px;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 340px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Mobile call bar --------------------------------------------------- */

.call-bar {
  display: none;
}

@media (max-width: 960px) {
  .call-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 40;
    display: flex;
    translate: 0 calc(100% + 24px);
    transition: translate 0.3s var(--ease-out);
  }

  .call-bar.is-shown {
    translate: 0 0;
  }

  .call-bar .btn {
    width: 100%;
    min-height: 50px;
    border-radius: 999px;
    padding-inline: 16px;
    font-size: 0.9375rem;
    white-space: nowrap;
    box-shadow: 0 8px 24px -6px rgba(17, 24, 39, 0.4), 0 4px 14px -6px rgba(220, 38, 38, 0.6);
  }

  .site-footer {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .call-bar {
    transition: none;
  }
}
