/* ===========================================================================
   CarrXpert Matane - design system
   Navy-dominant, warm off-white relief, gold accents. Archivo superfamily.
   =========================================================================== */
:root {
  /* Brand navy, from darkest surface to the logo navy */
  --navy-900: #0b1130;
  --navy-800: #101a40;
  --navy-700: #16235a;
  --navy-600: #1f2a64;   /* CarrXpert navy (logo) */
  --navy-500: #2c3a7e;

  /* Gold, from the logo arc */
  --gold:      #f2a01d;
  --gold-300:  #ffc864;
  --gold-600:  #d8890c;

  /* Warm light surfaces (never pure white) */
  --paper:    #f4f0e8;
  --paper-2:  #ece6da;

  /* Text */
  --ink:    #14182a;
  --ink-60: #4c5366;
  --cloud:  #eef1fb;   /* on navy */
  --mist:   #a7b0d0;   /* muted on navy */

  --line-light: rgba(20, 24, 42, .12);
  --line-dark:  rgba(255, 255, 255, .14);

  --font-display: "Archivo Expanded", "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 72rem;
  --pad: 1.25rem;
  --radius: 14px;
  --shadow: 0 18px 50px -22px rgba(11, 17, 48, .55);
  --shadow-soft: 0 10px 30px -18px rgba(11, 17, 48, .45);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-600); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.01em; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ----------------------------------------------------------------- Bands */
.band { padding: clamp(3.25rem, 7vw, 6rem) 0; position: relative; }
.band--paper { background: var(--paper); }
.band--cream { background: var(--paper-2); }
.band--navy  { background: var(--navy-700); color: var(--cloud); }
.band--deep  { background: var(--navy-900); color: var(--cloud); }
.band--deep h1, .band--deep h2, .band--deep h3,
.band--navy h1, .band--navy h2, .band--navy h3 { color: #fff; }

.band__head { max-width: 46rem; margin-bottom: 2.5rem; }
.band__title { font-size: clamp(1.8rem, 4vw, 2.9rem); margin: .1em 0 .35em; }
.band__sub { font-size: 1.12rem; color: var(--ink-60); margin: 0; max-width: 40rem; }
.band--deep .band__sub, .band--navy .band__sub { color: var(--mist); }

/* Kicker label */
.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 700;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-600); margin: 0 0 .2em;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--gold); display: inline-block; }
.band--deep .kicker, .band--navy .kicker { color: var(--gold-300); }

