/* ===============================
   VARIÁVEIS
================================ */
:root {
  --bg-dark: #020617;
  --bg-dark-2: #0f172a;
  --primary: #dc2626;
  --text-light: #f8fafc;
  --text-muted: #cbd5f5;
  --bg-light: #f1f5f9;
  --card: #ffffff;
}

/* ===============================
   RESET
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===============================
   BASE
================================ */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-light);
  color: #1f2937;
  line-height: 1.6;
}

.container {
  max-width: 1180px;
  margin: auto;
  padding: 0 20px;
}

/* ===============================
   HEADER (LOGO NO TOPO)
================================ */
.site-header {
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-dark-2));
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.brand img {
  height: 46px;        /* CONTROLE ABSOLUTO */
  width: auto;
  display: block;
}

/* ===============================
   MENU DESKTOP
================================ */
.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width .3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* ===============================
   MENU MOBILE
================================ */
.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-light);
  cursor: pointer;
}

/* ===============================
   HERO
================================ */
.hero {
  background: linear-gradient(160deg, var(--bg-dark), var(--bg-dark-2));
  color: var(--text-light);
  padding: 110px 0 90px;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 18px;
}

.hero p {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 28px;
}

/* BOTÃO */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

/* ===============================
   SEÇÕES
================================ */
.section {
  padding: 90px 0;
}

.section h2 {
  font-size: 30px;
  margin-bottom: 36px;
}

/* ===============================
   CARDS
================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.card {
  background: var(--card);
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
  transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 55px rgba(0,0,0,.12);
}

/* ===============================
   FOOTER
================================ */
footer {
  background: var(--bg-dark);
  color: #9ca3af;
  padding: 32px;
  text-align: center;
  font-size: 13px;
}

/* ===============================
   WHATSAPP FLUTUANTE
================================ */
.whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: #25d366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
}

/* ===============================
   ANIMAÇÕES
================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all .7s ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

/* ===============================
   RESPONSIVO
================================ */
@media (max-width: 768px) {

  .menu-btn {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 18px 20px;
    border-top: 1px solid #1e293b;
  }

  .hero {
    padding: 80px 0;
  }

  .hero h1 {
    font-size: 30px;
  }

  .section {
    padding: 70px 0;
  }
}
/* =========================
   HEADER DEFINITIVO
========================= */

.site-header {
  height: 72px;                 /* ALTURA FIXA */
  background: #020617;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO CONTROLADO */
.brand {
  display: flex;
  align-items: center;
  height: 100%;
}

.brand img {
  max-height: 42px;             /* <<< LIMITE REAL */
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* MENU */
.main-nav {
  display: flex;
  gap: 24px;
}

.main-nav a {
  color: #f8fafc;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

/* BOTÃO MOBILE */
.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {
  .menu-btn {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #020617;
    flex-direction: column;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 16px 20px;
    border-top: 1px solid #1e293b;
  }
}

