/* ===========================================================
   FÁBIO BRAMONT — PSICÓLOGO CLÍNICO
   Design tokens
   =========================================================== */
:root {
  /* Cores — base na identidade visual fornecida */
  --navy:        #1F2A3A;
  --navy-deep:   #14202E;
  --gold:        #CDAA6D;
  --gold-deep:   #705636;   /* versão com contraste AAA para texto sobre claro */
  --sand:        #DCCBB5;
  --sand-light:  #EDE3D6;
  --cream:       #FAF8F5;
  --white:       #FFFFFF;
  --ink:         #2B3340;
  --ink-soft:    #5C6470;
  --line:        #E7DFD3;

  /* Tipografia */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Escala tipográfica */
  --fs-h1: clamp(2.25rem, 1.4rem + 3.2vw, 3.0rem);
  --fs-h2: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem);
  --fs-h3: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
  --fs-lead: clamp(1.05rem, 1rem + 0.2vw, 1.2rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.8rem;

  /* Espaçamento */
  --section-pad: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(31,42,58,0.06);
  --shadow-md: 0 12px 32px rgba(31,42,58,0.10);
  --shadow-lg: 0 24px 60px rgba(31,42,58,0.14);

  --max-width: 1180px;
  --transition: 240ms cubic-bezier(.4,0,.2,1);
}

/* ===========================================================
   RESET
   =========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); margin: 0; line-height: 1.2; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

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

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: var(--white); padding: .75rem 1.25rem;
  z-index: 200; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: .8rem 1.5rem; border-radius: 999px;
  transition: var(--transition); white-space: nowrap; border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--gold); color: var(--navy-deep);
}
.btn-primary:hover { background: var(--gold-deep); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-ghost {
  background: transparent; color: var(--navy); border-color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1rem; }

/* ===========================================================
   HEADER
   =========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,245,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: .9rem 1.5rem;
}
.brand { display: flex; align-items: center; gap: .65rem; color: var(--navy); flex-shrink: 0; }
.brand-mark { color: var(--gold-deep); display: flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; }
.brand-role { font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }

.main-nav { display: flex; align-items: center; gap: 1.8rem; flex: 1; justify-content: center; }
.main-nav a {
  font-size: .9rem; font-weight: 500; color: var(--ink); position: relative; padding: .3rem 0;
  margin: 0 .9rem; /* fallback para navegadores muito antigos sem suporte a gap no flexbox */
  transition: color var(--transition);
}
.main-nav a:first-child { margin-left: 0; }
.main-nav a:last-child { margin-right: 0; }
.main-nav a:hover { color: var(--gold-deep); }
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--gold); transition: width var(--transition);
}
.main-nav a:hover::after { width: 100%; }

.header-cta { flex-shrink: 0; }
.nav-toggle {
  display: none;
  position: relative;
  z-index: 110;
}

@media (max-width: 980px) {
  .main-nav {
    position: fixed; inset: 64px 0 0 0; background: var(--cream);
    flex-direction: column; justify-content: flex-start; gap: 0;
    transform: translateX(100%); transition: transform var(--transition);
    padding: 1rem 0; overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { width: 100%; padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); }
  .header-cta { display: none; }
  .nav-toggle {
    display: flex !important;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 0;
  }
  .nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); transition: var(--transition); border-radius: 2px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ===========================================================
   HERO
   =========================================================== */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem,2rem + 2vw,4.5rem) 0 clamp(3rem,2rem + 3vw,5rem); }
.hero-bg-mark {
  display:none; position: absolute; top: -4%; left: 48%; font-family: var(--font-display); font-weight: 700;
  font-size: 38rem; line-height: 1; color: var(--navy); opacity: .03; user-select: none; pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,2vw,4rem); align-items: center;
  position: relative;
}
.eyebrow {
  font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-deep); margin: 0 0 1rem; display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content:''; width: 26px; height: 2px; background: var(--gold); display: inline-block; }
.hero h1 { font-size: var(--fs-h1); font-weight: 600; letter-spacing: -.01em; margin-bottom: 1.3rem; }
.hero h1 em { color: var(--gold-deep); font-style: italic; }
.hero-lead { font-size: var(--fs-lead); color: var(--ink-soft); max-width: 46ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.8rem; }

