/*
 * MotoStream – Casablanca landing pages (EN + FR)
 * Every value below is taken from the live motostream.app landing CSS
 * (LandingHeader, Hero, SearchBar, landingButtons, FeaturedCars, StickySteps,
 * Comparison, Faq, Contact, Footer modules) so these pages match the site.
 */
:root {
  --ms-bg: #f9f8f6;            /* Landing-landingRoot background */
  --ms-ink: #1a1a1a;           /* body text */
  --ms-ink-strong: #222222;    /* FeaturedCars titles */
  --ms-muted: #717171;         /* FeaturedCars subtitle / meta */
  --ms-muted-2: #666666;       /* StickySteps paragraph */
  --ms-dark: #0e1210;          /* Contact wrapper */
  --ms-dark-btn: #1a221f;      /* landingBtnDark / hero overlay tint */
  --ms-nav: rgba(40, 40, 40, 0.95);
  --ms-orange: #f36f24;
  --ms-orange-2: #ff8a4c;
  --ms-orange-grad: linear-gradient(135deg, #f36f24, #ff8a4c);
  --ms-orange-glow: 0 8px 24px rgba(243, 111, 36, 0.3);
  --ms-serif: Georgia, "Times New Roman", serif;
  --ms-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ms-card-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  --ms-card-border: 1px solid rgba(0, 0, 0, 0.05);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ms-bg);
  color: var(--ms-ink);
  font-family: var(--ms-sans);
  font-size: 18px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .3s, background .3s, transform .3s, box-shadow .3s; }
h1, h2, h3, h4, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--ms-orange); outline-offset: 3px; }
.ms-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
section[id] { scroll-margin-top: 110px; }

/* ---------- Buttons (one CTA colour: the brand orange gradient) ---------- */
.ms-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font: inherit; font-weight: 600;
  color: #fff !important;
  background: var(--ms-orange-grad);
  border-radius: 40px;
  padding: 18px 45px; font-size: 1.1rem; line-height: 1.2; text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.ms-btn:hover, .ms-btn:focus-visible { transform: translateY(-3px); box-shadow: var(--ms-orange-glow); }
.ms-btn--sm { padding: 10px 22px; font-size: .9rem; border-radius: 30px; }
.ms-btn--block { width: 100%; }

/* ---------- Header (LandingHeader-navbar) ---------- */
.ms-nav {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  width: 90%; max-width: 1250px; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 10px 8px 30px;
  background: var(--ms-nav);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.ms-nav__logo img { height: 35px; width: auto; }
.ms-nav__right { display: flex; align-items: center; gap: 30px; }
.ms-nav__links { display: flex; gap: 30px; }
.ms-nav__links a, .ms-lang a { font-size: .9rem; font-weight: 500; color: #e0e0e0; }
.ms-nav__links a:hover, .ms-lang a:hover { color: var(--ms-orange); }
.ms-lang { display: flex; align-items: center; gap: 6px; font-size: .9rem; color: rgba(255,255,255,.35); }
.ms-lang [aria-current="page"] { color: #fff; font-weight: 700; }

/* ---------- Hero ---------- */
.ms-hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 140px 20px 60px;
  background: var(--ms-dark) url("img/hero.webp") center bottom / cover no-repeat;
  color: #fff;
}
.ms-hero::before {
  /* same tint as Hero-hero::before, deepened on the text side so the hero reads as dark */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 18, 16, 0.92) 0%, rgba(14, 18, 16, 0.75) 45%, rgba(26, 34, 31, 0.25) 100%),
    linear-gradient(180deg, rgba(26, 34, 31, 0.3) 0%, rgba(26, 34, 31, 0.1) 100%);
}
.ms-hero__inner { position: relative; z-index: 1; width: 100%; max-width: 1200px; margin: 0 auto; }
.ms-hero__text { max-width: 720px; text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); }
.ms-overline {
  display: flex; align-items: center; gap: 15px;
  font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 25px;
}
.ms-overline::before { content: ""; height: 1px; width: 30px; background: currentColor; opacity: .8; }
.ms-hero h1 {
  font-family: var(--ms-serif); font-weight: 500;
  font-size: 4.6rem; line-height: 1.05; letter-spacing: -1.5px;
}
.ms-hero__sub { margin-top: 22px; max-width: 600px; font-size: 1.15rem; line-height: 1.6; color: rgba(255,255,255,.88); }

