/* =========================================================
   Larissa Cavazotto Franca - Psicóloga
   Design system: "Reestruturação" - inspirado na própria
   técnica da TCC de transformar o pensamento automático
   em pensamento reestruturado.
   ========================================================= */

:root {
  /* Color tokens - paleta extraída da identidade visual da Larissa
     (creme, grafite e dourado, sampleados da logo oficial) */
  --ink: #33312C;
  --ink-soft: #6E6A61;
  --paper: #FAF2E5;
  --paper-alt: #F1E6D2;
  --card: #FFFDF9;
  --gold: #C9A227;
  --gold-deep: #7C5F1B;
  --gold-hover: #5F4813;
  --gold-pale: #E7D9A8;
  --taupe: #9C9282;
  --line: #E4D9C4;
  --line-strong: #D8C9A9;
  --ink-rgb: 51, 49, 44;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Layout */
  --maxw: 1180px;
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 26px;
  --shadow-card: 0 1px 2px rgba(var(--ink-rgb), 0.06), 0 12px 30px -14px rgba(var(--ink-rgb), 0.22);
}

@media (prefers-reduced-motion: no-preference) {
  :root { --transition-base: 0.35s cubic-bezier(.4,0,.2,1); }
}
@media (prefers-reduced-motion: reduce) {
  :root { --transition-base: 0s; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2.5px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold-deep);
  display: inline-block;
}

.section { padding: 88px 0; }
.section--alt { background: var(--paper-alt); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h2, .section--ink h3 { color: var(--paper); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 54ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15.5px;
  border: 1.5px solid transparent;
  transition: transform var(--transition-base), background var(--transition-base), border-color var(--transition-base);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold-deep); color: #FBF6EF; }
.btn-primary:hover { background: var(--gold-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-on-dark { border-color: rgba(250,242,229,.35); color: var(--paper); }
.btn-on-dark:hover { border-color: var(--paper); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250,242,229,.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
  gap: 24px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.15;
}
.brand img { width: 44px; height: 44px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; }
.brand span { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-soft); font-weight: 500; }

.footer-logo { height: 52px; width: auto; margin-bottom: 16px; display: block; }

.nav-desktop { display: flex; align-items: center; gap: 32px; }
.nav-desktop a { font-size: 15px; font-weight: 500; position: relative; }
.nav-desktop a:not(.btn)::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -5px;
  height: 1.5px; background: var(--gold-deep);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition-base);
}
.nav-desktop a:not(.btn):hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 18px; }

.has-dropdown { position: relative; }
.has-dropdown > a { display: flex; align-items: center; gap: 5px; }
.has-dropdown > a svg { width: 13px; height: 13px; transition: transform var(--transition-base); }
.has-dropdown:hover > a svg, .has-dropdown:focus-within > a svg { transform: rotate(180deg); }
.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  padding: 10px;
  width: 240px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 50;
}
.has-dropdown:hover .dropdown-panel,
.has-dropdown:focus-within .dropdown-panel { display: flex; }
.dropdown-panel a { padding: 10px 12px; border-radius: var(--radius-s); font-size: 14.5px; font-weight: 500; }
.dropdown-panel a:hover { background: var(--paper-alt); }
.dropdown-panel a::after { display: none; }

.nav-toggle { display: none; background: none; border: none; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 24px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a { padding: 12px 4px; font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--line); }
.nav-mobile .btn { margin-top: 12px; justify-content: center; }
.nav-mobile .submenu { display: flex; flex-direction: column; padding-left: 12px; border-bottom: 1px solid var(--line); }
.nav-mobile .submenu a { border-bottom: none; padding: 9px 4px; font-size: 14.5px; font-weight: 400; color: var(--ink-soft); }
.nav-mobile .submenu-label { padding: 12px 4px 2px; font-size: 16px; font-weight: 500; color: var(--ink-soft); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 96px; }
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.2rem, 3.6vw, 3.15rem); max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--gold-deep); }
.hero-logo { width: 600px; height: auto; margin-bottom: 28px; }
.hero-portrait { position: relative; }
.hero-portrait-ring {
  position: absolute;
  width: 88%;
  height: 88%;
  top: -20px;
  right: -20px;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-l);
  z-index: 1;
}
.hero-portrait img {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 360px; margin-inline: auto; }
  .hero-portrait-ring { display: none; }
  .hero-logo { width: 168px; }
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
}
.trust-row span { font-size: 13.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 7px; }
.trust-row svg { width: 15px; height: 15px; color: var(--ink-soft); flex-shrink: 0; }
.trust-row .trust-rating svg { color: var(--gold); }
.trust-row .trust-rating { font-weight: 600; color: var(--ink); }

