@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/fraunces-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/fraunces.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/instrument-sans.woff2') format('woff2');
}

/* ==========================================================================
   Carine Barcaro — Neuropsicologia
   Estilo editorial neutro/quente. Tokens no :root.
   ========================================================================== */
:root {
  /* Paleta da MARCA (logo): sálvia + dourado + verde-escuro, base marfim */
  --paper:      #f7f5ef;   /* fundo principal (marfim quente) */
  --paper-2:    #edeae0;   /* banda alternada */
  --surface:    #ffffff;   /* cards */
  --ink:        #333f2c;   /* texto principal (verde-escuro do logo) */
  --muted:      #6f7565;   /* texto secundário (cinza-sálvia) */

  /* Marca — verde sálvia */
  --brand:      #5e7250;   /* botões / traços fortes (contraste AA c/ branco) */
  --brand-2:    #495b3d;   /* hover / fundo escuro */
  --brand-soft: #e7ecdf;   /* tints suaves */

  /* Acento — dourado/bege do logo (uso pontual) */
  --clay:       #b49c84;
  --clay-soft:  #efe8db;

  --line:       #e4e0d3;
  --shadow:     0 30px 70px -34px rgba(51, 63, 44, .24);
  --shadow-sm:  0 12px 30px -18px rgba(51, 63, 44, .26);

  --radius:     18px;
  --radius-lg:  28px;
  --container:  1140px;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--brand); color: #fff; padding: 10px 16px; z-index: 100;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Tipografia ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 400; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 .9rem;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 26px; height: 1px;
  background: var(--clay); vertical-align: middle; margin-right: 10px;
  transform: translateY(-3px);
}
.lead { font-size: 1.15rem; color: #3a423a; max-width: 46ch; }
strong { font-weight: 600; color: var(--ink); }
em { font-style: italic; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-size: .98rem; font-weight: 600;
  padding: .85rem 1.5rem; border-radius: 999px; cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  border: 1px solid transparent;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(245, 250, 248, .88);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 64px; width: auto; display: block; }
/* wordmark de texto (usado no rodapé) */
.brand-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.brand-role { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { font-size: .95rem; font-weight: 500; color: var(--ink); transition: color .2s; }
.nav a:not(.nav-cta):not(.nav-social) { position: relative; }
.nav a:not(.nav-cta):not(.nav-social)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--brand); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.nav a:not(.nav-cta):hover { color: var(--brand); }
.nav a:not(.nav-cta):not(.nav-social):hover::after,
.nav a:not(.nav-cta):not(.nav-social).active::after { transform: scaleX(1); }
.nav a:not(.nav-cta):not(.nav-social).active { color: var(--brand); }

/* Ícone do Instagram no menu */
.nav-social {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); transition: color .2s ease, transform .2s ease;
}
.nav-social svg { width: 21px; height: 21px; }
.nav-social:hover { color: var(--brand); transform: translateY(-1px); }
.nav-social-label { display: none; }
.nav-cta { background: var(--brand); color: #fff !important; padding: .55rem 1.2rem; border-radius: 999px; }
.nav-cta:hover { background: var(--brand-2); }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--ink); transition: .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Seções ---------- */
.section { padding-block: clamp(64px, 9vw, 116px); }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 58ch; margin-bottom: 3rem; }
.section-head .section-sub { color: var(--muted); font-size: 1.05rem; margin-top: .5rem; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 100px); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy h1 { margin: .2rem 0 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; list-style: none; padding: 0;
  margin: 2.2rem 0 0; font-size: .9rem; color: var(--muted);
}
.hero-trust li { display: flex; align-items: center; gap: .5rem; }
.hero-trust li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--clay);
}