/* Search card (SearchBar-searchPillLarge) */
.ms-search {
  margin-top: 40px; max-width: 1000px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 30px;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 50px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  color: var(--ms-ink); text-shadow: none;
}
.ms-search__field { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.ms-search__field--wide { flex: 1.4 1 0; }
.ms-search__field label { font-size: .72rem; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--ms-muted); }
.ms-search__field select, .ms-search__field input {
  width: 100%; min-width: 0; border: none; outline: none; background: transparent;
  font: inherit; font-size: 1rem; color: var(--ms-ink); padding: 4px 0;
  -webkit-appearance: none; appearance: none; border-radius: 0;
}
.ms-search__field select {
  cursor: pointer; padding-right: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23717171' stroke-width='1.6'/%3E%3C/svg%3E") right 4px center no-repeat;
}
.ms-search__field input::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
.ms-search__divider { width: 1px; height: 38px; background: #ddd; flex-shrink: 0; margin: 0 8px; }
.ms-search .ms-btn { padding: 16px 32px; font-size: 1rem; flex-shrink: 0; }

.ms-trust { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 24px; }
.ms-trust li { display: flex; align-items: center; gap: 10px; font-size: .98rem; font-weight: 500; }
.ms-check { flex-shrink: 0; width: 22px; height: 22px; color: #2eca7f; }


/* ---------- Generic section ---------- */
.ms-section { padding: 100px 20px; }
.ms-section--tight-top { padding-top: 0; }
.ms-container { max-width: 1200px; margin: 0 auto; }
.ms-section__head { margin-bottom: 40px; }
.ms-section__head--center { text-align: center; }
.ms-h2 { font-size: 2.5rem; font-weight: 700; letter-spacing: -.5px; line-height: 1.15; color: var(--ms-ink); }
.ms-lead { margin-top: 8px; font-size: 1rem; color: var(--ms-muted); }

/* Cards (Comparison grid / StickySteps modernCard) */
.ms-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ms-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ms-card {
  background: #fff; border-radius: 24px; padding: 36px 30px;
  border: var(--ms-card-border); box-shadow: var(--ms-card-shadow);
}
.ms-card h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; margin-bottom: 12px; color: var(--ms-ink); }
.ms-card p { font-size: 1.02rem; line-height: 1.6; color: var(--ms-muted-2); }
.ms-card__icon {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 22px;
  display: grid; place-items: center; background: rgba(243, 111, 36, .1); color: var(--ms-orange);
}
.ms-card__icon svg { width: 24px; height: 24px; }

/* How it works (StickySteps) */
.ms-steps .ms-card { padding: 40px 32px; }
.ms-step__num {
  font-family: var(--ms-sans); font-size: 3.5rem; line-height: 1; color: var(--ms-orange);
  margin-bottom: 15px; text-shadow: 0 4px 15px rgba(243, 111, 36, 0.3);
}
.ms-steps h3 { font-family: var(--ms-serif); font-weight: 400; font-size: 1.6rem; }
.ms-steps__list { list-style: none; margin: 0; padding: 0; }

/* Cars (FeaturedCars) */
.ms-cars__empty {
  margin: 0 auto;
  max-width: 520px;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ms-muted-2);
}
.ms-cars__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.ms-car { display: flex; flex-direction: column; }
.ms-car__media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; margin-bottom: 12px; background: #f0f0f0; }
.ms-car__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ms-car:hover .ms-car__media img { transform: scale(1.03); }
.ms-car__policy {
  position: absolute; left: 12px; top: 12px;
  font-size: .75rem; font-weight: 600; padding: 6px 12px; border-radius: 30px;
  background: rgba(255,255,255,.95); color: var(--ms-ink);
}
.ms-car__body { display: flex; flex-direction: column; gap: 2px; padding: 0 4px; }
.ms-car__name { font-size: 1.1rem; font-weight: 700; color: var(--ms-ink-strong); letter-spacing: -.3px; }
.ms-car__meta { font-size: .95rem; color: var(--ms-muted); }
.ms-car__price { margin-top: 6px; font-size: 1rem; color: var(--ms-ink-strong); }
.ms-car__price strong { font-size: 1.05rem; font-weight: 700; }
.ms-cars__cta { text-align: center; margin-top: 50px; }
.ms-car__pickup { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: .88rem; font-weight: 600; color: var(--ms-ink); }
.ms-car__pickup svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--ms-orange); }

/* Customer service */
.ms-support__card { display: block; color: inherit; }
.ms-support__card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); }
.ms-support__card:hover h3 { color: var(--ms-orange); }
.ms-support__card p { word-break: break-word; }
.ms-card__icon--wa { background: rgba(37, 211, 102, .12); color: #25d366; }

/* WhatsApp floating button (sits where the site's floating language button sits) */
.ms-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 1001;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}
.ms-fab svg { width: 30px; height: 30px; }
.ms-fab:hover, .ms-fab:focus-visible { transform: scale(1.08); }
.ms-fab__tip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  white-space: nowrap; background: var(--ms-nav); color: #fff;
  font-size: .85rem; font-weight: 500; padding: 8px 14px; border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.ms-fab:hover .ms-fab__tip, .ms-fab:focus-visible .ms-fab__tip { opacity: 1; }

