/* =========================================================
   NB Consultoria Financeira — Design System
   ========================================================= */

/* ---------- Fontes de marca (Houstiq / Houstiq2) ---------- */
@font-face {
  font-family: "Houstiq";
  src: url("../fonts/Houstiq.woff2") format("woff2"),
       url("../fonts/Houstiq.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Houstiq2";
  src: url("../fonts/Houstiq2.woff2") format("woff2"),
       url("../fonts/Houstiq2.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Cores de marca (extraídas das logos oficiais NB) */
  --c-green: #566b5b;
  --c-green-dark: #3f5044;
  --c-green-darker: #2e3b33;
  --c-green-tint: #eaf0ec;
  --c-icon-fg: #3f5044;
  --c-brown: #78655e;
  --c-brown-dark: #5c4c46;
  --c-cream: #f5f1ea;
  --c-cream-dark: #ece5d8;
  --c-white: #ffffff;
  --c-surface: #ffffff;
  --c-header-bg: rgba(255, 255, 255, 0.92);
  --c-ink: #362d29;
  --c-ink-soft: #6f6560;
  --c-border: #e3ddd2;

  --font-display: "Houstiq", Georgia, "Times New Roman", serif;
  --font-label: "Houstiq2", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 20px 45px -25px rgba(54, 45, 41, 0.35);
  --shadow-card: 0 12px 30px -18px rgba(54, 45, 41, 0.25);

  --header-h: 84px;
}

/* ---------- Modo escuro ----------
   Segue a preferência do sistema por padrão; o botão no header grava a
   escolha explícita do visitante em localStorage e força data-theme. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-green: #7c9683;
    --c-green-dark: #61795f;
    --c-green-darker: #1e2521;
    --c-green-tint: #223028;
    --c-icon-fg: #a9c2ae;
    --c-brown: #a8938a;
    --c-brown-dark: #c2ac9f;
    --c-cream: #201d19;
    --c-cream-dark: #2a2621;
    --c-surface: #17140f;
    --c-header-bg: rgba(20, 18, 15, 0.88);
    --c-ink: #f1ebe3;
    --c-ink-soft: #b6ab9f;
    --c-border: #38332c;
  }
}
:root[data-theme="dark"] {
  --c-green: #7c9683;
  --c-green-dark: #61795f;
  --c-green-darker: #1e2521;
  --c-green-tint: #223028;
  --c-icon-fg: #a9c2ae;
  --c-brown: #a8938a;
  --c-brown-dark: #c2ac9f;
  --c-cream: #201d19;
  --c-cream-dark: #2a2621;
  --c-surface: #17140f;
  --c-header-bg: rgba(20, 18, 15, 0.88);
  --c-ink: #f1ebe3;
  --c-ink-soft: #b6ab9f;
  --c-border: #38332c;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

body {
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

/* ---------- Tipografia ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}
h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-green);
}
.eyebrow--on-dark { color: var(--c-green-tint); }
.eyebrow--on-green { color: var(--c-white); opacity: 0.85; }

.lede { font-size: 1.1rem; color: var(--c-ink-soft); }

.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { margin-top: 0.6rem; }
.section-head p { margin-top: 1rem; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding-block: clamp(3.5rem, 6vw, 6.5rem); }
.section--cream { background: var(--c-cream); }
.section--green { background: var(--c-green); color: var(--c-white); }
.section--dark { background: var(--c-green-darker); color: var(--c-white); }
.section--dark h2, .section--dark h3 { color: var(--c-white); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--c-green); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-sm);
  z-index: 999; transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0.9em 1.7em;
  border-radius: 999px;
  font-weight: 600; font-size: 0.98rem;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--c-brown); outline-offset: 3px; }
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--c-green); color: var(--c-white); box-shadow: var(--shadow-card); }
.btn--primary:hover { background: var(--c-green-dark); }

.btn--outline { background: transparent; color: var(--c-white); border: 1.5px solid rgba(255,255,255,0.65); }
.btn--outline:hover { background: rgba(255,255,255,0.12); }

.btn--outline-dark { background: transparent; color: var(--c-green-darker); border: 1.5px solid var(--c-green-darker); }
.btn--outline-dark:hover { background: var(--c-green-darker); color: var(--c-white); }

.btn--brown { background: var(--c-brown); color: var(--c-white); box-shadow: var(--shadow-card); }
.btn--brown:hover { background: var(--c-brown-dark); }

.btn--sm { padding: 0.65em 1.3em; font-size: 0.9rem; }
.btn--block { width: 100%; justify-content: center; }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-header-bg);
  transition: background-color .25s ease;
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--c-border);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}
.brand { display: flex; align-items: center; min-width: 0; flex-shrink: 1; }
.brand img { height: 52px; width: auto; max-width: 100%; }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  color: var(--c-ink);
  transition: background-color .18s ease, color .18s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--c-green-tint); color: var(--c-green-dark); }

/* ---------- Dropdown "Serviços" ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown__trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px 10px 16px;
  border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  color: var(--c-ink);
  transition: background-color .18s ease, color .18s ease;
}
.nav-dropdown__trigger .chevron { width: 16px; height: 16px; transition: transform .2s ease; }
.nav-dropdown:hover .nav-dropdown__trigger,
.nav-dropdown:focus-within .nav-dropdown__trigger,
.nav-dropdown.is-open .nav-dropdown__trigger,
.nav-dropdown__trigger[data-section-active="true"] {
  background: var(--c-green-tint); color: var(--c-green-dark);
}
.nav-dropdown:hover .chevron,
.nav-dropdown:focus-within .chevron,
.nav-dropdown.is-open .chevron { transform: rotate(180deg); }

.nav-dropdown__panel {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 300px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 60;
}
.nav-dropdown:hover .nav-dropdown__panel,
.nav-dropdown:focus-within .nav-dropdown__panel,
.nav-dropdown.is-open .nav-dropdown__panel {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown__panel a,
.nav-dropdown__panel button { display: block; width: 100%; text-align: left; padding: 10px 14px; border-radius: 12px; transition: background-color .15s ease; font-size: 0.92rem; font-weight: 600; color: var(--c-ink); }
.nav-dropdown__panel a:hover, .nav-dropdown__panel a[aria-current="page"],
.nav-dropdown__panel button:hover, .nav-dropdown__panel button[aria-current="true"] { background: var(--c-green-tint); }
.nav-dropdown__panel a strong { display: block; font-size: 0.92rem; font-weight: 600; color: var(--c-ink); }
.nav-dropdown__panel a span { display: block; font-size: 0.8rem; color: var(--c-ink-soft); margin-top: 2px; }

/* ---------- Seletor de idioma ---------- */
.nav-dropdown--lang .nav-dropdown__trigger {
  padding: 8px 12px; gap: 6px;
}
.nav-dropdown--lang .nav-dropdown__trigger svg.globe { width: 18px; height: 18px; }
.nav-dropdown--lang .nav-dropdown__panel {
  left: auto; right: 0; min-width: 190px; padding: 8px;
}
.nav-dropdown--lang .nav-dropdown__panel button { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.lang-flag { font-size: 1.1rem; line-height: 1; }

/* ---------- Alternador de tema ---------- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--c-ink);
  transition: background-color .18s ease;
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--c-green-tint); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; border-radius: 10px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--c-green);
  color: var(--c-white);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.hero::before {
  content: "";
  position: absolute; inset: -20% -10% auto auto;
  width: 620px; height: 620px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.16), transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: "";
  position: absolute; left: -12%; bottom: -35%;
  width: 480px; height: 480px;
  background: var(--c-brown);
  opacity: 0.28;
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; }

.hero-heading { font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-family: var(--font-display); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; }

.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1, .hero-heading { color: var(--c-white); }
.hero .lede { color: rgba(255,255,255,0.88); margin-top: 1.1rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2rem; }

.hero-figure {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  padding: 12%;
}
.hero-figure img { width: 100%; height: auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.25)); }
.hero-figure--photo { padding: 0; overflow: hidden; box-shadow: 0 24px 48px rgba(0,0,0,0.22); }
.hero-figure--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: none; }

/* ---------- Hero: carrossel ---------- */
.hero-slides { position: relative; min-height: clamp(460px, 54vw, 600px); }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .9s ease;
  pointer-events: none;
}
.hero-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 1; }
.hero-slide .hero-grid { height: 100%; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-figure-in {
  from { opacity: 0; transform: scale(.94) rotate(-2deg); }
  to { opacity: 1; transform: none; }
}
.hero-slide.is-active .eyebrow { animation: hero-rise .6s ease both; }
.hero-slide.is-active h1, .hero-slide.is-active .hero-heading { animation: hero-rise .7s ease .08s both; }
.hero-slide.is-active .lede { animation: hero-rise .7s ease .16s both; }
.hero-slide.is-active .hero-actions { animation: hero-rise .7s ease .24s both; }
.hero-slide.is-active .hero-figure { animation: hero-figure-in .8s ease .1s both; }

.hero-dots { display: flex; gap: 10px; justify-content: center; margin-top: 2rem; position: relative; z-index: 2; }
.hero-dots button {
  width: 10px; height: 10px; border-radius: 999px;
  background: rgba(255,255,255,0.4);
  transition: all .25s ease;
}
.hero-dots button:hover { background: rgba(255,255,255,0.7); }
.hero-dots button[aria-selected="true"] { width: 30px; background: #fff; }

@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide.is-active .eyebrow, .hero-slide.is-active h1, .hero-slide.is-active .hero-heading,
  .hero-slide.is-active .lede, .hero-slide.is-active .hero-actions, .hero-slide.is-active .hero-figure {
    animation: none !important; transition: opacity .3s ease !important;
  }
}

/* Hero simples (páginas internas) */
.hero-simple {
  background: var(--c-green);
  color: var(--c-white);
  padding-block: 3rem 3.4rem;
  position: relative;
  overflow: hidden;
}
.hero-simple::after {
  content: "";
  position: absolute; right: -10%; top: -60%;
  width: 420px; height: 420px; border-radius: 50%;
  background: var(--c-brown); opacity: 0.25;
}
.hero-simple .container { position: relative; z-index: 1; }
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  font-size: 0.88rem; color: rgba(255,255,255,0.8);
  margin-bottom: 1.1rem;
}
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb span[aria-hidden] { opacity: .6; }
.hero-simple h1 { color: var(--c-white); max-width: 20ch; }
.hero-simple .lede { color: rgba(255,255,255,0.88); margin-top: 0.9rem; max-width: 60ch; }

/* ---------- Trust bar ---------- */
.trust-bar {
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
}
.trust-bar .container {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.6rem;
  padding-block: 1.8rem;
}
.trust-item { display: flex; align-items: flex-start; gap: 12px; }
.trust-item .icon-badge { flex-shrink: 0; }
.trust-item strong { display: block; font-size: 0.98rem; }
.trust-item span { color: var(--c-ink-soft); font-size: 0.88rem; }

/* ---------- Ícones ---------- */
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--c-green-tint); color: var(--c-icon-fg);
}
.icon-badge svg { width: 24px; height: 24px; }
.icon-badge--dark { background: rgba(255,255,255,0.14); color: var(--c-white); }
.icon-badge--brown { background: rgba(120,101,94,0.14); color: var(--c-brown-dark); }