/* ---------------------------------------------------------------- Buttons */
.btn {
  --btn-bg: var(--navy-600);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  text-decoration: none; text-align: center; border: 2px solid transparent;
  background: var(--btn-bg); color: #fff; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { --btn-bg: var(--gold); color: var(--navy-900); box-shadow: 0 14px 30px -12px rgba(242, 160, 29, .65); }
.btn--gold:hover { --btn-bg: var(--gold-300); }
.btn--navy { --btn-bg: var(--navy-600); }
.btn--navy:hover { --btn-bg: var(--navy-700); }
.btn--ghost { background: transparent; color: var(--navy-600); border-color: var(--navy-600); }
.btn--ghost:hover { background: var(--navy-600); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost-light:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn--lg { padding: 1.05rem 1.8rem; font-size: 1.08rem; }
.btn svg { width: 1.05em; height: 1.05em; }

.cta-row { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.6rem 0 0; }

/* ----------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(244, 240, 232, .9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-light);
}
.site-header.is-scrolled { box-shadow: var(--shadow-soft); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 70px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem; position: relative; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--gold); transition: width .2s ease;
}
.site-nav a:not(.btn):hover::after { width: 100%; }
.header-call { color: #fff; }
.nav-btn { display: none; }

/* ------------------------------------------------------------------- Hero */
.hero { position: relative; overflow: hidden; color: var(--cloud); isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(110deg, rgba(11,17,48,.96) 0%, rgba(11,17,48,.82) 42%, rgba(16,26,64,.55) 100%),
    radial-gradient(120% 90% at 85% 10%, rgba(242,160,29,.16), transparent 55%);
}
.hero__inner { position: relative; max-width: 44rem; padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem); }
.hero__title {
  font-size: clamp(2.5rem, 7vw, 5rem); margin: .15em 0 .3em;
  text-transform: uppercase; letter-spacing: -.015em; line-height: .98; color: #fff;
}
.hero__lead { font-size: clamp(1.1rem, 2.4vw, 1.4rem); color: var(--cloud); max-width: 34rem; margin: 0; }

/* Gold arc motif, echoing the logo car silhouette */
.hero__arc {
  position: absolute; right: -8%; top: 12%; width: min(46vw, 540px); height: auto;
  z-index: -1; opacity: .5; pointer-events: none;
}
.hero__arc path { fill: none; stroke: var(--gold); stroke-width: 9; }

.trust-row { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin: 1.9rem 0 0; padding: 0; }
.trust-row li { display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .96rem; color: var(--cloud); }
.trust-row svg { width: 20px; height: 20px; flex: none; color: var(--gold-300); }

/* Hero entrance */
.reveal { opacity: 0; transform: translateY(18px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal-1 { animation-delay: .05s; }
.reveal-2 { animation-delay: .16s; }
.reveal-3 { animation-delay: .27s; }
.reveal-4 { animation-delay: .38s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------- Services */
.cards { display: grid; gap: 1.3rem; grid-template-columns: 1fr; }
.card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink); border: 1px solid var(--line-light);
  box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-800); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 1.3rem 1.35rem 1.45rem; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.22rem; margin: 0 0 .4em; color: var(--navy-700); }
.card__text { color: var(--ink-60); margin: 0 0 1.1rem; font-size: .98rem; }
.card__more { margin-top: auto; font-weight: 700; color: var(--gold-600); display: inline-flex; align-items: center; gap: .4rem; }
.card__more svg { width: 18px; height: 18px; transition: transform .2s ease; }
.card:hover .card__more svg { transform: translateX(4px); }

/* ------------------------------------------------------------- Rassurance */
.rassurance__grid { display: grid; gap: 2.2rem; align-items: center; grid-template-columns: 1fr; }
.rassurance__media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.rassurance__media img { width: 100%; height: 100%; object-fit: cover; }
.rassurance__media::after {
  content: ""; position: absolute; left: 1rem; bottom: 1rem; width: 64px; height: 4px; background: var(--gold);
}
.prose { max-width: 40rem; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 1.4em 0 .4em; color: var(--navy-700); }
.prose h2:first-of-type { margin-top: .3em; }
.prose p { color: #2b3144; }
.prose p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------------- Steps */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.steps li { position: relative; padding: 1.5rem 1.4rem; border: 1px solid var(--line-dark); border-radius: var(--radius); background: rgba(255,255,255,.03); }
.steps__num { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: var(--gold); line-height: 1; display: block; margin-bottom: .5rem; }
.steps h3 { font-size: 1.18rem; margin: 0 0 .35em; color: #fff; }
.steps p { color: var(--mist); margin: 0; font-size: .97rem; }

/* --------------------------------------------------------------- Reviews */
.g-logo { width: 18px; height: 18px; flex: none; }
.avis-source { display: inline-flex; align-items: center; gap: .5rem; margin-top: .9rem; color: var(--ink-60); font-size: .95rem; }
.avis-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin-top: 2.4rem; }
.avis-card {
  background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem; margin: 0; box-shadow: var(--shadow-soft);
}
.avis-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .7rem; }
.avis-avatar {
  width: 40px; height: 40px; flex: none; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; line-height: 1; text-transform: uppercase;
}
.avis-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.avis-name { font-weight: 700; color: var(--navy-700); }
.avis-sub { font-size: .82rem; color: var(--ink-60); }
.avis-guide { font-weight: 600; }
.avis-head .g-logo { margin-left: auto; }
.avis-rate { display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem; }
.avis-stars { display: inline-flex; gap: 2px; }
.avis-stars .star { fill: #fbbc05; width: 16px; height: 16px; }
.avis-age { font-size: .82rem; color: var(--ink-60); }
.avis-card blockquote { margin: 0; quotes: none; font-size: 1rem; color: #20263a; line-height: 1.55; }
.avis-foot { margin-top: 2rem; }

/* ------------------------------------------------------------------- CTA */
.cta { text-align: center; }
.cta__title { font-size: clamp(1.9rem, 4.5vw, 3rem); margin: .1em 0 .35em; color: #fff; }
.cta__sub { font-size: 1.15rem; color: var(--mist); max-width: 34rem; margin: 0 auto 1.7rem; }
.cta .phone-big { display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--gold-300); text-decoration: none; margin-top: 1.1rem; letter-spacing: -.01em; }
.cta .phone-big:hover { color: #fff; }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--navy-900); color: var(--mist); padding: 3.5rem 0 5rem; border-top: 3px solid var(--gold); }
.site-footer .cols { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.site-footer strong { color: #fff; font-family: var(--font-display); letter-spacing: .01em; display: inline-block; margin-bottom: .5rem; }
.site-footer a { color: var(--cloud); text-decoration: none; }
.site-footer a:hover { color: var(--gold-300); }

/* --------------------------------------------------------- Sticky call bar */
.call-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--gold); display: flex; box-shadow: 0 -8px 24px -10px rgba(0,0,0,.4); }
.call-bar.is-hidden { display: none; }
.call-bar a { flex: 1; color: var(--navy-900); text-decoration: none; text-align: center; padding: .95rem; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: .5rem; }
.call-bar svg { width: 20px; height: 20px; }
body { padding-bottom: 58px; }

/* ----------------------------------------------------------------- Forms */
.section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.lead { font-size: 1.15rem; color: var(--ink-60); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; }
.field input, .field textarea { width: 100%; padding: .8rem .9rem; border: 1px solid var(--line-light); border-radius: 10px; font: inherit; background: #fff; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.hp { position: absolute; left: -9999px; }
.form-note { color: var(--ink-60); font-size: .9rem; }

/* ------------------------------------------------------------ Breakpoints */
@media (min-width: 40rem) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .avis-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 56rem) {
  body { padding-bottom: 0; }
  .call-bar { display: none; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .rassurance__grid { grid-template-columns: .85fr 1.15fr; gap: 3.5rem; }
  .site-footer .cols { grid-template-columns: 2fr 1fr 1fr; }
}

/* Mobile nav */
@media (max-width: 55.99rem) {
  .nav-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 1px solid var(--line-light); border-radius: 10px;
    background: #fff; cursor: pointer;
  }
  .nav-btn__bars, .nav-btn__bars::before, .nav-btn__bars::after {
    content: ""; display: block; width: 22px; height: 2px; background: var(--navy-700); position: relative; transition: transform .2s ease, opacity .2s ease;
  }
  .nav-btn__bars::before { position: absolute; top: -7px; }
  .nav-btn__bars::after { position: absolute; top: 7px; }
  .site-header.is-open .nav-btn__bars { background: transparent; }
  .site-header.is-open .nav-btn__bars::before { transform: translateY(7px) rotate(45deg); }
  .site-header.is-open .nav-btn__bars::after { transform: translateY(-7px) rotate(-45deg); }
  .site-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-light); box-shadow: var(--shadow-soft);
    padding: .5rem var(--pad) 1.1rem;
  }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--line-light); }
  .site-nav a:not(.btn)::after { display: none; }
  .header-call { margin-top: .8rem; }
}
