/* ==========================================================================
   MOVACARS DISTRIBUTION — Website Stylesheet  v2.0
   Palette derived from official Movacars .docx documents:
     Navy primary    #0B2545
     Bright blue     #0066FF  (accent / CTA)
     Slate           #37474F  (neutral text accent)
     Success green   #00C853  (positive / safety)
   Typography: Cambria (headings) + Calibri (body) — mirroring the docs
   ========================================================================== */

:root {
  /* Brand palette (from docx covers) */
  --navy:        #0B2545;
  --navy-deep:   #051a36;
  --blue:        #0066FF;
  --blue-light:  #3385FF;
  --blue-dark:   #0050cc;
  --slate:       #37474F;
  --green:       #00C853;

  /* Neutrals */
  --ink:         #0f1419;
  --body:        #2a2f38;
  --muted:       #5e6470;
  --line:        rgba(11, 37, 69, .12);
  --bg:          #ffffff;
  --bg-soft:     #f5f7fa;
  --bg-blue:     #eef3fb;

  /* Layout */
  --maxw:        1180px;
  --maxw-narrow: 780px;
  --radius:      4px;

  /* Type */
  --font-head: 'Cambria', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Calibri', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: var(--blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--navy); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--navy);
  margin: 0 0 .6em;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.3rem); margin-top: 1.4em; }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.45rem); margin-top: 1.2em; }
h4 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; letter-spacing: .01em; color: var(--navy); }
p { margin: 0 0 1.1em; }
strong { font-weight: 700; color: var(--ink); }
em { font-style: italic; }
small { font-size: .88rem; color: var(--muted); }

.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin: 0 0 1.2em;
}

/* ---------- Layout ---------- */
.container { width: min(var(--maxw), 92%); margin: 0 auto; }
.container--narrow { width: min(var(--maxw-narrow), 92%); margin: 0 auto; }
section { padding: 5rem 0; }
@media (max-width: 720px) { section { padding: 3rem 0; } }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 0;
  gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--navy);
  flex-shrink: 0;
}
.brand:hover { color: var(--navy); }
.brand-mark { width: 30px; height: 30px; display: block; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text small {
  font-family: var(--font-body);
  font-size: .58rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 3px;
  font-weight: 700;
}

.nav-links {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 1.8rem; align-items: center;
}
.nav-links a {
  font-size: .95rem;
  color: var(--ink);
  font-weight: 500;
}
.nav-links a:hover { color: var(--blue); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--navy);
  line-height: 0;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: absolute;
    top: calc(100% + 1px); right: 0; left: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: .8rem 4%;
    gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(11, 37, 69, .08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; padding-top: .6rem; }
  .nav-links a { display: block; padding: .85rem 0; font-size: 1rem; }
  .nav-links .btn { width: 100%; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .85rem 1.55rem;
  font-family: var(--font-body);
  font-size: .94rem;
  font-weight: 600;
  letter-spacing: .03em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
  white-space: nowrap;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--on-dark { background: var(--blue); color: #fff; }
.btn--on-dark:hover { background: #fff; color: var(--navy); }
.btn--ghost-on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost-on-dark:hover { background: rgba(255,255,255,.12); color: #fff; }

.cta-group { display: flex; gap: .85rem; flex-wrap: wrap; }
@media (max-width: 460px) {
  .cta-group .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: 7rem 0 6rem;
  overflow: hidden;
  background: var(--navy);
  background-image:
    linear-gradient(135deg, rgba(11, 37, 69, .85) 0%, rgba(11, 37, 69, .92) 50%, rgba(5, 26, 54, .95) 100%),
    var(--hero-img, none);
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(0, 102, 255, .25) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(0, 200, 83, .08) 0%, transparent 60%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--blue-light); }
.hero h1 { color: #fff; max-width: 22ch; margin-top: 0; }
.hero p.lead {
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  max-width: 58ch;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 2rem;
}

.hero--compact { padding: 4rem 0 3rem; }
.hero--compact h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
@media (max-width: 720px) { .hero { padding: 4.5rem 0 4rem; } }

/* ---------- Hero with image right ---------- */
.hero-split {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 3rem; align-items: center;
}
.hero-split .hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,.35);
  aspect-ratio: 4 / 3;
}
.hero-split .hero-image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) {
  .hero-split { grid-template-columns: 1fr; gap: 2rem; }
  .hero-split .hero-image { aspect-ratio: 16 / 10; }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .78);
  padding: 1rem 0;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.trust-strip ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: center;
}
.trust-strip li::before {
  content: '◆'; color: var(--blue-light); margin-right: .55rem; font-size: .7em;
}

/* ---------- Cards / Pillars ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.2rem; }
@media (max-width: 880px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 1.4rem; }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.8rem;
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(11, 37, 69, .1);
  border-color: var(--blue);
}
.card h3 { margin-top: 0; }
.card .icon-wrap {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-blue);
  border-radius: var(--radius);
  color: var(--blue);
  margin-bottom: 1rem;
}
.card .icon-wrap svg { width: 26px; height: 26px; }
.card .num {
  font-family: var(--font-head);
  font-size: 1.9rem; font-weight: 700;
  color: var(--blue); line-height: 1;
  display: block; margin-bottom: .5rem;
}

/* ---------- Image cards / Picture frames ---------- */
.picture {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: 0 10px 30px rgba(11, 37, 69, .08);
}
.picture img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.picture:hover img { transform: scale(1.03); }
.picture--4x3 { aspect-ratio: 4 / 3; }
.picture--16x9 { aspect-ratio: 16 / 9; }
.picture--3x4 { aspect-ratio: 3 / 4; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.compare {
  width: 100%; min-width: 480px;
  border-collapse: collapse;
  margin: 1.4rem 0;
  font-size: .96rem;
}
table.compare th, table.compare td {
  text-align: left;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.compare th {
  background: var(--bg-soft);
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--navy);
}
table.compare tr:hover td { background: var(--bg-soft); }

/* ---------- Audience blocks ---------- */
.audience {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  padding: 1.5rem 1.7rem;
  border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.audience:hover { border-left-color: var(--navy); box-shadow: 0 12px 28px rgba(11, 37, 69, .08); }
.audience h3 { margin-top: 0; }

/* ---------- Forms ---------- */
form.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(11, 37, 69, .06);
}
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: .85rem; font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: .35rem;
  color: var(--navy);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: .75rem .9rem;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, .15);
}
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.checkbox-row { display: flex; align-items: flex-start; gap: .55rem; margin: .4rem 0 1rem; font-size: .92rem; }
.checkbox-row input[type=checkbox] { width: auto; margin-top: 4px; flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .72);
  padding: 4rem 0 1.6rem;
  margin-top: 4rem;
  font-size: .93rem;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: .76rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 700;
}
.site-footer .brand { color: #fff; margin-bottom: .8rem; }
.site-footer .brand-text small { color: var(--blue-light); }
.site-footer p { line-height: 1.55; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.2rem; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .35rem 0; }
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: var(--blue-light); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 2.5rem; padding-top: 1.3rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem;
  font-size: .8rem; color: rgba(255, 255, 255, .55);
}

