/* ==========================================================================
   Flávio Vicente Psicólogo — style.css
   Design system: navy (#242158) + accent blue (#134acf) + cream (#fffdf6)
   + khaki (#e4decb), extraídos da identidade visual do portfólio.
   ========================================================================== */

@font-face {
  font-family: 'Mrs Saint Delafield';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/mrs-saint-delafield-400-normal-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400-normal-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500-normal-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600-normal-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-700-normal-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/inter-800-normal-latin.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --navy: #242158;
  --navy-dark: #001b3d;
  --blue: #134acf;
  --blue-dark: #0e39a0;
  --cream: #fffdf6;
  --cream-soft: #faf6ea;
  --khaki: #e4decb;
  --white: #ffffff;
  --text: #332f4b;
  --text-soft: #5b5773;
  --border: #e7e2d3;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-script: 'Mrs Saint Delafield', cursive;

  --container: 1180px;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -25px rgba(36, 33, 88, 0.35);
  --shadow-sm: 0 8px 24px -12px rgba(36, 33, 88, 0.25);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; color: var(--navy); line-height: 1.2; font-weight: 700; }
p { margin: 0; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Safety net: grid/flex children default to min-width:auto, which lets long
   unbreakable content (long button labels, addresses) blow out the track
   and cause horizontal overflow on narrow viewports. */
.hero .container > *,
.about .container > *,
.business .container > *,
.modalities-grid > *,
.identify-list > *,
.principles > *,
.stat-grid > *,
.footer-grid > *,
.timeline > * {
  min-width: 0;
}

section { padding: 96px 0; }
section[id] { scroll-margin-top: 96px; }

@media (max-width: 720px) {
  section { padding: 64px 0; }
  body { font-size: 16px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

h2.section-title {
  font-size: clamp(28px, 4vw, 38px);
  max-width: 720px;
  margin-bottom: 18px;
}
.section-lede {
  max-width: 640px;
  color: var(--text-soft);
  font-size: 18px;
}
.section-head { margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center h2, .section-head.center p { margin-left: auto; margin-right: auto; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--cream);
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none;
  line-height: 1.25;
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--blue);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--cream); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  padding: 15px 8px;
}
.btn-ghost:hover { color: var(--blue); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 246, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  opacity: 1;
  visibility: visible;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    opacity 0.35s ease, visibility 0s linear 0s;
}
.site-header.header-faded {
  opacity: 0;
  visibility: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    opacity 0.35s ease, visibility 0s linear 0.35s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px -10px rgba(36,33,88,0.15);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.logo {
  font-family: var(--font-script);
  font-size: 42px;
  color: var(--navy);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo small {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 600;
  margin-top: -2px;
}

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
}
.main-nav a:hover { color: var(--blue); text-decoration: none; }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-cta .btn span.short { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; color: var(--navy); }

@media (max-width: 900px) {
  .logo { font-size: 32px; }
  .main-nav ul { display: none; }
  .header-cta .btn span.long { display: none; }
  .header-cta .btn span.short { display: inline; }
  .nav-toggle { display: block; }
  .header-cta { gap: 10px; }
  .header-cta .btn { padding: 12px 18px; font-size: 14px; }
  .site-header.nav-open .main-nav ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
}

@media (max-width: 360px) {
  .logo { font-size: 26px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}
.hero p.lede {
  font-size: 19px;
  color: var(--text-soft);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.trust-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
  font-weight: 600;
}
.trust-line svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }
.trust-line .dot { opacity: 0.5; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-visual .bars {
  position: absolute;
  left: -6px;
  top: 6%;
  bottom: 6%;
  width: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-visual .bars span:nth-child(1) { background: var(--khaki); flex: 0.62; border-radius: 6px; }
.hero-visual .bars span:nth-child(2) { background: var(--navy); flex: 1; border-radius: 6px; }
.hero-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, #33307a 100%);
  aspect-ratio: 1 / 1.05;
  box-shadow: var(--shadow);
}
.hero-photo-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
}

@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 8px; }
  .hero-photo-wrap { max-width: 320px; }
}

/* ---------- Identificação (dor) ---------- */
.identify { background: var(--white); }
.identify-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.identify-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: var(--cream-soft);
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--navy);
  font-size: 15.5px;
}
.identify-list li svg {
  width: 22px;
  height: 22px;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}
.identify-close {
  max-width: 680px;
  font-size: 18px;
  color: var(--text-soft);
  border-left: 4px solid var(--khaki);
  padding-left: 20px;
}
@media (max-width: 640px) {
  .identify-list { grid-template-columns: 1fr; }
}

/* ---------- Sobre ---------- */
.about .container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
}
.about-photo {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, #1c1c1e 0%, #000000 100%);
  aspect-ratio: 4 / 4.6;
}
.about-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform: scaleX(-1) scale(1.18);
  transform-origin: bottom center;
}
.about-body p { color: var(--text-soft); font-size: 17px; margin-bottom: 18px; }
.about-body p:last-of-type { margin-bottom: 32px; }

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.principle-card {
  background: var(--cream-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}
.principle-card h4 {
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.principle-card h4 svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }
.principle-card p { font-size: 14.5px; color: var(--text-soft); }

@media (max-width: 900px) {
  .about .container { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; margin: 0 auto; }
  .principles { grid-template-columns: 1fr; }
}

/* ---------- Processo (timeline) ---------- */
.process { background: var(--white); }
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.timeline-step {
  position: relative;
  padding-top: 8px;
}
.timeline-step::before {
  content: counter(step);
  counter-increment: step;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 18px;
}
.timeline-step h3 { font-size: 17px; margin-bottom: 8px; }
.timeline-step p { color: var(--text-soft); font-size: 15px; }
.timeline-step:not(:last-child) {
  border-right: 1px dashed var(--border);
  padding-right: 24px;
}
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline-step:not(:last-child) { border-right: none; padding-right: 0; }
}
@media (max-width: 560px) {
  .timeline { grid-template-columns: 1fr; }
}

