:root {
  --navy: #142038;
  --navy-dark: #0a1120;
  --navy-tint: #eef1f6;
  --gold: #a8823c;
  --gold-light: #d9bd7f;
  --gold-soft: #f4ecd9;
  --cream: #faf8f4;
  --text: #1c1f26;
  --muted: #5c6270;
  --border: #e5e0d5;
  --max-width: 1140px;

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1.25rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;

  --radius: 8px;
  --shadow-sm: 0 2px 8px rgba(10, 17, 32, 0.06);
  --shadow-md: 0 12px 28px rgba(10, 17, 32, 0.1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, "Segoe UI", Arial, sans-serif;
}

h1, h2, h3, .brand-name {
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--navy);
  letter-spacing: 0.01em;
  line-height: 1.25;
}

p { color: var(--text); }

a { color: var(--navy); }

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

/* Header / Nav */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 30;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  gap: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  height: 68px;
  width: auto;
  display: block;
}

nav.main-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 1.7rem 0 1.15rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Dropdown "Ferramentas" */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 1.7rem 0 1.15rem;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-dropdown > button::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-top: 2px;
}

.nav-dropdown:hover > button,
.nav-dropdown.open > button,
.nav-dropdown > button.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 260px;
  padding: 0.5rem;
  z-index: 40;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  font-weight: 500;
  border-bottom: none;
}

.nav-dropdown-menu a:hover {
  background: var(--navy-tint);
  color: var(--navy);
  border-bottom: none;
}

.nav-toggle {
  display: none;
}

@media (max-width: 860px) {
  .brand img { height: 52px; }

  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 1.1rem;
    cursor: pointer;
  }

  nav.main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    top: 0;
    height: 100vh;
    width: min(300px, 85vw);
    background: #fff;
    box-shadow: var(--shadow-md);
    transform: translateX(100%);
    transition: transform 0.2s ease;
    padding: 5rem 1.5rem 2rem;
    overflow-y: auto;
    z-index: 50;
  }

  nav.main-nav.open { transform: translateX(0); }

  nav.main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  nav.main-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border) !important;
  }

  .nav-dropdown > button {
    width: 100%;
    justify-content: space-between;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border) !important;
  }

  .nav-dropdown-menu {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 1rem;
    min-width: 0;
  }

  .nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 17, 32, 0.4);
    z-index: 40;
  }
  .nav-backdrop.open { display: block; }
}

/* Hero */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 15% 0%, #1c2c4d 0%, var(--navy) 45%, var(--navy-dark) 100%);
  color: #fff;
  padding: var(--space-6) 0;
  text-align: center;
  overflow: hidden;
  border-bottom: 4px solid var(--gold);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/monogram-ms.png");
  background-repeat: no-repeat;
  background-position: center 125%;
  background-size: 950px auto;
  opacity: 0.06;
  filter: invert(1) brightness(2);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.hero h1 {
  color: #fff;
  font-size: 2.6rem;
  margin: 0 0 0.9rem;
}