/* ---------- Signature element: Reframe card ---------- */
.reframe {
  background: var(--card);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  padding: 30px;
  border: 1px solid var(--line);
  position: relative;
}
.reframe-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--ink-soft);
  margin-bottom: 20px;
  display: block;
}
.reframe-block {
  border-radius: var(--radius-m);
  padding: 20px 22px;
  transition: opacity var(--transition-base), transform var(--transition-base);
}
.reframe-block--before {
  background: rgba(124,95,27,.08);
  border: 1px dashed rgba(124,95,27,.4);
}
.reframe-block--before .reframe-tag { color: var(--gold-deep); }
.reframe-block--before p { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgba(124,95,27,.5); text-decoration-thickness: 1.5px; font-style: italic; }
.reframe-tag { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; display: block; }
.reframe-arrow { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--ink-soft); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.reframe-arrow svg { width: 20px; height: 20px; }
.reframe-block--after {
  background: var(--ink);
  border: 1px solid var(--ink);
  transition: opacity .5s ease, transform .5s ease;
}
.reframe.js-armed .reframe-block--after { opacity: 0; transform: translateY(6px); }
.reframe-block--after .reframe-tag { color: var(--gold); }
.reframe.is-visible .reframe-block--after { opacity: 1; transform: translateY(0); }
.reframe-block--after p { color: var(--paper); font-weight: 500; margin: 0; }
.reframe-block--before p { margin: 0; }
.reframe-foot { margin-top: 20px; font-size: 13px; color: var(--ink-soft); }

/* ---------- Trust strip ---------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-alt);
}
.strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  justify-content: center;
  padding-block: 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.strip li { display: flex; align-items: center; gap: 8px; }
.strip svg { width: 16px; height: 16px; color: var(--gold-deep); }

/* ---------- Service cards (folder tabs) ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 28px 24px;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), border-color var(--transition-base);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold-deep); }
.card-icon { width: 40px; height: 40px; color: var(--gold-deep); margin-bottom: 18px; }
.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 15px; flex-grow: 1; }
.card-link { margin-top: 16px; font-size: 14.5px; font-weight: 600; color: var(--gold-deep); display: inline-flex; align-items: center; gap: 6px; }
.card-link svg { width: 15px; height: 15px; transition: transform var(--transition-base); }
.card-link:hover svg { transform: translateX(3px); }

@media (max-width: 980px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }
}

/* ---------- Two-col content ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-media {
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
}
.approach-list { margin-top: 24px; display: flex; flex-direction: column; gap: 18px; }
.approach-list li { display: flex; gap: 14px; }
.approach-list svg { width: 22px; height: 22px; color: var(--ink-soft); flex-shrink: 0; margin-top: 2px; }
.approach-list strong { display: block; margin-bottom: 2px; }
.approach-list span { color: var(--ink-soft); font-size: 15px; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- About mini ---------- */
.about-mini { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.about-portrait {
  aspect-ratio: 4/5;
  border-radius: var(--radius-l);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-portrait::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius-l);
  box-shadow: inset 0 0 0 10px rgba(255,253,249,.14);
  pointer-events: none;
}
.credential-list { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.credential-list li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-soft); align-items: flex-start; }
.credential-list svg { width: 17px; height: 17px; color: var(--gold-deep); flex-shrink: 0; margin-top: 3px; }