/* ---------- Bloco com lista de benefícios (imagem + texto) ---------- */
.feature-split {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.feature-split__art {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--c-green-tint), var(--c-cream));
  border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  padding: 14%;
}
.feature-split__art img { width: 100%; }
.feature-split__art--photo { position: relative; padding: 0; overflow: hidden; }
.feature-split__art--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.feature-split ul { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.feature-split li { display: flex; gap: 14px; align-items: flex-start; }
.feature-split li strong { display: block; font-size: 1.02rem; }
.feature-split li span { color: var(--c-ink-soft); font-size: 0.92rem; }

/* ---------- Cards de serviço ---------- */
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.service-card {
  border-radius: var(--radius-md);
  padding: 2.2rem;
  color: var(--c-white);
  display: flex; flex-direction: column; gap: 1rem;
  min-height: 300px;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease;
}
.service-card:hover { transform: translateY(-6px); }
.service-card--green { background: var(--c-green); }
.service-card--brown { background: var(--c-brown); }
.service-card--dark { background: var(--c-green-darker); }
.service-card h3 { color: var(--c-white); }
.service-card p { color: rgba(255,255,255,0.86); font-size: 0.95rem; flex-grow: 1; }
.service-card .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Diferenciais (grid de ícones) ---------- */
.diff-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.diff-card { display: flex; flex-direction: column; gap: 0.9rem; }
.diff-card h3 { font-size: 1.1rem; }
.diff-card p { color: var(--c-ink-soft); font-size: 0.92rem; }

/* ---------- Faixa de contato dividida ---------- */
.split-banner {
  display: grid; grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.split-banner__intro {
  background: var(--c-green-darker); color: var(--c-white);
  padding: clamp(2.4rem, 5vw, 3.6rem);
  display: flex; flex-direction: column; justify-content: center; gap: 1.1rem;
}
.split-banner__intro h2 { color: var(--c-white); }
.split-banner__intro .highlight { color: var(--c-green-tint); }
.split-banner__intro p { color: rgba(255,255,255,0.82); }
.split-banner__form {
  background: var(--c-green);
  padding: clamp(2rem, 4vw, 3rem);
}

/* ---------- Formulário ---------- */
.form-card {
  background: var(--c-surface);
  border-radius: var(--radius-md);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-card);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--c-ink); }