/* ---------- Modalidades ---------- */
.modalities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}
.modality-card {
  background: var(--cream-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.modality-card .icon-badge { margin-bottom: 18px; }
.modality-card h3 { font-size: 21px; margin-bottom: 10px; }
.modality-card p { color: var(--text-soft); margin-bottom: 14px; }
.modality-card address { font-style: normal; color: var(--text-soft); font-size: 15px; }
.modality-card a.map-link { font-weight: 700; font-size: 14.5px; }
.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-badge svg { width: 26px; height: 26px; color: var(--cream); }
.section-cta { display: flex; justify-content: center; }
@media (max-width: 720px) {
  .modalities-grid { grid-template-columns: 1fr; }
}

/* ---------- Contexto / dados ---------- */
.context { background: var(--navy); color: var(--cream); }
.context h2, .context .eyebrow { color: var(--cream); }
.context .eyebrow { color: #9fb3ff; }
.context .section-lede { color: #cfcbe6; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0 36px;
}
.stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-sm);
  padding: 26px 22px;
}
.stat-card .num {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  color: var(--cream);
  display: block;
  margin-bottom: 6px;
}
.stat-card p { color: #cfcbe6; font-size: 14.5px; }
.context-text { max-width: 720px; color: #e6e3f5; font-size: 17px; }
.context-text p { margin-bottom: 14px; }
.context-sources { color: #a29bd0; font-size: 13px; margin-top: 20px; }
@media (max-width: 720px) {
  .stat-grid { grid-template-columns: 1fr; }
}

/* ---------- Empresas ---------- */
.business {
  background: var(--cream-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.business .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.business p { color: var(--text-soft); font-size: 17px; margin-bottom: 26px; max-width: 560px; }
.business-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.business-panel ul { display: flex; flex-direction: column; gap: 14px; margin-bottom: 0; }
.business-panel li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--navy); font-weight: 600; }
.business-panel li svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 900px) {
  .business .container { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 4px;
  font-weight: 700;
  color: var(--navy);
  font-size: 17px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  position: relative;
  transition: transform 0.2s ease, background 0.2s ease;
}
.faq-item summary .plus::before, .faq-item summary .plus::after {
  content: '';
  position: absolute;
  background: var(--navy);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-item summary .plus::before { width: 12px; height: 2px; }
.faq-item summary .plus::after { width: 2px; height: 12px; transition: opacity 0.2s ease; }
.faq-item[open] summary .plus { background: var(--navy); transform: rotate(180deg); }
.faq-item[open] summary .plus::before,
.faq-item[open] summary .plus::after { background: var(--cream); }
.faq-item[open] summary .plus::after { opacity: 0; }
.faq-answer { padding: 0 4px 20px; color: var(--text-soft); font-size: 16px; max-width: 680px; }

/* ---------- CTA final ---------- */
.final-cta { text-align: center; }
.final-cta .section-head { margin-bottom: 30px; }
.final-cta-box {
  background: linear-gradient(150deg, var(--navy) 0%, #35317f 100%);
  border-radius: 28px;
  padding: 64px 32px;
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.final-cta-box h2 { color: var(--cream); max-width: 600px; margin: 0 auto 18px; }
.final-cta-box p { color: #d9d6ef; font-size: 18px; max-width: 560px; margin: 0 auto 34px; }
.final-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  margin-top: 36px;
  font-size: 15px;
  font-weight: 600;
}
.final-contacts a { color: var(--cream); display: inline-flex; align-items: center; gap: 8px; }
.final-contacts a:hover { color: #9fb3ff; text-decoration: none; }
.final-contacts svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #c9cbe0;
  padding: 64px 0 32px;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo { color: var(--cream); margin-bottom: 14px; display: inline-block; }
.footer-brand p { color: #9295b5; max-width: 320px; }
.footer-col h5 {
  color: var(--cream);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #c9cbe0; }
.footer-col a:hover { color: var(--cream); text-decoration: none; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  color: #82849f;
  font-size: 13px;
}
.footer-disclaimer {
  max-width: 780px;
  color: #82849f;
  font-size: 13px;
  margin-bottom: 24px;
  line-height: 1.7;
}
.footer-disclaimer strong { color: #a9abc6; }
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  background: var(--navy);
  color: var(--cream);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px 22px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner p {
  font-size: 14px;
  line-height: 1.6;
  color: #d9d6ef;
  margin: 0;
  flex: 1;
  min-width: 240px;
}
.cookie-banner a { color: var(--cream); text-decoration: underline; }
.cookie-banner .btn {
  flex-shrink: 0;
  padding: 11px 22px;
  font-size: 14px;
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
