/* ==========================================================================
   Silvania Mendes Contabilidade · estilos
   Layout: página em bege "papel", como nos posts da marca. Seções alternam
   bege, bege claro e azul-marinho; o dourado fica para linhas, ícones e destaques.
   ========================================================================== */

:root {
  --beige: #E9DFD3;        /* fundo principal, tirado do post */
  --beige-soft: #F4ECE2;   /* superfícies mais claras */
  --navy: #112941;         /* azul-marinho da marca */
  --navy-2: #1C3A5C;       /* hover do azul */
  --gold: #A9792C;         /* dourado para texto sobre bege (contraste) */
  --gold-bright: #CDA45A;  /* dourado de destaque, linhas e ícones */
  --ink: #18222F;          /* texto principal */
  --muted: #5F5A54;        /* texto secundário */
  --on-navy: #EDE4D8;      /* texto sobre o azul */
  --on-navy-muted: #B9C0C9;
  --line: rgba(17, 41, 65, .14);
  --line-navy: rgba(205, 164, 90, .28);

  --f-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 1180px;
  --radius: 18px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--beige); color: var(--ink);
  font: 400 16px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--beige); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--navy); color: var(--on-navy); padding: .7rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.section { padding-block: clamp(4rem, 9vw, 6.5rem); }

.eyebrow {
  display: flex; align-items: center; gap: .8rem; margin: 0 0 1.2rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--gold-bright); flex: none; }
