/* =========================================================
   NASCIMENTO ASSESSORIA CONTÁBIL E JURÍDICA · LINK NA BIO
   Rev.Labs · V1 · mobile first
   Paleta e fontes do site: grafite, oliva, lima, vinho, creme;
   Montserrat nos títulos, Inter no texto.
   ========================================================= */

:root {
  --graphite: #3f423d;
  --gray: #565656;
  --gray-soft: #8f9090;
  --olive: #8ea147;
  --olive-dark: #7f923d;
  --lime: #d1d839;
  --burgundy: #631706;
  --cream: #f6f7e9;
  --cream-green: #eef0d8;
  --white: #ffffff;
  --title: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --text: "Inter", "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { background: #e4e5d6; scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--graphite);
  background: #e4e5d6;
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
}

body.wa-lock { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--olive); outline-offset: 3px;
}

svg {
  width: 1.25em; height: 1.25em; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}

.page-shell {
  width: min(100%, 520px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--cream);
}

/* =========================================================
   TOPO
   ========================================================= */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(16px, env(safe-area-inset-top)) var(--gutter) 16px;
  background: var(--graphite);
}

/* mesmo tratamento do site: logo em branco sobre fundo escuro */
.brand img { width: auto; max-width: 168px; max-height: 40px; filter: brightness(0) invert(1); }

.topbar__since {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--graphite);
  background: var(--lime);
  font-family: var(--title);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* =========================================================
   HERO
   ========================================================= */

.hero { padding: 28px var(--gutter) 0; }

