/* =========================================================
   Igor Caffarena — Assistência Técnica Médica
   Design autoral · Mobile First · sem framework
   Paleta extraída do logo: marinho + grafite + papel
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --navy: #213A61;
  --navy-700: #1a2f4f;
  --navy-900: #14243d;
  --graphite: #7A828C;
  --graphite-600: #616974;
  --ink: #13161C;
  --ink-soft: #3d434d;
  --paper: #F7F6F3;
  --paper-2: #EFEDE7;
  --white: #ffffff;
  --line: #E1DED6;
  --line-navy: rgba(255,255,255,.14);
  --accent: #B08D57; /* latão discreto — detalhe editorial */
  --wa: #25D366;       /* verde WhatsApp */
  --wa-600: #1FB457;   /* hover */
  --wa-700: #128C4A;   /* pressed / borda */

  --wrap: 1180px;
  --wrap-narrow: 840px;
  --radius: 4px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 2px rgba(19,22,28,.06);
  --shadow-md: 0 14px 40px -18px rgba(20,36,61,.28);

  --ease: cubic-bezier(.22,.61,.36,1);
  --t: 220ms;

  --ff-serif: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ff-sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--ff-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--ff-serif); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
::selection { background: var(--navy); color: #fff; }

.skip-link {
  position: absolute; left: 50%; transform: translateX(-50%) translateY(-140%);
  top: 8px; background: var(--navy); color: #fff; padding: 10px 18px;
  border-radius: var(--radius); z-index: 2000; transition: transform var(--t) var(--ease);
}
.skip-link:focus { transform: translateX(-50%) translateY(0); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding-block: 68px; }
section[id], [id]#topo { scroll-margin-top: 76px; }

.eyebrow {
  font-family: var(--ff-sans);
  font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--graphite-600); margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); flex: none; }
.eyebrow-light { color: #aeb8c6; }
.eyebrow-light::before { background: var(--accent); }

.section-title { font-size: clamp(1.6rem, 5.4vw, 2.4rem); font-weight: 800; color: var(--ink); max-width: 20ch; letter-spacing: -0.025em; }
.section-title em { font-style: normal; color: var(--accent); }
/* Em títulos sobre marinho, o destaque também é latão (já é --accent) */
.method .section-title em, .final-cta .section-title em { color: var(--accent); }
.section-intro { margin-top: 16px; color: var(--ink-soft); max-width: 60ch; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  --btnbg: var(--navy); --btnfg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--btnbg); color: var(--btnfg);
  font-family: var(--ff-sans); font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  padding: 13px 22px; border: 1px solid transparent; border-radius: var(--radius);
  transition: transform var(--t) var(--ease), background var(--t) var(--ease), box-shadow var(--t) var(--ease), color var(--t) var(--ease);
  min-height: 46px; line-height: 1;
}
.btn-ico { width: 20px; height: 20px; transition: transform var(--t) var(--ease); }
.btn-ico.wa { width: 21px; height: 21px; }
.btn-primary:hover { background: var(--navy-700); box-shadow: 0 12px 24px -12px rgba(33,58,97,.6); }
.btn-primary:hover .btn-ico:not(.wa) { transform: translateX(3px); }
.btn-lg { padding: 17px 30px; font-size: 1.02rem; min-height: 56px; }
.btn-sm { padding: 10px 16px; min-height: 40px; font-size: .85rem; }

/* Botão WhatsApp — cor da marca */
.btn-wa {
  background: var(--wa); color: #fff; box-shadow: 0 1px 0 var(--wa-700), 0 10px 22px -14px rgba(18,140,74,.8);
  text-shadow: 0 1px 1px rgba(6,60,32,.28);
}
.btn-wa:hover { background: var(--wa-600); transform: translateY(-1px); box-shadow: 0 1px 0 var(--wa-700), 0 16px 30px -14px rgba(18,140,74,.9); }
.btn-wa:active { transform: translateY(0); }

.btn-ghost {
  background: transparent; color: var(--navy); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--navy); background: rgba(33,58,97,.04); }

