/* EC Artmann Assessoria Contábil — estilos do site
   Paleta tirada do logotipo: azul-marinho #243260, com azuis de apoio e branco */

:root {
  --navy: #243260;
  --navy-deep: #172247;
  --blue: #3556a8;
  --blue-soft: #9db9ee;
  --sky: #dce6f7;
  --mist: #f3f6fb;
  --white: #ffffff;
  --ink: #141c36;
  --ink-soft: #46506f;
  --line: #d5dcec;
  --danger: #b3261e;
  --ok: #1d6b43;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --font-wordmark: "Michroma", "Segoe UI", system-ui, sans-serif;

  --radius: 14px;
  --radius-lg: 26px;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--blue-soft); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--navy); color: var(--white);
  padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

/* ---------- tipografia ---------- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 62ch; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--sky); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-ghost-light { border-color: rgba(255,255,255,.7); color: var(--white); background: transparent; }
.btn-ghost-light:hover { background: var(--white); color: var(--navy); }

/* ---------- cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(23,34,71,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.brand-mark { height: 46px; width: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-wordmark); font-size: 1.12rem; letter-spacing: .06em; }
.brand-sub { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; margin-top: 7px; font-weight: 600; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; padding: 10px 14px; border-radius: 999px;
  font-weight: 500; font-size: .98rem; color: var(--ink-soft);
  transition: background-color .2s, color .2s;
}
.nav a:hover { background: var(--mist); color: var(--navy); }
.nav .nav-ext { display: inline-flex; align-items: center; gap: 6px; }
.nav .nav-ext svg { width: 15px; height: 15px; }
.nav .nav-cta { background: var(--navy); color: var(--white); margin-left: 6px; padding-inline: 20px; }
.nav .nav-cta:hover { background: var(--navy-deep); color: var(--white); }

.menu-btn {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--white); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 20px; height: 2px; background: var(--navy);
  border-radius: 2px; position: relative; transition: transform .2s, background-color .2s;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero (foto real ao fundo) ---------- */
.hero { position: relative; background: var(--navy-deep); color: var(--white); overflow: hidden; isolation: isolate; }
.hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg, rgba(23,34,71,.94) 0%, rgba(23,34,71,.82) 42%, rgba(23,34,71,.45) 100%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center; gap: clamp(28px, 5vw, 72px);
  min-height: min(740px, calc(100vh - 80px));
  padding-block: clamp(44px, 7vw, 96px);
}
.hero h1 { max-width: 14ch; }
.hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #dbe4f7; margin-top: 24px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { margin-top: 32px; color: #c3d0ee; font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--blue-soft); flex: none; }

/* dois caminhos com o mesmo peso */
.paths { display: grid; gap: 16px; }
.path {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 200px; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--navy); color: var(--white); text-decoration: none; isolation: isolate;
  border: 1px solid rgba(255,255,255,.25);
  transition: transform .25s, border-color .25s;
}
.path img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.path::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23,34,71,0) 20%, rgba(23,34,71,.9) 100%); }
.path:hover { transform: translateY(-3px); border-color: var(--blue-soft); }
.path:hover img { transform: scale(1.04); }
.path-body { padding: 22px 24px; }
.path h2 { font-size: 1.55rem; }
.path p { margin: 6px 0 0; color: #dbe4f7; font-size: .98rem; }

/* ---------- seções ---------- */
.section { padding-block: clamp(64px, 9vw, 116px); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head p { color: var(--ink-soft); font-size: 1.15rem; margin-top: 16px; }

/* serviços: dois painéis iguais */
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
}
.panel-photo { position: relative; aspect-ratio: 16 / 7; background: var(--navy); }
.panel-photo img { width: 100%; height: 100%; object-fit: cover; }
.panel-body { padding: clamp(24px, 3.4vw, 38px); display: grid; gap: 14px; }
.panel-body > p { color: var(--ink-soft); margin: 0; }

.ticks { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: .3em; border-radius: 50%;
  background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m5 9.2 2.6 2.6L13 6.4' fill='none' stroke='%23243260' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.shared-title { margin: clamp(40px, 6vw, 64px) 0 20px; font-size: 1.5rem; }
.shared { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--mist); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; align-content: start;
}
.card p { color: var(--ink-soft); font-size: 1rem; margin: 0; }
.card-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--white); color: var(--navy); display: grid; place-items: center; border: 1px solid var(--line); }
.card-icon svg { width: 24px; height: 24px; }