.hero h1 {
  max-width: 440px;
  margin: 0;
  font-family: var(--title);
  font-size: clamp(31px, 8.8vw, 42px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.hero h1 span { color: var(--olive-dark); }

.hero__lead {
  max-width: 400px;
  margin: 12px 0 0;
  color: var(--gray);
  font-size: 15px;
  line-height: 1.6;
}

.links { display: grid; gap: 10px; margin-top: 22px; }

/* CTA principal: abre o formulário do WhatsApp */
.primary-cta {
  display: flex;
  width: 100%;
  min-height: 74px;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 12px 12px;
  border: 0;
  border-radius: 20px;
  color: var(--white);
  background: var(--graphite);
  text-align: left;
  transition: transform .2s ease;
}

.primary-cta:hover { transform: translateY(-2px); }

.primary-cta__icon {
  display: grid;
  flex: 0 0 50px;
  height: 50px;
  place-items: center;
  border-radius: 14px;
  color: var(--graphite);
  background: var(--lime);
}

.primary-cta__icon svg { width: 26px; height: 26px; stroke-width: 1.7; }
.primary-cta__copy { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.primary-cta__copy strong { font-family: var(--title); font-size: 17px; font-weight: 700; }
.primary-cta__copy small { color: rgba(255,255,255,.72); font-size: 12.5px; }

.site-link {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 18px;
  border-radius: 18px;
  background: var(--white);
  transition: transform .2s ease;
}

.site-link:hover { transform: translateY(-2px); }
.site-link span { display: flex; min-width: 0; flex-direction: column; gap: 1px; }
.site-link strong { font-family: var(--title); font-size: 15px; font-weight: 700; }
.site-link small { color: var(--gray); font-size: 12px; overflow-wrap: anywhere; }
.site-link svg { color: var(--olive-dark); }

.quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quick-link {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 10px;
  border-radius: 16px;
  background: var(--cream-green);
  transition: transform .2s ease, background .2s ease;
}

.quick-link:hover { transform: translateY(-2px); background: #e6e9c8; }

.quick-link__icon {
  display: grid;
  flex: 0 0 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: var(--white);
  background: var(--olive-dark);
}

.quick-link__icon svg { width: 17px; height: 17px; }

.quick-link__label {
  min-width: 0;
  font-family: var(--title);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

/* =========================================================
   CARDS
   ========================================================= */

.content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px var(--gutter) 44px;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
}

a.card { transition: transform .25s ease; }
a.card:hover { transform: translateY(-3px); }

.card h2 {
  margin: 0;
  font-family: var(--title);
  font-size: clamp(22px, 6.2vw, 27px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.card p { margin: 10px 0 0; color: var(--gray); font-size: 14.5px; line-height: 1.6; }

.card-label {
  display: block;
  margin-bottom: 8px;
  color: var(--olive-dark);
  font-family: var(--title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.card-cta {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin-top: 20px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: var(--title);
  font-size: 14px;
  font-weight: 700;
}

.card-cta svg { width: 17px; height: 17px; }
.card-cta--dark { color: var(--lime); background: var(--graphite); }
.card-cta--graphite { color: var(--white); background: var(--graphite); }

.card-sublink {
  align-self: flex-start;
  margin-top: 14px;
  color: var(--olive-dark);
  font-size: 13.5px;
  font-weight: 600;
}

/* destaque oliva */
.card--olive { padding: 26px 22px 24px; background: var(--olive); }
.card--olive .card-label { color: var(--graphite); opacity: .75; }
.card--olive h2 { color: var(--graphite); }
.card--olive p { color: rgba(63,66,61,.88); }

/* serviços */
.card--servicos { padding: 24px 16px 14px; }
.card--servicos .card-label,
.card--servicos h2 { padding: 0 6px; }

.service-list { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }

.service-list a {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 14px;
  background: var(--cream);
  transition: background .2s ease;
}

.service-list a:hover { background: var(--cream-green); }
.service-list span { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.service-list strong { font-family: var(--title); font-size: 14px; font-weight: 700; line-height: 1.25; }
.service-list small { color: var(--gray); font-size: 12.5px; line-height: 1.35; }
.service-list svg { width: 16px; height: 16px; color: var(--olive-dark); }

.more { margin-top: 8px; }
.more .service-list { margin-top: 8px; }

.more summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--olive-dark);
  font-family: var(--title);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.more summary::-webkit-details-marker { display: none; }
.more summary svg { width: 18px; height: 18px; transition: transform .2s ease; }
.more[open] summary svg { transform: rotate(180deg); }
.more__close { display: none; }
.more[open] .more__open { display: none; }
.more[open] .more__close { display: inline; }

/* escritório */
.card__photo { aspect-ratio: 4 / 3; width: 100%; overflow: hidden; background: var(--cream-green); }
.card__photo img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; padding: 22px 22px 24px; }

/* =========================================================
   RODAPÉ
   ========================================================= */

.footer {
  display: grid;
  gap: 26px;
  padding: 34px var(--gutter) calc(92px + env(safe-area-inset-bottom, 0px));
  color: var(--white);
  background: var(--graphite);
}

.footer__brand { display: grid; gap: 14px; }
.footer__brand img { width: auto; max-width: 180px; max-height: 42px; filter: brightness(0) invert(1); }

.footer address {
  color: rgba(255,255,255,.75);
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
}

.footer address a { color: var(--white); font-weight: 600; }

.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.footer__cols nav { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 10px; }

.footer__cols h2 {
  margin: 0 0 2px;
  color: var(--lime);
  font-family: var(--title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer__cols a,
.footer__wa {
  padding: 0;
  border: 0;
  color: rgba(255,255,255,.9);
  background: none;
  font-size: 14px;
  text-align: left;
}

.footer__cols a:hover, .footer__wa:hover { color: var(--white); text-decoration: underline; }

.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; }
.footer__bottom p { margin: 0; color: rgba(255,255,255,.55); font-size: 11px; line-height: 1.5; }
.footer__bottom strong { color: var(--white); }

/* =========================================================
   WHATSAPP: botão flutuante + formulário
   ========================================================= */

.wa-fab {
  position: fixed;
  z-index: 30;
  right: max(16px, calc((100vw - 520px) / 2 + 16px), env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: #25d366;
  box-shadow: 0 8px 24px rgba(63,66,61,.28);
  transition: transform .2s ease;
}

.wa-fab:hover { transform: scale(1.06); }
.wa-fab svg { width: 30px; height: 30px; stroke-width: 1.7; }

.wa-modal {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}

.wa-modal[hidden] { display: none; }

.wa-modal__overlay { position: absolute; inset: 0; background: rgba(40,42,38,.55); }

.wa-modal__box {
  position: relative;
  display: grid;
  width: min(100%, 440px);
  gap: 8px;
  padding: 26px 22px 22px;
  border-radius: 24px;
  background: var(--white);
}

.wa-modal__box h2 { margin: 0 32px 0 0; font-family: var(--title); font-size: 22px; font-weight: 800; }
.wa-modal__box > p { margin: 0 0 8px; color: var(--gray); font-size: 14px; line-height: 1.5; }

.wa-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--graphite);
  background: var(--cream);
  font-size: 24px;
  line-height: 1;
}

.wa-modal__box label { margin-top: 4px; font-size: 13px; font-weight: 600; }

.wa-modal__box input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #d6d8c4;
  border-radius: 12px;
  color: var(--graphite);
  background: var(--cream);
  font: 16px var(--text);
}

.wa-modal__error { min-height: 1em; margin: 2px 0 0; color: var(--burgundy); font-size: 13px; }

.wa-modal__submit {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  color: var(--graphite);
  background: var(--lime);
  font-family: var(--title);
  font-size: 15px;
  font-weight: 700;
}

.wa-modal__submit:disabled { opacity: .7; cursor: progress; }
.wa-modal__box small { color: var(--gray-soft); font-size: 11.5px; line-height: 1.45; }

/* =========================================================
   AJUSTES
   ========================================================= */

@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .quick-link__label { font-size: 12px; }
}

@media (min-width: 760px) {
  body { padding: 28px 0; }
  .page-shell { border-radius: 32px; box-shadow: 0 0 60px rgba(63,66,61,.1); }
  .wa-modal { place-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
