/* =========================================================================
   Davi Paranaguá — design system
   Paleta clínica ancorada no verde da marca (#009C3C). Fraunces + Inter.
   ========================================================================= */

:root {
  /* Greens */
  --green-900: #0e3a23;
  --green-800: #134b2d;
  --green-700: #175c38;
  --green-600: #1d7044;
  --brand: #009c3c;       /* símbolo Ψ histórico */
  --brand-700: #0a7a39;
  --green-100: #e7f1ea;
  --green-50: #f1f7f2;

  /* Warm neutrals */
  --ink: #1b241f;
  --ink-2: #3a463f;
  --muted: #5d6a62;
  --line: #e5e1d7;
  --line-2: #efece3;
  --paper: #faf8f3;
  --paper-2: #f3f0e7;
  --sand: #eae3d4;
  --white: #ffffff;
  --gold: #a9772a;        /* filete/destaque quente, usado com parcimônia */

  /* Layout */
  --maxw: 72rem;
  --maxw-prose: 42rem;
  --gutter: clamp(1.15rem, 5vw, 2.5rem);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 40, 30, .05), 0 2px 8px rgba(20, 40, 30, .05);
  --shadow: 0 18px 40px -22px rgba(14, 58, 35, .35);

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green-700); text-underline-offset: .18em; text-decoration-thickness: .07em; }
a:hover { color: var(--green-900); }
strong { font-weight: 650; color: var(--ink); }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* --- Typography --------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--green-900);
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.5rem + 3.4vw, 3.7rem); font-weight: 480; }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.9vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .8vw, 1.55rem); }
h4 { font-size: 1.15rem; }
p { text-wrap: pretty; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: .9rem;
}
.lead { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--muted); }
.measure { max-width: var(--maxw-prose); }
.center { text-align: center; }
.center .measure, .measure.center { margin-inline: auto; }

