/* ==========================================================================
   Dra. Brisa Cangussú — Médica Psiquiatra
   Paleta: #F6F4F0 · #EDE7DC · #CCC2B4 · #A68B88 · #5C5248
   ========================================================================== */

:root {
  --off-white: #F6F4F0;
  --cream: #EDE7DC;
  --sand: #CCC2B4;
  --rose: #A68B88;
  --brown: #5C5248;
  --brown-soft: rgba(92, 82, 72, 0.72);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', sans-serif;

  --container: 1180px;
  --radius: 2px;
  --transition: 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--brown);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Evita quebras de linha indesejadas (ex.: "CRM-SP" separado do número) */
.nowrap {
  white-space: nowrap;
}

/* Evita palavras isoladas no fim de títulos e parágrafos */
h1, h2, h3, .section__title, .hero__title {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ==========================================================================
   Tipografia base
   ========================================================================== */

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1.5rem;
}

.eyebrow--light {
  color: var(--sand);
}

.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
}

.section__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--rose);
}

.section--dark .section__title em {
  color: var(--sand);
}

.section__lead {
  max-width: 540px;
  color: var(--brown-soft);
}

.section__head {
  max-width: 640px;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section {
  padding: clamp(5rem, 10vw, 8.5rem) 0;
}

.section--alt {
  background: var(--cream);
}

.section--dark {
  background: var(--brown);
  color: var(--off-white);
}

.section--dark p {
  color: rgba(246, 244, 240, 0.82);
}

/* ==========================================================================
   Botões
   ========================================================================== */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1.1rem 2.4rem;
  border: 1px solid var(--brown);
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  text-align: center;
}

.btn--solid {
  background: var(--brown);
  color: var(--off-white);
}

.btn--solid:hover {
  background: var(--rose);
  border-color: var(--rose);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--brown);
}

.btn--ghost:hover {
  background: var(--brown);
  color: var(--off-white);
  transform: translateY(-2px);
}

/* ==========================================================================
   Navegação
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.4rem 0;
  background: transparent;
  transition: all var(--transition);
}

.nav--scrolled {
  background: rgba(246, 244, 240, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(204, 194, 180, 0.4);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 52px;
  width: auto;
  transition: height var(--transition);
}

.nav--scrolled .nav__logo-img {
  height: 44px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

.nav__links a:not(.btn) {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  padding: 0.25rem 0;
}

.nav__links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--rose);
  transition: width var(--transition);
}

.nav__links a:not(.btn):hover::after {
  width: 100%;
}

.nav__cta {
  padding: 0.8rem 1.6rem;
  font-size: 0.75rem;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 102;
}

.nav__toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--brown);
  margin-left: 9px;
  transition: all 0.35s ease;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(4.25px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-4.25px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(8rem, 14vh, 11rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 100%;
  background: var(--cream);
  z-index: 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 1.75rem;
}

.hero__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--rose);
}

.hero__text {
  font-size: 1.125rem;
  color: var(--brown-soft);
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  border-top: 1px solid var(--sand);
  padding-top: 2rem;
}

.hero__badge {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero__badge-title {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.hero__badge-sub {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
}

.hero__media {
  display: flex;
  justify-content: center;
}

.hero__frame {
  position: relative;
  max-width: 440px;
  width: 100%;
}

.hero__frame::before {
  content: '';
  position: absolute;
  inset: -1.25rem 1.25rem 1.25rem -1.25rem;
  border: 1px solid var(--rose);
  z-index: -1;
  opacity: 0.5;
}

.hero__frame img {
  width: 100%;
  object-fit: cover;
  box-shadow: 0 30px 80px -20px rgba(92, 82, 72, 0.35);
}

/* ==========================================================================
   Faixa de credenciais
   ========================================================================== */

.strip {
  background: var(--brown);
  color: var(--off-white);
  padding: clamp(2.75rem, 5vw, 4rem) 0;
}

.strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

.strip__item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(204, 194, 180, 0.35);
}

.strip__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--sand);
}

