/* ===== Tokens ===== */
:root {
  --amber: #F5A623;
  --blue-deep: #1A3580;
  --blue-pulse: #3DAEF5;
  --dark: #1E2235;
  --white: #FFFFFF;
  --gray-light: #F4F6FB;

  --font-heading: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;

  --max-width: 1120px;
  --radius: 14px;
  --header-height: 76px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--blue-deep);
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  text-align: center;
  margin-bottom: 1rem;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.95rem 2.2rem;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn--primary {
  background: var(--amber);
  color: var(--dark);
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(245, 166, 35, 0.45);
}

/* ===== Header fixo ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--dark);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
  z-index: 900;
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
}

.site-header__logo img {
  height: 51px;
  width: auto;
  display: block;
}

.site-header__tagline {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--amber);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(160deg, var(--blue-deep) 0%, var(--dark) 100%);
  color: var(--white);
  padding: calc(var(--header-height) + 2rem) 0 5rem;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 3rem;
  text-align: left;
}

.hero__headline {
  color: var(--white);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
}

.hero__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.hero__subheadline {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255, 255, 255, 0.85);
}

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--gray-light);
}

.section--dark {
  background: var(--dark);
}

.section--dark h2 {
  color: var(--white);
}

.section--dark .section__lead {
  color: rgba(255, 255, 255, 0.75);
}

.section__lead {
  max-width: 62ch;
  margin: 0 auto 3rem;
  text-align: center;
  color: #4a4f66;
  font-size: 1.05rem;
}

/* ===== Comparativo ===== */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.compare__col {
  padding: 2rem;
  border-radius: var(--radius);
}

.compare__col--before {
  background: #fbeee0;
}

.compare__col--after {
  background: #e9f2ff;
}

.compare__title {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.compare__col--before .compare__title { color: #b5651d; }
.compare__col--after .compare__title { color: var(--blue-deep); }

.compare__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.compare__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.98rem;
}

.mark {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.mark--no {
  background: rgba(181, 101, 29, 0.15);
  color: #b5651d;
}

.mark--yes {
  background: rgba(61, 174, 245, 0.18);
  color: var(--blue-deep);
}

/* ===== Grid genérico ===== */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ===== Cards (o que a Lumai faz) ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  text-align: left;
  box-shadow: 0 1px 3px rgba(26, 53, 128, 0.08);
  border: 1px solid rgba(26, 53, 128, 0.06);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: rgba(245, 166, 35, 0.15);
  color: var(--amber);
  margin-bottom: 1.2rem;
}

.card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: #4a4f66;
}

/* ===== Projetos ===== */
.grid--projects {
  grid-template-columns: repeat(4, 1fr);
  max-width: 800px;
  margin: 0 auto;
}

.project-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.6rem 1rem;
  border-radius: var(--radius);
  background: var(--gray-light);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--blue-deep);
  font-size: 1.02rem;
  border: 1px solid rgba(26, 53, 128, 0.08);
}

/* ===== Como funciona ===== */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.step {
  text-align: left;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--blue-deep);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.95rem;
  color: #4a4f66;
}

/* ===== CTA Final ===== */
.cta-final {
  background: linear-gradient(160deg, var(--blue-deep) 0%, var(--dark) 100%);
  color: var(--white);
  padding: 4.5rem 0;
  text-align: center;
}

.cta-final h2 {
  color: var(--white);
  margin-bottom: 2rem;
}

/* ===== Rodapé ===== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.5rem 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.footer__logo {
  height: 32px;
  width: auto;
}

.footer__tagline {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--white);
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  /* padding reserva o canto onde o botão flutuante do WhatsApp fica fixo,
     pra ele nunca sobrepor os ícones sociais quando a página está no fim */
  padding-right: 84px;
}

.footer__nav,
.footer__social {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.footer__nav {
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

.footer__social {
  gap: 1.1rem;
  margin-left: auto;
}

.footer__nav a,
.footer__social a {
  color: var(--amber);
}

.footer__nav a:hover,
.footer__social a:hover {
  color: var(--white);
}

.footer__social a {
  display: inline-flex;
  align-items: center;
}

.footer__social svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  display: block;
}

/* ===== Botão flutuante do WhatsApp ===== */
.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    transition: none;
  }
}

@media (max-width: 640px) {
  .whatsapp-float {
    right: 1rem;
    bottom: 1rem;
    width: 52px;
    height: 52px;
  }
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

/* ===== Responsivo ===== */
@media (max-width: 860px) {
  .grid--4 {
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero__aside {
    align-items: center;
  }
}

@media (max-width: 700px) {
  :root { --header-height: 96px; }
  .site-header__inner {
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    row-gap: 0.5rem;
  }
  .site-header__brand { width: 100%; justify-content: center; }
  .site-header__logo img { height: 32px; }
  .site-header__tagline { font-size: 0.8rem; }
  .site-nav {
    width: 100%;
    justify-content: center;
    gap: 1.1rem;
  }
  .site-nav a { font-size: 0.8rem; }
}

@media (max-width: 360px) {
  .site-nav { gap: 0.6rem; }
  .site-nav a { font-size: 0.72rem; }
}

@media (max-width: 640px) {
  .section { padding: 3.5rem 0; }
  .compare { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr; }
  .grid--projects { grid-template-columns: 1fr 1fr; }
  .hero { padding-bottom: 3.5rem; }
}