/* ---------- Legal-page layout ---------- */
.legal-wrap { display: grid; grid-template-columns: 230px 1fr; gap: 3rem; }
@media (max-width: 880px) { .legal-wrap { grid-template-columns: 1fr; gap: 1.6rem; } }
.legal-toc {
  position: sticky; top: 90px; align-self: start;
  font-size: .9rem;
  background: var(--bg-soft);
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
@media (max-width: 880px) {
  .legal-toc { position: static; }
}
.legal-toc h4 {
  font-family: var(--font-body);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 .7rem;
  font-weight: 700;
}
.legal-toc ul { list-style: none; padding: 0; margin: 0; }
.legal-toc li { margin: .35rem 0; }
.legal-toc a { color: var(--slate); }
.legal-toc a:hover { color: var(--blue); }

.legal-content h2 { border-top: 1px solid var(--line); padding-top: 1.4em; }
.legal-content h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal-content ol, .legal-content ul { padding-left: 1.4em; }
.legal-content li { margin: .3em 0; }

.legal-meta {
  background: var(--bg-blue);
  border-left: 4px solid var(--blue);
  padding: 1rem 1.3rem;
  margin: 0 0 1.8rem;
  font-size: .9rem;
  border-radius: var(--radius);
}
.legal-meta strong { display: block; margin-bottom: .15rem; color: var(--navy); }

/* ---------- Section variants ---------- */
.section--dark {
  background: var(--navy);
  color: rgba(255, 255, 255, .85);
  position: relative;
  overflow: hidden;
}
.section--dark::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(0, 102, 255, .15) 0%, transparent 60%);
  pointer-events: none;
}
.section--dark > .container { position: relative; z-index: 1; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--blue-light); }
.section--dark a:not(.btn) { color: var(--blue-light); }
.section--dark a:not(.btn):hover { color: #fff; }

.section--soft { background: var(--bg-soft); }
.section--blue { background: var(--bg-blue); }

/* ---------- Stat / accent strip ---------- */
.stat {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--blue);
  line-height: 1;
  font-weight: 700;
}
.stat-label {
  display: block; margin-top: .4rem;
  font-size: .85rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--slate);
}

/* ---------- Misc utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hr-rule { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
.disclaimer {
  font-size: .85rem;
  color: var(--slate);
  background: var(--bg-soft);
  padding: 1rem 1.3rem;
  border-radius: var(--radius);
  margin: 1.4rem 0;
  border-left: 3px solid var(--blue);
}

/* ---------- Back-compat aliases (so older HTML still themes correctly) ---------- */
.section--cream { background: var(--bg-soft); }
.btn--gold { background: var(--blue); color: #fff; border: 1px solid transparent; }
.btn--gold:hover { background: var(--blue-dark); color: #fff; }
/* Legacy .brand small (direct child) — keep visible in case an HTML page still uses it */
.brand > small {
  display: block;
  font-family: var(--font-body);
  font-size: .58rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 3px;
  font-weight: 700;
}
.site-footer .brand > small { color: var(--blue-light); }

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}
.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;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