/* --- Layout ------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 52rem; }
.section { padding-block: clamp(3.25rem, 8vw, 6rem); }
.section--tint { background: var(--paper-2); }
.section--green { background: var(--green-50); }
.section--deep {
  background: linear-gradient(160deg, var(--green-900), var(--green-800));
  color: #eaf3ec;
}
.section--deep h1, .section--deep h2, .section--deep h3 { color: #fff; }
.section--deep a { color: #bfe6cc; }
.section--deep .lead, .section--deep .muted { color: #c8ddcf; }
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head.center { margin-inline: auto; }

.stack > * + * { margin-top: 1.1rem; }
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
@media (min-width: 40rem) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 52rem) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 40rem) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: inherit; font-weight: 600; line-height: 1;
  padding: .85em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green-700); color: #fff; }
.btn--primary:hover { background: var(--green-800); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--green-800); background: var(--white); }
.btn--ghost:hover { border-color: var(--green-600); color: var(--green-900); }
.btn--on-deep { background: #fff; color: var(--green-900); }
.btn--on-deep:hover { background: var(--green-50); color: var(--green-900); }
.btn--wa { background: #1f8a4c; color: #fff; }
.btn--wa:hover { background: #176b3b; color: #fff; }
.btn--lg { padding: 1em 1.7em; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }
.wa-icon { flex: none; }

/* --- Skip link ---------------------------------------------------------- */
.skip-link {
  position: absolute; left: 50%; top: -3rem; transform: translateX(-50%);
  background: var(--green-900); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 8px;
  z-index: 100; transition: top .15s;
}
.skip-link:focus { top: 0; color: #fff; }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 243, .88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand__mark { width: auto; height: 42px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-serif); font-weight: 600; font-size: 1.18rem; color: var(--green-900); letter-spacing: -.01em; }
.brand__role { font-size: .72rem; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }

site-nav { display: flex; align-items: center; }
.primary-nav { display: flex; align-items: center; gap: 1.5rem; }
.primary-nav__list { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.primary-nav__list a {
  text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .96rem;
  padding: .35rem 0; border-bottom: 2px solid transparent;
}
.primary-nav__list a:hover { color: var(--green-900); }
.primary-nav__list a[aria-current="page"] { color: var(--green-900); border-bottom-color: var(--brand); }
.primary-nav__cta { white-space: nowrap; }

.nav-toggle {
  display: none; align-items: center; gap: .5rem; background: var(--white);
  border: 1.5px solid var(--line); border-radius: 999px; padding: .5rem .85rem;
  font: inherit; font-weight: 600; font-size: .9rem; color: var(--green-900); cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
site-nav.is-open .nav-toggle__bars { background: transparent; }
site-nav.is-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
site-nav.is-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 55.99rem) {
  .nav-toggle { display: inline-flex; }
  .js .primary-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: .35rem;
    background: var(--white); border-top: 1px solid var(--line);
    box-shadow: var(--shadow); padding: .75rem var(--gutter) 1.4rem;
  }
  .js site-nav.is-open .primary-nav { display: flex; }
  .primary-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav__list a { padding: .8rem .25rem; border-bottom: 1px solid var(--line-2); font-size: 1.05rem; }
  .primary-nav__list a[aria-current="page"] { border-bottom-color: var(--line-2); color: var(--brand-700); }
  .primary-nav__cta { margin-top: .9rem; }
}

/* --- Hero --------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60rem 40rem at 85% -10%, var(--green-100), transparent 60%),
    radial-gradient(40rem 30rem at -10% 10%, #fff, transparent 55%);
}
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 60rem) { .hero__grid { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { margin-bottom: 1.1rem; }
.hero .lead { margin-bottom: 1.6rem; max-width: 34rem; }
.hero__aside { display: none; }
@media (min-width: 60rem) { .hero__aside { display: block; } }
.hero-figure {
  position: relative; aspect-ratio: 4 / 5; border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(165deg, var(--green-800), var(--green-900));
  box-shadow: var(--shadow); overflow: hidden; display: grid; place-items: center;
}
.hero-figure__mark { width: 56%; opacity: .96; }
.hero-figure__caption {
  position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.3rem;
  color: #d8e8dd; font-size: .82rem; letter-spacing: .02em;
}

/* --- Cards & features --------------------------------------------------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 1.9rem); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; height: 100%;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-2); }
.card__num { font-family: var(--font-serif); font-size: 1.1rem; color: var(--brand-700); font-weight: 600; margin-bottom: .4rem; }
.card--link { text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s, border-color .18s; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green-100); color: inherit; }
.card__more { margin-top: auto; padding-top: 1rem; font-weight: 600; color: var(--green-700); }

.feature { display: flex; gap: .9rem; }
.feature__icon {
  flex: none; width: 2.6rem; height: 2.6rem; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-100); color: var(--green-700); font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600;
}
.feature h3 { font-size: 1.18rem; margin-bottom: .25rem; }
.feature p { color: var(--ink-2); font-size: .98rem; }

/* Checklist */
.checklist { list-style: none; padding: 0; display: grid; gap: .7rem; }
.checklist li { position: relative; padding-left: 1.9rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .18em; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--green-100); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23175c38' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: .8rem; background-position: center; background-repeat: no-repeat;
}

/* --- Callout / disclaimer ---------------------------------------------- */
.callout {
  border-left: 4px solid var(--brand); background: var(--white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-sm);
}
.callout--quiet { background: var(--green-50); box-shadow: none; border-left-color: var(--green-600); }
.callout p { color: var(--ink-2); }
.callout p + p { margin-top: .6rem; }

/* --- CTA band ----------------------------------------------------------- */
.cta { text-align: center; }
.cta h2 { margin-bottom: .8rem; }
.cta .lead { margin: 0 auto 1.8rem; max-width: 38rem; }
.cta .btn-row { justify-content: center; }
.cta__note { margin-top: 1.1rem; font-size: .85rem; }

