/* ============================================================
   DriveSelect — Design System
   css/main.css
   v1.0 | June 2026
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;1,9..40,400&display=swap');

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  /* Brand */
  --brand: #C8102E;
  --brand-dark: #8B0A1F;
  --brand-mid: #E8304A;
  --brand-light: #FFF0F2;
  --brand-faint: #FFF7F8;

  /* Ink scale */
  --ink-900: #0F0F0F;
  --ink-700: #2C2C2C;
  --ink-500: #5A5A5A;
  --ink-300: #999999;
  --ink-100: #E8E8E8;

  /* Surfaces */
  --surface-0: #FFFFFF;
  --surface-1: #F8F8F6;
  --surface-2: #F2F1EE;

  /* Semantic */
  --success: #1D9E75;
  --success-bg: #EAF3DE;
  --warning: #BA7517;
  --warning-bg: #FAEEDA;
  --danger: #A32D2D;
  --danger-bg: #FCEBEB;

  /* Typography */
  --ff-display: 'Syne', sans-serif;
  --ff-body: 'DM Sans', sans-serif;

  /* Type scale */
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-md: 17px;
  --text-lg: 22px;
  --text-xl: 32px;
  --text-2xl: 42px;
  --text-3xl: 58px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Layout */
  --max-width: 1200px;
  --content-width: 800px;
  --gutter: clamp(16px, 4vw, 40px);

  /* Radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 18px;
  --r-full: 999px;

  /* Borders */
  --border-light: 0.5px solid rgba(0, 0, 0, 0.08);
  --border-mid: 0.5px solid rgba(0, 0, 0, 0.14);
  --border-strong: 1px solid rgba(0, 0, 0, 0.20);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.10), 0 4px 8px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 350ms;
}

/* ── Dark mode ────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --ink-900: #F2F2F0;
    --ink-700: #D0D0CE;
    --ink-500: #8A8A88;
    --ink-300: #555553;
    --ink-100: #2A2A28;
    --surface-0: #141413;
    --surface-1: #1C1C1A;
    --surface-2: #222220;
    --border-light: 0.5px solid rgba(255, 255, 255, 0.07);
    --border-mid: 0.5px solid rgba(255, 255, 255, 0.12);
    --border-strong: 1px solid rgba(255, 255, 255, 0.18);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
    --brand-faint: rgba(200, 16, 46, 0.08);
    --brand-light: rgba(200, 16, 46, 0.12);
  }
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--surface-1);
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: var(--ff-body);
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

/*
 * CRITICAL — protect the HTML `hidden` attribute.
 * Any CSS class that sets display (e.g. display:flex on .loading-full,
 * .newsletter-success) will silently override `hidden` because class
 * specificity beats the browser's built-in [hidden]{display:none}.
 * This rule wins every time so JS toggling .hidden works correctly.
 */
[hidden] {
  display: none !important;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: var(--space-4);
  background: var(--brand);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  z-index: 1000;
  transition: top var(--dur-base);
}

.skip-link:focus {
  top: var(--space-4);
}

/* ── Layout helpers ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--content-width);
}

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-0);
  border-bottom: var(--border-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 62px;
  gap: var(--space-8);
}

.nav-logo {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  flex-shrink: 0;
}

.nav-logo span {
  color: var(--brand);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-500);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--r-md);
  transition: color var(--dur-fast), background var(--dur-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--ink-900);
  background: var(--surface-2);
}

.nav-link.is-active {
  color: var(--ink-900);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
}

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  padding: var(--space-2);
  color: var(--ink-700);
  font-size: 22px;
}

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
}

.nav-drawer.is-open {
  display: flex;
  flex-direction: column;
}

.nav-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.nav-drawer-panel {
  position: relative;
  background: var(--surface-0);
  width: 280px;
  height: 100%;
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  overflow-y: auto;
}

.nav-drawer-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: none;
  border: none;
  font-size: 20px;
  color: var(--ink-500);
}

.nav-drawer-link {
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--ink-700);
  padding: var(--space-3) 0;
  border-bottom: var(--border-light);
  display: block;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 22px;
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  font-weight: 500;
  font-family: var(--ff-body);
  border: var(--border-mid);
  cursor: pointer;
  transition: all var(--dur-base) var(--ease);
  white-space: nowrap;
  min-height: 44px;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.btn--primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn--outline {
  background: transparent;
  color: var(--ink-700);
  border: var(--border-mid);
}

.btn--outline:hover {
  background: var(--surface-2);
}

.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-500);
}

.btn--ghost:hover {
  background: var(--surface-2);
  color: var(--ink-900);
}

.btn--sm {
  padding: 7px 14px;
  font-size: var(--text-xs);
  min-height: 36px;
}

.btn--lg {
  padding: 14px 28px;
  font-size: var(--text-base);
  min-height: 52px;
}

.btn--loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn--loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ── Form elements ────────────────────────────────────────── */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--ink-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: var(--text-sm);
  font-family: var(--ff-body);
  color: var(--ink-900);
  background: var(--surface-0);
  border: var(--border-mid);
  border-radius: var(--r-md);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--surface-0);
  border: var(--border-light);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.card--hover {
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
  cursor: pointer;
}

