/* ==========================================================================
   MB Mobility Solutions — marcobani.com
   ========================================================================== */

:root {
  --white: #ffffff;
  --gray: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --hairline: #d2d2d7;
  --accent: #e11d2e;
  --accent-deep: #b31423;
  --nav-h: 52px;
  --radius: 28px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(22, 22, 23, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: background 0.4s ease;
}

.nav-inner {
  max-width: 1024px;
  margin: 0 auto;
  height: 100%;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  color: #f5f5f7;
  letter-spacing: -0.01em;
}

.nav-logo img {
  height: 20px;
  width: auto;
  filter: invert(1) grayscale(1) brightness(1.8);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}

.nav-links a {
  color: rgba(245, 245, 247, 0.8);
  font-size: 13px;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

.nav-links a:hover { color: #fff; }

.nav-cta {
  font-size: 13px;
  color: #fff !important;
  background: var(--accent);
  padding: 7px 16px;
  border-radius: 980px;
  transition: background 0.25s ease;
}

.nav-cta:hover { background: var(--accent-deep); }

.nav-burger {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
}

.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  content: "";
  position: absolute;
  left: 10px;
  width: 20px;
  height: 1.5px;
  background: #f5f5f7;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-burger span { top: 19px; }
.nav-burger span::before { left: 0; top: -6px; }
.nav-burger span::after { left: 0; top: 6px; }

body.menu-open .nav-burger span { background: transparent; }
body.menu-open .nav-burger span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  background: #000;
  color: #f5f5f7;
  padding-top: calc(var(--nav-h) + 72px);
  text-align: center;
  overflow: hidden;
}

.hero-eyebrow {
  font-size: 17px;
  font-weight: 600;
  color: rgba(245, 245, 247, 0.7);
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 15ch;
  margin: 0 auto;
}

.hero h1 .grad {
  background: linear-gradient(92deg, #ff6a3d 0%, var(--accent) 55%, #ff2d55 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  font-size: clamp(19px, 2.4vw, 26px);
  line-height: 1.35;
  color: rgba(245, 245, 247, 0.75);
  max-width: 34ch;
  margin: 22px auto 0;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-img {
  margin-top: 56px;
  position: relative;
}

.hero-img img {
  width: min(1180px, 100%);
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}

/* Buttons & text links */

.btn {
  display: inline-block;
  font-size: 17px;
  padding: 12px 24px;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  transition: background 0.25s ease;
}

.btn:hover { background: var(--accent-deep); }

.link-arrow {
  display: inline-block;
  font-size: 17px;
  color: #2997ff;
  transition: opacity 0.25s ease;
}

.hero .link-arrow { line-height: 1; padding: 12px 0; }

.link-arrow::after { content: "\00a0›"; }
.link-arrow:hover { text-decoration: underline; }

.section-light .link-arrow { color: #0066cc; }

/* --------------------------------------------------------------------------
   Sections — shared
   -------------------------------------------------------------------------- */

.section { padding: 110px 0; }
.section-gray { background: var(--gray); }
.section-dark { background: #000; color: #f5f5f7; }

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

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head .eyebrow {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.section-head h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.08;
}

.section-head p {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.45;
}

.section-dark .section-head p { color: rgba(245, 245, 247, 0.7); }

/* --------------------------------------------------------------------------
   Services — bento grid
   -------------------------------------------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1),
              box-shadow 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.1);
}

.card-wide { grid-column: span 2; }

.card-body {
  padding: 44px 44px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.card h3 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.14;
}

.card p {
  color: var(--muted);
  font-size: 17px;
  max-width: 56ch;
}

.card .tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card-media {
  order: 2;
  margin-top: auto;
}

.card-media img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.card-wide .card-media img { height: 380px; }

.card-dark {
  background: #1d1d1f;
  color: #f5f5f7;
}

.card-dark p { color: rgba(245, 245, 247, 0.7); }

.card ul.incl {
  list-style: none;
  color: var(--muted);
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 4px;
}

.card ul.incl li {
  border: 1px solid var(--hairline);
  border-radius: 980px;
  padding: 5px 14px;
}

.card-dark ul.incl { color: rgba(245, 245, 247, 0.75); }
.card-dark ul.incl li { border-color: rgba(245, 245, 247, 0.25); }

/* --------------------------------------------------------------------------
   Fleet management
   -------------------------------------------------------------------------- */

.fleet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.fleet-media img {
  border-radius: var(--radius);
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.fleet-list {
  list-style: none;
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

.fleet-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 17px;
  color: rgba(245, 245, 247, 0.85);
}

.fleet-list svg {
  flex: none;
  margin-top: 2px;
}

.fleet-cta { margin-top: 40px; }

/* --------------------------------------------------------------------------
   Process — 3 steps
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  background: var(--gray);
  border-radius: var(--radius);
  padding: 40px 36px 44px;
}

.step .num {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
}

.step h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.step p { color: var(--muted); }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 72px;
  align-items: center;
}

.about-photo {
  position: relative;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-copy h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.1;
  margin-bottom: 22px;
}

.about-copy p {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.5;
}

.about-copy p + p { margin-top: 16px; }

.about-copy strong { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact { text-align: center; }

.contact h2 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.contact .lede {
  font-size: 21px;
  color: var(--muted);
  max-width: 44ch;
  margin: 18px auto 0;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  justify-content: center;
  gap: 20px;
  margin-top: 52px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 44px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1),
              box-shadow 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.1);
}

.contact-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  color: #fff;
}

.icon-mail { background: var(--ink); }
.icon-wa { background: #25d366; }

.contact-card h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.contact-card span { color: var(--muted); font-size: 15px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--gray);
  border-top: 1px solid var(--hairline);
  padding: 34px 0 44px;
  font-size: 12px;
  color: var(--muted);
}

.footer .container { max-width: 1024px; }

.footer-note {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
  max-width: 72ch;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  padding-top: 18px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  list-style: none;
}

.footer-legal li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  background: var(--hairline);
  margin: 0 14px;
  vertical-align: -1px;
}

.footer a:hover { color: var(--ink); text-decoration: underline; }

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.legal-hero {
  background: var(--gray);
  padding: calc(var(--nav-h) + 80px) 0 56px;
}

.legal-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.1;
  max-width: 22ch;
}

.legal-hero .meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

.legal-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 110px;
}

.legal-body h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 44px 0 12px;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p, .legal-body li { color: #424245; }
.legal-body p + p { margin-top: 12px; }

.legal-body ul, .legal-body ol { padding-left: 22px; margin: 12px 0; }
.legal-body li + li { margin-top: 8px; }

.legal-body a { color: #0066cc; }
.legal-body a:hover { text-decoration: underline; }

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}

.legal-body th, .legal-body td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
  color: #424245;
}

.legal-body th { color: var(--ink); font-weight: 600; }

/* 404 */

.error-page {
  min-height: 82vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
}

.error-page h1 {
  font-size: clamp(48px, 10vw, 110px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.error-page p { color: var(--muted); font-size: 21px; margin: 14px 0 30px; }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .contact-card { transition: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 880px) {
  .section { padding: 76px 0; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(22, 22, 23, 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 24px 28px;
    display: none;
  }

  body.menu-open .nav-links { display: flex; }

  .nav-links li { width: 100%; border-bottom: 1px solid rgba(245,245,247,0.1); }
  .nav-links li:last-child { border-bottom: 0; padding-top: 18px; }
  .nav-links a { display: block; padding: 16px 0; font-size: 17px; }
  .nav-cta { display: inline-block; padding: 10px 22px; }

  .nav-burger { display: block; }

  .bento { grid-template-columns: 1fr; }
  .card-wide { grid-column: auto; }
  .card-body { padding: 32px 28px 28px; }
  .card-media img, .card-wide .card-media img { height: 240px; }

  .fleet-grid { grid-template-columns: 1fr; gap: 40px; }
  .fleet-media { order: 2; }
  .fleet-media img { height: 320px; }

  .steps { grid-template-columns: 1fr; }

  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { max-width: 260px; }

  .contact-cards { grid-template-columns: 1fr; }
}
