/* SACONP Contabilidade, estilos (saconp.com)
   Linguagem visual derivada do logo: marinho + faixa laranja + sans pesada e condensada.
   Raios: controles 8px, painéis 14px. Laranja só em grafismo, foco e sobre o marinho. */

:root {
  --navy: #0F1F4D;
  --navy-ink: #0A1638;
  --navy-2: #1B2D63;
  --orange: #E8891C;
  --orange-hi: #F4A53D;       /* laranja sobre o marinho */
  --orange-text: #A35604;     /* laranja legível sobre branco (AA) */

  --bg: #FFFFFF;
  --bg-2: #F2F4F8;
  --line: #D9DEE8;
  --line-soft: #E7EAF0;

  --text: #121A2E;
  --text-2: #475069;
  --text-3: #626B80;
  --danger: #B42318;

  --wa: #1EA952;

  --font: 'Archivo', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;

  --r-ctl: 8px;
  --r-panel: 14px;
  --max: 1200px;
  --header-h: 72px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --shadow-panel: 0 1px 2px rgba(15, 31, 77, .06), 0 18px 40px -18px rgba(15, 31, 77, .28);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #B9C1D3 var(--bg-2);
  accent-color: var(--navy);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(232, 137, 28, .28); color: var(--navy-ink); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
.num { font-variant-numeric: tabular-nums; }

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

.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 100;
  background: var(--navy); color: #fff; padding: 8px 12px; border-radius: var(--r-ctl);
}
.skip-link:focus { top: 8px; }

/* Tipografia */
h1, h2, h3 { color: var(--navy); text-wrap: balance; }
h1, h2 {
  font-weight: 800;
  font-stretch: 78%;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; }
h3 { font-size: 1.2rem; font-weight: 700; font-stretch: 88%; line-height: 1.3; }
p { text-wrap: pretty; }
.lead { font-size: 1.2rem; line-height: 1.55; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  border: 1.5px solid transparent; border-radius: var(--r-ctl);
  font-weight: 650; font-size: 1rem; line-height: 1.2; white-space: nowrap;
  text-decoration: none; cursor: pointer; background: none;
  transition:
    background-color 180ms ease, border-color 180ms ease, color 180ms ease,
    transform 160ms var(--ease-out), box-shadow 180ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-secondary { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-block { width: 100%; }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--navy-2); border-color: var(--navy-2); box-shadow: 0 6px 16px -8px rgba(15, 31, 77, .55); }
  .btn-secondary:hover { background: rgba(15, 31, 77, .06); }
}

/* Cabeçalho */
.scroll-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line-soft);
  box-shadow: 0 6px 20px -14px rgba(15, 31, 77, .35);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
}
.brand { display: inline-flex; border-radius: var(--r-ctl); }
.brand img { height: 42px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) {
  position: relative;
  text-decoration: none; font-weight: 600; font-size: .97rem; color: var(--text);
  padding: 6px 0;
}
.site-nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--orange); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .site-nav a:not(.btn):hover::after { transform: scaleX(1); }
}
.site-nav .btn { margin-left: 4px; }

.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0;
  border: 1px solid var(--line); border-radius: var(--r-ctl); background: #fff;
  color: var(--navy); cursor: pointer;
  transition: transform 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle:active { transform: scale(0.95); }
.menu-bars { position: relative; width: 20px; height: 12px; }
.menu-bars span {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 240ms var(--ease-out), top 240ms var(--ease-out);
}
.menu-bars span:first-child { top: 0; }
.menu-bars span:last-child { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-bars span:first-child { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars span:last-child { top: 5px; transform: rotate(-45deg); }

/* Abertura */
.hero {
  position: relative;
  background: var(--bg-2);
  padding: 80px 0 96px;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 72px; align-items: center;
}
.hero-copy h1 { position: relative; z-index: 1; }
.hero-line { display: block; }
.hero h1 em { font-style: italic; color: var(--navy); }

.swoosh {
  display: block;
  width: min(100%, 560px); height: 36px;
  margin: 14px 0 30px -4px;
  fill: var(--orange);
}
.hero-copy .lead { color: var(--text-2); margin-bottom: 34px; max-width: 30em; }

.hero-form {
  background: var(--bg);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-panel);
  padding: 32px;
}
.hero-form h2 { font-size: 1.55rem; font-stretch: 85%; font-weight: 750; letter-spacing: -0.01em; margin-bottom: 6px; }
.hero-form > p { color: var(--text-2); font-size: .97rem; margin-bottom: 24px; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r-ctl);
  background: #fff; font-size: 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field input::placeholder { color: var(--text-3); opacity: 1; }
.field input:focus, .field select:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(15, 31, 77, .12);
}
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .14); }
.field-error { color: var(--danger); font-size: .9rem; font-weight: 500; }
.field-error:not([hidden]) { animation: rise-in 220ms var(--ease-out); }