@media (max-width: 900px) {
  .about-mini { grid-template-columns: 1fr; }
  .about-portrait { max-width: 320px; }
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 34px 32px;
  max-width: 640px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.testimonial p { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; color: var(--ink); line-height: 1.45; margin-bottom: 18px; }
.testimonial cite { font-style: normal; font-size: 13.5px; color: var(--ink-soft); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .05em; }

.rating-badge { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 28px; }
.rating-badge .stars { display: flex; gap: 2px; color: var(--gold); }
.rating-badge .stars svg { width: 18px; height: 18px; }
.rating-badge strong { font-family: var(--font-display); font-size: 1.15rem; }
.rating-badge span { color: var(--ink-soft); font-size: 14.5px; }
.rating-badge a { color: var(--gold-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-card .stars { display: flex; gap: 2px; color: var(--gold); }
.review-card .stars svg { width: 13px; height: 13px; }
.review-card p { font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; color: var(--ink); margin: 0; line-height: 1.42; }
.review-card cite { font-style: normal; font-size: 12.5px; color: var(--ink-soft); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .05em; }

@media (max-width: 980px) { .review-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .review-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; }
.faq-item {
  border-bottom: 1px solid var(--line-strong);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}
.faq-q svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform var(--transition-base); color: var(--gold-deep); }
.faq-item[open] .faq-q svg { transform: rotate(45deg); }
.faq-a { padding: 0 4px 24px; color: var(--ink-soft); max-width: 65ch; }
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); max-width: 18ch; margin-inline: auto; }
.cta-band p { color: rgba(250,242,229,.75); max-width: 50ch; margin-inline: auto 28px; }
.cta-band .hero-actions { justify-content: center; margin-top: 30px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 64px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250,242,229,.15);
}
.footer-grid h4 { color: var(--paper); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 500; margin-bottom: 18px; }
.footer-grid p { color: rgba(250,242,229,.7); font-size: 14.5px; }
.footer-grid ul { display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { font-size: 14.5px; color: rgba(250,242,229,.8); }
.footer-grid a:hover { color: var(--paper); text-decoration: underline; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(250,242,229,.25); display: flex; align-items: center; justify-content: center; }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom { padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(250,242,229,.55); }
.footer-bottom a:hover { color: var(--paper); }

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Floating WhatsApp ---------- */
.float-whats {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--ink-soft);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -6px rgba(51,49,44,.45);
  transition: transform var(--transition-base);
}
.float-whats:hover { transform: scale(1.07); }
.float-whats svg { width: 27px; height: 27px; }

/* ---------- Page header (inner pages) ---------- */
.page-hero { padding: 56px 0 40px; }
.breadcrumb { font-size: 13px; color: var(--ink-soft); display: flex; gap: 8px; margin-bottom: 18px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .04em; }
.breadcrumb a:hover { color: var(--gold-deep); }
.page-hero h1 { font-size: clamp(2rem, 3.2vw, 2.7rem); max-width: 20ch; }
.page-hero .lede { margin-top: 16px; }

.content-block { max-width: 720px; }
.content-block h2 { margin-top: 1.4em; font-size: 1.5rem; }
.content-block h3 { margin-top: 1.2em; font-size: 1.2rem; }
.content-block p { color: var(--ink-soft); }
.content-block ul { margin: 1em 0; display: flex; flex-direction: column; gap: 10px; }
.content-block ul li { display: flex; gap: 10px; color: var(--ink-soft); }
.content-block ul li::before { content: "-"; color: var(--gold-deep); flex-shrink: 0; }

.side-cta {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 28px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 100px;
  height: fit-content;
}
.side-cta h3 { font-size: 1.15rem; }
.side-cta p { color: var(--ink-soft); font-size: 14.5px; }
.side-cta .btn { width: 100%; justify-content: center; margin-top: 14px; }

.service-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) {
  .service-layout { grid-template-columns: 1fr; }
  .side-cta { position: static; }
}

.related-services { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 20px; }
@media (max-width: 780px) { .related-services { grid-template-columns: 1fr; } }

/* Simple fade-in on scroll - JS adds .js-armed before observing, so if
   JavaScript fails to run for any reason, content simply stays visible
   (safe default) instead of risking permanent invisibility. */
.reveal.js-armed { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.js-armed.is-visible { opacity: 1; transform: translateY(0); }