/* método */
.method { background: var(--mist); border-block: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.step { position: relative; padding: 0 28px 0 0; counter-increment: step; }
.step::before {
  content: counter(step); display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-family: var(--font-display); font-weight: 700;
  position: relative; z-index: 1; margin-bottom: 20px;
}
.step::after { content: ""; position: absolute; top: 22px; left: 44px; right: 0; border-top: 2px dashed #a9b7d6; }
.step:last-child::after { display: none; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 1rem; margin: 0; }

/* área do cliente */
.portal { background: var(--navy); color: var(--white); position: relative; overflow: hidden; isolation: isolate; }
.portal-mark { position: absolute; right: -40px; bottom: -60px; height: 420px; width: auto; opacity: .07; z-index: -1; }
.portal-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.portal h2 { color: var(--white); }
.portal p { color: #d2dcf3; font-size: 1.12rem; margin-top: 16px; }
.portal-links { display: grid; gap: 16px; }
.portal-link {
  display: flex; align-items: center; gap: 18px; padding: 22px 24px;
  border-radius: var(--radius); background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22); text-decoration: none;
  transition: background-color .2s, border-color .2s, transform .2s;
}
.portal-link:hover { background: rgba(255,255,255,.15); border-color: var(--blue-soft); transform: translateX(4px); }
.portal-link .ico { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--white); color: var(--navy); display: grid; place-items: center; }
.portal-link .ico svg { width: 26px; height: 26px; }
.portal-link strong { display: block; font-family: var(--font-display); font-size: 1.2rem; }
.portal-link small { color: #b9c8ea; font-size: .95rem; }
.portal-link .go { margin-left: auto; width: 22px; height: 22px; color: var(--blue-soft); flex: none; }

/* sobre */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); aspect-ratio: 4 / 4.2; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-sign {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  background: rgba(255,255,255,.96); border-radius: var(--radius); padding: 16px 20px;
}
.about-sign strong { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); }
.about-sign span { color: var(--ink-soft); font-size: .92rem; }
.values { display: grid; gap: 20px; margin-top: 28px; }
.value { display: flex; gap: 16px; }
.value svg { flex: none; width: 28px; height: 28px; color: var(--blue); margin-top: 3px; }
.value h3 { font-size: 1.15rem; margin-bottom: 4px; }
.value p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* contato */
.contact { background: var(--mist); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); color: var(--navy); display: grid; place-items: center; }
.contact-list .ico svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-family: var(--font-display); }
.contact-list a { text-decoration-color: var(--blue); text-underline-offset: 4px; }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: 13px 14px; border: 1.5px solid #b4bfd9; border-radius: 10px;
  background: var(--white); color: var(--ink); width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(53,86,168,.25); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.consent input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--navy); flex: none; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status { min-height: 1.5em; font-weight: 600; margin: 0; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--danger); }
.form .btn[disabled] { opacity: .6; cursor: wait; }

/* ações de contato (sem formulário) */
.contact-actions { display: grid; gap: 18px; align-self: center; }
.action {
  display: flex; align-items: center; gap: 20px;
  padding: 28px clamp(22px, 3vw, 34px); border-radius: var(--radius-lg);
  text-decoration: none; border: 1px solid var(--line); background: var(--white);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.action:hover { transform: translateY(-3px); border-color: var(--navy); box-shadow: 0 14px 30px rgba(23,34,71,.12); }
.action .ico { flex: none; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: var(--sky); color: var(--navy); }
.action .ico svg { width: 30px; height: 30px; }
.action strong { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--navy); }
.action small { font-size: 1.02rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.action-wa { background: var(--navy); border-color: var(--navy); }
.action-wa strong { color: var(--white); }
.action-wa small { color: #d2dcf3; }
.action-wa .ico { background: var(--white); color: var(--navy); }

/* rodapé */
.site-footer { background: var(--navy-deep); color: #c3cee8; padding-block: 56px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.16); }
.site-footer h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 14px; }
.site-footer p, .site-footer li { font-size: .96rem; margin: 0 0 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .brand { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: .88rem; color: #9fb0d6; }

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

/* privacidade */
.legal { padding-block: 64px 96px; }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 24px; }
.legal h2 { font-size: 1.4rem; margin: 36px 0 12px; }

/* ---------- responsivo ---------- */
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; top: 80px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px var(--gutter) 24px; background: var(--white);
    border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(23,34,71,.12);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 16px; font-size: 1.05rem; }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; justify-content: center; }

  .hero::after { background: linear-gradient(180deg, rgba(23,34,71,.9) 0%, rgba(23,34,71,.8) 100%); }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero h1 { max-width: 16ch; }
  .paths { grid-template-columns: 1fr 1fr; }

  .panels { grid-template-columns: 1fr; }
  .shared { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .step::after { display: none; }
  .portal-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 600px) {
  .paths { grid-template-columns: 1fr; }
  .path { min-height: 170px; }
  .steps { grid-template-columns: 1fr; }
  .form .row2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .brand-sub { letter-spacing: .12em; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
  .path:hover img { transform: none; }
}