.form-field input,
.form-field select,
.form-field textarea {
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 0.75em 0.9em;
  font-size: 0.95rem;
  background: var(--c-surface);
  transition: border-color .18s ease, background-color .25s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: none; border-color: var(--c-green); }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.82rem; color: var(--c-ink-soft); margin-bottom: 1.2rem; }
.form-consent input { margin-top: 3px; }
.form-note { font-size: 0.8rem; color: var(--c-ink-soft); margin-top: 0.8rem; }

/* ---------- Depoimentos ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.testimonial-card {
  background: var(--c-cream);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--c-ink);
}
.testimonial-card cite { font-style: normal; font-size: 0.85rem; color: var(--c-ink-soft); }
.testimonial-card .placeholder-tag {
  align-self: flex-start;
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--c-brown); color: #fff; padding: 3px 10px; border-radius: 999px;
}

/* ---------- Abas de serviço (BPO Financeiro) ---------- */
.service-tabs__nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-bottom: 2.6rem;
}
.service-tabs__nav button {
  padding: 0.7em 1.3em;
  border-radius: 999px;
  border: 1.5px solid var(--c-border);
  font-size: 0.88rem; font-weight: 600;
  color: var(--c-ink-soft);
  transition: all .18s ease;
}
.service-tabs__nav button:hover { border-color: var(--c-green); color: var(--c-green-dark); }
.service-tabs__nav button[aria-selected="true"] {
  background: var(--c-green); border-color: var(--c-green); color: var(--c-white);
}