.strip__item p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(246, 244, 240, 0.88);
}

/* ==========================================================================
   Sobre
   ========================================================================== */

.sobre__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.sobre__media {
  position: sticky;
  top: 110px;
}

.sobre__frame {
  position: relative;
}

.sobre__frame img {
  width: 100%;
  object-fit: cover;
}

.sobre__card {
  position: relative;
  background: var(--brown);
  color: var(--off-white);
  padding: 2rem 2.25rem;
  margin: -3.5rem 0 0 clamp(1.5rem, 4vw, 3rem);
  z-index: 1;
}

.sobre__card-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.375rem;
  line-height: 1.4;
}

.sobre__content p {
  color: var(--brown-soft);
  margin-bottom: 1.4rem;
}

.sobre__creds {
  list-style: none;
  margin: 2.5rem 0;
  border-top: 1px solid var(--sand);
}

.sobre__creds li {
  padding: 1rem 0 1rem 2.25rem;
  border-bottom: 1px solid var(--sand);
  position: relative;
  font-size: 0.9875rem;
}

.sobre__creds li::before {
  content: '';
  position: absolute;
  left: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 1px;
  background: var(--rose);
}

.sobre__registro {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose) !important;
}

/* ==========================================================================
   Especialidades
   ========================================================================== */

.espec__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--sand);
  border: 1px solid var(--sand);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.espec__card {
  background: var(--cream);
  padding: clamp(2rem, 3.5vw, 3rem);
  transition: background var(--transition);
}

.espec__card:hover {
  background: var(--off-white);
}

.espec__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--rose);
  display: block;
  margin-bottom: 1.75rem;
}

.espec__card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.25;
  margin-bottom: 0.875rem;
}

.espec__card p {
  font-size: 0.9375rem;
  color: var(--brown-soft);
}

.espec__destaques {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.espec__destaque {
  background: var(--brown);
  color: var(--off-white);
  padding: clamp(2.25rem, 4vw, 3.5rem);
}

.espec__destaque h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--sand);
}

.espec__destaque p {
  font-size: 0.9875rem;
  color: rgba(246, 244, 240, 0.82);
}

/* ==========================================================================
   Atendimento online
   ========================================================================== */

.online__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.online__content > p {
  color: var(--brown-soft);
  max-width: 520px;
}

.online__steps {
  margin: 3rem 0;
  display: flex;
  flex-direction: column;
}

.online__step {
  display: flex;
  gap: 1.75rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--sand);
}

.online__step:last-child {
  border-bottom: 1px solid var(--sand);
}

.online__step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  line-height: 1;
  color: var(--rose);
  flex-shrink: 0;
  width: 2.5rem;
}

.online__step h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.375rem;
  margin-bottom: 0.4rem;
}

.online__step p {
  font-size: 0.9375rem;
  color: var(--brown-soft);
}

.online__frame {
  position: relative;
}

.online__frame::after {
  content: '';
  position: absolute;
  inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  background: var(--cream);
  z-index: -1;
}

.online__frame img {
  width: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Filosofia
   ========================================================================== */

.filosofia__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.filosofia__media img {
  width: 100%;
  object-fit: cover;
  opacity: 0.96;
}

.filosofia__content > p {
  max-width: 560px;
}

.filosofia__pilares {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem 3rem;
  margin-top: 3rem;
}

.filosofia__pilar h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--sand);
  margin-bottom: 0.5rem;
}

