/* Habibi Motorcars — black / racing red / steel.
   Matched to the brand mark: black field, red stripes, steel H. */

:root {
  --ink: #060608;
  --ink-2: #0c0c10;
  --ink-3: #131318;
  --line: #1e1e26;
  --line-red: #3a1518;
  --paper: #09090c;
  --red: #c1272d;
  --red-2: #e03a41;
  --red-deep: #8f1d22;
  --steel: #aeb6c2;
  --steel-2: #d6dbe2;
  --gold: #e03a41;      /* legacy var names kept for shared pages */
  --gold-2: #e56a6f;
  --gold-deep: #c1272d;
  --text: #eceef2;
  --text-dim: #9aa0ad;
  --text-mute: #676d7a;
  --white: #f7f8fa;
  --radius: 4px;
  --maxw: 1040px;
  --ff-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--white); }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: .02em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.25rem); }
p { margin: 0 0 1em; }
strong { color: var(--white); font-weight: 600; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--tight { padding: 44px 0; }
.eyebrow {
  font-size: .68rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 600;
  margin: 0 0 14px;
  display: block;
}
.lead { font-size: 1.02rem; color: var(--text-dim); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .88rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 14px 30px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .2s ease;
}
.btn--gold, .btn--red { background: var(--red); color: #fff; }
.btn--gold:hover, .btn--red:hover { background: var(--red-2); box-shadow: 0 6px 24px -8px rgba(193, 39, 45, .55); }
.btn--ghost { background: transparent; color: var(--steel-2); border-color: #2c2c36; }
.btn--ghost:hover { border-color: var(--steel); color: #fff; }
.btn--block { display: flex; width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(6, 6, 8, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); white-space: nowrap; }
.brand .mark { flex: none; }
.brand .wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.brand .wordmark b { font-size: .95rem; font-weight: 700; letter-spacing: .32em; color: var(--white); }
.brand .wordmark small { font-size: .52rem; letter-spacing: .42em; color: var(--text-mute); font-weight: 600; margin-top: 2px; }
.brand span { color: var(--red-2); }
.brand small { font-size: .55rem; letter-spacing: .3em; text-transform: uppercase; color: var(--text-mute); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; white-space: nowrap; transition: color .15s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { font-weight: 700; font-size: .88rem; color: var(--white); white-space: nowrap; letter-spacing: .04em; }
.nav-phone span { color: var(--red-2); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); width: 42px; height: 38px; cursor: pointer; padding: 0; color: var(--text); }
.nav-toggle svg { margin: auto; }

/* Splash (home) */
.splash {
  min-height: calc(100vh - 64px);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 20px;
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(193, 39, 45, .07), transparent 60%),
    var(--ink);
}
.splash-card {
  width: 100%; max-width: 760px;
  text-align: center;
  border: 1px solid var(--line-red);
  border-radius: 14px;
  padding: 72px 40px 60px;
  background: linear-gradient(180deg, #08080b, #060608);
  position: relative;
}
.splash-card::after {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid rgba(193, 39, 45, .18);
  border-radius: 9px; pointer-events: none;
}
.splash .logo { margin: 0 auto 44px; display: block; }
.splash h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 500;
  letter-spacing: .38em;
  text-indent: .38em;
  margin-bottom: 26px;
  color: var(--white);
}
.rule {
  display: flex; align-items: center; gap: 14px;
  max-width: 460px; margin: 0 auto 26px;
}
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: var(--red-deep); }
.rule i { width: 7px; height: 7px; border-radius: 50%; background: var(--red-2); }
.splash .sub {
  font-size: clamp(.95rem, 2vw, 1.2rem);
  letter-spacing: .5em; text-indent: .5em;
  color: var(--steel);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.splash .est {
  font-size: .72rem; letter-spacing: .34em; text-indent: .34em;
  color: var(--text-mute); text-transform: uppercase;
  margin-bottom: 46px;
}
.splash-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.splash-tag { margin-top: 40px; font-size: .78rem; color: var(--text-mute); letter-spacing: .04em; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .74rem; font-weight: 600; color: var(--text-dim); letter-spacing: .08em; text-transform: uppercase; }
.field label .req { color: var(--red-2); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: .96rem; color: var(--text);
  background: var(--ink); border: 1px solid #2a2a34; border-radius: var(--radius);
  padding: 12px 13px; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(193, 39, 45, .15); }
.field small { font-size: .74rem; color: var(--text-mute); }
.form-note { font-size: .78rem; color: var(--text-mute); margin-top: 12px; }
.panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; padding: 30px; }

/* Steps indicator */
.stepper { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.stepper .dot {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
  background: var(--ink-3); color: var(--text-mute);
  border: 1px solid var(--line);
}
.stepper .dot.active { background: var(--red); color: #fff; border-color: var(--red); }
.stepper .dot.done { background: var(--ink-3); color: var(--red-2); border-color: var(--red-deep); }
.stepper .bar { flex: 1; height: 1px; background: var(--line); max-width: 70px; }
.stepper .label { font-size: .78rem; color: var(--text-mute); letter-spacing: .1em; text-transform: uppercase; }
.step-panel[hidden] { display: none; }

/* Page hero (interior) */
.page-hero {
  padding: 46px 0 38px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(70% 100% at 50% -30%, rgba(193, 39, 45, .08), transparent 60%), var(--ink);
  text-align: center;
}
.page-hero h1 { margin-bottom: 10px; letter-spacing: .06em; }
.page-hero .lead { margin: 0 auto; }
.page-hero a { color: var(--red-2); }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-dim); font-size: .95rem; }
.checklist svg { flex: none; width: 20px; height: 20px; color: var(--red-2); margin-top: 2px; }
.checklist b { color: var(--white); }

/* Misc shared (legacy pages: thanks/404/privacy/terms) */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.hero { padding: 64px 0; background: radial-gradient(70% 60% at 50% -10%, rgba(193,39,45,.08), transparent 60%), var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.article { max-width: 720px; margin: 0 auto; }
.article h2 { margin-top: 1.5em; }
.article p, .article ul, .article ol { color: var(--text-dim); }
.article a { color: var(--red-2); text-decoration: underline; }
.paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature { padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--ink-2); }
.feature h3 { font-size: 1.05rem; }
.feature p { color: var(--text-dim); font-size: .9rem; margin: 0; }
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 17px 40px 17px 0; position: relative; color: var(--white); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--red-2); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 40px 17px 0; margin: 0; color: var(--text-dim); font-size: .95rem; }

