/* ============================================================
   MBX FACILITIES — design system
   ============================================================ */
:root {
  --bg: #0A0A0A;
  --surface: #141414;
  --surface-2: #1C1C1C;
  --ink: #FFFFFF;
  --ink-2: #A8A8A8;
  --ink-3: #6E6E6E;
  --gold: #C9A86A;
  --gold-hi: #E0C589;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  --max: 1200px;
  --pad-x: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 10vw, 140px);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 14px;
  --radius-sm: 8px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ============================================================
   WORDMARK — recreates the MBX FACILITIES logo lockup
   ============================================================ */
.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.wordmark__name {
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.wordmark__sub {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.wordmark__rule {
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--gold);
}

.wordmark--footer .wordmark__name { font-size: 36px; }
.wordmark--footer .wordmark__sub { font-size: 10px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.btn--primary {
  background: var(--gold);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--gold-hi);
  transform: translateY(-1px);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px var(--pad-x);
}

.nav__cta {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav__cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px var(--pad-x) 100px;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.55) 40%, rgba(10,10,10,0.85) 100%),
    linear-gradient(90deg, rgba(10,10,10,0.4) 0%, transparent 60%);
}

.hero__content {
  max-width: 720px;
  margin: 0 auto 0 0;
  width: 100%;
  max-width: min(720px, calc(var(--max) - var(--pad-x) * 2));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(48px, 9vw, 112px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__sub {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--ink-2);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.5;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  right: var(--pad-x);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.hero__scroll-line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--ink-2);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.section__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.section__lede {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 560px;
  line-height: 1.55;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { padding: var(--section-y) 0; }

.services__grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.services__grid--six {
  grid-template-columns: repeat(3, 1fr);
}

.service {
  background: var(--bg);
  padding: 40px 32px;
  transition: background 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.service:hover { background: var(--surface); }

.service__icon {
  width: 44px;
  height: 44px;
  color: var(--gold);
  margin-bottom: 28px;
}

.service__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.service__copy {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.service__list {
  list-style: none;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service__list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--ink-2);
  letter-spacing: 0.005em;
}
.service__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.howit {
  padding: var(--section-y) 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps {
  list-style: none;
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  counter-reset: step;
  position: relative;
}

.step {
  position: relative;
  padding: 32px 24px 32px 0;
  border-top: 1px solid var(--line-2);
}
.step + .step { border-left: 1px solid var(--line); padding-left: 24px; }

.step__num {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 18px;
}

.step__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 8px;
  line-height: 1.25;
}

.step__copy {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ============================================================
   WHY MBX
   ============================================================ */
.why {
  padding: var(--section-y) 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.why__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}

.why__lede {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 520px;
}

.why__stats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.why__stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.why__stat:last-child { border-bottom: 0; padding-bottom: 0; }

.why__stat-num {
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gold);
}

.why__stat-label {
  font-size: 14px;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding: var(--section-y) 0; }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__lede {
  font-size: 17px;
  color: var(--ink-2);
  margin-bottom: 40px;
  max-width: 440px;
}

.channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 440px;
}

.channel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.channel:hover {
  border-color: var(--gold);
  background: var(--surface-2);
  transform: translateY(-1px);
}

.channel__icon {
  width: 22px;
  height: 22px;
  color: var(--gold);
  flex-shrink: 0;
}

.channel__label {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.channel__desc {
  font-size: 13px;
  color: var(--ink-2);
}

/* Form */
.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}

.form__title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.field {
  display: block;
  margin-bottom: 18px;
}

.field__label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.field__optional {
  color: var(--ink-3);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.field__input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.field__input:focus {
  outline: none;
  border-color: var(--gold);
  background: #0F0F0F;
}

.field__input--textarea {
  resize: vertical;
  min-height: 96px;
  font-family: inherit;
}

.form__submit {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}

.form__status {
  margin-top: 16px;
  font-size: 14px;
  color: var(--gold);
  min-height: 1em;
}
.form__status[data-state="error"] { color: #FF8A8A; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer__meta { display: flex; flex-direction: column; gap: 6px; }

.footer__tagline {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer__contact {
  font-size: 14px;
  color: var(--ink-2);
}

.footer__copy {
  font-size: 13px;
  color: var(--ink-3);
}

/* ============================================================
   FLOATING WHATSAPP FAB
   ============================================================ */
.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--gold);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(201, 168, 106, 0.4);
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.2s var(--ease);
  z-index: 50;
}
.fab svg { width: 28px; height: 28px; }
.fab:hover { background: var(--gold-hi); }

.fab.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 880px) {
  .services__grid,
  .services__grid--six { grid-template-columns: repeat(2, 1fr); }
  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .step + .step {
    border-left: 0;
    padding-left: 0;
  }
  .step {
    padding: 28px 0;
  }
  .why__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .form { padding: 28px 24px; }
  .nav { padding: 20px var(--pad-x); }
  .hero__scroll { display: none; }
}

@media (max-width: 560px) {
  .services__grid,
  .services__grid--six { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .nav__cta { padding: 8px 14px; font-size: 13px; }
  .wordmark__name { font-size: 22px; }
  .wordmark__sub { font-size: 8px; letter-spacing: 0.28em; }
  .wordmark__rule { width: 12px; }
  .hero { padding: 110px var(--pad-x) 80px; }
  .btn { padding: 14px 22px; font-size: 14px; }
  .why__stat-num { font-size: 36px; }
  .channel { padding: 16px 18px; gap: 14px; }
  .fab { bottom: 16px; right: 16px; }
}

/* Honor user motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .hero__video { display: none; }
  .hero { background: var(--bg); }
}