.h2 {
  font-family: var(--f-display); font-weight: 500; color: var(--navy);
  font-size: clamp(1.9rem, 4.2vw, 2.75rem); line-height: 1.14; margin: 0; text-wrap: balance;
}
.h2 em { color: var(--gold); font-style: italic; }
.lead { margin: 1rem 0 0; color: var(--muted); font-size: 1.05rem; max-width: 46ch; }
.section-head { display: grid; gap: .2rem; margin-bottom: clamp(2.2rem, 5vw, 3.2rem); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font: 700 .95rem/1 var(--f-body); letter-spacing: .01em; text-decoration: none; text-align: center;
  padding: 1rem 1.45rem; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--navy { background: var(--navy); color: var(--beige-soft); }
.btn--navy svg { color: var(--gold-bright); }
.btn--navy:hover { background: var(--navy-2); transform: translateY(-2px); box-shadow: 0 12px 26px -14px rgba(17, 41, 65, .8); }
.btn--gold { background: var(--gold-bright); color: var(--navy); }
.btn--gold:hover { background: #DDB86E; transform: translateY(-2px); box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .6); }
.btn--line { border-color: rgba(17, 41, 65, .35); color: var(--navy); }
.btn--line:hover { border-color: var(--gold); color: var(--gold); }
.btn--sm { padding: .72rem 1.1rem; font-size: .86rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(233, 223, 211, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease, background-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(233, 223, 211, .96); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .8rem; }
.brand img { height: 52px; width: auto; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem; }
.nav a { text-decoration: none; font-size: .92rem; font-weight: 600; color: var(--navy); position: relative; padding-block: .3rem; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold-bright); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.header-cta { display: none; }
.menu-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line); color: var(--navy); cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s ease, background-color .3s ease; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { border-top: 1px solid var(--line); padding-block: .5rem 1.25rem; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav a:not(.btn) { display: block; padding: .9rem 0; text-decoration: none; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 1.1rem; width: 100%; }

@media (min-width: 960px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle, .mobile-nav { display: none !important; }
  .brand img { height: 60px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__grid { position: relative; display: grid; gap: 2.5rem; padding-top: 2.5rem; }
.hero__copy { min-width: 0; }
.hero h1 {
  font-family: var(--f-display); font-weight: 500; margin: 0; color: var(--navy);
  font-size: clamp(2.4rem, 6vw, 4.1rem); line-height: 1.08; letter-spacing: -.01em; text-wrap: balance;
}
.hero h1 em {
  font-style: italic; font-weight: 600; color: var(--gold-bright);
  background: var(--navy); padding: .02em .22em .1em; border-radius: 4px;
  display: inline-block; line-height: 1; margin-block: .1em;
}
.hero__lead { margin: 1.5rem 0 0; max-width: 34rem; font-size: 1.08rem; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.1rem; }
.hero__facts { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; gap: 1rem; font-size: .9rem; color: var(--muted); }
.hero__facts li { display: flex; gap: .85rem; align-items: center; }
.hero__facts strong { display: block; color: var(--navy); font-weight: 700; }

.ring-icon {
  width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gold-bright); color: var(--gold);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.ring-icon svg { width: 20px; height: 20px; }

.hero__visual { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 440px; margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r)); }
.hero__panel { position: absolute; left: 14%; right: 6%; bottom: 0; height: 72%; background: var(--navy); border-radius: 28px 28px 0 0; }
.hero__arc { position: absolute; width: 78%; aspect-ratio: 1; left: 11%; top: 2%; border: 1px solid var(--gold-bright); border-radius: 50%; opacity: .7; }
.hero__photo { position: relative; width: min(84%, 420px); height: auto; }
.hero__badge {
  position: absolute; left: 4%; bottom: 14%; z-index: 2; margin: 0;
  background: var(--beige-soft); border-radius: 14px; padding: .85rem 1.05rem;
  box-shadow: 0 18px 36px -20px rgba(17, 41, 65, .6); max-width: 210px;
  font-size: .8rem; line-height: 1.35; color: var(--muted);
}
.hero__badge b { display: block; font-family: var(--f-display); font-size: 1.05rem; color: var(--navy); font-weight: 600; margin-bottom: .1rem; }

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.08fr .92fr; gap: 2rem; align-items: end; padding-top: 3.5rem; }
  .hero__copy { padding-bottom: 5rem; align-self: center; }
  .hero__facts { grid-template-columns: 1fr 1fr; }
  .hero__visual { min-height: 620px; margin-inline: 0; }
  .hero__photo { width: min(92%, 470px); }
  .hero__badge { left: -6%; }
}

/* ---------- Para quem ---------- */
.audience { background: var(--navy); color: var(--on-navy); }
.audience__inner { padding-block: 1.6rem; display: grid; gap: 1rem; align-items: center; }
.audience__label { margin: 0; font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-bright); }
.audience__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.audience__list li { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .95rem; }
.audience__list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-bright); flex: none; }
@media (min-width: 960px) { .audience__inner { grid-template-columns: auto 1fr; gap: 2.5rem; } .audience__list { justify-content: flex-end; } }

