/* Ma voiture rouge — site styles (from design "Ma Voiture Rouge v2") */

:root {
  --red: #E01019;
  --red-dark: #b00c14;
  --red-soft: #ff6a70;
  --ink: #17181a;
  --night: #0e0f11;
  --night-2: #191b1f;
  --night-line: #2a2d33;
  --wa: #25D366;
  --wa-dark: #1da851;
  --text-2: #4b5055;
  --text-3: #5c6268;
  --text-4: #6b7176;
  --text-5: #7c8288;
  --text-6: #8b9198;
  --muted-light: #b8bdc4;
  --line: #e9ebee;
  --line-2: #eef0f2;
  --surface: #f5f6f7;
  --surface-2: #f3f4f6;
  --wrap: 1240px;
  --header-h: 82px;
  --display: Archivo, system-ui, sans-serif;
  --body: Barlow, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 2px); }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
button { font: inherit; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; fill: currentColor; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 20px;
  font-family: var(--display); font-weight: 700; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase;
  border-radius: 3px; border: 0; white-space: nowrap; cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}
.btn-wa, .btn-wa:hover { color: #fff; }
.btn-wa { background: var(--wa); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--red); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--line); color: var(--ink); }
.btn-ghost { border: 1px solid rgba(255,255,255,.3); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-lg { padding: 18px 28px; font-size: 14px; }

/* ---------- Section heads ---------- */
.section { padding: 86px 0; }
.eyebrow {
  font-family: var(--display); font-weight: 700; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--red);
  margin-bottom: 12px;
}
.h2 {
  font-weight: 800; font-size: clamp(30px, 3.6vw, 42px);
  letter-spacing: -.015em; color: var(--ink);
}
.lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-3); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 12px rgba(0,0,0,.06);
}
.header-bar { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo-badge {
  display: flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 50%;
  background: #fff; border: 2px solid var(--red);
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  overflow: hidden; flex: 0 0 auto;
}
.logo-badge img { display: block; width: 81px; height: auto; max-width: none; }
.logo-badge.lg { width: 84px; height: 84px; }
.logo-badge.lg img { width: 94px; }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 10px 14px; border-radius: 3px;
  font-family: var(--display); font-weight: 600; font-size: 13.5px;
  letter-spacing: .09em; text-transform: uppercase; color: var(--text-2);
}
.main-nav a:hover { color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-phone {
  display: flex; align-items: center; gap: 8px; padding: 0 4px;
  font-family: var(--display); font-weight: 700; font-size: 15px;
  color: var(--ink); white-space: nowrap;
}
.header-phone span { color: var(--red); }
.header-phone:hover { color: var(--red); }

.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0 12px;
  background: var(--ink); border: 0; border-radius: 3px; cursor: pointer;
}
.burger span { display: block; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-menu.open { display: block; }
.mobile-menu-inner { display: flex; flex-direction: column; padding: 8px 20px 20px; }
.mobile-menu-inner > a {
  padding: 16px 4px; border-bottom: 1px solid var(--line-2);
  font-family: var(--display); font-weight: 600; font-size: 15px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
}
.mobile-menu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.mobile-menu-actions .btn { padding: 16px; font-size: 14px; letter-spacing: .06em; }

@media (max-width: 1079px) {
  .main-nav { display: none; }
  .burger { display: flex; }
}
@media (min-width: 1080px) {
  .mobile-menu.open { display: none; }
}
@media (max-width: 759px) { .header-phone { display: none; } }
@media (max-width: 559px) { .header-cta { display: none; } }

/* ---------- Hero ---------- */
.hero { background: var(--night); }
.hero picture img { display: block; width: 100%; height: auto; }
.hero-body {
  padding-top: 40px; padding-bottom: 48px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 28px; justify-content: space-between;
}
.hero-text { max-width: 640px; }
.hero h1 {
  margin: 0 0 10px; font-weight: 800; font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.1; letter-spacing: -.015em; color: #fff; text-wrap: balance;
}
.hero p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted-light); text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Fleet ---------- */
.fleet-head { display: flex; flex-wrap: wrap; align-items: end; gap: 20px; margin-bottom: 28px; }
.fleet-head > div:first-child { max-width: 600px; }
.fleet-head .h2 { margin-bottom: 10px; }
.fleet-count {
  margin-left: auto; white-space: nowrap;
  font-family: var(--display); font-weight: 600; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-6);
}
.filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-bottom: 24px; margin-bottom: 34px; border-bottom: 1px solid var(--line-2);
}
.filter {
  padding: 12px 20px; border: 1px solid #dfe3e6; background: #fff; color: var(--text-2);
  border-radius: 3px; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 12.5px;
  letter-spacing: .08em; text-transform: uppercase; transition: all .16s;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.car {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.car:hover { box-shadow: 0 18px 44px rgba(15,17,20,.14); transform: translateY(-3px); }
.car[hidden] { display: none; }
.car-media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.car-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.car-tag {
  position: absolute; top: 0; left: 0; padding: 7px 13px;
  background: var(--red); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
}
.car-body { padding: 22px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.car h3 { margin: 0 0 4px; font-weight: 700; font-size: 21px; color: var(--ink); }
.car-tagline { font-size: 14.5px; color: var(--text-5); }
.car-price {
  padding-top: 14px; margin-top: auto; border-top: 1px solid var(--line-2);
}
.car-price small { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-6); }
.car-price strong { font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--ink); }
.car-price strong span { font-family: var(--body); font-weight: 500; font-size: 15px; color: var(--text-6); }
.car-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.car-btn {
  min-height: 52px; padding: 12px; border-radius: 10px;
  font-size: 16px; letter-spacing: 0; text-transform: none;
}
.car-btn.btn-dark:hover { background: #333539; }
.car-phone { font-size: 18px; line-height: 1; color: var(--red); }

/* ---------- Benefits ---------- */
.benefits { background: var(--surface); border-top: 1px solid var(--line-2); }
.benefits .head { max-width: 620px; margin-bottom: 44px; }
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.benefit {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red);
  border-radius: 3px; padding: 30px;
}
.benefit-num { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--red); margin-bottom: 16px; }
.benefit h3 { margin: 0 0 10px; font-weight: 700; font-size: 19px; color: var(--ink); }
.benefit p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--text-4); text-wrap: pretty; }

