/* ALLWE — estilos abaixo da dobra. Tokens, nav e hero estão inline no <head> de index.html. */

.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tint { background: var(--tint); }
.section-dark { background: var(--dark); color: var(--white); }
.section-violet { background: linear-gradient(140deg, var(--violet), var(--violet-deep)); color: var(--white); }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head h2, .about-text h2, .contact h2 { font-size: clamp(1.8rem, 1.4rem + 1.7vw, 2.75rem); letter-spacing: -.015em; }
.section-head > p:last-child:not(.eyebrow) { margin-top: 14px; font-size: 1.1rem; color: var(--text-muted); }
.eyebrow { margin-bottom: 10px; font: 600 .85rem/1.3 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }
.section-dark .eyebrow { color: var(--sky); }
.lead { font-size: 1.2rem; font-weight: 500; line-height: 1.5; }

/* Marcação visual de conteúdo pendente */
.ph { display: inline-block; padding: 1px 8px; border: 1px dashed #8a6d00; border-radius: 6px; background: #fff6cc; color: #5c4900; font-size: .85em; font-weight: 600; }

/* Drawer (mobile) */
.drawer-close { align-self: flex-end; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; background: none; border: 0; color: var(--white); cursor: pointer; }
.drawer-close svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.drawer-link { padding: 14px 4px; font: 600 1.15rem/1.3 var(--font-display); color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.drawer-cta { margin-top: 22px; }

/* Hero visual */
.orbit { position: absolute; border-radius: 50%; }
.orbit-outer { inset: 0; border: 1px solid rgba(116, 204, 244, .4); }
.orbit-inner { inset: 13%; display: grid; place-items: center; background: var(--violet); box-shadow: 0 0 0 12px rgba(116, 204, 244, .9), 0 24px 60px rgba(10, 10, 30, .45); }
.orbit-inner img { width: 80%; height: auto; }
.orbit-tag { position: absolute; padding: 7px 16px; border-radius: 999px; font: 600 .95rem/1.2 var(--font-display); color: var(--dark); box-shadow: 0 8px 22px rgba(10, 10, 30, .3); animation: float 6s ease-in-out infinite; }
.tag-vida { top: 7%; left: 4%; background: var(--sky); }
.tag-profissao { top: 7%; right: 0; background: var(--white); animation-delay: -1.5s; }
.tag-obras { bottom: 7%; right: 6%; background: var(--gold); animation-delay: -3s; }
.tag-patrimonio { bottom: 7%; left: 0; background: var(--white); animation-delay: -4.5s; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* Números */
.numeros { background: var(--violet); color: var(--white); padding-block: 16px clamp(44px, 6vw, 72px); }
.numeros-title { margin-bottom: 24px; font: 600 .85rem/1.3 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--white); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; list-style: none; margin: 0; padding: 0; }
.stats li { display: flex; flex-direction: column; gap: 6px; padding-left: 14px; border-left: 2px solid var(--sky); }
.stats li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.stat-num { font: 700 clamp(2rem, 1.6rem + 1.7vw, 3rem)/1.05 var(--font-display); color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats span { font-size: .95rem; line-height: 1.4; color: #f1f0fb; }

/* Quem somos */
.about { display: grid; gap: 44px; }
.about-text > p { margin-top: 16px; }
.about-text .eyebrow { margin-top: 0; }
.about-text h2 { margin-bottom: 20px; }
.mvv { padding: 20px 22px; border-left: 3px solid var(--gold); background: var(--tint); border-radius: 0 var(--radius) var(--radius) 0; }
.mvv p + p { margin-top: 10px; }
.company { display: grid; gap: 14px 24px; margin: 28px 0 0; }
.company dt { font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.company dd { margin: 2px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.values, .partners-people { grid-column: 1 / -1; }
.values h3 { margin-bottom: 20px; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem); }
.values-list { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
.values-list li { padding: 20px 22px; background: var(--tint); border-top: 3px solid var(--sky); border-radius: 0 0 var(--radius) var(--radius); }
.values-list h4 { margin: 0 0 8px; font: 700 1.05rem/1.3 var(--font-display); }
.values-list p { font-size: .95rem; color: var(--text-muted); }
.partners-people { display: grid; gap: 20px; }
.person { padding: clamp(22px, 3vw, 32px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(84, 85, 161, .08); }
.person-head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 20px; }
.person-head > div { flex: 1 1 170px; }
.person-photo { flex: none; width: 104px; height: 104px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--sky); }
.person h3 { font-size: 1.25rem; }
.person-edu { margin-top: 4px; font-size: .9rem; line-height: 1.4; color: var(--text-muted); }
.person-bio { display: grid; gap: 12px; font-size: .95rem; color: var(--text-muted); }

/* Perfis */
#especialidades .section-head { max-width: 760px; margin-inline: auto; text-align: center; }
#especialidades .eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255, 207, 12, .2); color: #5c4900; }
.profiles { display: grid; gap: 20px; margin-bottom: clamp(32px, 4vw, 48px); }
.profile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 8px rgba(26, 26, 46, .05); transition: transform .2s, box-shadow .2s, border-color .2s; }
.profile::before { content: ""; position: absolute; inset: 0 0 auto; z-index: 1; height: 4px; background: linear-gradient(90deg, var(--violet), var(--sky)); opacity: 0; pointer-events: none; transition: opacity .2s; }
.profile:hover { transform: translateY(-4px); border-color: var(--sky); box-shadow: 0 6px 20px rgba(26, 26, 46, .08); }
.profile:hover::before { opacity: 1; }
.profile-media { display: block; aspect-ratio: 16 / 9; margin: -24px -24px 6px; overflow: hidden; background: var(--tint); }
.profile-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.profile:hover .profile-media img { transform: scale(1.04); }
.profile-title { font: 700 1.2rem/1.25 var(--font-display); }
.profile > p:not(.profile-title) { color: var(--text-muted); font-size: .94rem; line-height: 1.5; }
.profile-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: auto; padding-top: 6px; }
.profile-links a { display: inline-flex; align-items: center; min-height: 40px; font: 700 .8125rem/1.25 var(--font-display); letter-spacing: .03em; text-transform: uppercase; color: var(--violet); text-underline-offset: 3px; }
.profile-links a::after { content: "→"; margin-left: 6px; transition: transform .15s; }
.profile-links a:hover::after { transform: translateX(3px); }
/* O primeiro link cobre o card inteiro; os demais ficam clicáveis por cima */
.profile-links a:first-child::before { content: ""; position: absolute; inset: 0; }
.profile-links a + a { position: relative; z-index: 1; }

/* Abas (desktop) / accordion (mobile) */
.tablist { display: none; }
.tablist button, .acc { display: flex; align-items: center; gap: 10px; font: 600 1rem/1.25 var(--font-display); color: var(--dark); cursor: pointer; }
.tablist svg, .acc svg { flex: none; width: 22px; height: 22px; color: var(--violet); }
.acc { width: 100%; min-height: 58px; margin-top: 10px; padding: 14px 18px; text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.acc::after { content: "+"; margin-left: auto; font-size: 1.5rem; line-height: 1; color: var(--violet); }
.acc[aria-expanded="true"] { background: var(--violet); border-color: var(--violet); color: var(--white); border-radius: 12px 12px 0 0; }
.acc[aria-expanded="true"] svg { color: var(--white); }
.acc[aria-expanded="true"]::after { content: "–"; color: var(--white); }
html:not(.js) .acc { display: none; }
.panel { padding: 28px 20px; background: var(--white); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; }
html:not(.js) .panel { margin-top: 18px; border-top: 1px solid var(--line); border-radius: 12px; }
.panel[hidden] { display: none; }
.js .panel:not([hidden]) { animation: panel-in .3s ease; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } }
.panel h3 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.875rem); letter-spacing: -.01em; }
.panel-kicker { display: block; margin-bottom: 8px; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }
.panel-sub { margin-top: 8px; font-size: 1.125rem; line-height: 1.4; font-weight: 600; color: var(--violet); }
.panel-text { max-width: 820px; margin-top: 16px; font-size: 1.0625rem; line-height: 1.7; color: var(--text-muted); }
.panel-text strong { color: var(--dark); }
.panel-label { margin: 28px 0 12px; font: 700 .8125rem/1.3 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.panel-cta { margin-top: 32px; }
.btn-outline-violet { border-color: var(--violet); color: var(--violet); }
.btn-outline-violet:hover { background: var(--violet); color: var(--white); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--tint); color: var(--violet-deep); font-size: .875rem; font-weight: 600; }
.credential { margin-top: 28px; padding: 18px 24px; border-left: 4px solid var(--violet); background: linear-gradient(135deg, rgba(84, 85, 161, .08), rgba(116, 204, 244, .12)); border-radius: 0 12px 12px 0; font-weight: 600; font-size: .9375rem; }
.features { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
.features li { position: relative; padding: 16px 20px 16px 46px; background: var(--tint); border: 1px solid var(--line); border-radius: 12px; font-size: .9375rem; font-weight: 500; line-height: 1.5; }
.features li::before { content: ""; position: absolute; left: 20px; top: 1.45em; width: 13px; height: 7px; border-left: 2px solid var(--violet); border-bottom: 2px solid var(--violet); transform: rotate(-45deg); }
.features strong { display: block; font-weight: 600; }
.features span { display: block; font-size: .8125rem; font-weight: 400; color: var(--text-muted); }

/* Tabela do portfólio: em telas estreitas cada linha vira um bloco */
.portfolio-table { display: block; margin-top: 24px; text-align: left; }
.portfolio-table thead { display: none; }
.portfolio-table tbody { display: grid; gap: 12px; }
.portfolio-table tr { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.portfolio-table tr:nth-child(even) { background: var(--tint); }
.portfolio-table th, .portfolio-table td { display: block; padding: 0; font-size: .9375rem; line-height: 1.5; }
.portfolio-table tbody th { margin-bottom: 8px; font: 700 1rem/1.3 var(--font-display); }
.portfolio-table td + td { margin-top: 8px; }
.portfolio-table td::before { content: attr(data-label); display: block; font-size: .8125rem; font-weight: 600; color: var(--text-muted); }

.insurers-mini { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; list-style: none; margin: 0; padding: 0; }
.insurers-mini li { display: flex; align-items: center; justify-content: center; height: 52px; min-width: 105px; padding: 4px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 1px 3px rgba(0, 0, 0, .05); transition: transform .2s, border-color .2s, box-shadow .2s; }
.insurers-mini li:hover { transform: translateY(-2px); border-color: var(--violet); box-shadow: 0 2px 8px rgba(26, 26, 46, .05); }
.insurers-mini .insurer-dark { background: var(--dark); border-color: var(--dark); }
.insurers-mini img { width: auto; height: auto; max-width: 105px; max-height: 44px; }
.insurers-more { margin-top: 10px; font-size: .92rem; color: var(--text-muted); }

/* Como funciona */
.steps { position: relative; display: grid; gap: 28px; list-style: none; margin: 0; padding: 0; }
.steps::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 3px; background: var(--gold); border-radius: 3px; transform-origin: top; transition: transform 1.1s ease-out; }
.js .steps:not(.in-view)::before { transform: scaleY(0); }
.steps li { position: relative; padding-left: 76px; min-height: 56px; }
.step-icon { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--violet); color: var(--white); box-shadow: 0 0 0 5px var(--white); }
.step-icon svg { width: 26px; height: 26px; }
.steps h3 { margin-bottom: 6px; font-size: 1.1rem; }
.steps p { font-size: .96rem; color: var(--text-muted); }

/* Parceiros */
.insurers { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.insurers li { display: grid; place-items: center; min-height: 92px; padding: 14px 10px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s; }
.insurers li:hover { border-color: var(--violet); }
.insurers .insurer-dark { background: var(--dark); border-color: var(--dark); }
.insurers img { max-width: 100%; height: auto; transition: filter .2s; }
/* Em telas de toque não há hover: os logos ficam sempre coloridos */
@media (hover: hover) {
  .insurers img { filter: grayscale(100%); }
  .insurers li:hover img { filter: none; }
}

/* Diferenciais */
.diffs { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
.diffs li { padding: 26px; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); background: rgba(255, 255, 255, .04); }
.diffs h3 { margin-bottom: 8px; font-size: 1.15rem; color: var(--white); }
.diffs p { color: var(--on-dark-muted); }
.diffs .diff-lead { background: var(--gold); border-color: var(--gold); }
.diffs .diff-lead h3 { color: var(--dark); font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
.diffs .diff-lead p { color: var(--dark); font-size: 1.1rem; font-weight: 500; }

/* Contato */
.contact { display: grid; gap: 40px; }
.contact .lead { margin: 16px 0 28px; color: #f1f0fb; }
.btn-lg { min-height: 58px; padding: 16px 30px; font-size: 1.1rem; }
.contact-list { display: grid; gap: 14px; list-style: none; margin: 32px 0 0; padding: 0; }
.contact-list li { display: flex; align-items: flex-start; gap: 12px; }
.contact-list svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--sky); }
.contact-list a { color: var(--white); overflow-wrap: anywhere; text-underline-offset: 3px; }
.form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 34px); background: var(--white); color: var(--dark); border-radius: 18px; box-shadow: 0 24px 60px rgba(10, 10, 30, .3); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .94rem; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; font: inherit; color: var(--dark); background: var(--white); border: 1.5px solid #8d8da8; border-radius: 10px; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--violet); }
html:not(.js) .form { display: none; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; }
.consent input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--violet); }
.consent a { color: var(--violet); font-weight: 600; }
.btn-violet { background: var(--violet); color: var(--white); }
.btn-violet:hover { background: var(--violet-deep); }
.form-status { min-height: 1.4em; font-size: .94rem; font-weight: 500; }
.form-status.ok { color: #14663a; }

/* Rodapé */
.footer { background: var(--dark); color: var(--on-dark-muted); padding-block: 52px 96px; }
.footer-grid { display: grid; gap: 32px; }
.footer-tagline { margin-top: 14px; font-size: .85rem; font-style: italic; letter-spacing: .02em; }
.footer-links { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-block; padding: 3px 0; color: var(--white); text-underline-offset: 3px; }
.footer-label { margin-bottom: 8px; font-weight: 600; color: var(--white); }
.footer-legal { display: grid; gap: 6px; margin-top: 36px; padding-top: 22px; font-size: .86rem; border-top: 1px solid rgba(255, 255, 255, .16); }

/* WhatsApp flutuante */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 9999; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #0f7a5a; color: var(--white); box-shadow: 0 10px 28px rgba(10, 10, 30, .35); transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 31px; height: 31px; fill: currentColor; }

/* Aviso de cookies */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9998; display: grid; gap: 14px; max-width: 560px; padding: 18px 20px; background: var(--dark); color: var(--white); border-radius: 14px; font-size: .93rem; line-height: 1.5; box-shadow: 0 16px 44px rgba(10, 10, 30, .45); }
.cookie[hidden] { display: none; }
.cookie a { color: var(--sky); }
.cookie-actions { display: flex; gap: 10px; padding-right: 66px; }
.btn-ghost { background: none; border-color: rgba(255, 255, 255, .6); color: var(--white); }
.cookie .btn { min-height: 44px; padding: 8px 18px; font-size: .94rem; }