/* ---------- Diferenciais ---------- */
.values { background: var(--beige-soft); }
.values__list { display: grid; gap: 1.25rem; }
.value {
  background: var(--beige-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem; min-width: 0;
  transition: background-color .3s ease, border-color .3s ease, transform .3s ease;
}
.value:hover { background: #fff; border-color: rgba(169, 121, 44, .45); transform: translateY(-3px); }
.value:hover .ring-icon { background: var(--navy); color: var(--gold-bright); border-color: var(--navy); }
.value .ring-icon { margin-bottom: 1.2rem; }
.value h3 { margin: 0 0 .5rem; font-size: 1.1rem; font-weight: 800; color: var(--navy); }
.value p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (min-width: 760px) { .values__list { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Sobre ---------- */
.about__grid { display: grid; gap: 3rem; align-items: center; }
.about__visual { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 420px; }
.about__panel { position: absolute; inset: 18% 8% 0 8%; background: var(--beige-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.about__visual img { position: relative; width: min(86%, 400px); height: auto; }
.about__years {
  position: absolute; right: 2%; top: 26%; z-index: 1; margin: 0;
  background: var(--navy); color: var(--on-navy); border-radius: 16px; padding: 1rem 1.1rem; text-align: center;
  box-shadow: 0 20px 40px -22px rgba(17, 41, 65, .9);
}
.about__years b { display: block; font-family: var(--f-display); font-size: 2.2rem; line-height: 1; color: var(--gold-bright); font-weight: 600; }
.about__years span { font-size: .78rem; line-height: 1.3; display: block; max-width: 9rem; margin-top: .35rem; }
.about__copy { min-width: 0; }
.about__copy p { color: var(--muted); max-width: 58ch; margin: 1rem 0 0; }
.about__copy p strong { color: var(--navy); }
.credentials { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: .9rem; }
.credentials li { display: flex; gap: .9rem; align-items: flex-start; }
.credentials .ring-icon { width: 38px; height: 38px; }
.credentials .ring-icon svg { width: 17px; height: 17px; }
.credentials b { display: block; color: var(--navy); font-weight: 700; }
.credentials span span { color: var(--muted); font-size: .92rem; }
.mission {
  margin: 2rem 0 0; padding: 1.3rem 1.4rem; border-left: 2px solid var(--gold-bright);
  background: var(--beige-soft); border-radius: 0 12px 12px 0;
  font-family: var(--f-display); font-style: italic; font-size: 1.12rem; line-height: 1.5; color: var(--navy);
}
.mission cite { display: block; margin-top: .6rem; font: 600 .8rem/1.4 var(--f-body); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
@media (min-width: 960px) {
  .about__grid { grid-template-columns: .9fr 1.1fr; gap: 4.5rem; }
  .about__visual { min-height: 560px; }
}

/* ---------- Serviços ---------- */
.services { background: var(--beige-soft); }
.services__grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service {
  position: relative; display: flex; flex-direction: column; gap: .7rem; min-width: 0;
  background: var(--beige-soft); padding: 1.8rem 1.6rem 1.6rem;
  transition: background-color .35s ease, color .35s ease;
}
.service h3 { margin: .5rem 0 0; font-size: 1.12rem; font-weight: 800; color: var(--navy); transition: color .35s ease; }
.service p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; transition: color .35s ease; }
.service__link {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: .6rem;
  font-weight: 700; font-size: .88rem; color: var(--gold); text-decoration: none;
}
.service__link svg { width: 16px; height: 16px; transition: transform .3s ease; }
.service__link::after { content: ""; position: absolute; inset: 0; }
.service:hover, .service:focus-within { background: var(--navy); }
.service:hover h3, .service:focus-within h3 { color: var(--beige-soft); }
.service:hover p, .service:focus-within p { color: var(--on-navy-muted); }
.service:hover .service__link, .service:focus-within .service__link { color: var(--gold-bright); }
.service:hover .service__link svg { transform: translateX(4px); }
.service:hover .ring-icon, .service:focus-within .ring-icon { border-color: var(--gold-bright); color: var(--gold-bright); }
@media (min-width: 640px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Sinais de alerta ---------- */
.alerts { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.alerts::before {
  content: ""; position: absolute; width: 520px; aspect-ratio: 1; right: -180px; top: -200px;
  border: 1px solid var(--line-navy); border-radius: 50%; pointer-events: none;
}
@media (max-width: 959px) { .alerts::before { display: none; } }
.alerts .h2 { color: var(--beige-soft); }
.alerts .h2 em { color: var(--gold-bright); }
.alerts .eyebrow { color: var(--gold-bright); }
.alerts .lead { color: var(--on-navy-muted); }
.alerts__grid { position: relative; display: grid; gap: 2.5rem; }
.alerts__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line-navy); border-block: 1px solid var(--line-navy); }
.alerts__list li { display: flex; gap: 1rem; align-items: center; background: var(--navy); padding: 1.05rem 0; font-size: 1.02rem; }
.alerts__list .ring-icon { border-color: var(--gold-bright); color: var(--gold-bright); }
.alerts__list b { color: var(--gold-bright); font-weight: 700; }
.alerts__close { margin-top: 2rem; }
.alerts__close p { margin: 0 0 1.3rem; font-family: var(--f-display); font-size: 1.3rem; line-height: 1.35; color: var(--beige-soft); }
.alerts__close p em { color: var(--gold-bright); }
@media (min-width: 960px) {
  .alerts__grid { grid-template-columns: .9fr 1.1fr; gap: 4.5rem; align-items: start; }
  .alerts__list { grid-template-columns: 1fr 1fr; column-gap: 2rem; background: none; border: 0; }
  .alerts__list li { border-bottom: 1px solid var(--line-navy); }
}

/* ---------- Como funciona ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; }
.step { position: relative; padding: 1.8rem 1.6rem; border-radius: var(--radius); background: var(--beige-soft); border: 1px solid var(--line); min-width: 0; }
.step__num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--gold-bright); font-family: var(--f-display); font-size: 1.25rem; font-weight: 600;
  margin-bottom: 1.1rem;
}
.step h3 { margin: 0 0 .45rem; font-size: 1.1rem; font-weight: 800; color: var(--navy); }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 3.2rem; right: -1.25rem; width: 1.25rem; height: 1px; background: var(--gold-bright);
  }
}

/* ---------- CTA final ---------- */
.cta { padding-block: clamp(3rem, 7vw, 5rem) 0; }
.cta__box {
  position: relative; overflow: hidden; display: grid; gap: 1.5rem;
  background: var(--navy); color: var(--on-navy); border-radius: 28px;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.4rem, 5vw, 3.5rem) 0;
}
.cta__box::before {
  content: ""; position: absolute; width: 440px; aspect-ratio: 1; left: -160px; bottom: -220px;
  border: 1px solid var(--line-navy); border-radius: 50%; pointer-events: none;
}
.cta__copy { position: relative; min-width: 0; padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.cta__copy .h2 { color: var(--beige-soft); }
.cta__copy .h2 em { color: var(--gold-bright); }
.cta__copy p { color: var(--on-navy-muted); max-width: 44ch; margin: 1rem 0 1.8rem; }
.cta__photo { position: relative; align-self: end; justify-self: center; width: min(78%, 330px); height: auto; }
@media (min-width: 860px) {
  .cta__box { grid-template-columns: 1.3fr .7fr; align-items: end; }
  .cta__copy { align-self: center; }
  .cta__photo { width: 100%; max-width: 340px; }
}

/* ---------- Rodapé ---------- */
.site-footer { padding-block: clamp(3.5rem, 7vw, 5rem) 2rem; }
.footer__grid { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.footer__brand img { width: 200px; height: auto; }
.footer__brand p { color: var(--muted); max-width: 32ch; margin: 1rem 0 0; font-size: .95rem; }
.footer__title { margin: 0 0 1rem; font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .95rem; }
.footer__list a { text-decoration: none; color: var(--navy); font-weight: 600; }
.footer__list a:hover { color: var(--gold); }
.footer__contact { display: grid; gap: .9rem; font-size: .95rem; color: var(--muted); font-style: normal; }
.footer__contact strong { display: block; color: var(--navy); }
.footer__contact a { color: var(--navy); font-weight: 700; text-decoration: none; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; padding-top: 1.6rem; font-size: .84rem; color: var(--muted); }
.footer__bottom p { margin: 0; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.5fr .8fr 1.1fr auto; } }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; z-index: 40;
  right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: var(--gold-bright); text-decoration: none;
  box-shadow: 0 14px 30px -12px rgba(17, 41, 65, .9);
  transition: transform .3s ease, background-color .3s ease, opacity .3s ease;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: translateY(-3px) scale(1.04); background: var(--navy-2); }
.wa-float.is-hidden { opacity: 0; pointer-events: none; transform: translateY(10px); }

/* ---------- Animação de entrada ---------- */
.reveal { transition: opacity .8s ease, transform .8s ease; }
.js .reveal:not(.is-in) { opacity: .001; transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .js .reveal:not(.is-in) { opacity: 1; transform: none; transition: none; }
  .btn, .nav a::after, .value, .service, .wa-float { transition: none; }
}
