:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --muted: #384152;
  --text: #0b1a33;
  --brand: #f59f0b;
  --brand-2: #0b1a33;
  --stroke: #d1d4dc;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --radius: 18px;
  --speed: 520ms;
}

/* ===== BASE GERAL ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu;
  background: var(--bg);
  color: var(--text);
}
a { color: var(--brand); text-decoration: none; }
a:hover { opacity: .9; }

h1, h2 { color: #0b1a33; }
section:nth-of-type(even) h2,
section:nth-of-type(even) h3 { color: #fff; }

.wrap { max-width: 1120px; margin: auto; padding: 0 20px; }

/* ===== NAVEGAÇÃO ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11,14,20,0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--stroke);
}
.nav .wrap {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.nav .brand span { color: #fff; }
.menu { display: flex; gap: 18px; flex-wrap: wrap; }
.menu a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #ffffff;
  border: 1px solid transparent;
  transition: all .25s;
  font-weight: 500;
}
.menu a:hover,
.menu a.active {
  color: var(--brand);
}
.menu a:hover {
  border-color: var(--stroke);
  transform: translateY(-1px);
}
.menu-toggle { display: none; }

/* ===== HERO GENÉRICO ===== */
.hero,
.hero-area {
  padding: 80px 0 40px;
  border-bottom: 1px solid var(--stroke);
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.65)),
    url('images/cabecalhoareas.jpg') center/cover no-repeat;
  color: #fff;
  text-align: left;
}
.hero h1,
.hero-area h1 {
  color: #fff;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.1;
  margin: 0 0 12px;
}
.hero .lead,
.hero-area .lead {
  font-size: clamp(16px, 1.7vw, 19px);
  color: #e9ecf2;
  max-width: 68ch;
}
.hero .cta,
.hero-area .cta {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
}

/* ===== BOTÕES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  padding: 13px 16px;
  border: 1px solid var(--stroke);
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  transition: transform .15s ease, box-shadow .25s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn.primary {
  background: linear-gradient(180deg,#f7b24a,#f59f0b);
  color: #111;
  border: none;
}

/* ===== SEÇÕES ===== */
section {
  padding: 40px 0;
  border-bottom: 1px solid var(--stroke);
}
section:nth-of-type(odd) {
  background: #f7f8fa;
  color: #0b1a33;
}
section:nth-of-type(even) {
  background: #0e1422;
  color: #e9ecf2;
}
section h2 {
  font-size: clamp(22px,3vw,32px);
  margin: 0 0 10px;
}
section p.desc {
  color: #384152;
  max-width: 80ch;
  margin: 0 0 20px;
}
section:nth-of-type(even) p.desc { color: #ffffff; }

/* ===== CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.card {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  transform: scale(1);
}
.card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
  z-index: 10;
}
.card h3 { color: var(--brand); margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; line-height: 1.6; color: #384152; }
section:nth-of-type(even) .card p { color: #e9ecf2; }

/* ===== SEÇÃO ESCURA ===== */
.dark-section {
  background: #0e1422;
  color: #fff;
}
.dark-section .card {
  background: #16203b;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
}
.dark-section .card h3,
.dark-section .card p {
  color: #fff;
}

/* ===== CITAÇÕES ===== */
blockquote.area-quote {
  margin: 20px 0;
  border-left: 3px solid var(--brand);
  padding-left: 14px;
  color: var(--text);
  font-style: italic;
  line-height: 1.6;
}

/* ===== RODAPÉ ===== */
footer {
  padding: 40px 0;
  color: #384152;
  text-align: center;
  border-top: 1px solid var(--stroke);
}
footer a { color: var(--brand); }
footer small { font-size: 14px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  text-align: left;
  align-items: start;
}
.footer-grid h4 {
  color: var(--brand);
  margin-bottom: 8px;
  font-size: 18px;
}

/* ===== CONTATO (VOLTA AO SITE) ===== */
#contato.dark-section {
  background: #0e1422;
  color: #e9ecf2;
  text-align: center;
  padding: 80px 0;
}
#contato.dark-section h2 {
  color: #fff;
  font-size: clamp(22px, 3vw, 32px);
}
#contato.dark-section .desc {
  color: #e9ecf2;
  font-size: 17px;
  max-width: 65ch;
  margin: 0 auto 20px;
}
#contato.dark-section .btn.primary {
  font-size: 17px;
  padding: 14px 22px;
}

/* ===== BOTÕES FIXOS ===== */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  z-index: 999;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}
.whatsapp-float svg { width: 34px; height: 34px; fill: white; }

.btn-to-top {
  position: fixed;
  bottom: 95px;
  right: 30px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.2s ease;
  z-index: 998;
}
.btn-to-top.visible { opacity: 1; }
.btn-to-top:hover { transform: scale(1.1); }

/* ===== ANIMAÇÕES ===== */
.reveal, .fade-section { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
.js .fade-section {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}
.js .fade-section.visible {
  opacity: 1;
  transform: none;
}

/* ===== RESPONSIVO ===== */
@media (max-width:1000px) {
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width:640px) {
  .cards { grid-template-columns: 1fr; }
}

/* ===== MENU MOBILE ===== */
@media (max-width: 800px) {
  .menu {
    flex-direction: column;
    width: 100%;
    background: rgba(11,14,20,0.95);
    border-top: 1px solid var(--stroke);
    position: absolute;
    left: 0; top: 68px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
  }
  .menu.open { max-height: 500px; opacity: 1; }
  .menu a {
    padding: 14px 20px;
    border-bottom: 1px solid var(--stroke);
  }
  .menu-toggle {
    display: block;
    font-size: 28px;
    color: var(--brand);
    background: none;
    border: none;
    cursor: pointer;
  }
  .nav .wrap { position: relative; }
}
/* ===== SUBMENU ===== */
.menu-item {
  position: relative;
  display: flex;
  align-items: center;
}

.menu-item.has-submenu .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(11,14,20,0.98);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  min-width: 260px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  flex-direction: column;
  padding: 10px 0;
  z-index: 9999;
}

.menu-item.has-submenu:hover .submenu {
  display: flex;
}

.submenu a {
  color: #fff;
  padding: 10px 18px;
  transition: background 0.25s;
  border-radius: 0;
}

.submenu a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--brand);
}

/* Esconder submenu no mobile */
@media (max-width: 800px) {
  .submenu { display: none !important; }
}
