/* =================================================================
   Radescar LLC | Auto Repair and Custom Car Services, Naples FL
   style.css
   Dark automotive theme. Mobile first. Accessible.
   ================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand colors pulled from the gear logo */
  --red: #e21c2a;
  --red-dark: #b3141f;
  --red-soft: rgba(226, 28, 42, 0.12);
  --steel: #9aa0a8;

  /* Surfaces */
  --bg: #0b0d10;
  --bg-2: #11151a;
  --surface: #161b22;
  --surface-2: #1d242e;
  --border: #283039;
  --border-soft: rgba(255, 255, 255, 0.07);

  /* Text */
  --text: #f3f5f7;
  --text-muted: #aab2bd;
  --text-dim: #7c848f;

  /* Effects */
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  /* Layout */
  --max: 1180px;
  --header-h: 76px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.18s;
  --t-med: 0.35s;

  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

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

ul {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 84px 0;
  position: relative;
}

.section--tight {
  padding: 64px 0;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.85rem, 4.6vw, 2.85rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.text-red {
  color: var(--red);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  min-height: 50px;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 24px rgba(226, 28, 42, 0.32);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(226, 28, 42, 0.42);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--steel);
  transform: translateY(-3px);
}

.btn-block {
  width: 100%;
}

.btn:active {
  transform: translateY(-1px);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(11, 13, 16, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--t-med) var(--ease),
    border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}

.site-header.scrolled {
  background: rgba(11, 13, 16, 0.95);
  border-bottom-color: var(--border-soft);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
}

.brand img {
  width: 46px;
  height: 46px;
  /* Rounded square (not a circle) so the round gear logo is never masked or
     clipped at its edges. object-fit: contain shows the whole logo. */
  border-radius: 12px;
  background: #fff;
  padding: 5px;
  object-fit: contain;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 3px 10px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 1.18rem;
  letter-spacing: 0.02em;
}

.brand-text span {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-family: var(--font-body);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 9px 14px;
  border-radius: 8px;
  transition: color var(--t-fast), background var(--t-fast);
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

.header-actions .btn {
  padding: 11px 18px;
  min-height: 44px;
  font-size: 0.92rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 70px);
  padding-bottom: 90px;
  overflow: hidden;
  background: radial-gradient(
      1100px 600px at 75% -10%,
      rgba(226, 28, 42, 0.16),
      transparent 60%
    ),
    radial-gradient(900px 500px at 0% 20%, rgba(154, 160, 168, 0.1), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero .pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--red-soft);
  border: 1px solid rgba(226, 28, 42, 0.3);
  color: #ff9ba2;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero .pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(226, 28, 42, 0.6);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(226, 28, 42, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(226, 28, 42, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(226, 28, 42, 0);
  }
}

.hero h1 {
  font-size: clamp(2.3rem, 6.4vw, 4rem);
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--red);
}

.hero-sub {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.hero-stats .stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: #fff;
  line-height: 1;
}

.hero-stats .stat span {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ---------- Trust badges ---------- */
.trust {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-2);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 34px 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-item .ico {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid rgba(226, 28, 42, 0.22);
}

.trust-item .ico svg {
  width: 24px;
  height: 24px;
}

.trust-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.98rem;
}

.trust-item span {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ---------- Services ---------- */
/* ---------- Carousel (services + gallery) ---------- */
.carousel {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 14px 2px 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
  border-radius: 8px;
}

/* Show 3 cards per view on desktop (track width minus two 22px gaps) */
.carousel-track > * {
  scroll-snap-align: start;
  flex: 0 0 calc((100% - 44px) / 3);
}

/* Arrow buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background var(--t-fast), color var(--t-fast),
    border-color var(--t-fast), opacity var(--t-fast),
    transform var(--t-fast) var(--ease);
}

.carousel-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.carousel-btn svg {
  width: 22px;
  height: 22px;
}

.carousel-btn.prev {
  left: -8px;
}

.carousel-btn.next {
  right: -8px;
}

.carousel-btn[disabled] {
  opacity: 0;
  pointer-events: none;
}

.carousel-hint {
  display: none;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 4px;
}

.service-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  overflow: hidden;
  transition: transform var(--t-med) var(--ease),
    border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(226, 28, 42, 0.4);
  box-shadow: var(--shadow);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card .ico {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--red-soft);
  color: var(--red);
  margin-bottom: 18px;
  transition: transform var(--t-med) var(--ease), background var(--t-med);
}

.service-card:hover .ico {
  transform: rotate(-6deg) scale(1.06);
}

.service-card .ico svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ---------- Gallery ---------- */
.gallery {
  background: var(--bg-2);
}

.ba-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.ba-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.ba-card:hover img {
  transform: scale(1.06);
}

.ba-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  transform: translateY(8px);
  opacity: 0.92;
  transition: transform var(--t-med) var(--ease), opacity var(--t-med);
}

.ba-card figcaption span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.ba-card:hover figcaption {
  transform: translateY(0);
  opacity: 1;
}

/* ---------- Why choose ---------- */
.why {
  position: relative;
}

.why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}

.why-copy h2 {
  font-size: clamp(1.85rem, 4.4vw, 2.7rem);
  margin-bottom: 18px;
}

.why-copy > p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.why-list {
  display: grid;
  gap: 18px;
}

.why-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.why-list .check {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  margin-top: 2px;
}

.why-list .check svg {
  width: 16px;
  height: 16px;
}

.why-list strong {
  font-family: var(--font-head);
  display: block;
  font-size: 1.02rem;
}

.why-list p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.why-visual {
  position: relative;
}

.why-visual img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.why-badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-head);
}

.why-badge strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.why-badge span {
  font-size: 0.82rem;
  opacity: 0.92;
}