.card--hover:hover {
  border-color: rgba(200, 16, 46, 0.35);
  box-shadow: var(--shadow-md);
}

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 500;
}

.badge--green {
  background: var(--success-bg);
  color: var(--success);
}

.badge--red {
  background: var(--danger-bg);
  color: var(--danger);
}

.badge--amber {
  background: var(--warning-bg);
  color: var(--warning);
}

.badge--brand {
  background: #fff;
  color: var(--brand-dark);
  width: max-content;
}

.badge--neutral {
  background: var(--surface-2);
  color: var(--ink-500);
}

/* ── Section structure ────────────────────────────────────── */
.section {
  padding-block: var(--space-16);
}

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

.section--lg {
  padding-block: var(--space-20);
}

.section--alt {
  background: var(--surface-0);
}

.section-eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #05ff9e;
  margin-bottom: var(--space-3);
  background: #063a2b;
  width: fit-content;
  border-radius: 10px;
  padding: 4px 12px;
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(var(--text-xl), 4vw, var(--text-2xl));
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  line-height: 1.1;
  margin-bottom: var(--space-5);
}

.section-body {
  font-size: var(--text-base);
  color: var(--ink-500);
  line-height: 1.7;
  max-width: 52ch;
  margin-bottom: var(--space-8);
}

/* ── Toast notification ───────────────────────────────────── */
.toast {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  background: var(--ink-900);
  color: var(--surface-0);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--r-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-base), transform var(--dur-base) var(--ease);
  max-width: 320px;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  /* background: var(--ink-900); */
  color: rgba(255, 255, 255, 0.5);
  padding-top: var(--space-16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: var(--space-4);
}

.footer-logo span {
  color: var(--brand-mid);
}

.footer-desc {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.45);
  max-width: 240px;
}

.footer-col-title {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--dur-fast);
}

.footer-link:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-5);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom svg {
  width: 11px;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp var(--dur-slow) var(--ease) forwards;
}

/* Stagger children */
.stagger>* {
  opacity: 0;
  animation: fadeUp var(--dur-slow) var(--ease) forwards;
}

.stagger>*:nth-child(1) {
  animation-delay: 0ms;
}

.stagger>*:nth-child(2) {
  animation-delay: 60ms;
}

.stagger>*:nth-child(3) {
  animation-delay: 120ms;
}

.stagger>*:nth-child(4) {
  animation-delay: 180ms;
}

.stagger>*:nth-child(5) {
  animation-delay: 240ms;
}

.stagger>*:nth-child(6) {
  animation-delay: 300ms;
}

.stagger>*:nth-child(7) {
  animation-delay: 360ms;
}

.stagger>*:nth-child(8) {
  animation-delay: 420ms;
}

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

.text-muted {
  color: var(--ink-500);
}

.text-faint {
  color: var(--ink-300);
}

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

.text-sm {
  font-size: var(--text-sm);
}

.text-xs {
  font-size: var(--text-xs);
}

.font-display {
  font-family: var(--ff-display);
}

.font-bold {
  font-weight: 700;
}

.font-medium {
  font-weight: 500;
}

.d-flex {
  display: flex;
}

.align-center {
  align-items: center;
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.mt-auto {
  margin-top: auto;
}

.divider {
  height: 0.5px;
  background: var(--ink-100);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

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

  .nav-hamburger {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }

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

  .toast {
    left: var(--space-4);
    right: var(--space-4);
  }
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    /* animation-duration: 0.01ms !important; */
    /* transition-duration: 0.01ms !important; */
  }
}

.drive-wa-float {
  position: fixed;
  right: 18px;
  left: auto;
  bottom: 18px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  overflow: visible;
}

.drive-wa-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.drive-wa-icon {
  width: 28px;
  height: 28px;
  display: block;
  position: relative;
  z-index: 2;
}

.drive-wa-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.drive-wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.38);
  animation: driveWaPulse 1.8s infinite;
  z-index: 1;
}