/* Cancellation */
.ms-policy { text-align: center; }
.ms-policy .ms-policy__name { font-size: .85rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--ms-orange); margin: 0; }
.ms-policy .ms-policy__figure {
  font-family: var(--ms-serif); font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.15;
  margin: 14px 0; color: var(--ms-ink); white-space: normal;
}

/* FAQ (Faq module) */
.ms-faq { max-width: 900px; margin: 0 auto; }
.ms-faq .ms-h2 { font-weight: 600; text-align: center; margin-bottom: 40px; }
.ms-faq__item { border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.ms-faq__item:last-child { border-bottom: none; }
.ms-faq__q {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 24px 0; border: none; background: transparent; cursor: pointer;
  font: inherit; font-size: 1.25rem; font-weight: 600; text-align: start; color: var(--ms-ink);
}
.ms-faq__q::after {
  content: ""; flex-shrink: 0; margin-inline-start: auto; width: 14px; height: 14px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s;
}
.ms-faq__q[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-3px, -3px); }
.ms-faq__a { overflow: hidden; max-height: 0; transition: max-height .3s; font-size: 1.05rem; line-height: 1.7; }
.ms-faq__a p {
  margin: 0 0 1.1em;
}
.ms-faq__a p:last-child { margin-bottom: 0; padding-bottom: 28px; }
.ms-faq__a > p:only-child { padding-bottom: 28px; }
.ms-faq__a a { color: var(--ms-orange); text-decoration: underline; text-underline-offset: 2px; }
.ms-faq__a.is-open { max-height: 2400px; }
.ms-faq__a ul {
  list-style-type: disc;
  list-style-position: outside;
  margin: 0.25em 0 1.1em;
  padding-left: 1.35em;
}
.ms-faq__a li {
  display: list-item;
  margin-bottom: 0.5em;
}
.ms-faq__a li:last-child { margin-bottom: 0; padding-bottom: 28px; }

/* Final CTA (Contact wrapper) */
.ms-final { padding: 0 20px; }
.ms-final__box {
  max-width: 1200px; margin: 40px auto 80px; padding: 80px 60px;
  background: var(--ms-dark); color: #fff; border-radius: 40px; text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}
.ms-final__box .ms-overline { justify-content: center; color: var(--ms-orange); letter-spacing: 2px; font-size: .9rem; margin-bottom: 18px; }
.ms-final__box .ms-overline::before, .ms-final__box .ms-overline::after { content: ""; height: 1px; width: 30px; background: currentColor; opacity: .8; }
.ms-final__box h2 { font-size: 2.8rem; font-weight: 700; line-height: 1.1; letter-spacing: -1px; }
.ms-final__box p { max-width: 640px; margin: 18px auto 36px; color: #a0a0a0; font-size: 1.1rem; }
.ms-final__small { margin-top: 28px !important; margin-bottom: 0 !important; font-size: .95rem !important; }
.ms-final__small a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.3); }
.ms-final__small a:hover { color: var(--ms-orange); border-color: var(--ms-orange); }