/* Marcadores em fundo escuro continuam legíveis */
.ph-dark { font-size: .88em; }

@media (min-width: 480px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats li:last-child:nth-child(odd) { grid-column: auto; }
  .company { grid-template-columns: repeat(2, 1fr); }
  .company-wide { grid-column: 1 / -1; }
}

@media (min-width: 620px) {
  .partners-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  /* Abas substituem o accordion */
  .js .tabs { background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 6px 20px rgba(26, 26, 46, .08); overflow: hidden; }
  .js .tablist { display: flex; flex-wrap: wrap; background: #f1f2f8; border-bottom: 1px solid var(--line); }
  .tablist button { flex: 1 1 auto; justify-content: center; min-height: 58px; padding: 14px 18px; background: none; border: 0; border-bottom: 3px solid transparent; font-size: .9375rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; transition: background-color .2s, color .2s; }
  .tablist button:hover { background: rgba(255, 255, 255, .6); color: var(--violet); }
  .tablist button[aria-selected="true"] { background: var(--white); border-bottom-color: var(--violet); color: var(--violet); }
  .tablist button:focus-visible { outline-offset: -3px; box-shadow: none; }
  .acc { display: none; }
  .js .panel { padding: 48px; border: 0; border-radius: 0; }
  .js .panel:focus-visible { outline-offset: -3px; box-shadow: none; }
  .portfolio-table { display: table; width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
  .portfolio-table thead { display: table-header-group; }
  .portfolio-table tbody { display: table-row-group; }
  .portfolio-table tr { display: table-row; padding: 0; border: 0; border-radius: 0; }
  .portfolio-table th, .portfolio-table td { display: table-cell; padding: 14px 20px; vertical-align: top; }
  .portfolio-table thead th { background: var(--violet); color: var(--white); font: 700 .875rem/1.3 var(--font-display); }
  .portfolio-table tbody th { margin: 0; font: 600 .9375rem/1.5 var(--font-body); }
  .portfolio-table tbody th, .portfolio-table td { border-bottom: 1px solid var(--line); }
  .portfolio-table tbody tr:last-child th, .portfolio-table tbody tr:last-child td { border-bottom: 0; }
  .portfolio-table td + td { margin: 0; }
  .portfolio-table td::before { content: none; }
  .profiles { grid-template-columns: repeat(3, 1fr); }
  .diffs { grid-template-columns: repeat(2, 1fr); }
  .diff-lead { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 2fr 1fr; }
  .contact { grid-template-columns: 1fr 1fr; align-items: start; gap: 56px; }
}

@media (min-width: 1024px) {
  .stats { grid-template-columns: repeat(5, 1fr); }
  .about { grid-template-columns: 1.1fr 1fr; gap: 52px 64px; }
  .values-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .diffs { grid-template-columns: repeat(3, 1fr); }
  /* Linha do tempo horizontal */
  .steps { grid-template-columns: repeat(5, 1fr); gap: 22px; }
  .steps::before { left: 28px; right: calc(20% - 46px); top: 26px; bottom: auto; width: auto; height: 3px; transform-origin: left; }
  .js .steps:not(.in-view)::before { transform: scaleX(0); }
  .steps li { padding: 76px 0 0; }
}
