/* ==========================================================
   Motriz Serviços e Soluções — Landing page
   Mobile-first
   ========================================================== */

:root {
  --navy: #0B1B36;
  --navy-2: #12284d;
  --blue: #003A8C;
  --blue-light: #2f6fd1;
  --gray: #E8E8E8;
  --gray-2: #f4f4f4;
  --text: #2b3445;
  --muted: #5a6475;
  --white: #ffffff;
  --wa: #1f9e4f;          /* verde WhatsApp escurecido p/ contraste AA com texto branco */
  --wa-hover: #188542;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 27, 54, .08);
  --shadow-lg: 0 18px 40px rgba(11, 27, 54, .16);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* SVG sprite icons: traço */
svg use { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .8em 1.5em;
  font: inherit; font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  border: 2px solid transparent; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 1.3em; height: 1.3em; }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--navy); }
.btn--whatsapp { background: var(--wa); color: var(--white); }
.btn--whatsapp:hover { background: var(--wa-hover); box-shadow: 0 8px 20px rgba(31, 158, 79, .3); }
.btn--ghost { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--navy); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--gray); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(11, 27, 54, .08); border-color: var(--gray); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* Logo (símbolos #brand-core / #brand-tagline no index.html) */
.brand { display: inline-flex; align-items: center; color: var(--navy); --brand-rule: var(--blue); text-decoration: none; }
.brand__svg { width: auto; overflow: visible; }
.brand__svg--compact { height: 32px; }
.brand__svg--full { height: 92px; }
.brand--light { color: var(--white); --brand-rule: #4B5B7C; }
.brand use, .hero__mark use { fill: currentColor; stroke: none; }

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: fixed; top: var(--header-h); left: 0; right: 0;
  background: var(--white); padding: 12px 20px 24px;
  box-shadow: 0 12px 24px rgba(11, 27, 54, .12);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.nav.is-open { transform: none; opacity: 1; visibility: visible; }
.nav__list a {
  display: block; padding: 14px 4px; border-bottom: 1px solid var(--gray);
  color: var(--navy); font-weight: 600; text-decoration: none;
}
.nav__list a:hover, .nav__list a.is-active { color: var(--blue); }
.nav__cta { width: 100%; margin-top: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: 92vh; padding: calc(var(--header-h) + 48px) 0 72px;
  color: var(--white);
  background:
    radial-gradient(1000px 500px at 85% 20%, rgba(47, 111, 209, .35), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--blue) 100%);
  overflow: hidden;
}
/* Ícone da marca como marca d'água (pode ser combinado com foto de equipe + overlay) */
.hero__mark {
  position: absolute; right: -18vw; bottom: -14vw; width: 70vw; max-width: 680px; height: auto;
  color: var(--white); opacity: .06; pointer-events: none;
  animation: spin 90s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__inner { position: relative; z-index: 1; }
.hero__title { color: var(--white); font-size: clamp(2rem, 7vw, 3.6rem); font-weight: 800; max-width: 14ch; }
.hero__subtitle { font-size: clamp(1.05rem, 2.6vw, 1.25rem); max-width: 40ch; color: #dbe5f5; margin-bottom: 2em; }
.hero__actions { display: flex; flex-direction: column; gap: 12px; }

.eyebrow {
  display: inline-block; margin-bottom: .9em;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue);
}
.hero .eyebrow, .eyebrow--light { color: #9fc0f5; }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; background: currentColor; vertical-align: middle; margin-right: 10px; }

/* ---------- Seções ---------- */
.section { padding: 72px 0; }
.section--gray { background: var(--gray); }
.section--dark { background: var(--navy); color: #d6deeb; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section__head { max-width: 720px; margin-bottom: 40px; }
.section__title { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 800; }
.section__lead { color: var(--muted); font-size: 1.05rem; }

/* Quem somos */
.about { display: grid; gap: 36px; }
.about__text p { color: var(--muted); }
.highlight {
  position: relative; padding: 32px 28px; border-radius: var(--radius);
  background: var(--navy); color: #d6deeb; box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--blue-light);
}
.highlight h3 { color: var(--white); font-size: 1.3rem; }
.highlight strong { color: var(--white); }
.highlight__icon { width: 48px; height: 48px; color: #9fc0f5; margin-bottom: 16px; }
.highlight__list { margin-top: 20px; display: grid; gap: 10px; }
.highlight__list li { position: relative; padding-left: 28px; font-weight: 600; color: var(--white); }
.highlight__list li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px;
  border-left: 2px solid #9fc0f5; border-bottom: 2px solid #9fc0f5; transform: rotate(-45deg);
}

/* Serviços */
.cards { display: grid; gap: 20px; }
.card {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow); border-bottom: 3px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.card__icon {
  width: 56px; height: 56px; padding: 12px; margin-bottom: 18px;
  border-radius: 12px; background: rgba(0, 58, 140, .08); color: var(--blue);
}
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); font-size: .95rem; }
.card__more p { margin-top: -.25em; }
.card__toggle {
  margin-top: auto; align-self: flex-start; padding: 6px 0;
  background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .9rem; color: var(--blue);
  display: inline-flex; align-items: center; gap: 6px;
}
.card__toggle::after {
  content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .25s;
}
.card__toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }
.card__toggle:hover { color: var(--navy); }

/* Segmentos */
.segments { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.segment {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 22px 12px; border-radius: var(--radius);
  background: var(--gray-2); border: 1px solid var(--gray);
  font-weight: 700; font-size: .85rem; color: var(--navy); text-transform: uppercase; letter-spacing: .04em;
  transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.segment svg { width: 36px; height: 36px; color: var(--blue); transition: color .25s; }
.segment:hover { background: var(--navy); color: var(--white); transform: translateY(-3px); }
.segment:hover svg { color: #9fc0f5; }

/* Missão, visão, valores */
.mvv { display: grid; gap: 20px; }
.mvv__item {
  padding: 30px 26px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
}
.mvv__item svg { width: 44px; height: 44px; color: #9fc0f5; margin-bottom: 16px; }
.mvv__item h3 { font-size: 1.25rem; }
.values { display: flex; flex-wrap: wrap; gap: 8px; }
.values li {
  padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: rgba(159, 192, 245, .12); color: var(--white); border: 1px solid rgba(159, 192, 245, .25);
}

/* Clientes — faixa de logos */
.logos {
  display: flex; overflow: hidden; gap: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.logos__track {
  display: flex; flex-shrink: 0; gap: 20px; padding-right: 20px;
  animation: marquee 30s linear infinite;
}
.logos:hover .logos__track { animation-play-state: paused; }
.logo-item {
  display: grid; place-items: center; text-align: center;
  min-width: 200px; height: 96px; padding: 0 24px; border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow);
  font-weight: 800; font-size: .95rem; color: var(--navy); letter-spacing: .02em;
}
@keyframes marquee { to { transform: translateX(-100%); } }

/* Trabalhe conosco */
.cta-band {
  display: grid; gap: 24px; align-items: center;
  padding: 40px 28px; border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(120deg, var(--blue), var(--navy));
  color: #dbe5f5;
}
.cta-band h2 { color: var(--white); font-size: clamp(1.5rem, 4vw, 2rem); }
.cta-band p { margin: 0; max-width: 58ch; }

/* Contato */
.contact { display: grid; gap: 28px; }
.form { background: var(--white); padding: 28px 22px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form__row { display: grid; gap: 0 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .88rem; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--gray-2); border: 1.5px solid #c9ced6; border-radius: 10px;
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 3px rgba(0, 58, 140, .15); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.form__error { min-height: 1.2em; color: #b3261e; font-weight: 600; font-size: .9rem; margin-bottom: 12px; }
.form__error:empty { margin: 0; min-height: 0; }
.form__note { margin: 12px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }

.contact__list { display: grid; gap: 18px; margin-bottom: 24px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list svg { flex-shrink: 0; width: 44px; height: 44px; padding: 10px; border-radius: 10px; background: var(--navy); color: var(--white); }
.contact__list span { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact__list a, .contact__list address { font-style: normal; font-weight: 600; color: var(--navy); text-decoration: none; word-break: break-word; }
.contact__list a:hover { color: var(--blue); text-decoration: underline; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: #d5d9df; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* Footer */
.footer { background: var(--navy); color: #b9c4d6; padding: 56px 0 24px; font-size: .92rem; }
.footer__inner { display: grid; gap: 28px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer__slogan { margin: 16px 0 0; font-weight: 600; color: var(--white); font-style: italic; }
.footer__contacts { display: grid; gap: 8px; }
.footer a { color: #d6deeb; text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer__bottom { padding-top: 20px; }
.footer__bottom p { margin: 0; font-size: .82rem; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: var(--white); box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  transition: transform .25s var(--ease);
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366;
  animation: pulse 2.4s ease-out infinite; z-index: -1;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Intro (abertura da marca) ---------- */
.intro {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: #011027; cursor: pointer;
  transition: opacity .6s ease;
}
.intro-on .intro, .intro.is-leaving { display: block; }
.intro-on body { overflow: hidden; }
.intro.is-leaving { opacity: 0; pointer-events: none; }
.intro__stage { width: 100%; height: 100%; }
.intro__stage use { fill: inherit; stroke: inherit; stroke-width: inherit; }
.intro__main { font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif; font-weight: 500; }
.intro__sub { font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif; font-weight: 700; font-stretch: 125%; }
.intro__skip {
  position: absolute; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  min-height: 40px; padding: 9px 16px; border-radius: 6px; cursor: pointer;
  font: 600 .8rem/1 'Montserrat', sans-serif; letter-spacing: .04em; color: var(--white);
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .3);
}
.intro__skip:hover { background: rgba(255, 255, 255, .16); }

/* ---------- Animações de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .logos { overflow-x: auto; }
}

/* ==========================================================
   Breakpoints
   ========================================================== */
@media (min-width: 560px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .segments { grid-template-columns: repeat(3, 1fr); }
  .form__row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .section { padding: 96px 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .segments { grid-template-columns: repeat(4, 1fr); }
  .mvv { grid-template-columns: repeat(3, 1fr); }
  .cta-band { grid-template-columns: 1fr auto; padding: 48px; }
  .footer__inner { grid-template-columns: 1fr auto; align-items: start; }
  .form { padding: 36px 32px; }
}

@media (min-width: 1024px) {
  :root { --header-h: 80px; }
  .brand__svg--compact { height: 36px; }
  .brand__svg--full { height: 104px; }
  .hero__mark { right: -120px; bottom: -160px; }
  .about { grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .segments { grid-template-columns: repeat(6, 1fr); }
  .contact { grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
}

/* Menu horizontal só quando cabe ao lado da logo */
@media (min-width: 1160px) {
  .nav-toggle { display: none; }
  .nav {
    position: static; display: flex; align-items: center; gap: 28px;
    padding: 0; background: none; box-shadow: none;
    transform: none; opacity: 1; visibility: visible;
  }
  .nav__list { display: flex; gap: 24px; }
  .nav__list a { padding: 8px 0; white-space: nowrap; border: 0; font-size: .9rem; position: relative; }
  .nav__list a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
    background: var(--blue); transform: scaleX(0); transition: transform .25s var(--ease);
  }
  .nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }
  .nav__cta { white-space: nowrap; width: auto; margin: 0; min-height: 44px; padding: .6em 1.3em; font-size: .88rem; }
}

@media (min-width: 1200px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
}