.filosofia__pilar p {
  font-size: 0.9375rem;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.faq__head {
  position: sticky;
  top: 110px;
}

.faq__head .section__lead {
  margin-bottom: 2rem;
}

.faq__item {
  border-bottom: 1px solid var(--sand);
}

.faq__item:first-child {
  border-top: 1px solid var(--sand);
}

.faq__item summary {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.375rem;
  line-height: 1.35;
  padding: 1.75rem 3rem 1.75rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color var(--transition);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: '+';
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.75rem;
  color: var(--rose);
  transition: transform var(--transition);
}

.faq__item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq__item summary:hover {
  color: var(--rose);
}

.faq__answer {
  padding: 0 3rem 1.75rem 0;
}

.faq__answer p {
  color: var(--brown-soft);
  font-size: 0.9875rem;
}

/* ==========================================================================
   CTA final
   ========================================================================== */

.cta__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.cta__media img {
  width: 100%;
  object-fit: cover;
}

.cta__content > p {
  color: var(--brown-soft);
  max-width: 520px;
  margin-bottom: 2.5rem;
}

/* ==========================================================================
   Contato
   ========================================================================== */

.contato__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.contato__card {
  border: 1px solid var(--sand);
  padding: clamp(2rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.contato__card:hover {
  background: var(--cream);
  border-color: var(--rose);
}

.contato__card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.contato__card p {
  font-size: 0.9875rem;
  color: var(--brown-soft);
  flex-grow: 1;
  margin-bottom: 2rem;
}

.contato__inline {
  color: var(--brown);
  border-bottom: 1px solid var(--sand);
  transition: border-color var(--transition);
}

.contato__inline:hover {
  border-color: var(--rose);
}

.contato__link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
  transition: all var(--transition);
}

.contato__link:hover {
  letter-spacing: 0.22em;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--brown);
  color: var(--off-white);
  padding: clamp(4rem, 7vw, 6rem) 0 2.5rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.footer__brand {
  text-align: center;
}

.footer__logo-img {
  width: min(320px, 80vw);
  height: auto;
  margin: 0 auto 1.25rem;
  opacity: 0.95;
}

.footer__sub {
  font-size: 0.6875rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sand);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.footer__links a {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 244, 240, 0.75);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--sand);
}

.footer__notice {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(204, 194, 180, 0.25);
}

.footer__notice p {
  font-size: 0.8125rem;
  line-height: 1.8;
  color: rgba(246, 244, 240, 0.55);
}

.footer__bottom {
  text-align: center;
}

.footer__bottom p {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(246, 244, 240, 0.45);
}

/* ==========================================================================
   WhatsApp flutuante
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brown);
  color: var(--off-white);
  border-radius: 50%;
  box-shadow: 0 10px 30px -8px rgba(92, 82, 72, 0.5);
  z-index: 90;
  transition: all var(--transition);
}

.whatsapp-float:hover {
  background: var(--rose);
  transform: translateY(-4px);
}

/* ==========================================================================
   Animações de revelação
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal--delay {
  transition-delay: 0.18s;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .reveal--delay {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 1024px) {
  .strip__inner {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2.5rem;
  }

  .espec__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__grid {
    gap: 3rem;
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 80px;
  }

  /* Navegação mobile */
  .nav {
    background: rgba(246, 244, 240, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(204, 194, 180, 0.4);
  }

  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: var(--off-white);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 101;
  }

  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav__links a:not(.btn) {
    font-size: 1.125rem;
  }

  .nav__cta {
    margin-top: 1rem;
  }

  .nav__logo-img,
  .nav--scrolled .nav__logo-img {
    height: 40px;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding-top: 7.5rem;
  }

  .hero::before {
    width: 100%;
    height: 38%;
    top: auto;
    bottom: 0;
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__media {
    order: -1;
  }

  .hero__frame {
    max-width: 380px;
  }

  /* Grids empilhados */
  .sobre__grid,
  .online__grid,
  .filosofia__grid,
  .faq__grid,
  .cta__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .sobre__media,
  .faq__head {
    position: static;
  }

  .espec__grid {
    grid-template-columns: 1fr;
  }

  .espec__destaques {
    grid-template-columns: 1fr;
  }

  .contato__grid {
    grid-template-columns: 1fr;
  }

  .filosofia__pilares {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .online__frame::after {
    display: none;
  }

  .cta__media {
    max-width: 420px;
  }
}

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

  .hero__actions .btn {
    width: 100%;
  }

  .hero__badges {
    flex-direction: column;
    gap: 1.5rem;
  }

  .faq__item summary {
    font-size: 1.2rem;
  }
}