/* Retrato editorial (arco no topo) */
.hero-portrait { position: relative; margin: 0; }
.portrait-frame {
  position: relative; aspect-ratio: 4/5; overflow: hidden;
  border-radius: 220px 220px var(--radius-lg) var(--radius-lg);
  background: var(--brand-soft); box-shadow: var(--shadow);
}
.portrait-frame.small { border-radius: var(--radius-lg) 180px var(--radius-lg) var(--radius-lg); aspect-ratio: 4/4.4; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait-placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center; text-align: center;
  color: var(--brand-2); font-family: var(--serif); font-size: 1.1rem;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(62,92,75,.05) 14px 15px),
    var(--brand-soft);
}
.portrait-badge {
  position: absolute; left: -14px; bottom: 24px;
  background: var(--surface); border: 1px solid var(--line);
  padding: .8rem 1.1rem; border-radius: 14px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.portrait-badge strong { font-family: var(--serif); font-size: 1.05rem; }
.portrait-badge span { font-size: .82rem; color: var(--muted); }

/* ---------- Manifesto ---------- */
.band-manifesto { padding-block: clamp(48px, 6vw, 84px); }
.manifesto {
  font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 400; line-height: 1.35; max-width: 24ch + 30ch; margin: 0 auto; text-align: center;
  max-width: 46ch;
}
.manifesto em { color: var(--brand); font-style: italic; }

/* ---------- Pilares ---------- */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pillar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2.4rem; box-shadow: var(--shadow-sm);
}
.pillar-icon, .card-icon {
  display: inline-flex; width: 54px; height: 54px; border-radius: 14px;
  align-items: center; justify-content: center; color: var(--brand);
  background: var(--brand-soft); margin-bottom: 1.2rem;
  transition: background .3s ease, color .3s ease, transform .3s cubic-bezier(.2,.7,.2,1);
}
.pillar-icon svg, .card-icon svg { width: 28px; height: 28px; }
.card:hover .card-icon,
.pillar:hover .pillar-icon { background: var(--brand); color: #fff; transform: rotate(-4deg) scale(1.08); }
.pillar { transition: transform .25s ease, box-shadow .25s ease; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar h3 { font-size: 1.5rem; margin-bottom: .8rem; }
.pillar-list { list-style: none; padding: 0; margin: 1.4rem 0 0; border-top: 1px solid var(--line); }
.list-label { font-family: var(--sans); font-weight: 600; font-size: .92rem; color: var(--ink); margin: 1.4rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.pillar-list.flush { border-top: 0; margin-top: .5rem; }
.pillar-list li { position: relative; padding: .7rem 0 .7rem 1.6rem; font-size: .96rem; color: #3d453d; border-bottom: 1px dashed var(--line); }
.pillar-list li:last-child { border-bottom: 0; }
.pillar-list li::before {
  content: ""; position: absolute; left: 0; top: 1.15rem;
  width: 8px; height: 8px; border-radius: 2px; background: var(--clay); rotate: 45deg;
}

/* ---------- Cards de perfil ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Sobre ---------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-portrait { margin: 0; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 2rem; }
.value { border-left: 2px solid var(--clay); padding-left: 1rem; }
.value strong { display: block; font-family: var(--serif); font-size: 1.1rem; margin-bottom: .2rem; }
.value span { font-size: .88rem; color: var(--muted); }

/* ---------- Processo ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 1.5rem; border-top: 2px solid var(--line); transition: border-color .3s; }
.step:hover { border-top-color: var(--brand); }
.step-num { font-family: var(--serif); font-size: 2.4rem; color: var(--clay); line-height: 1; display: block; margin-bottom: .6rem; }
.step h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Para quem ---------- */
.audience-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.check-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.check-grid li { position: relative; padding-left: 2rem; font-size: .98rem; }
.check-grid li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* ---------- Depoimentos ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote {
  margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; position: relative;
}
.quote::before {
  content: "\201C"; font-family: var(--serif); font-size: 4rem; color: var(--clay);
  line-height: 0; position: absolute; top: 2rem; left: 1.4rem; opacity: .5;
}
.quote blockquote { margin: 1.5rem 0 1rem; font-family: var(--serif); font-size: 1.08rem; line-height: 1.5; color: #33392f; }
.quote figcaption { font-size: .85rem; color: var(--muted); }

/* ---------- Contato ---------- */
.section-contact { background: var(--brand); color: #eef3ee; }
.section-contact .eyebrow { color: var(--clay-soft); }
.section-contact .eyebrow::before { background: var(--clay); }
.section-contact h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.contact-copy p { color: #d7e2d8; }
.contact-copy .btn-primary { background: #fff; color: var(--brand-2); }
.contact-copy .btn-primary:hover { background: var(--clay-soft); }
.contact-copy .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.contact-copy .btn-ghost:hover { background: rgba(255,255,255,.12); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.5rem; }
.contact-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-lg); padding: 2rem; }
.contact-card dl { margin: 0; display: grid; gap: 0; }
.contact-card dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.contact-card dl > div:last-child { border-bottom: 0; }
.contact-card dt { color: #b9c8bb; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.contact-card dd { margin: 0; text-align: right; font-weight: 500; }

/* ---------- Disclaimer ---------- */
.disclaimer { padding-block: 40px; background: var(--paper-2); }
.disclaimer p { max-width: 80ch; margin: 0 auto; text-align: center; font-size: .85rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-2); color: #cdd8cf; padding-block: 48px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { display: flex; flex-direction: column; }
.footer-logo { height: 56px; width: auto; display: block; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-role { color: #9db0a0; }
.footer-nav { display: flex; gap: 1.6rem; }
.footer-nav a:hover { color: #fff; }
.footer-copy { width: 100%; margin: 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: #9db0a0; display: flex; justify-content: space-between; align-items: center; gap: .4rem 1.2rem; flex-wrap: wrap; }
.footer-credito a { color: #cdd8cf; font-weight: 500; text-decoration: none; }
.footer-credito a:hover { color: #fff; text-decoration: underline; }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(51,63,44,.5);
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ---------- Reveal (scroll) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Entrada do hero (ao carregar) ---------- */
@keyframes rise { to { opacity: 1; transform: none; } }
.js .hero .hero-copy > *,
.js .hero-portrait { opacity: 0; transform: translateY(20px); }
.js .hero-portrait { transform: translateY(26px) scale(.985); }
.is-ready .hero .hero-copy > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.is-ready .hero-portrait { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero .hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero .hero-copy > *:nth-child(2) { animation-delay: .15s; }
.hero .hero-copy > *:nth-child(3) { animation-delay: .25s; }
.hero .hero-copy > *:nth-child(4) { animation-delay: .35s; }
.hero .hero-copy > *:nth-child(5) { animation-delay: .45s; }
.is-ready .hero-portrait { animation-delay: .2s; }

/* ---------- Respiro contínuo ---------- */
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.is-ready .portrait-badge { animation: floaty 5.5s ease-in-out 1.4s infinite; }

@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(94, 114, 80, .5); }
  70%  { box-shadow: 0 0 0 16px rgba(94, 114, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 114, 80, 0); }
}
.whatsapp-float { animation: wa-pulse 2.8s ease-out infinite; }

/* ---------- Barra de progresso ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  background: var(--brand); transform: scaleX(0); transform-origin: left;
  z-index: 60; transition: transform .12s linear;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .hero .hero-copy > *, .js .hero-portrait { opacity: 1 !important; transform: none !important; animation: none !important; }
  .portrait-badge, .whatsapp-float { animation: none !important; }
  .scroll-progress { display: none; }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .audience-grid, .contact-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .cards-grid, .quotes { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .hero-portrait { max-width: 460px; margin-inline: auto; }
  .about-portrait { max-width: 420px; margin-inline: auto; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .brand-logo { height: 46px; }
  .menu-toggle { display: flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 300px);
    flex-direction: column; align-items: flex-start; gap: 1.2rem;
    background: var(--surface); padding: 90px 28px 28px; box-shadow: var(--shadow);
    transform: translateX(100%); transition: transform .3s ease; z-index: 40;
  }
  .nav.aberto { transform: none; }
  .nav a { font-size: 1.1rem; }
  .nav-social { gap: .7rem; }
  .nav-social svg { width: 24px; height: 24px; }
  .nav-social-label { display: inline; }
  .nav-cta { width: 100%; text-align: center; }
  .cards-grid, .quotes, .steps, .values, .check-grid { grid-template-columns: 1fr; }
  .contact-card dd { text-align: left; }
  .contact-card dl > div { flex-direction: column; gap: .2rem; }
  .portrait-badge { left: 8px; }
}