@keyframes driveWaPulse {
  0% {
    transform: scale(1);
    opacity: 0.75;
  }

  70% {
    transform: scale(1.75);
    opacity: 0;
  }

  100% {
    transform: scale(1.75);
    opacity: 0;
  }
}

.drive-wa-tooltip {
  position: absolute;
  right: 72px;
  left: auto;
  bottom: 12px;
  background: #0f172a;
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  padding: 9px 12px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.drive-wa-tooltip::before {
  content: "";
  position: absolute;
  right: -5px;
  left: auto;
  top: 50%;
  width: 10px;
  height: 10px;
  background: #0f172a;
  transform: translateY(-50%) rotate(45deg);
}

.drive-wa-float:hover .drive-wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.drive-wa-hidden {
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
}

.legal-page {
  padding: 48px 24px;
}

.legal-page-inner {
  max-width: 900px;
  margin: 0 auto;
}

.legal-page-title {
  font-size: 32px;
  margin: 0 0 28px;
  color: var(--ink-900);
}

.legal-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--ink-200);
  padding-bottom: 12px;
}

.legal-tab {
  padding: 10px 14px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-700);
}

.legal-tab:hover {
  background: var(--ink-100);
}

.legal-tab.is-active {
  background: var(--ink-900);
  color: var(--surface-0);
  border-color: var(--ink-900);
}

.legal-content {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  padding: 24px;
}

.legal-article {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-800);
}

.legal-article h2 {
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--ink-900);
}

.legal-article h3 {
  font-size: 18px;
  margin: 16px 0 8px;
  color: var(--ink-900);
}

.legal-article p {
  margin: 0 0 12px;
}

.legal-article ul,
.legal-article ol {
  margin: 0 0 12px;
  padding-left: 18px;
}

.testimonials-page {
  padding: 48px 24px;
}

.testimonials-page-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.testimonials-page-title {
  font-size: 32px;
  margin: 0 0 12px;
  color: var(--ink-900);
}

.testimonials-page-text {
  font-size: 16px;
  margin: 0 0 32px;
  color: var(--ink-600);
}

.testimonial-carousel {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.testimonial-track {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--ink-200);
}

.testimonial-item {
  display: none;
  padding: 28px 24px;
  text-align: center;
}

.testimonial-item.is-active {
  display: block;
}

.testimonial-quote {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-800);
  margin: 0 0 16px;
}

.testimonial-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
  margin: 0 6px 2px;
}

.testimonial-role {
  font-size: 13px;
  color: var(--ink-600);
  margin: 0;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.testimonial-btn {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid var(--ink-300);
  background: var(--white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--ink-700);
}

.testimonial-btn:hover {
  background: var(--ink-100);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--ink-300);
  background: var(--white);
  cursor: pointer;
}

.testimonial-dot.is-active {
  background: var(--ink-900);
  border-color: var(--ink-900);
}

.social-icons {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #333;
  transition: all 0.3s ease;
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-icon:hover {
  transform: translateY(-3px);
}

/* Individual brand colors on hover */
.social-icon.instagram:hover {
  background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
  color: #fff;
}

.social-icon.x:hover {
  background: #000000;
  color: #fff;
}

.social-icon.facebook:hover {
  background: #1877F2;
  color: #fff;
}

.social-icon.whatsapp:hover {
  background: #25D366;
  color: #fff;
}

.cta-grid {
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr;
  grid-auto-columns: 1fr;
  align-items: center;
  display: grid;
}

#w-node-1,
#w-node-2 {
  grid-area: span 1 / span 1 / span 1 / span 1;
}

.margin-medium-2 {
  margin: 1.1rem 0;
}

.photo-center {
  background-image: url("../assets/logo.png");
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: contain;
  /* border-radius: 100px; */
  /* min-width: 400px; */
  min-height: 300px;
  /* margin-left: auto; */
  /* margin-right: auto; */
}

.cta-bg-1 {
  background-color: var(--danger);
}

.cta-grid {
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr;
  grid-auto-columns: 1fr;
  align-items: center;
  display: grid;
}

.cta-block {
  background-color: #f8f5f2;
  text-align: center;
  border-radius: 30px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 54px;
  display: flex;
}

.flex-tag {
  grid-column-gap: 10px;
  justify-content: left;
  align-items: start;
  margin-bottom: 25px;
  display: flex;
}

.flex-tag.left {
  justify-content: flex-start;
}

.bullet-tag {
  background-color: #3d5f38;
  border-radius: 100px;
  width: 10px;
  height: 10px;
}

.bullet-tag.color {
  background-color: #86c34c;
}

@media screen and (max-width: 479px) {
  .bullet-tag {
    flex: none;
  }
}

.title-tag {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.1;
}

.title-tag.color {
  color: var(--surface-0);
}