.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select-wrap::after {
  content: ''; position: absolute; right: 18px; top: 50%;
  width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
  transform: rotate(45deg); pointer-events: none;
}
.form-note { margin-top: 16px; font-size: .92rem; color: var(--text-2); text-align: center; }
.form-note a { color: var(--navy); font-weight: 600; }

/* Faixa de números */
.statement {
  background: var(--navy);
  color: #E6EAF4;
  padding: 72px 0;
}
.statement p {
  max-width: 30em;
  font-size: clamp(1.5rem, 2.8vw, 2.35rem);
  font-weight: 600; font-stretch: 88%;
  line-height: 1.3; letter-spacing: -0.01em;
  text-wrap: balance;
}
.statement strong { color: var(--orange-hi); font-weight: 800; font-style: italic; white-space: nowrap; }

/* Seções */
.section { padding: 112px 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--text-2); font-size: 1.12rem; }

/* Serviços */
.services-grid {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 80px; align-items: start;
}
.services-aside { position: sticky; top: calc(var(--header-h) + 40px); }
.services-aside h2 { margin-bottom: 16px; }
.services-aside > p { color: var(--text-2); font-size: 1.1rem; margin-bottom: 28px; }
.services-aside .services-note {
  margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: .95rem; color: var(--text-2);
}
.service {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: 8px 36px;
  padding: 30px 0; border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service h3 { font-size: 1.3rem; }
.service p { color: var(--text-2); font-size: 1rem; }

/* Como começar */
.path-tabs {
  position: relative; display: inline-grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding: 5px; margin-bottom: 40px;
  background: #E3E7EF; border-radius: 12px;
}
.path-tabs[hidden] { display: none; }
.path-tabs button {
  position: relative; z-index: 1;
  min-height: 46px; padding: 10px 22px; border: 0; background: none; cursor: pointer;
  font-weight: 650; font-size: 1rem; color: var(--text-2); border-radius: var(--r-ctl);
  transition: color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.path-tabs button[aria-selected="true"] { color: var(--navy); }
.path-thumb {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px;
  width: calc(50% - 5px);
  background: #fff; border-radius: var(--r-ctl);
  box-shadow: 0 1px 2px rgba(15, 31, 77, .08), 0 4px 12px -6px rgba(15, 31, 77, .25);
  transition: transform 280ms var(--ease-out);
}
.path-tabs[data-active="1"] .path-thumb { transform: translateX(100%); }

.paths { display: grid; gap: 72px; }
.path h3 { font-size: 1.6rem; font-stretch: 82%; font-weight: 800; margin-bottom: 26px; }
.js .path h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.js .path:not([hidden]) { animation: rise-in 320ms var(--ease-out); }

.steps {
  counter-reset: step;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px;
  margin-bottom: 36px;
}
.steps li {
  counter-increment: step;
  position: relative; padding-top: 26px;
  border-top: 2px solid var(--line);
}
.steps li::before {
  content: counter(step);
  display: block; margin-bottom: 14px;
  font-size: 3rem; font-weight: 800; font-stretch: 70%; font-style: italic; line-height: 1;
  color: var(--orange-text);
}
.steps li::after {
  content: ''; position: absolute; left: 0; top: -2px; width: 56px; height: 2px; background: var(--orange);
}
.steps strong { display: block; font-weight: 700; font-size: 1.15rem; color: var(--navy); margin-bottom: 6px; }
.steps span { color: var(--text-2); font-size: 1rem; }

/* Sobre */
.sobre-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 88px; align-items: start; }
.sobre-copy h2 { margin-bottom: 24px; }
.sobre-copy p { color: var(--text-2); max-width: 36em; }
.sobre-copy p.lead { color: var(--text); margin-bottom: 20px; }

.principles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.principles div {
  padding: 26px 24px;
  background: var(--bg-2); border-radius: var(--r-panel);
}
.principles dt { font-weight: 750; font-stretch: 88%; font-size: 1.15rem; color: var(--navy); margin-bottom: 8px; }
.principles dd { color: var(--text-2); font-size: .98rem; }

/* Dúvidas */
.faq-wrap { max-width: 820px; }
.faq-wrap h2 { margin-bottom: 36px; }
.faq { border-top: 1px solid var(--line); }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0;
  font-weight: 650; font-size: 1.1rem; color: var(--navy);
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--orange-text), var(--orange-text)) center / 14px 2px no-repeat,
    linear-gradient(var(--orange-text), var(--orange-text)) center / 2px 14px no-repeat;
  transition: transform 260ms var(--ease-out);
}
.faq[open] summary::after { transform: rotate(135deg); }
@media (hover: hover) and (pointer: fine) {
  .faq summary:hover { color: var(--navy-2); }
}
.faq-body { padding: 0 0 24px; color: var(--text-2); max-width: 44em; }
.faq-body a { color: var(--navy); font-weight: 600; }