/* ---------- Estimate form ---------- */
.estimate {
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
}

.estimate-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.estimate-aside h2 {
  font-size: clamp(1.85rem, 4.4vw, 2.6rem);
  margin-bottom: 16px;
}

.estimate-aside > p {
  color: var(--text-muted);
  margin-bottom: 26px;
}

.estimate-points {
  display: grid;
  gap: 16px;
}

.estimate-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.estimate-points .ico {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--red);
}

.estimate-points .ico svg {
  width: 19px;
  height: 19px;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field.col-2 {
  grid-column: 1 / -1;
}

.field label {
  font-family: var(--font-head);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text);
}

.field label .req {
  color: var(--red);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 13px 14px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast),
    background var(--t-fast);
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-dim);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
  background: var(--bg-2);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa0a8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 40px;
}

/* File upload */
.file-field input[type="file"] {
  padding: 11px 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
}

.file-field input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--t-fast);
}

.file-field input[type="file"]::file-selector-button:hover {
  background: var(--border);
}

.field-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.recaptcha-wrap {
  margin-top: 4px;
}

.g-recaptcha {
  display: inline-block;
}

.form-foot {
  margin-top: 22px;
}

.form-foot .btn {
  font-size: 1.05rem;
  padding: 16px 26px;
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 14px;
}

.form-note a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* Form status messages */
.form-status {
  display: none;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px;
  border-radius: var(--radius-sm);
  margin-top: 18px;
  font-size: 0.94rem;
}

.form-status.show {
  display: flex;
  animation: fadeUp 0.4s var(--ease);
}

.form-status svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.form-status.success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #8ef0b0;
}

.form-status.error {
  background: rgba(226, 28, 42, 0.12);
  border: 1px solid rgba(226, 28, 42, 0.4);
  color: #ff9ba2;
}

/* Submit loading state */
.btn .spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn.loading .btn-label {
  opacity: 0.7;
}

.btn.loading .spinner {
  display: inline-block;
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.85;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Contact ---------- */
.contact {
  background: var(--bg-2);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  transition: transform var(--t-med) var(--ease),
    border-color var(--t-med) var(--ease);
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(226, 28, 42, 0.4);
}

.contact-card .ico {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--red-soft);
  color: var(--red);
}

.contact-card .ico svg {
  width: 26px;
  height: 26px;
}

.contact-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.contact-card a,
.contact-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  word-break: break-word;
}

.contact-card a:hover {
  color: var(--red);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
  padding: 60px 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.94rem;
  max-width: 360px;
  margin-bottom: 20px;
}

.social-row {
  display: flex;
  gap: 12px;
}

.social-row a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast),
    color var(--t-fast), border-color var(--t-fast);
}

.social-row a:hover {
  transform: translateY(-4px);
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.social-row a svg {
  width: 20px;
  height: 20px;
}

.footer-col h4 {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.footer-col ul {
  display: grid;
  gap: 11px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.94rem;
  transition: color var(--t-fast);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-bottom a:hover {
  color: var(--text);
}

/* ---------- Floating mobile contact button ---------- */
.floating-cta {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 120%);
  z-index: 90;
  display: none;
  align-items: center;
  gap: 9px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(226, 28, 42, 0.5);
  border: none;
  cursor: pointer;
  transition: transform var(--t-med) var(--ease), opacity var(--t-med);
  opacity: 0;
}

.floating-cta.visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.floating-cta.hidden-near-form {
  transform: translate(-50%, 200%);
  opacity: 0;
}

.floating-cta svg {
  width: 19px;
  height: 19px;
}

/* ---------- Legal pages ---------- */
.legal {
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 80px;
}

.legal-head {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.legal-head h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 12px;
}

.legal-head p {
  color: var(--text-dim);
}

.legal-body {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.legal-body h2 {
  font-size: 1.35rem;
  margin: 32px 0 12px;
  color: #fff;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p,
.legal-body li {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 0.98rem;
}

.legal-body ul {
  list-style: disc;
  padding-left: 22px;
}

.legal-body a {
  color: var(--red);
  text-decoration: underline;
}

/* ---------- Scroll reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal.d1 {
  transition-delay: 0.08s;
}
.reveal.d2 {
  transition-delay: 0.16s;
}
.reveal.d3 {
  transition-delay: 0.24s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .why-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .estimate-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-links,
  .header-actions {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(11, 13, 16, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 20px 22px;
    transform: translateY(-130%);
    /* Hidden when closed so the collapsed panel never paints over the logo.
       Visibility flips after the slide-up finishes, and instantly on open. */
    visibility: hidden;
    transition: transform var(--t-med) var(--ease),
      visibility 0s linear var(--t-med);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.open {
    transform: translateY(0);
    visibility: visible;
    transition: transform var(--t-med) var(--ease), visibility 0s;
  }
  .nav.open .nav-links,
  .nav.open .header-actions {
    display: flex;
  }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin-bottom: 14px;
  }
  .nav-links a {
    padding: 13px 14px;
    font-size: 1.05rem;
    border-radius: 10px;
  }
  .header-actions {
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    gap: 10px;
  }
  .header-actions .btn {
    width: 100%;
    min-height: 50px;
    font-size: 1rem;
  }
  /* Carousel: one card per view with a peek of the next, swipe to advance */
  .carousel-track > * {
    flex-basis: 86%;
  }
  .carousel-btn {
    display: none;
  }
  .carousel-hint {
    display: block;
  }
  .floating-cta {
    display: inline-flex;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 60px 0;
  }
  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px 14px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-card {
    padding: 24px 18px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-stats {
    gap: 24px;
  }
  .legal-body {
    padding: 26px 20px;
  }
  .brand-text span {
    display: none;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