.service-panel { display: none; }
.service-panel[data-active="true"] { display: block; animation: fade-in .25s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: none; } }

.service-panel__grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 1.6rem;
}
.service-panel__desc {
  background: var(--c-cream);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 2.2rem;
}
.service-panel__desc h3 { margin-bottom: 0.8rem; }
.service-panel__desc p { color: var(--c-ink-soft); margin-bottom: 1.6rem; }
.service-panel__desc .btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.service-panel__who {
  background: var(--c-green);
  color: var(--c-white);
  border-radius: var(--radius-md);
  padding: 2.2rem;
}
.service-panel__who h4 { font-family: var(--font-label); letter-spacing: 0.06em; font-size: 0.95rem; text-transform: uppercase; margin-bottom: 1.1rem; }
.service-panel__who ul { display: grid; gap: 0.8rem; }
.service-panel__who li { display: flex; gap: 10px; font-size: 0.94rem; }

/* ---------- FAQ Accordion ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  background: var(--c-surface);
  overflow: hidden;
}
.faq-item__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.5rem; text-align: left;
  font-weight: 600; font-size: 1rem;
}
.faq-item__q .plus { flex-shrink: 0; width: 24px; height: 24px; position: relative; }
.faq-item__q .plus::before, .faq-item__q .plus::after {
  content: ""; position: absolute; background: var(--c-green); border-radius: 2px;
}
.faq-item__q .plus::before { width: 100%; height: 2px; top: 50%; left: 0; transform: translateY(-50%); }
.faq-item__q .plus::after { width: 2px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); transition: transform .2s ease; }
.faq-item[data-open="true"] .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-item__a p { padding: 0 1.5rem 1.4rem; color: var(--c-ink-soft); font-size: 0.95rem; }
.faq-item[data-open="true"] .faq-item__a { max-height: 400px; }

/* ---------- Blocos "como funciona" ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.step-card { display: flex; flex-direction: column; gap: 1rem; }
.step-card .num {
  font-family: var(--font-display); font-size: 1.6rem;
  color: var(--c-green-tint);
  -webkit-text-stroke: 1.4px var(--c-green);
}
.section--dark .step-card p, .section--dark .diff-card p { color: rgba(255,255,255,0.75); }

/* ---------- Quote / propósito ---------- */
.quote-block {
  text-align: center; max-width: 820px; margin: 0 auto;
}
.quote-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.35;
  color: var(--c-ink);
}
.quote-block cite { display: block; margin-top: 1.2rem; font-style: normal; color: var(--c-ink-soft); font-size: 0.9rem; }