/* --- Prose (artigos) ---------------------------------------------------- */
.prose { font-size: 1.13rem; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { margin-top: 2.6rem; }
.prose h3 { margin-top: 2rem; }
.prose h2 + p, .prose h3 + p { margin-top: .8rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45rem; }
.prose a { color: var(--green-700); text-decoration: underline; }
.prose blockquote {
  margin: 2rem 0; padding: .4rem 0 .4rem 1.5rem; border-left: 3px solid var(--gold);
  font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.45; font-style: italic; color: var(--green-900);
}
.prose blockquote p { color: inherit; }
.prose hr { border: none; height: 1px; background: var(--line); margin: 2.75rem 0; }
.prose figure { margin: 2rem 0; }
.prose figcaption { font-size: .88rem; color: var(--muted); margin-top: .5rem; text-align: center; }
.prose code { background: var(--green-50); border: 1px solid var(--line-2); border-radius: 5px; padding: .1em .35em; font-size: .9em; }
.prose h2 a.header-anchor, .prose h3 a.header-anchor { color: inherit; text-decoration: none; }
.prose h2 a.header-anchor:hover::after, .prose h3 a.header-anchor:hover::after { content: " #"; color: var(--brand); }

/* --- Article header / meta --------------------------------------------- */
.post-header { padding-block: clamp(2.5rem, 6vw, 4rem) 0; }
.post-header .container { max-width: var(--maxw-prose); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.pilar-tag {
  display: inline-block; font-size: .76rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand-700); background: var(--green-100); padding: .25rem .6rem; border-radius: 999px; text-decoration: none;
}
.post-header h1 { margin-bottom: 1rem; }
.post-header .lead { color: var(--ink-2); }
.post-body { padding-block: 2rem clamp(3rem, 7vw, 5rem); }
.post-body .container { max-width: var(--maxw-prose); }
.post-disclaimer { margin-top: 3rem; }
.post-cta { margin-top: 2.5rem; padding: 1.6rem; background: var(--green-50); border-radius: var(--radius); border: 1px solid var(--green-100); }
.post-cta h3 { margin-bottom: .5rem; }

/* --- Blog listing ------------------------------------------------------- */
.post-list { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .post-list { grid-template-columns: repeat(2, 1fr); } }
.post-card { display: flex; flex-direction: column; }
.post-card .post-card__meta { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.post-card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.post-card h3 a { color: var(--green-900); text-decoration: none; }
.post-card h3 a:hover { color: var(--brand-700); }
.post-card time { font-size: .85rem; color: var(--muted); }

/* --- Pillar legend ------------------------------------------------------ */
.pilar-card { border-top: 3px solid var(--brand); }
.pilar-card .card__num { color: var(--green-700); }

/* --- Definition / fact rows -------------------------------------------- */
.factlist { display: grid; gap: 0; border-top: 1px solid var(--line); }
.factlist > div { display: grid; gap: .15rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 40rem) { .factlist > div { grid-template-columns: 14rem 1fr; gap: 1.5rem; align-items: baseline; } }
.factlist dt { font-weight: 600; color: var(--green-900); }
.factlist dd { margin: 0; color: var(--ink-2); }

/* --- Contact methods ---------------------------------------------------- */
.contact-methods { display: grid; gap: 1rem; }
@media (min-width: 44rem) { .contact-methods { grid-template-columns: repeat(2, 1fr); } }
.contact-method { display: flex; gap: .9rem; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; text-decoration: none; color: inherit; transition: border-color .18s, transform .18s; }
.contact-method:hover { border-color: var(--green-600); transform: translateY(-2px); color: inherit; }
.contact-method__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.contact-method__value { font-weight: 600; color: var(--green-900); font-size: 1.05rem; }

/* --- Footer ------------------------------------------------------------- */
.site-footer { background: var(--green-900); color: #cdddd2; margin-top: auto; }
.site-footer a { color: #d7e7dc; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; gap: 2rem; padding-block: clamp(2.75rem, 6vw, 4rem) 2rem; }
@media (min-width: 48rem) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.site-footer__mark { height: 40px; width: auto; margin-bottom: 1rem; }
.site-footer__name { font-family: var(--font-serif); color: #fff; font-size: 1.2rem; font-weight: 600; }
.site-footer__role { font-size: .92rem; margin-top: .2rem; }
.site-footer__crp { font-size: .85rem; color: #9fb8a8; margin-top: .6rem; letter-spacing: .03em; }
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .9rem; font-weight: 600; }
.footer-nav { list-style: none; padding: 0; display: grid; gap: .55rem; font-size: .96rem; }
.site-footer__contact p { font-size: .96rem; margin-bottom: .5rem; }
.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 1.5rem 2.25rem; display: grid; gap: .8rem; }
.site-footer__legal p { font-size: .82rem; color: #9fb8a8; line-height: 1.6; }
.site-footer__legal .measure { max-width: 60rem; }

/* --- Utilities ---------------------------------------------------------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mt-0 { margin-top: 0; }
.flow > * + * { margin-top: 1.1rem; }