/* Footer */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 38px 0 22px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; }
.foot-brand .brand { margin-bottom: 12px; }
.foot-brand p { color: var(--text-mute); font-size: .85rem; max-width: 34ch; }
.foot-col h4 { font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 12px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot-col li { color: var(--text-dim); font-size: .88rem; }
.foot-col a { color: var(--text-dim); font-size: .88rem; }
.foot-col a:hover { color: var(--red-2); }
.foot-bottom { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 18px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .76rem; color: var(--text-mute); }
.foot-bottom a:hover { color: var(--red-2); }
.disclaimer { font-size: .7rem; color: var(--text-mute); line-height: 1.55; margin-top: 14px; }

/* Utility */
.mt-0 { margin-top: 0; }
.section-head { max-width: 620px; margin-bottom: 32px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* Responsive */
@media (max-width: 720px) {
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links { display: flex; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; background: var(--ink-2); border-bottom: 1px solid var(--line); padding: 16px 20px; gap: 14px; align-items: flex-start; }
  .section { padding: 44px 0; }
  .form-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 22px; }
  .splash-card { padding: 52px 24px 44px; }
  .splash h1 { letter-spacing: .26em; text-indent: .26em; }
  .splash .sub { letter-spacing: .34em; text-indent: .34em; }
}