/* Ghost claro — sobre fundos escuros (hero) */
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn-onnavy { background: #fff; color: var(--navy); }
.btn-onnavy:hover { background: var(--paper-2); box-shadow: 0 12px 30px -12px rgba(0,0,0,.5); transform: translateY(-1px); }

.btn:focus-visible, a:focus-visible, summary:focus-visible, .legal-open:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.site-header.is-solid {
  background: rgba(247,246,243,.9);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -20px rgba(20,36,61,.6);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }

.brand { display: flex; align-items: center; margin-right: auto; }
.brand-logo { width: auto; flex: none; transition: filter var(--t) var(--ease); }
.brand-logo-full { display: none; height: 48px; }
.brand-logo-mark { display: block; height: 38px; }
/* Sobre o hero escuro: logo em branco */
.site-header:not(.is-solid) .brand-logo { filter: brightness(0) invert(1); }

/* Rodapé usa o monograma em branco */
.brand-mark { width: auto; height: 36px; flex: none; }
.brand-mark-light { filter: brightness(0) invert(1); }

.nav { display: none; }
.header-cta { display: none; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: transparent; border: 1px solid var(--line);
  border-radius: var(--radius); flex: none; transition: border-color var(--t) var(--ease);
}
.nav-toggle span { width: 20px; height: 2px; background: var(--navy); margin-inline: auto; transition: transform var(--t) var(--ease), opacity var(--t) var(--ease), background var(--t) var(--ease); }
.site-header:not(.is-solid) .nav-toggle { border-color: rgba(255,255,255,.35); }
.site-header:not(.is-solid) .nav-toggle span { background: #fff; }
.site-header:not(.is-solid) .nav a { color: rgba(255,255,255,.82); }
.site-header:not(.is-solid) .nav a:hover { color: #fff; }
.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); }

.mobile-menu { border-top: 1px solid var(--line); background: var(--paper); }
.mobile-menu ul { list-style: none; padding: 12px 22px 22px; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a { display: block; padding: 13px 4px; font-weight: 500; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.mobile-menu a.btn { color: #fff; border: none; margin-top: 12px; justify-content: center; }

/* =========================================================
   1. HERO — marinho com foto fundida à direita
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  color: #fff; isolation: isolate; padding-top: 68px;
  background:
    radial-gradient(120% 90% at 100% 0%, #2b4d7d 0%, rgba(43,77,125,0) 46%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 78%);
}
/* fio de latão sutil no topo do bloco */
.hero::before {
  content: ""; position: absolute; top: 68px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(176,141,87,.4) 40%, rgba(176,141,87,.15) 100%);
  z-index: 3;
}

/* Foto — mobile: faixa superior fundindo no marinho */
.hero-media {
  position: relative; z-index: 1; display: block;
  height: 40vh; min-height: 280px; max-height: 420px; margin: 8px 0 -8px;
  -webkit-mask-image: linear-gradient(to bottom, #000 48%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 48%, transparent 98%);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 16%; filter: saturate(.82) contrast(1.02); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,36,61,.28) 0%, rgba(20,36,61,.15) 40%, var(--navy-900) 100%);
}

.hero-overlay { display: none; }

.hero-inner { position: relative; z-index: 2; padding-bottom: 48px; }
.hero-content { max-width: 40ch; }

.hero h1 {
  font-size: clamp(2.3rem, 8.4vw, 4rem);
  color: #fff; margin-top: 14px; line-height: 1.06; letter-spacing: -0.025em;
  font-weight: 800; text-wrap: balance;
}
.hero h1 em { font-style: normal; font-weight: 800; color: var(--accent); }
.hero-sub { margin-top: 22px; font-size: 1.1rem; color: rgba(232,238,247,.86); max-width: 48ch; line-height: 1.6; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-actions .btn { flex: 1 1 auto; }

.cred-line {
  list-style: none; padding: 0; margin-top: 32px;
  display: flex; flex-wrap: wrap; gap: 8px 0;
  font-size: .8rem; color: var(--graphite-600); font-weight: 600;
  letter-spacing: .03em; border-top: 1px solid var(--line); padding-top: 18px;
}
.cred-line-light { border-top-color: rgba(255,255,255,.18); color: rgba(255,255,255,.8); }
.cred-line li { padding-inline: 14px; position: relative; }
.cred-line li:first-child { padding-left: 0; }
.cred-line li:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }

/* Indicador de rolagem */
.hero-scroll {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  z-index: 3; width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.4);
  border-radius: 20px; display: none;
}
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; background: #fff; border-radius: 2px; transform: translateX(-50%); animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0%,100% { opacity: 0; transform: translate(-50%,0); } 40% { opacity: 1; } 70% { opacity: 1; transform: translate(-50%,12px); } }
@media (prefers-reduced-motion: reduce) { .hero-scroll span { animation: none; } }

/* Portrait — tratamento editorial p/ casar com marinho */
.portrait {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  background: var(--navy-900);
}
.portrait img {
  width: 100%; filter: saturate(.82) contrast(1.02);
  mix-blend-mode: luminosity; opacity: .96;
}
.portrait::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(33,58,97,.06) 0%, rgba(20,36,61,.42) 100%);
  mix-blend-mode: multiply;
}
.portrait::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(210deg, transparent 55%, rgba(20,36,61,.55) 100%);
}
.portrait-tag {
  position: absolute; left: 14px; bottom: 14px; z-index: 3; color: #fff;
  display: flex; flex-direction: column; line-height: 1.3;
  font-size: .78rem; letter-spacing: .03em;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.portrait-name { font-family: var(--ff-serif); font-size: 1.05rem; font-weight: 600; }
.portrait-tag span:last-child { color: #cdd4de; font-weight: 700; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }

/* =========================================================
   2. QUEM ASSINA
   ========================================================= */
.authority { background: var(--white); border-block: 1px solid var(--line); }
.authority-grid { display: grid; gap: 40px; margin-top: 36px; }
.lead { font-size: 1.12rem; color: var(--ink-soft); line-height: 1.7; }

.cred-list { list-style: none; padding: 0; margin-top: 28px; display: flex; flex-direction: column; gap: 2px; }
.cred-list li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line); }
.cred-list li:last-child { border-bottom: 1px solid var(--line); }
.cred-list span:last-child { font-size: 1rem; color: var(--ink-soft); }
.cred-list strong { color: var(--ink); font-weight: 700; }
.check { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--navy); position: relative; margin-top: 3px; }
.check::after { content: ""; position: absolute; left: 6px; top: 3px; width: 6px; height: 11px; border: solid var(--navy); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }

.authority-aside { display: flex; flex-direction: column; gap: 26px; }
.portrait-sm { margin: 0; max-width: 340px; }
.portrait-sm img { filter: saturate(.8) contrast(1.02); }

.quote-card {
  background: var(--paper); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 26px 24px; border-radius: var(--radius);
}
.quote-title { font-size: 1.28rem; color: var(--navy); margin-bottom: 12px; }
.quote-card p { color: var(--ink-soft); font-size: .98rem; }
.quote-sign { margin-top: 16px; font-size: .82rem; color: var(--graphite-600); font-weight: 700; font-style: normal; }

/* =========================================================
   3. SERVIÇOS
   ========================================================= */
.services { background: var(--paper); }

/* Lista editorial numerada (no lugar de cards) */
.service-list { margin-top: 40px; border-top: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: start;
  padding: 26px 6px; border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding var(--t) var(--ease), background var(--t) var(--ease);
}
.service-row-num {
  font-family: var(--ff-serif); font-weight: 800; font-size: 1.9rem; line-height: .9;
  color: var(--line); letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
  transition: color var(--t) var(--ease); min-width: 1.6em;
}
.service-row-body { min-width: 0; }
.service-row h3 { font-size: 1.24rem; color: var(--ink); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.service-row p { color: var(--ink-soft); font-size: 1rem; margin-top: 8px; max-width: 66ch; }
.service-row::after {
  content: ""; position: absolute; right: 6px; top: 30px; width: 22px; height: 22px;
  background: no-repeat center/contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  background-color: var(--accent); opacity: 0; transform: translateX(-6px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}
.service-row:hover { background: rgba(33,58,97,.035); padding-left: 16px; padding-right: 34px; }
.service-row:hover .service-row-num { color: var(--accent); }
.service-row:hover::after { opacity: 1; transform: translateX(0); }
.service-row.is-anchor .service-row-num { color: var(--navy); }

.service-flag {
  font-size: .6rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy); background: rgba(176,141,87,.18); border: 1px solid rgba(176,141,87,.5);
  padding: 3px 9px; border-radius: 3px; line-height: 1.4;
}

/* =========================================================
   4. MÉTODO (bloco marinho)
   ========================================================= */
.method { background: var(--navy); color: #eaeef4; position: relative; overflow: hidden; }
.method::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background:
    radial-gradient(50% 40% at 100% 0%, rgba(255,255,255,.06), transparent 60%),
    radial-gradient(40% 40% at 0% 100%, rgba(176,141,87,.08), transparent 60%);
}
.method > .wrap { position: relative; z-index: 1; }
.method .section-title { color: #fff; max-width: 24ch; }
.method-head { max-width: 640px; }

.method-steps { list-style: none; padding: 0; margin-top: 44px; display: grid; gap: 0; counter-reset: none; }
.method-step {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  padding: 26px 0; border-top: 1px solid var(--line-navy); position: relative;
}
.method-step:last-child { border-bottom: 1px solid var(--line-navy); }
.step-num {
  font-family: var(--ff-serif); font-size: 1.35rem; font-weight: 600; color: #fff;
  width: 52px; height: 52px; flex: none; border: 1px solid var(--line-navy);
  border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.04);
}
.step-body h3 { font-size: 1.35rem; color: #fff; margin-bottom: 6px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.step-body p { color: #b9c3d2; font-size: 1rem; max-width: 62ch; }
.step-tag {
  font-family: var(--ff-sans); font-size: .6rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--navy); background: var(--accent);
  padding: 4px 9px; border-radius: 3px;
}
.method-step.is-delivery .step-num { background: var(--accent); border-color: var(--accent); color: var(--navy-900); }
.method-step.is-delivery { background: linear-gradient(90deg, rgba(255,255,255,.04), transparent 60%); }
.method-cta { margin-top: 40px; }

/* =========================================================
   5. BASE TÉCNICA
   ========================================================= */
.proof { background: var(--white); border-block: 1px solid var(--line); }
.proof-grid { display: grid; gap: 16px; margin-top: 40px; }
.proof-card {
  padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--paper); position: relative;
}
.proof-card::before { content: ""; position: absolute; top: 0; left: 26px; width: 34px; height: 3px; background: var(--accent); }
.proof-card h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 12px; padding-top: 8px; }
.proof-card p { color: var(--ink-soft); font-size: .98rem; }
.proof-link {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
  font-weight: 700; font-size: .9rem; color: var(--navy);
  border-bottom: 1px solid transparent; transition: border-color var(--t) var(--ease), gap var(--t) var(--ease);
}
.proof-link svg { width: 16px; height: 16px; }
.proof-link:hover { border-color: var(--navy); gap: 10px; }