/* ---------- Steps ---------- */
.steps .head { max-width: 620px; margin-bottom: 40px; }
.steps .h2 { font-size: clamp(28px, 3.4vw, 38px); }
.step-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.step { display: flex; gap: 18px; align-items: flex-start; }
.step-n {
  flex: 0 0 auto; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff; border-radius: 3px;
  font-family: var(--display); font-weight: 800; font-size: 16px;
}
.step h3 { margin: 0 0 6px; font-weight: 700; font-size: 18px; color: var(--ink); }
.step p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--text-4); }

/* ---------- Contact ---------- */
.contact { background: var(--night); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: start; }
.contact .eyebrow { color: var(--red-soft); }
.contact .h2 { color: #fff; margin-bottom: 16px; }
.contact-lead { margin: 0 0 30px; font-size: 17px; line-height: 1.6; color: var(--muted-light); max-width: 520px; }
.follow-label {
  font-family: var(--display); font-weight: 700; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-6); margin-bottom: 14px;
}
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a {
  padding: 13px 18px; border: 1px solid rgba(255,255,255,.22); color: #fff; border-radius: 3px;
  font-family: var(--display); font-weight: 700; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase; transition: all .16s;
}
.socials a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.phones { display: flex; flex-direction: column; gap: 12px; }
.phone-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 22px;
  background: var(--night-2); border: 1px solid var(--night-line); border-radius: 4px;
}
.phone-card > div:first-child { flex: 1 1 180px; }
.phone-label {
  font-family: var(--display); font-weight: 700; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-6); margin-bottom: 6px;
}
.phone-number { font-family: var(--display); font-weight: 800; font-size: 26px; color: #fff; }
.phone-actions { display: flex; gap: 8px; }
.phone-actions .btn { padding: 14px 18px; font-size: 12.5px; }
.agencies {
  padding: 18px 22px; border: 1px dashed #3a3e45; border-radius: 4px;
  color: var(--muted-light); font-size: 15.5px; line-height: 1.55;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer-bar {
  padding-top: 34px; padding-bottom: 34px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px; justify-content: space-between;
}
.footer-copy { font-size: 14.5px; color: var(--text-4); text-align: center; }
.footer-credit { font-size: 12.5px; color: #9aa0a6; }

/* ---------- Floating call + WhatsApp ---------- */
.float-actions {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: flex; flex-direction: column; gap: 12px;
}
.float-btn {
  display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%; color: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
  transition: transform .18s, background .18s;
}
.float-btn:hover { color: #fff; transform: scale(1.07); }
.float-call { background: var(--red); }
.float-call:hover { background: var(--red-dark); }
.float-call .icon { width: 26px; height: 26px; }
.float-wa { background: var(--wa); }
.float-wa:hover { background: var(--wa-dark); }
.float-wa .icon { width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
