/* =========================================================
   Escritório Contábil Alves — Site One Page
   Paleta e tipografia conforme Manual de Identidade Visual
   ========================================================= */
:root {
  --navy: #022b5a;
  --navy-2: #01386f;
  --blue: #0175db;
  --blue-soft: #e8f2fc;
  --red: #f8342f;
  --red-dark: #c41f1b;
  --ink: #070707;
  --text: #3d4654;
  --muted: #6b7684;
  --line: #e3e8ef;
  --tint: #f4f7fb;
  --white: #ffffff;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(2, 43, 90, .08);
  --shadow-lg: 0 20px 50px rgba(2, 43, 90, .16);
  --font: "Red Hat Display", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(900px, 100% - 32px); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .95em 1.8em;
  background: var(--blue); color: var(--white);
  font: 700 .82rem/1 var(--font); letter-spacing: .06em; text-transform: uppercase;
  border: 0; border-radius: var(--radius-sm); cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--navy); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(1, 117, 219, .3); }
.btn--sm { padding: .8em 1.4em; font-size: .74rem; }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--red); color: var(--white); }
.btn--red { background: var(--red); }
.btn--red:hover { background: var(--red-dark); box-shadow: 0 8px 20px rgba(248, 52, 47, .35); }

/* ---------- Kicker / tag ---------- */
.kicker {
  display: inline-block; margin-bottom: .8em;
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue);
}
.kicker::before { content: ""; display: inline-block; width: 22px; height: 3px; margin-right: 10px; vertical-align: middle; background: var(--red); border-radius: 2px; }
.kicker--light { color: #9fd0ff; }
.tag {
  display: inline-block; padding: .45em 1em; margin-bottom: 1.4em;
  background: var(--red); color: var(--white);
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  border-radius: 4px;
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s, border-color .2s;
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(2, 43, 90, .08); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.header__logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { color: var(--navy); font-weight: 500; font-size: .95rem; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--red); transition: width .2s; }
.nav a:not(.btn):hover::after { width: 100%; }
.nav__cta { margin-left: 6px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; margin: 6px 0; background: var(--navy); transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(1, 117, 219, .55), transparent 55%),
    linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 55%, var(--blue) 120%);
  color: rgba(255, 255, 255, .88);
  padding: 80px 0 140px;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
.hero h1 strong { color: #9fd0ff; font-weight: 800; }
.hero p { font-size: 1.1rem; max-width: 560px; margin-bottom: 2em; }
.hero__media { position: relative; justify-self: center; max-width: 420px; }
.hero__media img {
  border-radius: 200px 200px var(--radius) var(--radius);
  aspect-ratio: 4 / 5; object-fit: cover; object-position: top;
  box-shadow: var(--shadow-lg);
  border: 6px solid rgba(255, 255, 255, .12);
}
.hero__media::before {
  content: ""; position: absolute; inset: -18px -18px auto auto; width: 120px; height: 120px;
  border: 3px solid var(--red); border-radius: 50%; opacity: .7;
}
.hero__badge {
  position: absolute; left: -36px; bottom: 40px;
  display: flex; align-items: center; gap: 12px;
  background: var(--white); color: var(--navy);
  padding: 14px 20px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.hero__badge strong { font-size: 2.4rem; font-weight: 800; color: var(--red); line-height: 1; }
.hero__badge span { font-size: .85rem; font-weight: 600; line-height: 1.2; }
.hero__wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 100px; fill: var(--white); }

/* ---------- Seções ---------- */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section__head { margin-bottom: 48px; }
.section__head--center { text-align: center; max-width: 700px; margin-inline: auto; }
.section__head--split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.section__head--split h2 { margin: 0; }

/* ---------- Setores ---------- */
.sectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.sector {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--white); padding: 32px 26px;
  border-radius: var(--radius); box-shadow: var(--shadow);
  border-top: 4px solid transparent;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.sector:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-top-color: var(--red); }
.sector p { font-size: .94rem; flex: 1; }
.sector__check { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 50%; background: var(--blue-soft); }
.sector__check svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sector--featured { background: linear-gradient(150deg, var(--blue), var(--navy)); color: rgba(255, 255, 255, .88); }
.sector--featured h3 { color: var(--white); }
.sector--featured .sector__check { background: rgba(255, 255, 255, .15); }
.sector--featured .sector__check svg { stroke: var(--white); }

/* ---------- Serviços ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); padding-bottom: 8px;
  transition: transform .25s, box-shadow .25s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service__img { overflow: hidden; aspect-ratio: 16 / 10; }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service:hover .service__img img { transform: scale(1.06); }
.service h3 { margin: 22px 24px 8px; font-size: 1.05rem; }
.service h3::before { content: ""; display: block; width: 28px; height: 3px; margin-bottom: 12px; background: var(--red); border-radius: 2px; }
.service p { margin: 0 24px 20px; font-size: .93rem; }

.irpf {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  margin-top: 48px; padding: 40px 48px;
  background: var(--navy); color: rgba(255, 255, 255, .85);
  border-radius: var(--radius);
}
.irpf > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .18; }
.irpf__content, .irpf .btn { position: relative; }
.irpf h3 { color: var(--white); font-size: 1.6rem; margin-bottom: .3em; }
.irpf p { margin: 0; }

/* ---------- Split (passos / sobre) ---------- */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.split__media--portrait img { aspect-ratio: 4 / 5; max-height: 600px; }
.split__media--portrait::before {
  content: ""; position: absolute; left: -20px; top: -20px; width: 60%; height: 60%;
  background-image: radial-gradient(var(--blue) 1.6px, transparent 1.6px); background-size: 14px 14px;
  opacity: .35; z-index: -1;
}
.split__media--accent::after {
  content: ""; position: absolute; right: -18px; top: -18px; width: 110px; height: 110px;
  background: var(--red); border-radius: 0 var(--radius) 0 100%; z-index: -1;
}
.split__media--accent { isolation: isolate; }
.split__media--portrait { isolation: isolate; }