.hero-trust {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: .85rem 1.1rem; font-size: .82rem; color: var(--ink-soft); max-width: 540px; box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.hero-trust-icon { color: var(--gold-deep); flex-shrink: 0; }
.hero-trust-phone { color: var(--gold-deep); font-weight: 700; margin-left: auto; white-space: nowrap; }

.hero-credentials { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--ink-soft); flex-wrap: wrap; }
.hero-credentials strong { color: var(--navy); }

.hero-media { position: relative; }
.hero-media-frame {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.hero-media-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-media-badge {
  position: absolute; left: -1.2rem; bottom: 1.8rem;
  background: var(--navy); color: var(--white); border-radius: var(--radius-md);
  padding: 1rem 1.3rem; box-shadow: var(--shadow-md); display: flex; flex-direction: column;
  min-width: 150px;
}
.badge-number { font-family: var(--font-display); font-size: 1.9rem; color: var(--gold); line-height: 1; }
.badge-label { font-size: .72rem; color: var(--sand-light); margin-top: .3rem; line-height: 1.35; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 380px; margin: 0 auto 1rem; }
  .hero-bg-mark { font-size: 18rem; left: 30%; }
  .hero-trust-phone { margin-left: 0; }
}

/* ===========================================================
   SECTION HEAD (reusable)
   =========================================================== */
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-head .eyebrow { justify-content: center; }
.section-head .eyebrow::before { display: none; }
.section-head h2 { font-size: var(--fs-h2); font-weight: 600; margin-bottom: .9rem; }
.section-lead { font-size: 1rem; color: var(--ink-soft); }

/* ===========================================================
   ABOUT
   =========================================================== */
.about { padding: var(--section-pad) 0; background: var(--white); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem,3vw,4rem); align-items: center; }
.about-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 4/5; object-fit: cover; }
.about-copy h2 { font-size: var(--fs-h2); font-weight: 600; margin-bottom: 1.3rem; max-width: 22ch; }
.about-copy p { max-width: 58ch; }
.about-pillars { display: flex; flex-direction: column; gap: 1.3rem; margin-top: 2rem; }
.about-pillars li { display: flex; gap: 1rem; align-items: flex-start; }
.pillar-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--sand-light); color: var(--gold-deep);
  display: flex; align-items: center; justify-content: center;
}
.about-pillars strong { color: var(--navy); font-size: .98rem; display: block; margin-bottom: .2rem; }
.about-pillars p { margin: 0; font-size: .9rem; }

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

/* ===========================================================
   TOPICS — "Como posso ajudar"
   =========================================================== */
.topics { padding: var(--section-pad) 0; background: var(--cream); }
.topics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.topic-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 2rem 1.6rem; text-align: center; transition: var(--transition);
}
.topic-card:hover { box-shadow: var(--shadow-md); border-color: transparent; transform: translateY(-4px); }
.topic-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%; background: var(--sand-light); color: var(--gold-deep);
  margin-bottom: 1.1rem;
}
.topic-card h3 { font-size: var(--fs-h3); font-weight: 600; margin-bottom: .5rem; }
.topic-card p { font-size: .88rem; margin: 0; }

@media (max-width: 860px) { .topics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .topics-grid { grid-template-columns: 1fr; } }

/* ===========================================================
   MODALITIES — Atendimento
   =========================================================== */
.modalities { padding: var(--section-pad) 0; background: var(--white); }
.modality-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,3vw,3.5rem); align-items: center;
  margin-bottom: 3rem;
}
.modality-row--reverse .modality-media { order: 2; }
.modality-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; }
.modality-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 50%; background: var(--sand-light); color: var(--gold-deep);
  margin-bottom: 1rem;
}
.modality-copy h3 { font-size: var(--fs-h3); font-weight: 600; margin-bottom: .6rem; }
.check-list, .location-list { display: flex; flex-direction: column; gap: .55rem; margin-top: 1rem; }
.check-list li { font-size: .92rem; color: var(--ink); padding-left: 1.6rem; position: relative; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--gold-deep); font-weight: 700; }
.location-list li { display: flex; align-items: center; gap: .5rem; font-size: .92rem; color: var(--ink); }
.location-list svg { color: var(--gold-deep); flex-shrink: 0; }