.hero p {
  color: #d7dbe6;
  max-width: 640px;
  margin: 0 auto 1.75rem;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero-chips {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #eef1f6;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.hero-chip:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--gold-light);
  color: #fff;
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  padding: 0.8rem 1.85rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover { background: #93712f; transform: translateY(-1px); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.55);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }

/* Sections */
section { padding: var(--space-6) 0; }
section.alt { background: #fff; }
section.tint { background: var(--navy-tint); }

.section-title {
  text-align: center;
  margin-bottom: var(--space-5);
}

.section-title h2 { font-size: 1.85rem; margin-bottom: 0.6rem; }
.section-title p { color: var(--muted); max-width: 620px; margin: 0 auto; font-size: 1.02rem; }

/* Cards grid (áreas) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-4);
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: var(--space-4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-top-color 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--gold);
}

.card h3 {
  margin-top: 0;
  font-size: 1.2rem;
  border-bottom: 2px solid var(--gold-soft);
  padding-bottom: 0.6rem;
  margin-bottom: 0.9rem;
}

.card ul { padding-left: 1.1rem; color: var(--muted); margin-bottom: 0; }
.card ul li { margin-bottom: 0.45rem; }
.card p { color: var(--muted); }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}

.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-4);
  text-align: center;
}

.avatar-placeholder {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: bold;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--gold-soft);
}

.team-card .oab {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
  letter-spacing: 0.02em;
}

/* Forms */
.form-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.form-group { margin-bottom: var(--space-3); }
label { display: block; margin-bottom: 0.4rem; font-weight: 600; font-size: 0.92rem; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(168, 130, 60, 0.15);
}

textarea { min-height: 120px; resize: vertical; }

.form-msg {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  display: none;
}

.form-msg.success { display: block; background: #e4f5e9; color: #1e5c34; border: 1px solid #bfe3cb; }
.form-msg.error { display: block; background: #fbe7e7; color: #8a2323; border: 1px solid #f0c2c2; }

.disclaimer {
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: 0.9rem 1.1rem;
  margin-top: var(--space-3);
}

/* Calculator */
.calc-result {
  margin-top: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius);
  display: none;
}

.calc-result.eligible { display: block; background: #e4f5e9; border: 1px solid #bfe3cb; }
.calc-result.not-eligible { display: block; background: #fdf3e3; border: 1px solid #f0dcae; }

.checkbox-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem 1rem;
  margin-bottom: var(--space-3);
}

.checkbox-list label {
  font-weight: 400;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox-list input[type="checkbox"] { margin-top: 0.25rem; width: auto; }

/* Footer */
footer.site-footer {
  background: var(--navy-dark);
  color: #cfd3de;
  padding: var(--space-5) 0;
  margin-top: var(--space-4);
  font-size: 0.9rem;
}

footer.site-footer a { color: #fff; }
footer.site-footer strong { color: #fff; }

footer .footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

footer .footer-grid > div { line-height: 2; }

footer .footer-compliance {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.8rem;
  color: #9aa0b3;
}

@media (max-width: 640px) {
  .hero { padding: var(--space-5) 0; }
  .hero h1 { font-size: 2rem; }
  section { padding: var(--space-5) 0; }
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #25d366;
  color: #fff;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 8px 20px rgba(10, 17, 32, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(10, 17, 32, 0.3);
  color: #fff;
}

.whatsapp-float svg { width: 22px; height: 22px; flex-shrink: 0; }

.whatsapp-float .whatsapp-label { white-space: nowrap; }

@media (max-width: 640px) {
  .whatsapp-float .whatsapp-label { display: none; }
  .whatsapp-float { padding: 0.85rem; }
}

/* FAQ accordion */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: inherit;
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.faq-item.open .faq-question::after { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease, padding 0.2s ease;
  padding: 0 1.25rem;
  color: var(--muted);
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 0 1.25rem 1.1rem;
}

/* Testimonials (prova social) */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: var(--space-4);
}

.testimonial-card .stars { color: var(--gold); letter-spacing: 0.15em; margin-bottom: 0.6rem; }
.testimonial-card p.quote { font-style: italic; color: var(--text); }
.testimonial-card .author { margin-top: 0.85rem; font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.testimonial-card.placeholder { border-top-color: var(--border); background: var(--navy-tint); }
.testimonial-card.placeholder p { color: var(--muted); font-style: normal; }

/* Newsletter opt-in */
.newsletter-box {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: var(--space-4);
  text-align: center;
}

.newsletter-box h3 { color: #fff; margin-top: 0; }
.newsletter-box p { color: #d7dbe6; }

.newsletter-form {
  display: flex;
  gap: 0.6rem;
  max-width: 460px;
  margin: 1rem auto 0;
  flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 200px;
}

/* Quick-help FAQ widget */
.help-widget-toggle {
  position: fixed;
  right: 1.25rem;
  bottom: 5.5rem;
  z-index: 60;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(10, 17, 32, 0.25);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.help-widget-panel {
  position: fixed;
  right: 1.25rem;
  bottom: 9.5rem;
  z-index: 60;
  width: min(340px, calc(100vw - 2.5rem));
  max-height: min(480px, calc(100vh - 12rem));
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.help-widget-panel.open { display: flex; }

.help-widget-header {
  background: var(--navy);
  color: #fff;
  padding: 0.9rem 1.1rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.help-widget-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

.help-widget-body {
  padding: 0.9rem;
  overflow-y: auto;
  flex: 1;
}

.help-widget-question {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--navy-tint);
  border: none;
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
}

.help-widget-answer {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.6rem 0.2rem 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.6rem;
}

.help-widget-footer {
  padding: 0.75rem 0.9rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  text-align: center;
}

@media (max-width: 640px) {
  .help-widget-toggle .help-widget-toggle-label { display: none; }
  .help-widget-panel { bottom: 8.5rem; right: 0.75rem; left: 0.75rem; width: auto; }
  .help-widget-toggle { right: 0.75rem; }
}
