@font-face {
  font-family: "Cerebri Sans";
  src: url("../fonts/CerebriSans-Book.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cerebri Sans";
  src: url("../fonts/CerebriSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cerebri Sans";
  src: url("../fonts/CerebriSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cerebri Sans";
  src: url("../fonts/CerebriSans-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #FA1818;
  --red-dark: #d41414;
  --red-soft: rgba(250, 24, 24, .1);
  --ink: #1a202c;
  --text: #4a5160;
  --muted: #696969;
  --bg-soft: #f7f7f8;
  --line: #ececec;
  --dark: #111418;
  --radius: 15px;
  --shadow: 0 18px 40px rgba(51, 51, 51, .1);
  --header-h: 76px;
  --container: 1200px;
  --font: "Cerebri Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { min-height: 44px; padding: 8px 20px; font-size: 15px; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 18px rgba(250, 24, 24, .28); }
.btn--primary:hover { background: var(--red-dark); box-shadow: 0 12px 24px rgba(250, 24, 24, .34); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--white { background: #fff; color: var(--red); box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.btn--white:hover { box-shadow: 0 12px 24px rgba(0, 0, 0, .25); }
.btn svg { flex: 0 0 auto; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .08); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}
.site-header__logo img { width: 221px; height: auto; }

.site-nav__list { display: flex; align-items: center; gap: 32px; }
.site-nav__list a:not(.btn) {
  position: relative;
  padding: 6px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.site-nav__list a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform .25s;
}
.site-nav__list a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s, background-color .25s;
}
.nav-toggle__bar { position: relative; }
.nav-toggle__bar::before,
.nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(760px, calc(100svh - var(--header-h)));
  padding: 96px 0;
  overflow: hidden;
  background: #05080d url("../img/hero.jpg") center / cover no-repeat;
  color: #fff;
}
.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 12, .88) 0%, rgba(2, 6, 12, .66) 40%, rgba(2, 6, 12, .2) 75%, rgba(2, 6, 12, .05) 100%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 1; }
.hero__title {
  max-width: 760px;
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero__text {
  max-width: 600px;
  margin: 24px 0 0;
  font-size: clamp(17px, 1.6vw, 20px);
  color: rgba(255, 255, 255, .88);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

/* ---------- Seções ---------- */
.section { padding: 100px 0; }
.section-head { max-width: 820px; margin: 0 auto 56px; text-align: center; }
.section-title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.section-lead { margin: 20px auto 0; font-size: 19px; }

.eyebrow {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow--light { color: #fff; opacity: .9; }

/* Soluções */
.solutions { background: var(--bg-soft); }
.solutions__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.solution-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 40px 32px 32px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.solution-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--red);
  opacity: 0;
  transition: opacity .3s cubic-bezier(.645, .045, .355, 1);
}
.solution-card__title {
  margin-bottom: 18px;
  font-size: 28px;
  font-weight: 800;
  color: var(--red);
  transition: color .3s;
}
.solution-card__text { flex: 1; font-size: 17px; transition: color .3s; }
.solution-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: color .3s;
}
.solution-card__link::after { content: "→"; transition: transform .25s; }
.solution-card__link::before { content: ""; position: absolute; inset: 0; }
.solution-card:hover::before,
.solution-card:focus-within::before { opacity: 1; }
.solution-card:hover .solution-card__title,
.solution-card:hover .solution-card__text,
.solution-card:hover .solution-card__link,
.solution-card:focus-within .solution-card__title,
.solution-card:focus-within .solution-card__text,
.solution-card:focus-within .solution-card__link { color: #fff; }
.solution-card:hover .solution-card__link::after { transform: translateX(4px); }
.solution-card__link:focus-visible { outline: none; }
.solution-card:has(.solution-card__link:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Sobre */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.about__content .section-title { margin-bottom: 24px; }
.about__signature { margin-top: 24px; font-size: 19px; font-weight: 700; color: var(--ink); }

.highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 72px;
  padding: 36px 24px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  text-align: center;
}
.highlights__item strong {
  display: block;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--red);
}
.highlights__item span { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); }

/* Valores */
.values { background: var(--bg-soft); }
.values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value {
  padding: 32px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.value__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 800;
}
.value__title::before {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--red);
  box-shadow: 0 0 0 6px var(--red-soft);
}
.value p { margin: 0; }

/* Parceiros */
.partners { padding: 72px 0; }
.partners__title { margin-bottom: 36px; text-align: center; font-size: 22px; font-weight: 700; }
.partners__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px 88px;
}
.partners__list img { width: auto; height: 56px; object-fit: contain; }

/* Contato */
.contact { background: var(--red); color: #fff; }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.contact__title { color: #fff; font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; }
.contact__text { margin: 20px 0 32px; font-size: 19px; color: rgba(255, 255, 255, .9); }
.contact__phone { margin: 20px 0 0; font-size: 15px; color: rgba(255, 255, 255, .85); }
.contact__phone a { font-weight: 700; color: #fff; }
.contact__form {
  min-width: 0;
  min-height: 160px;
  padding: 32px;
  border-radius: 20px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 28px 60px rgba(0, 0, 0, .2);
}
.contact__form-fallback { margin: 0; color: var(--muted); }

/* O RD Station injeta larguras fixas (440–480px) que estouram o cartão no mobile */
.contact__form section,
.contact__form form,
.contact__form [class*="bricks--"],
.contact__form [class*="bricks-form"],
.contact__form [class*="rd-"] {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
.contact__form .bricks--section,
.contact__form .bricks--row,
.contact__form .bricks--column,
.contact__form .bricks--column > div {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ---------- Rodapé ---------- */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .65); font-size: 15px; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 48px;
}
.site-footer__brand { display: flex; align-items: center; gap: 28px; }
.site-footer__brand img:first-child { width: 165px; }
.site-footer__brand img:last-child { width: 37px; }
.site-footer__title {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
}
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.site-footer__phone { margin: 14px 0 0; }
.site-footer__bottom { padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.site-footer__bottom p { margin: 0; }

.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  transition: background-color .2s, transform .2s;
}
.social a:hover { background: var(--red); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }

/* WhatsApp flutuante */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.07); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* Animação de entrada (ativada pelo JS) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .solutions__grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }

  .site-header__logo img { width: 180px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
    overflow-y: auto;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list li { border-bottom: 1px solid var(--line); }
  .site-nav__list li:last-child { border-bottom: 0; padding-top: 20px; }
  .site-nav__list a:not(.btn) { display: block; padding: 18px 0; font-size: 19px; }
  .site-nav__list a:not(.btn)::after { display: none; }
  .site-nav__list .btn { width: 100%; min-height: 54px; font-size: 17px; }
  body.nav-open { overflow: hidden; }

  .hero { padding: 72px 0; }
  .hero__overlay { background: linear-gradient(180deg, rgba(2, 6, 12, .8) 0%, rgba(2, 6, 12, .66) 55%, rgba(2, 6, 12, .85) 100%); }

  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }

  .about__grid,
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__media { max-width: 520px; margin: 0 auto; }

  .highlights { grid-template-columns: repeat(2, 1fr); margin-top: 56px; }
  .values__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }

  .hero__actions .btn { width: 100%; }
  .solutions__grid,
  .values__grid { grid-template-columns: 1fr; }
  .solution-card { min-height: 0; padding: 32px 24px 28px; }

  .partners__list { gap: 32px 48px; }
  .partners__list img { height: 40px; }

  .contact .btn { width: 100%; }
  .contact__form { padding: 20px; }

  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

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