.abroad-banner {
  display: flex; gap: 1.5rem; align-items: flex-start;
  background: linear-gradient(135deg, var(--sand-light), var(--cream));
  border: 1px solid var(--sand); border-radius: var(--radius-lg);
  padding: 2rem clamp(1.5rem,3vw,2.5rem); margin-top: 1rem;
}
.abroad-icon {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%;
  background: var(--white); color: var(--gold-deep); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.abroad-copy h3 { font-size: var(--fs-h3); font-weight: 600; margin-bottom: .5rem; }
.abroad-copy p { margin: 0; max-width: 62ch; }

@media (max-width: 860px) {
  .modality-row, .modality-row--reverse { grid-template-columns: 1fr; }
  .modality-row--reverse .modality-media { order: 0; }
  .abroad-banner { flex-direction: column; }
}

/* ===========================================================
   FAQ
   =========================================================== */
.faq { padding: var(--section-pad) 0; background: var(--cream); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: .9rem; }
.faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  overflow: hidden; transition: var(--transition);
}
.faq-item[open] { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex; align-items: center; gap: .9rem; padding: 1.15rem 1.4rem; cursor: pointer;
  font-weight: 600; color: var(--navy); list-style: none; font-size: .98rem; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 1.4rem; font-size: 1.4rem; color: var(--gold-deep);
  transition: transform var(--transition); font-weight: 300;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-q-icon {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--sand-light);
  color: var(--gold-deep); display: flex; align-items: center; justify-content: center;
}
.faq-a { padding: 0 1.4rem 1.4rem 4.7rem; }
.faq-a p { margin: 0; font-size: .92rem; }

/* ===========================================================
   CTA FINAL
   =========================================================== */
.cta-final { padding: var(--section-pad) 0; background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.cta-final::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(205,170,109,0.16), transparent 55%);
}
.cta-final-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; position: relative; }
.cta-final-copy h2 { color: var(--white); font-size: var(--fs-h2); font-weight: 600; margin-bottom: 1rem; }
.cta-final-copy h2 span { color: var(--gold); font-style: italic; font-weight: 500; }
.cta-final-copy p { color: var(--sand-light); max-width: 46ch; margin: 0; }

.cta-final-channels { display: flex; flex-direction: column; gap: 1rem; }
.channel-card {
  display: flex; align-items: center; gap: 1.1rem; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-md); padding: 1.1rem 1.4rem;
  transition: var(--transition);
}
.channel-card:hover { background: rgba(255,255,255,0.12); transform: translateX(4px); }
.channel-icon {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
}
.channel-text { display: flex; flex-direction: column; gap: .15rem; }
.channel-text strong { color: var(--white); font-size: .98rem; }
.channel-text span { color: var(--gold); font-weight: 600; font-size: .95rem; }
.channel-text small { color: var(--sand-light); font-size: .78rem; }

@media (max-width: 860px) { .cta-final-grid { grid-template-columns: 1fr; } }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer { background: var(--navy-deep); color: var(--sand-light); padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand { display: flex; gap: .8rem; align-items: flex-start; }
.footer-brand .brand-mark { color: var(--gold); }
.footer-brand-name { font-family: var(--font-display); color: var(--white); font-size: 1.05rem; margin: 0; font-weight: 600; }
.footer-brand-role { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: .2rem 0 0; }
.footer-crp { font-size: .75rem; color: var(--sand-light); margin: .5rem 0 0; opacity: .75; }
.footer-col h4 { color: var(--white); font-family: var(--font-body); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 600; }
.footer-col a { display: block; font-size: .88rem; color: var(--sand-light); margin-bottom: .65rem; opacity: .85; transition: var(--transition); }
.footer-col a:hover { color: var(--gold); opacity: 1; }
.footer-col p { font-size: .82rem; color: var(--sand-light); opacity: .75; margin-bottom: .6rem; }
.footer-bottom { padding-top: 1.5rem; text-align: center; }
.footer-bottom p { font-size: .78rem; color: var(--sand-light); opacity: .6; margin: 0; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
}

/* ===========================================================
   FLOATING CTA (mobile)
   =========================================================== */
.floating-cta {
  display: none; position: fixed; bottom: 1.2rem; right: 1.2rem; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%; background: var(--gold);
  color: var(--navy-deep); align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  animation: pulse-cta 2.6s ease-in-out infinite;
}
@keyframes pulse-cta {
  0%, 100% { box-shadow: 0 0 0 0 rgba(205,170,109,0.5), var(--shadow-lg); }
  50% { box-shadow: 0 0 0 10px rgba(205,170,109,0), var(--shadow-lg); }
}
@media (max-width: 980px) { .floating-cta { display: flex; } }
@media (prefers-reduced-motion: reduce) { .floating-cta { animation: none; } }

/* ===========================================================
   RESPONSIVE TYPE TUNING
   =========================================================== */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .btn-lg { padding: .9rem 1.4rem; }
}