/* ---------- Mapa ---------- */
.map-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
}
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Contato info ---------- */
.contact-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.6rem; }
.contact-info-card {
  background: var(--c-cream); border: 1px solid var(--c-border);
  border-radius: var(--radius-md); padding: 1.8rem;
  display: flex; flex-direction: column; gap: 0.8rem;
}
.contact-info-card a { font-weight: 600; color: var(--c-green-dark); }
.contact-info-card a:hover { text-decoration: underline; }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--c-green);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(46,59,51,0.55);
  transition: transform .2s ease;
}
.whatsapp-fab:hover { transform: scale(1.06); }
.whatsapp-fab svg { width: 28px; height: 28px; color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-green-darker); color: rgba(255,255,255,0.85); }
.footer-top { padding-block: 3.6rem; display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 1.1rem; }
.footer-brand p { max-width: 34ch; font-size: 0.92rem; color: rgba(255,255,255,0.68); }
.footer-col h4 { font-family: var(--font-label); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.85rem; color: var(--c-green-tint); margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a, .footer-col span { font-size: 0.92rem; color: rgba(255,255,255,0.78); }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-social { display: flex; gap: 10px; margin-top: 1rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
}
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-block: 1.4rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem;
  align-items: center; justify-content: space-between;
  font-size: 0.82rem; color: rgba(255,255,255,0.62);
}

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .hero-grid, .feature-split, .split-banner, .service-panel__grid { grid-template-columns: 1fr; }
  .feature-split__art, .hero-figure { max-width: 420px; margin-inline: auto; }
  .card-grid, .testimonial-grid, .steps-grid, .diff-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  /* Carrossel: em telas médias, empilha e usa altura natural em vez de overlay absoluto */
  .hero-slides { min-height: auto; }
  .hero-slide { position: relative; inset: auto; display: none; opacity: 1; visibility: visible; }
  .hero-slide.is-active { display: block; }
}

@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .brand img { height: 44px; }
  .main-nav { display: none; }
  .header-actions { gap: 8px; }
  .header-actions .btn--primary { display: none; }
  .nav-toggle { display: flex; flex-shrink: 0; }

  .site-header.is-open .main-nav {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: var(--c-surface); border-bottom: 1px solid var(--c-border);
    padding: 12px 24px 20px; gap: 4px;
  }
  .site-header.is-open .main-nav a { padding: 12px 14px; }

  .main-nav .nav-dropdown__trigger { width: 100%; justify-content: space-between; padding: 12px 14px; }
  .main-nav .nav-dropdown__panel {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 0 10px;
    max-height: 0; overflow: hidden; transition: max-height .22s ease;
  }
  .main-nav .nav-dropdown.is-open .nav-dropdown__panel { max-height: 260px; }
  .main-nav .nav-dropdown__panel a { padding: 10px 12px; }

  .nav-dropdown--lang .nav-dropdown__panel { min-width: 170px; }
  .nav-dropdown--lang .nav-dropdown__trigger { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .nav-dropdown--lang .nav-dropdown__trigger span { display: none; }

  .card-grid, .testimonial-grid, .steps-grid, .diff-grid, .contact-info-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .service-tabs__nav { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
  .service-tabs__nav button { flex-shrink: 0; }
}