.color-text {
  opacity: 0.5;
}

.subhead-main {
  color: #375434;
  letter-spacing: -1px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.4;
}

.subhead-main.for-title {
  margin-bottom: 0;
  font-size: 31px;
}

.subhead-main.for-title.white {
  color: white;
}

.subhead-main.smaller {
  font-size: 22px;
}

.margin-50px {
  margin-top: 50px;
}

.button-flex {
  grid-column-gap: 25px;
  grid-row-gap: 25px;
  align-items: center;
  display: flex;
}

.button-flex.center {
  justify-content: center;
}

.button-underline {
  color: #375434;
  text-align: left;
  margin-top: 3px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.button-underline.white {
  color: #fff;
}

.line-animation {
  background-color: #e0e0e0;
  width: 100%;
  height: 2px;
  margin-top: 5px;
  overflow: hidden;
}

.underline {
  background-color: #543434;
  width: 100%;
  height: 100%;
}

.w-inline-block {
  max-width: 100%;
  display: inline-block;
}

.phone-flex {
  grid-column-gap: 11px;
  grid-row-gap: 11px;
  align-items: center;
  text-decoration: none;
  transition: all 0.2s;
  display: flex;
}

.phone-flex:hover {
  filter: contrast(83%);
}

.phone-circle {
  background-color: var(--surface-1);
  border-radius: 100%;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  display: flex;
}

.phone-circle i {
  color: var(--ink-700);
}

.top-text {
  margin-bottom: 0;
}

.top-text.make-whiter {
  color: rgba(255, 255, 255, 0.7);
}

.section3 {
  padding: 140px 5%;
  position: relative;
}

.section3.ctaa {
  align-items: center;
  min-height: auto;
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
}

@media screen and (max-width: 991px) {
  .section3 {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .photo-center {
    min-width: 300px;
    /* min-height: 400px; */
  }
}

@media screen and (max-width: 767px) {
  .section3.ctaa {
    background-image: none;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .cta-grid {
    grid-column-gap: 40px;
    grid-row-gap: 40px;
    flex-direction: column-reverse;
    display: flex;
  }
}

@media screen and (max-width: 479px) {
  .section3.ctaa {
    padding-top: 50px;
    padding-bottom: 50px;
  }
}

/* Hero ~550px high */
.ds-hero {
  height: 545px;
  padding: 24px;
  display: flex;
  align-items: center;
  background-image: linear-gradient(3deg, rgb(28, 8, 8, .90) 0%, rgb(51, 15, 15, .65) 55%, rgba(74, 19, 19, 0) 100%),
  url(../assets/ev.png);
  color: #fff;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom;
  background-attachment: fixed;
}

.ds-hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.ds-hero-copy h1 {
  /* font-size: clamp(2rem, 4vw, 4rem); */
  /* line-height: 1.02; */
  /* margin: 8px 0 14px; */
}

.hero-text {
  max-width: 600px;
  color: rgba(255, 255, 255, .82);
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 22px 0 16px;
  flex-wrap: wrap;
}

.hero-points {
  display: flex;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: rgba(255, 255, 255, .85);
  flex-wrap: wrap;
}

.ds-hero-info {
  display: grid;
  gap: 12px;
}

.info-drop {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: 14px 16px;
}

.info-drop summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.info-drop summary::-webkit-details-marker {
  display: none;
}

.info-drop-body {
  margin-top: 10px;
  color: rgba(255, 255, 255, .8);
  line-height: 1.55;
  font-size: .95rem;
}

@media (max-width: 900px) {
  .ds-hero {
    background-attachment: scroll;
    /* height: auto;x */
    /* min-height: 450px; */
    /* padding: 28px 18px; */
  }

  .ds-hero-inner {
    grid-template-columns: 1fr;
  }

  .ds-hero-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .ds-hero-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .ds-hero-info {
    display: none;
  }
}

.btn-primary {
  margin-top: 16px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: #2563eb;
  color: #f9fafb;
  font-weight: 600;
  cursor: pointer;
}

/* Filter pills */
.ds-filter-section {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  backdrop-filter: blur(8px);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  border-radius: 999px;
  padding: 8px 14px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(42, 15, 15, 0.85);
  color: #e5e7eb;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}

.pill.is-active {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #f9fafb;
  transform: translateY(-1px);
}

/* 5×N inventory grid */
.ds-inventory {
  background: var(--surface-0);
  padding: 24px;
}

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

/* Responsive collapse */
@media (max-width: 1200px) {
  .car-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

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

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

.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.pill-row::-webkit-scrollbar {
  display: none;
}

.pill {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .pill-row {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