.steps { list-style: none; padding: 0; margin: 32px 0 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps__icon { display: block; font-size: 2rem; font-weight: 800; line-height: 1; color: var(--blue); margin-bottom: 8px; }
.steps li:nth-child(even) .steps__icon { color: var(--red); }
.steps h3 { font-size: 1rem; margin-bottom: .4em; }
.steps p { font-size: .88rem; margin: 0; }

.values { list-style: none; padding: 0; margin: 24px 0 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.values li { padding: .5em 1em; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 6px; font-size: .9rem; font-weight: 600; color: var(--navy); }

/* ---------- Diferenciais ---------- */
.highlight {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center;
  padding: 64px 56px; border-radius: 24px;
  background: linear-gradient(rgba(2, 43, 90, .93), rgba(2, 43, 90, .93)), url("../img/tecnologia.webp") center/cover;
  color: rgba(255, 255, 255, .85);
}
.highlight h2 { color: var(--white); }
.highlight .kicker { color: #9fd0ff; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { padding: 24px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); transition: background .25s; }
.feature:hover { background: rgba(255, 255, 255, .1); }
.feature h3 { color: var(--white); font-size: 1.02rem; margin: 14px 0 6px; }
.feature p { font-size: .9rem; margin: 0; }
.feature__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--blue); }
.feature:nth-child(2) .feature__icon, .feature:nth-child(3) .feature__icon { background: var(--red); }
.feature__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border-radius: var(--radius-sm); box-shadow: 0 2px 10px rgba(2, 43, 90, .05); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 56px 18px 22px;
  background: var(--blue); color: var(--white); font-weight: 600;
  transition: background .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--navy); }
.faq summary::after { content: "›"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%) rotate(0); font-size: 1.6rem; line-height: 1; transition: transform .25s; }
.faq details[open] summary { background: var(--navy); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(90deg); }
.faq details p { padding: 18px 22px 20px; margin: 0; }

/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.contact__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__list strong { display: block; color: var(--navy); }
.contact__list a, .contact__list span { color: var(--text); word-break: break-word; }
.contact__icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--blue-soft); }
.contact__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact__form { background: var(--white); padding: 40px; border-radius: 20px; box-shadow: var(--shadow-lg); display: grid; gap: 16px; }
.contact__logo { height: 54px; width: auto; justify-self: center; margin-bottom: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact__form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--navy); }
.contact__form input, .contact__form textarea {
  width: 100%; padding: 12px 14px;
  font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.contact__form input:focus, .contact__form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(1, 117, 219, .15); }
.contact__form input.is-invalid { border-color: var(--red); }
.contact__form textarea { resize: vertical; }
.contact__form .btn { justify-self: start; }
.form-note { font-size: .8rem; color: var(--muted); margin: 0; }

/* ---------- CTA ---------- */
.cta {
  padding: 96px 0;
  background:
    linear-gradient(rgba(2, 43, 90, .9), rgba(2, 43, 90, .94)),
    url("../img/tecnologia.webp") center/cover fixed;
  color: rgba(255, 255, 255, .85); text-align: center;
}
.cta__inner { max-width: 780px; }
.cta h2 { color: var(--white); font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.cta p { margin-bottom: 2em; }

/* ---------- Footer ---------- */
.footer { background: #011d3d; color: rgba(255, 255, 255, .7); padding: 64px 0 24px; font-size: .93rem; }
.footer__news { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 40px; margin-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer__news h2 { color: var(--white); font-size: 1.4rem; margin: 0; }
.newsletter { display: flex; gap: 8px; flex: 0 1 420px; }
.newsletter input { flex: 1; min-width: 0; padding: 12px 14px; font: inherit; border: 0; border-radius: var(--radius-sm); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 48px; }
.footer__about img { height: 54px; width: auto; margin-bottom: 18px; }
.footer__crc { font-weight: 600; color: var(--white); }
.footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 1em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: rgba(255, 255, 255, .7); transition: color .2s; word-break: break-word; }
.footer a:hover { color: var(--white); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: grid; place-items: center; width: 58px; height: 58px;
  background: #25d366; border-radius: 50%; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.whatsapp:hover { transform: scale(1.08); }
.whatsapp svg { width: 32px; height: 32px; fill: var(--white); }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .highlight { grid-template-columns: 1fr; padding: 48px 36px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); box-shadow: 0 12px 24px rgba(2, 43, 90, .1);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.is-open { max-height: 420px; }
  .nav a:not(.btn) { padding: 14px 24px; border-top: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin: 14px 24px 20px; }

  .hero { padding: 56px 0 120px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 320px; }
  .hero__badge { left: -16px; }

  .section { padding: 72px 0; }
  .section__head--split { grid-template-columns: 1fr; gap: 16px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .split, .contact { grid-template-columns: 1fr; gap: 48px; }
  .split__media--portrait img { max-height: 460px; }
  .irpf { grid-template-columns: 1fr; padding: 32px; }
  .irpf .btn { justify-self: start; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
  .cta { background-attachment: scroll; }
}

@media (max-width: 600px) {
  .header__logo img { height: 38px; }
  .sectors, .services, .features, .steps { grid-template-columns: 1fr; }
  .highlight { padding: 40px 22px; border-radius: 18px; }
  .contact__form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .newsletter { flex-basis: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .split__media--accent::after { right: -8px; top: -8px; width: 70px; height: 70px; }
  .split__media--portrait::before { left: -8px; top: -8px; }
}