/* =========================================================
   6. FAQ
   ========================================================= */
.faq { background: var(--paper); }
.accordion { margin-top: 36px; border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item summary {
  list-style: none; cursor: pointer; padding: 22px 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-family: var(--ff-serif); font-size: 1.12rem; font-weight: 500; color: var(--ink);
  transition: color var(--t) var(--ease);
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary:hover { color: var(--navy); }
.acc-ico { flex: none; width: 20px; height: 20px; position: relative; }
.acc-ico::before, .acc-ico::after { content: ""; position: absolute; background: var(--navy); transition: transform var(--t) var(--ease), opacity var(--t) var(--ease); }
.acc-ico::before { top: 9px; left: 2px; width: 16px; height: 2px; }
.acc-ico::after { top: 2px; left: 9px; width: 2px; height: 16px; }
.acc-item[open] .acc-ico::after { transform: rotate(90deg); opacity: 0; }
.acc-body { overflow: hidden; }
.acc-body p { padding: 0 4px 24px; color: var(--ink-soft); max-width: 68ch; }
.acc-item[open] summary { color: var(--navy); }

/* =========================================================
   7. CTA FINAL
   ========================================================= */
.final-cta { background: var(--navy-900); color: #fff; text-align: center; position: relative; overflow: hidden; }
.final-cta::before {
  content: ""; position: absolute; inset: 0; opacity: .6;
  background: radial-gradient(60% 80% at 50% 0%, rgba(33,58,97,.55), transparent 70%);
}
.final-cta-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.final-cta .eyebrow { justify-content: center; }
.final-cta .section-title { color: #fff; max-width: 22ch; }
.final-sub { margin-top: 18px; color: #b9c3d2; max-width: 52ch; font-size: 1.06rem; }
.final-cta .btn { margin-top: 32px; }
.final-cta .wa { width: 22px; height: 22px; }
.final-micro { margin-top: 18px; font-size: .84rem; color: #8f9bab; font-weight: 700; letter-spacing: .04em; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--navy); color: #c3ccd8; }
.footer-grid { display: grid; gap: 34px; padding-block: 54px 30px; }
.footer-logo { width: 300px; max-width: 78%; height: auto; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-legal-name { font-family: var(--ff-serif); font-size: 1.3rem; color: #fff; font-weight: 600; }
.footer-legal-detail { font-size: .88rem; margin-top: 8px; color: #9aa6b8; line-height: 1.6; }

.footer-nav h4, .footer-contact h4 {
  font-family: var(--ff-sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: #8492a6; font-weight: 700; margin-bottom: 16px;
}
.footer-nav ul, .footer-contact ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-nav a, .footer-contact a { font-size: .95rem; color: #c3ccd8; transition: color var(--t) var(--ease); }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; }

.footer-disclaimer { padding-block: 24px; border-top: 1px solid var(--line-navy); }
.footer-disclaimer p { font-size: .82rem; color: #8492a6; max-width: 90ch; line-height: 1.7; }

.footer-bar { border-top: 1px solid var(--line-navy); background: var(--navy-900); }
.footer-bar-inner { display: flex; flex-direction: column; gap: 14px; padding-block: 22px; }
.footer-bar p { font-size: .8rem; color: #8492a6; }
.legal-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.legal-open {
  background: none; border: none; color: #b7c0cd; font-size: .82rem; padding: 0;
  border-bottom: 1px solid transparent; transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.legal-open:hover { color: #fff; border-color: var(--accent); }

/* =========================================================
   COOKIE BAR
   ========================================================= */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  background: #fff; border-top: 2px solid var(--navy);
  box-shadow: 0 -12px 40px -20px rgba(20,36,61,.4);
  transform: translateY(110%); transition: transform 360ms var(--ease);
}
.cookie-bar.is-visible { transform: translateY(0); }
.cookie-inner { display: flex; flex-direction: column; gap: 16px; padding-block: 18px; }
.cookie-inner p { font-size: .88rem; color: var(--ink-soft); }
.link-inline { background: none; border: none; padding: 0; color: var(--navy); font-weight: 700; border-bottom: 1px solid currentColor; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { flex: 1 1 auto; }

/* =========================================================
   MODAIS
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: end center; }
.modal[hidden] { display: none; }
.modal-overlay { position: absolute; inset: 0; background: rgba(15,22,35,.55); backdrop-filter: blur(3px); opacity: 0; transition: opacity var(--t) var(--ease); }
.modal.is-open .modal-overlay { opacity: 1; }
.modal-panel {
  position: relative; width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto;
  background: var(--paper); border-radius: 14px 14px 0 0;
  box-shadow: 0 -10px 60px rgba(0,0,0,.4);
  transform: translateY(24px); opacity: 0;
  transition: transform 300ms var(--ease), opacity 300ms var(--ease);
}
.modal.is-open .modal-panel { transform: translateY(0); opacity: 1; }
.modal-head {
  position: sticky; top: 0; background: var(--paper); z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px 16px; border-bottom: 1px solid var(--line);
}
.modal-head h2 { font-size: 1.4rem; color: var(--navy); }
.modal-close { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 1.5rem; color: var(--ink-soft); line-height: 1; display: grid; place-items: center; transition: background var(--t) var(--ease); }
.modal-close:hover { background: var(--paper-2); }
.modal-content { padding: 22px 24px 30px; }
.modal-content h3 { font-family: var(--ff-sans); font-size: .92rem; font-weight: 700; color: var(--ink); margin: 20px 0 6px; }
.modal-content p { font-size: .95rem; color: var(--ink-soft); margin-bottom: 6px; }
.modal-content > p:first-child { background: rgba(33,58,97,.05); padding: 14px 16px; border-radius: var(--radius); border-left: 3px solid var(--navy); }
.modal-note { margin-top: 22px; font-size: .82rem !important; color: var(--graphite-600); font-style: italic; border-top: 1px dashed var(--line); padding-top: 16px; }

body.no-scroll { overflow: hidden; }

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 620ms var(--ease), transform 620ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* =========================================================
   BREAKPOINTS
   ========================================================= */
@media (min-width: 620px) {
  .cookie-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .cookie-inner p { flex: 1; }
  .cookie-actions .btn { flex: 0 0 auto; }
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-logo-full { display: block; }
  .brand-logo-mark { display: none; }
  .hero-actions .btn { flex: 0 0 auto; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr; }
  .modal { place-items: center; }
  .modal-panel { border-radius: 14px; }
  .footer-bar-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 900px) {
  .section { padding-block: 92px; }
  .nav { display: block; }
  .nav ul { list-style: none; display: flex; gap: 4px; padding: 0; }
  .nav a { display: inline-block; padding: 9px 14px; font-size: .92rem; font-weight: 500; color: var(--ink-soft); border-radius: var(--radius); position: relative; transition: color var(--t) var(--ease); }
  .nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease); }
  .nav a:hover { color: var(--navy); }
  .nav a:hover::after { transform: scaleX(1); }
  .header-cta { display: inline-flex; }
  .nav-toggle, .mobile-menu { display: none; }
  .brand-role { font-size: .64rem; }

  .hero {
    padding: 104px 0 60px; min-height: 88vh;
    display: flex; align-items: center;
  }
  /* Foto ocupa a direita e dissolve para o marinho à esquerda */
  .hero-media {
    position: absolute; top: 0; right: 0; bottom: 0; left: auto;
    width: 56%; height: 100%; max-height: none; min-height: 0; margin: 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 34%, #000 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 34%, #000 100%);
  }
  .hero-media img { object-position: 60% 22%; }
  .hero-media::after {
    background:
      linear-gradient(90deg, var(--navy) 0%, rgba(33,58,97,.5) 26%, rgba(20,36,61,.12) 55%, transparent 78%),
      linear-gradient(180deg, transparent 60%, rgba(20,36,61,.5) 100%);
  }
  .hero-inner { padding-bottom: 0; }
  .hero-content { max-width: 560px; }
  .hero h1 { max-width: 13ch; }
  .hero-sub { max-width: 42ch; }
  .hero-actions .btn { flex: 0 0 auto; }
  .hero-scroll { display: block; }

  .authority-grid { grid-template-columns: 1.35fr .9fr; gap: 60px; align-items: start; }

  /* Serviços — grade editorial de 3 colunas (nº · título · descrição) */
  .service-row { grid-template-columns: 92px minmax(220px, 300px) 1fr; column-gap: 32px; align-items: baseline; padding: 32px 6px; }
  .service-row-body { display: contents; }
  .service-row-num { font-size: 2.5rem; grid-column: 1; }
  .service-row h3 { grid-column: 2; margin: 0; }
  .service-row p { grid-column: 3; margin-top: 0; }
  .service-row::after { top: 50%; margin-top: -11px; }

  .method-step { grid-template-columns: auto 1fr; gap: 28px; padding: 30px 0; }
  .method-steps { max-width: 900px; }
}

@media (min-width: 1120px) {
  .service-card { padding: 32px 28px 30px; }
}

/* Larger, calmer portrait framing on wide screens */
@media (min-width: 900px) {
  .portrait { aspect-ratio: 4 / 5; }
  .portrait img { height: 100%; object-fit: cover; object-position: center 20%; }
}