/* Abertura animada do FAQ onde o navegador suporta */
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq::details-content {
    height: 0; opacity: 0; overflow: clip;
    transition: height 280ms var(--ease-out), opacity 200ms ease, content-visibility 280ms allow-discrete;
  }
  .faq[open]::details-content { height: auto; opacity: 1; }
}

/* Contato */
.contato-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 88px; align-items: start; }
.contato-intro h2 { margin-bottom: 14px; }
.contato-intro p { color: var(--text-2); font-size: 1.15rem; margin-bottom: 32px; max-width: 28em; }

.contact-data { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.contact-data div { padding-top: 16px; border-top: 1px solid var(--line); }
.contact-data div:nth-child(4) { grid-column: 1 / -1; order: 1; }
.contact-data dt { color: var(--text-3); font-size: .9rem; margin-bottom: 4px; }
.contact-data dd { font-weight: 600; color: var(--text); }
.contact-data dd a { color: var(--navy); text-decoration: none; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .contact-data dd a:hover { text-decoration: underline; }
}

/* Rodapé */
.site-footer {
  background: var(--navy); color: rgba(230, 234, 244, .8);
  padding: 72px 0 32px; font-size: .95rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.footer-brand img { height: 42px; width: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 30em; }
.site-footer h3 { color: #fff; font-size: 1rem; font-stretch: 100%; margin-bottom: 14px; }
.site-footer ul li + li { margin-top: 9px; }
.site-footer a { color: rgba(230, 234, 244, .8); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; }
.site-footer address p + p { margin-top: 9px; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding-top: 24px; font-size: .9rem; color: rgba(230, 234, 244, .62);
}

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .3);
  transition: transform 180ms var(--ease-out), background-color 180ms ease;
  -webkit-tap-highlight-color: transparent;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .wa-float:hover { background: #178f45; transform: translateY(-2px); }
}

/* Movimento: um momento autoral na abertura, o resto é resposta ao usuário */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes swoosh-in {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes pop-in {
  from { opacity: 0; transform: scale(.9); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-line, .hero-copy .lead, .hero-copy .btn-row, .hero-form {
    animation: rise-in 700ms var(--ease-out) both;
  }
  .hero-line:nth-child(2) { animation-delay: 70ms; }
  .hero-copy .lead { animation-delay: 220ms; }
  .hero-copy .btn-row { animation-delay: 290ms; }
  .hero-form { animation-delay: 160ms; }
  .swoosh { animation: swoosh-in 900ms var(--ease-in-out) 260ms both; }
  .wa-float { animation: pop-in 320ms var(--ease-out) 900ms both; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; }
  .js .path:not([hidden]), .field-error:not([hidden]) { animation: none; }
  .faq::details-content { transition: none; }
}

/* Responsivo */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-aside { position: static; max-width: 640px; }
}

@media (max-width: 960px) {
  .hero-grid, .sobre-grid, .contato-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 56px 0 72px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-nav { gap: 22px; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .brand img { height: 38px; }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -20px rgba(15, 31, 77, .35);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 22px;
    opacity: 0; transform: translateY(-8px); visibility: hidden;
    transition: opacity 200ms ease, transform 240ms var(--ease-out), visibility 0s linear 240ms;
  }
  .site-nav.open {
    opacity: 1; transform: none; visibility: visible;
    transition: opacity 200ms ease, transform 240ms var(--ease-out), visibility 0s;
  }
  .site-nav a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
  .site-nav a:not(.btn)::after { content: none; }
  .site-nav .btn { margin: 18px 0 0; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .hero { padding: 40px 0 56px; }
  .swoosh { height: 22px; margin: 10px 0 22px; }
  .lead { font-size: 1.1rem; }

  .btn-row .btn { flex: 1 1 100%; }
  .hero-form { padding: 24px 20px; }
  .statement { padding: 56px 0; }
  .statement strong { white-space: normal; }

  .service { grid-template-columns: 1fr; padding: 24px 0; }
  .path-tabs { display: grid; width: 100%; }
  .path-tabs button { padding: 10px 6px; font-size: .93rem; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 52px 1fr; padding: 22px 0; }
  .steps li::before { grid-row: 1 / span 2; margin: 0; font-size: 2.4rem; }
  .steps strong, .steps span { grid-column: 2; }

  .principles { grid-template-columns: 1fr; }
  .contact-data { grid-template-columns: 1fr; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
}