/* Footer (Footer module) */
.ms-footer { background: #000; color: #fff; padding: 64px 20px 40px; border-radius: 40px 40px 0 0; }
.ms-footer__grid { max-width: 1200px; margin: 0 auto 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 30px; }
.ms-footer__logo { height: 40px; width: auto; }
.ms-footer__tagline { color: #a0a0a0; font-size: .95rem; margin-top: 15px; }
.ms-footer__links { display: flex; flex-wrap: wrap; gap: 12px 30px; }
.ms-footer__links a { color: #a0a0a0; font-size: 1rem; }
.ms-footer__links a:hover { color: var(--ms-orange); }
.ms-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 15px;
  align-items: center;
}
.ms-footer__social-label {
  color: #a0a0a0;
  font-size: 1rem;
}
.ms-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #111;
  transition: all 0.3s ease;
}
.ms-footer__social a:hover {
  background: var(--ms-orange);
  transform: translateY(-3px);
}
.ms-footer__social img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.ms-footer__bottom { max-width: 1200px; margin: 0 auto; padding-top: 30px; border-top: 1px solid #222; color: #666; font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.ms-footer .ms-lang a { color: #a0a0a0; }
.ms-footer .ms-lang [aria-current="page"] { color: #fff; }

/* Mobile bottom bar */
.ms-mbar { display: none; }

/* ---------- Responsive (breakpoints from the live site) ---------- */
@media (max-width: 1100px) {
  .ms-grid-4, .ms-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .ms-search { flex-wrap: wrap; border-radius: 24px; padding: 18px 20px; }
  .ms-search__field { flex: 1 1 28%; }
  .ms-search .ms-btn { width: 100%; }
}
@media (max-width: 900px) {
  .ms-nav { width: 95%; padding: 8px 8px 8px 20px; }
  .ms-nav__links, .ms-nav .ms-lang { display: none; }
  .ms-nav__logo img { height: 30px; }
  .ms-cars__row {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px;
    margin: 0 -20px; padding: 0 20px 8px; scrollbar-width: none;
  }
  .ms-cars__row::-webkit-scrollbar { display: none; }
  .ms-car { flex: 0 0 78%; max-width: 340px; scroll-snap-align: start; }
}
@media (max-width: 768px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .ms-section { padding: 64px 20px; }
  .ms-h2 { font-size: 2rem; }
  .ms-grid-4, .ms-grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .ms-card { padding: 26px 22px; }
  .ms-steps .ms-card { padding: 26px 22px; display: grid; grid-template-columns: auto 1fr; column-gap: 18px; }
  .ms-step__num { font-size: 2.6rem; grid-row: span 2; margin: 0; }
  .ms-steps h3 { font-size: 1.35rem; margin-bottom: 6px; }
  .ms-card__icon { margin-bottom: 14px; }

  .ms-hero { min-height: 0; align-items: flex-start; padding: 96px 16px 32px; background-image: url("img/hero-mobile.webp"); }
  .ms-hero::before { background: linear-gradient(180deg, rgba(14,18,16,.88) 0%, rgba(14,18,16,.78) 60%, rgba(14,18,16,.6) 100%); }
  .ms-overline { margin-bottom: 12px; font-size: .72rem; }
  .ms-hero h1 { font-size: 2.35rem; line-height: 1.05; letter-spacing: -1px; }
  .ms-hero__sub { margin-top: 12px; font-size: .95rem; line-height: 1.5; }
  .ms-search { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 14px; border-radius: 24px; }
  .ms-search__field--wide, .ms-search .ms-btn { grid-column: 1 / -1; }
  .ms-search__field { background: #f4f3f1; border-radius: 14px; padding: 8px 12px; }
  .ms-search__field label { font-size: .66rem; }
  .ms-search__field select, .ms-search__field input { font-size: 16px; padding: 2px 0; } /* 16px stops iOS zoom-on-focus */
  .ms-search__divider { display: none; }
  .ms-search .ms-btn { padding: 15px 20px; font-size: 1rem; }
  .ms-trust { flex-direction: column; gap: 8px; margin-top: 18px; }
  .ms-trust li { font-size: .92rem; }

  .ms-policy .ms-policy__figure { font-size: 2.2rem; }
  .ms-faq__q { font-size: 1.08rem; padding: 20px 0; }
  .ms-final__box { padding: 48px 22px; margin: 20px auto 48px; border-radius: 32px; }
  .ms-final__box h2 { font-size: 2rem; }
  .ms-btn { padding: 15px 28px; font-size: 1rem; max-width: 100%; }
  .ms-nav { top: 12px; }
  .ms-nav .ms-btn--sm { padding: 10px 18px; font-size: .88rem; }
  .ms-nav__logo img { height: 26px; }
  .ms-footer { padding: 48px 20px 32px; }
  .ms-footer__grid { flex-direction: column; align-items: flex-start; }

  .ms-mbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(40, 40, 40, 0.95);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .ms-mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 30px; padding: 13px 10px; font-weight: 600; font-size: .98rem; }
  .ms-mbar__wa { color: #fff; background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); }
  .ms-mbar__wa svg { width: 20px; height: 20px; }
  /* On phones the fixed bottom bar already carries a permanent WhatsApp button */
  .ms-fab { display: none; }
}
/* Short phones (e.g. iPhone SE): keep the whole search box above the bottom bar */
@media (max-width: 768px) and (max-height: 720px) {
  .ms-hero { padding-top: 78px; }
  .ms-overline { margin-bottom: 8px; }
  .ms-hero h1 { font-size: 2.05rem; }
  .ms-hero__sub { margin-top: 8px; font-size: .9rem; line-height: 1.45; }
  .ms-search { margin-top: 14px; gap: 8px 10px; padding: 12px; }
  .ms-search__field { padding: 6px 12px; }
  .ms-search .ms-btn { padding: 13px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* React minimal shell (body.ms-ads-landing): no bootstrap / app-common */
body.ms-ads-landing #app {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
