/* Capital Motor Corporation — styles */
:root {
  --ink: #111214;
  --ink-2: #3A3B3F;
  --muted: #55565A;
  --muted-dark: #A3A19C;
  --soft-dark: #C9C7C2;
  --paper: #F4F2EE;
  --sand: #E9E6DF;
  --line: #DEDAD2;
  --line-dark: #2E2F34;
  --accent: #F2B705;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--ink-2); }
input, select, textarea, button { font: inherit; }
h1, h2, h3 { margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--ink); padding: 10px 16px; z-index: 100; font-weight: 600; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Flag stripe */
.flag-stripe { display: flex; height: 5px; }
.flag-stripe span { flex: 1; }
.flag-stripe span:nth-child(1), .flag-stripe span:nth-child(5) { background: #3E5EB9; }
.flag-stripe span:nth-child(2), .flag-stripe span:nth-child(4) { background: #FFD900; }
.flag-stripe span:nth-child(3) { background: #B10C0C; }

/* Utility bar */
.utility { background: var(--ink); color: var(--soft-dark); font-size: 14px; }
.utility__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 10px; padding-bottom: 10px; }
.utility__links { display: flex; flex-wrap: wrap; gap: 20px; }
.utility a { color: var(--paper); text-decoration: none; }
.utility a:hover { color: var(--accent); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244, 242, 238, 0.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 50px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: 0.02em; color: var(--ink); }
.brand__tag { font-size: 13px; color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: 16px; }
.main-nav a { text-decoration: none; }
.main-nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }

.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); background: transparent; cursor: pointer; padding: 12px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: #2A2B30; color: var(--paper); }
.btn--accent { background: var(--accent); color: var(--ink); min-height: 52px; padding: 16px 26px; }
.btn--accent:hover { background: #FFC81F; color: var(--ink); }
.btn--outline { border: 1.5px solid #5A5B60; color: var(--paper); min-height: 52px; padding: 16px 26px; }
.btn--outline:hover { border-color: var(--paper); color: var(--paper); }
.btn--block { width: 100%; min-height: 52px; font-size: 16px; }

/* Shared type */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.eyebrow--accent { color: var(--accent); }
.eyebrow__line { width: 28px; height: 2px; background: var(--accent); }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 4.6vw, 60px); line-height: 1; text-transform: uppercase; }
.lead { margin: 16px 0 56px; max-width: 640px; color: var(--ink-2); }
.h2-narrow { max-width: 760px; }

.section { padding: 104px 0; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark h2 { margin-bottom: 56px; }

/* Hero */
.hero { background: var(--ink); color: var(--paper); }
.hero__inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 72px; }
.hero__copy { flex: 1 1 480px; min-width: 0; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(46px, 6.4vw, 88px); line-height: 0.98; letter-spacing: -0.01em; text-transform: uppercase; margin: 20px 0 24px; }
.hero__lead { font-size: 19px; color: var(--soft-dark); max-width: 540px; margin: 0 0 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media { flex: 1 1 420px; min-width: 0; }
.hero__media img { width: 100%; max-width: 520px; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: center 40%; margin: 0 auto; }

.trust { border-top: 1px solid #26272B; }
.trust__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust__item { padding: 24px 20px; border-right: 1px solid #26272B; }
.trust__item:first-child { padding-left: 0; }
.trust__item:last-child { border-right: 0; }
.trust__item strong { display: block; font-family: var(--display); font-size: 22px; font-weight: 600; text-transform: uppercase; }
.trust__item span { font-size: 14px; color: var(--muted-dark); }

/* Services */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
.section-head > div { flex: 1 1 520px; }
.section-head__aside { flex: 1 1 360px; max-width: 440px; margin: 0; color: var(--ink-2); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 45%; }
.card__body { padding: 32px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card__num { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--muted); }
.card h3 { font-family: var(--display); font-size: 32px; font-weight: 700; text-transform: uppercase; line-height: 1; }
.card p { margin: 0; color: var(--ink-2); }
.card ul { margin: 4px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 16px; }
.card--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.card--dark p { color: var(--soft-dark); }
.card--dark .card__num { color: var(--accent); }
.card__link { color: var(--accent); font-weight: 600; margin-top: auto; padding-top: 8px; }
.card__link:hover { color: #FFC81F; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.steps li { padding: 28px 28px 0 0; }
.steps__num { font-family: var(--display); font-size: 56px; font-weight: 700; line-height: 1; }
.steps h3 { font-size: 19px; margin: 14px 0 8px; font-weight: 600; }
.steps p { margin: 0; color: var(--ink-2); font-size: 16px; }

.insurers { margin-top: 72px; background: #fff; border: 1px solid var(--line); padding: 36px 40px; }
.insurers__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 28px; }
.insurers__head h3 { font-family: var(--display); font-size: 28px; font-weight: 700; text-transform: uppercase; line-height: 1; }
.insurers__head span { font-size: 15px; color: var(--muted); }
.insurers__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.insurers__list a { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 104px; height: 100%; padding: 20px 22px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; transition: border-color .15s; }
.insurers__list a:hover { border-color: var(--ink); }
.insurers__list strong { font-family: var(--display); font-size: 24px; font-weight: 600; line-height: 1.1; }
.insurers__list span { font-size: 14px; color: var(--muted); }

/* About */
.about { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.about__media { flex: 1 1 440px; min-width: 0; display: grid; grid-template-columns: 3fr 2fr; gap: 16px; align-items: end; }
.about__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.about__media img:last-child { margin-bottom: 48px; }
.about__copy { flex: 1 1 440px; min-width: 0; }
.about__copy h2 { margin-bottom: 24px; }
.about__copy p { margin: 0 0 18px; color: var(--ink-2); }
.stats { display: flex; flex-wrap: wrap; gap: 32px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 32px; }
.stats strong { display: block; font-family: var(--display); font-size: 40px; font-weight: 700; line-height: 1; }
.stats span { font-size: 14px; color: var(--muted); }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.person { border: 1px solid var(--line-dark); }
.person img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.person__body { padding: 24px 28px 28px; }
.person h3 { font-family: var(--display); font-size: 28px; font-weight: 600; line-height: 1.1; }
.person__role { margin: 2px 0 16px; color: var(--muted-dark); font-size: 15px; }
.person__contact { display: flex; flex-direction: column; gap: 6px; font-size: 15px; border-top: 1px solid var(--line-dark); padding-top: 16px; }
.person__contact a { color: var(--paper); text-decoration: none; }
.person__contact a:hover { color: var(--accent); }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 56px; }
.contact__info { flex: 1 1 420px; min-width: 0; }
.contact__info h2 { margin-bottom: 32px; }
.details { margin: 0; display: grid; grid-template-columns: 120px 1fr; gap: 16px 20px; font-size: 16px; }
.details dt { color: var(--muted); font-weight: 500; }
.details dd { margin: 0; }
.map { margin-top: 36px; aspect-ratio: 16 / 10; border: 1px solid var(--line); background: var(--sand); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.quote-form { flex: 1 1 420px; min-width: 0; align-self: flex-start; background: #fff; border: 1px solid var(--line); padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.quote-form h3 { font-family: var(--display); font-size: 32px; font-weight: 700; text-transform: uppercase; line-height: 1; }
.quote-form__note { margin: -8px 0 4px; color: var(--muted); font-size: 15px; }
.quote-form label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 500; }
.quote-form input, .quote-form select, .quote-form textarea { border: 1px solid #BDB8AE; background: #FAF9F6; padding: 12px 14px; min-height: 48px; color: var(--ink); border-radius: 0; }
.quote-form textarea { resize: vertical; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.quote-form [aria-invalid="true"] { border-color: #B10C0C; }
.form-row { display: flex; flex-wrap: wrap; gap: 16px; }
.form-row label { flex: 1 1 180px; }
.form-error { margin: 0; color: #B10C0C; font-size: 15px; font-weight: 500; }
.quote-form__alt { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }

/* Footer */
.site-footer { background: #0A0B0C; color: var(--muted-dark); font-size: 15px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 32px; }
.site-footer__top p { margin: 0; max-width: 360px; }
.site-footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.site-footer__brand img { height: 44px; width: auto; }
.site-footer__brand span { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--paper); }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: flex-start; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; padding-bottom: 20px; border-top: 1px solid #1E1F23; font-size: 13px; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #1F8F4E; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.wa-float:hover { background: #187A41; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .cards, .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .insurers__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li { padding-bottom: 28px; }
  .trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust__item { padding-left: 0; border-right: 0; border-bottom: 1px solid #26272B; }
  .trust__item:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .main-nav.is-open { display: flex; }
  .main-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav .btn { margin-top: 16px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .hero__inner { padding-top: 56px; padding-bottom: 48px; gap: 40px; }
  .hero__actions .btn { width: 100%; }
  .brand__tag { display: none; }
  .brand img { height: 42px; }
  .brand__name { font-size: 18px; }
  .utility__inner > span:first-child { display: none; }
  .cards, .team, .steps, .insurers__list { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr; }
  .trust__item, .trust__item:nth-last-child(-n+2) { border-bottom: 1px solid #26272B; }
  .trust__item:last-child { border-bottom: 0; }
  .insurers, .quote-form { padding: 28px 22px; }
  .details { grid-template-columns: 1fr; gap: 2px; }
  .details dd { margin-bottom: 14px; }
  .about { gap: 40px; }
}
