/* ==========================================================================
   DESIGN SYSTEM - DRA. HELENA MARIS
   ========================================================================== */

:root {
  /* Colors */
  --background: #F4EFE7;
  --background-soft: #E8DED2;
  --background-card: #FFF9F1;
  --text-main: #2E2925;
  --text-muted: #756A61;
  --accent: #9A6B4F;
  --accent-dark: #6F4835;
  --accent-soft: #C9A890;
  --border: rgba(46, 41, 37, 0.16);
  --black-soft: #171412;
  --white-pure: #ffffff;
  
  /* Fonts */
  --font-title: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.25s ease-out;
  
  /* Spacing / Layout */
  --container-max: 1200px;
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--background);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 300;
  overflow-x: hidden;
  position: relative;
}

/* Textura de papel global */
.paper-texture {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.035;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Formas orgânicas flutuantes no fundo */
.bg-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.18;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.bg-shape-1 {
  top: -10%;
  left: -5%;
  width: 45vw;
  height: 45vw;
  background: var(--accent-soft);
  animation: floatShape1 30s infinite alternate ease-in-out;
}

.bg-shape-2 {
  bottom: 5%;
  right: -5%;
  width: 50vw;
  height: 50vw;
  background: var(--background-soft);
  animation: floatShape2 35s infinite alternate ease-in-out;
}

.bg-shape-3 {
  top: 35%;
  left: 55%;
  width: 35vw;
  height: 35vw;
  background: var(--accent);
  opacity: 0.08;
  animation: floatShape3 25s infinite alternate ease-in-out;
}

@keyframes floatShape1 {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(5%, 4%) rotate(90deg) scale(1.05); }
  100% { transform: translate(-3%, -2%) rotate(180deg) scale(0.95); }
}

@keyframes floatShape2 {
  0% { transform: translate(0, 0) rotate(0deg) scale(0.95); }
  50% { transform: translate(-6%, 5%) rotate(-120deg) scale(1.05); }
  100% { transform: translate(2%, -3%) rotate(-240deg) scale(1); }
}

@keyframes floatShape3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4%, -6%) scale(0.9); }
  100% { transform: translate(-2%, 3%) scale(1.1); }
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-main);
}

p {
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

/* Links & Buttons Reset */
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  outline: none;
}

/* ==========================================================================
   LAYOUT CONTAINERS & SHARED STYLES
   ========================================================================== */

.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

section {
  padding: 8rem 0;
  position: relative;
}

/* Margem respirável maior para desktop */
@media (min-width: 1024px) {
  section {
    padding: 12rem 0;
  }
}

.section-tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3.5rem;
  }
}

.section-header-centered {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem auto;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Botões Modernos e Editoriais */
.btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  color: var(--background-card);
  padding: 1rem 2.25rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  border-radius: 4px;
  border: 1px solid var(--accent);
  box-shadow: 0 4px 20px rgba(154, 107, 79, 0.12);
  transition: var(--transition-smooth);
}

.btn-main:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white-pure);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(111, 72, 53, 0.2);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--text-main);
  padding: 1rem 2.25rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  border-radius: 4px;
  border: 1px solid var(--border);
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background-color: rgba(46, 41, 37, 0.04);
  border-color: var(--text-main);
  transform: translateY(-2px);
}

/* Linhas finas editoriais */
.line-separator {
  width: 100%;
  height: 1px;
  background-color: var(--border);
  opacity: 0.8;
  margin: 4rem 0;
}

/* Frase editorial em cantos */
.corner-editorial-text {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent-soft);
  opacity: 0.8;
}

/* Frases de Transição (entre seções) */
.section-divider-text {
  text-align: center;
  padding: 6rem 0 2rem 0;
}

.transition-quote {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--accent);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.4;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .transition-quote {
    font-size: 2.2rem;
  }
}

/* ==========================================================================
   HEADER / MENU
   ========================================================================== */

#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: var(--transition-smooth);
}

/* Menu com fundo translúcido ao rolar */
#main-header.scrolled {
  background-color: rgba(244, 239, 231, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1.5rem 0;
  transition: var(--transition-smooth);
}

#main-header.scrolled .header-container {
  padding: 0.8rem 0;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.logo-subtitle {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-top: 0.2rem;
}

.nav-desktop ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2.5rem;
}

.nav-desktop a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-main);
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 0.25rem;
}

/* Efeito hover sublinhado elegante */
.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: var(--transition-fast);
}

.nav-desktop a:hover::after {
  width: 100%;
}

.nav-desktop a.btn-nav {
  background-color: var(--text-main);
  color: var(--background);
  padding: 0.6rem 1.25rem;
  border-radius: 4px;
  border: 1px solid var(--text-main);
  transition: var(--transition-smooth);
}

.nav-desktop a.btn-nav::after {
  display: none;
}

.nav-desktop a.btn-nav:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--white-pure);
}

/* Botão Menu Mobile */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  z-index: 1100;
}

.mobile-menu-btn .bar {
  width: 100%;
  height: 1px;
  background-color: var(--text-main);
  transition: var(--transition-fast);
  transform-origin: left center;
}

@media (max-width: 991px) {
  .nav-desktop {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
}

/* Menu Mobile Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--background-card);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  padding: 8rem 2.5rem 3rem 2.5rem;
  transition: all 0.6s cubic-bezier(0.77, 0, 0.175, 1);
  box-shadow: -10px 0 30px rgba(46, 41, 37, 0.05);
}

.mobile-menu-overlay.active {
  right: 0;
}

/* Mudança no botão flutuante quando aberto */
.mobile-menu-btn.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(2px, -2px);
}

.mobile-menu-btn.active .bar:nth-child(2) {
  opacity: 0;
  width: 0;
}

.mobile-menu-btn.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(2px, 2px);
}

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.nav-mobile a {
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: var(--text-main);
}

.mobile-menu-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu-footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  padding-top: 10rem;
  padding-bottom: 4rem;
}

@media (min-width: 1024px) {
  .hero-section {
    padding-top: 14rem;
    padding-bottom: 6rem;
  }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-container {
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.badge-container {
  margin-bottom: 1.5rem;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.4rem 1rem;
  border: 1px solid rgba(154, 107, 79, 0.25);
  border-radius: 50px;
  background-color: rgba(255, 249, 241, 0.6);
}

.hero-title {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4rem;
  }
}

@media (min-width: 1200px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 580px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 3.5rem;
}

.hero-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  max-width: 480px;
}

/* Moldura e Imagem Hero */
.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.hero-image-frame {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(46, 41, 37, 0.08);
  aspect-ratio: 4 / 5;
  background-color: var(--background-soft);
}

/* Detalhe abstrato sutil de fundo */
.hero-image-frame::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: 15px;
  bottom: 15px;
  border: 1px solid var(--accent-soft);
  border-radius: 8px;
  z-index: -1;
  pointer-events: none;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 10s ease;
}

.hero-image-wrapper:hover .hero-img {
  transform: scale(1.04);
}

/* Selo editorial na imagem */
.editorial-stamp {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background-color: var(--background-card);
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(46, 41, 37, 0.06);
  z-index: 10;
  display: block;
}

.editorial-stamp span {
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ==========================================================================
   SOBRE A PSICÓLOGA
   ========================================================================== */

.about-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 992px) {
  .about-container {
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
  }
}

.about-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.about-image-frame {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(46, 41, 37, 0.06);
  aspect-ratio: 4 / 5;
  background-color: var(--background-soft);
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}

.about-image-wrapper:hover .about-img {
  transform: scale(1.03);
}

.about-corner-text {
  margin-top: 1.5rem;
  text-align: right;
}

.about-corner-text span {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent-soft);
}

.about-content {
  display: flex;
  flex-direction: column;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 2rem;
  text-align: justify;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   PARA QUEM É A TERAPIA (PERCEPÇÕES)
   ========================================================================== */

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

@media (min-width: 768px) {
  .needs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .needs-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.need-card {
  background-color: var(--background-card);
  padding: 3.5rem 2.5rem;
  border-radius: 4px;
  border: 1px solid rgba(46, 41, 37, 0.04);
  box-shadow: 0 10px 30px rgba(46, 41, 37, 0.02);
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.need-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-soft);
  transform: scaleX(0);
  transform-origin: left center;
  transition: var(--transition-smooth);
}

.need-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(46, 41, 37, 0.06);
  border-color: rgba(46, 41, 37, 0.08);
}

.need-card:hover::before {
  transform: scaleX(1);
}

.need-number {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-soft);
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.need-title {
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.need-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   BANNER SECTION
   ========================================================================== */

.banner-section {
  padding: 2rem 0;
}

.banner-container {
  width: 90%;
  max-width: var(--container-max);
}

.banner-image-wrapper {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  max-height: 500px;
  box-shadow: 0 15px 40px rgba(46, 41, 37, 0.06);
  background-color: var(--background-soft);
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 12s ease;
}

.banner-image-wrapper:hover class .banner-img {
  transform: scale(1.05);
}

.banner-overlay-text {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  background-color: rgba(244, 239, 231, 0.9);
  padding: 0.75rem 1.5rem;
  border-radius: 2px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.banner-overlay-text span {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-main);
}

@media (max-width: 767px) {
  .banner-image-wrapper {
    aspect-ratio: 4 / 3;
  }
  .banner-overlay-text {
    bottom: 1.5rem;
    left: 1.5rem;
    padding: 0.5rem 1rem;
  }
  .banner-overlay-text span {
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   ABORDAGEM TERAPÊUTICA
   ========================================================================== */

.approach-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5rem;
  align-items: flex-start;
}

@media (min-width: 992px) {
  .approach-container {
    grid-template-columns: 1fr 1.1fr;
    gap: 6rem;
  }
}

.approach-content {
  position: sticky;
  top: 120px;
}

.approach-text {
  font-size: 1.1rem;
  color: var(--text-main);
  line-height: 1.8;
}

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

.pillar-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 2.5rem;
}

.pillar-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pillar-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.pillar-number {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--accent-soft);
  font-style: italic;
}

.pillar-title {
  font-size: 2rem;
  letter-spacing: -0.01em;
}

.pillar-text {
  font-size: 1rem;
  color: var(--text-muted);
  padding-left: 2.5rem;
  margin-bottom: 0;
}

/* ==========================================================================
   COMO FUNCIONA O ATENDIMENTO
   ========================================================================== */

.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin: 5rem 0;
  position: relative;
}

@media (min-width: 768px) {
  .timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }
}

@media (min-width: 1024px) {
  .timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
  }
}

.timeline-step {
  position: relative;
}

/* Linha sutil conectora em telas desktop */
@media (min-width: 1024px) {
  .timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 2rem;
    left: calc(2rem + 24px);
    width: calc(100% - 24px - 2rem);
    height: 1px;
    background-color: var(--border);
    opacity: 0.6;
  }
}

.step-num {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  background-color: var(--background-soft);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.step-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.step-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Caixa com informações adicionais */
.additional-info-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  background-color: var(--background-soft);
  padding: 3rem 2.5rem;
  border-radius: 4px;
  border: 1px solid rgba(46, 41, 37, 0.08);
  margin-top: 5rem;
}

@media (min-width: 768px) {
  .additional-info-box {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .additional-info-box {
    grid-template-columns: repeat(5, 1fr);
    padding: 3rem 4rem;
  }
}

.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.info-item strong {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.info-item span {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 400;
}

/* ==========================================================================
   TEMAS TRABALHADOS
   ========================================================================== */

.topics-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 992px) {
  .topics-container {
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
  }
}

.topics-intro {
  display: flex;
  flex-direction: column;
}

.topics-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.topics-image-frame {
  border-radius: 4px;
  overflow: hidden;
  max-width: 360px;
  aspect-ratio: 4 / 3;
  box-shadow: 0 10px 25px rgba(46, 41, 37, 0.04);
  background-color: var(--background-soft);
}

@media (max-width: 991px) {
  .topics-image-frame {
    display: none;
  }
}

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

.topics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.topic-tag {
  background-color: var(--background-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 0.8rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  border-radius: 50px;
  transition: var(--transition-smooth);
}

.topic-tag:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--background-card);
  transform: translateY(-2px);
}

/* ==========================================================================
   DEPOIMENTOS SUTIS
   ========================================================================== */

.testimonials-section {
  background-color: rgba(232, 222, 210, 0.4);
}

.testimonials-slider {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 4rem auto;
}

@media (min-width: 768px) {
  .testimonials-slider {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.testimonial-card {
  text-align: center;
  padding: 2rem;
  position: relative;
}

.testimonial-quote {
  font-family: var(--font-title);
  font-size: 1.5rem;
  line-height: 1.45;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 0;
}

.testimonials-notice {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 3rem;
}

/* ==========================================================================
   PERGUNTAS FREQUENTES (FAQ)
   ========================================================================== */

.faq-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 992px) {
  .faq-container {
    grid-template-columns: 1fr 1.3fr;
    gap: 6rem;
  }
}

.faq-intro {
  position: static;
}

@media (min-width: 992px) {
  .faq-intro {
    position: sticky;
    top: 120px;
  }
}

.faq-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.faq-stamp {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--accent-soft);
  border-left: 1px solid var(--accent-soft);
  padding-left: 1.5rem;
}

.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.8rem 0;
  text-align: left;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.faq-trigger:hover {
  color: var(--accent);
}

.faq-question {
  font-family: var(--font-title);
  font-size: 1.6rem;
  line-height: 1.3;
}

.faq-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: transform 0.4s ease;
  margin-left: 1.5rem;
  flex-shrink: 0;
}

/* Painel expansível */
.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
  opacity: 0;
}

.faq-content-inner {
  padding-bottom: 1.8rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Estado Ativo FAQ */
.faq-item.active .faq-panel {
  opacity: 1;
}

.faq-item.active .faq-icon-wrapper {
  transform: rotate(45deg);
}

/* ==========================================================================
   AGENDAMENTO / CONTATO
   ========================================================================== */

.contact-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: flex-start;
}

@media (min-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.whatsapp-card {
  background-color: var(--background-card);
  padding: 3rem 2.5rem;
  border-radius: 4px;
  border: 1px solid rgba(46, 41, 37, 0.06);
  box-shadow: 0 10px 30px rgba(46, 41, 37, 0.02);
}

.whatsapp-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.btn-whatsapp {
  width: 100%;
  gap: 0.8rem;
}

.wa-icon {
  margin-top: 1px;
}

/* Formulário de Contato */
.contact-form-wrapper {
  background-color: var(--background-card);
  padding: 3.5rem 2.5rem;
  border-radius: 4px;
  border: 1px solid rgba(46, 41, 37, 0.06);
  box-shadow: 0 15px 40px rgba(46, 41, 37, 0.03);
}

@media (min-width: 768px) {
  .contact-form-wrapper {
    padding: 4.5rem 3.5rem;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
}

.form-group label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.form-group input,
.form-group textarea {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast);
  border-radius: 0;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(117, 106, 97, 0.5);
  font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--accent);
}

/* Mensagens de erro de validação */
.error-msg {
  display: none;
  font-size: 0.75rem;
  color: #a94442;
  margin-top: 0.25rem;
}

.form-group.invalid input {
  border-bottom-color: #a94442;
}

.form-group.invalid .error-msg {
  display: block;
}

/* Loader no botão submit */
.btn-submit {
  width: 100%;
  position: relative;
  cursor: pointer;
}

.btn-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white-pure);
  animation: spin 0.8s linear infinite;
  position: absolute;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-submit.loading .btn-text {
  visibility: hidden;
}

.btn-submit.loading .btn-loader {
  display: block;
}

.form-status {
  text-align: center;
  font-size: 0.95rem;
  margin-top: 1rem;
  display: none;
}

.form-status.success {
  display: block;
  color: #2e6930;
}

.form-status.error {
  display: block;
  color: #a94442;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

#main-footer {
  background-color: var(--black-soft);
  color: #c9a890;
  padding: 6rem 0 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-container {
    grid-template-columns: 1.5fr 1fr 2fr;
    gap: 6rem;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--background);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.footer-subtitle {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--accent-soft);
  letter-spacing: 0.05em;
  margin-bottom: 0;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-nav a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--background-soft);
  letter-spacing: 0.02em;
}

.footer-nav a:hover {
  color: var(--white-pure);
  padding-left: 0.25rem;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .footer-legal {
    grid-column: span 3;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 3rem;
  }
}

.footer-legal p {
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(232, 222, 210, 0.5);
  margin-bottom: 0;
  max-width: 700px;
}

.footer-legal .copyright {
  white-space: nowrap;
  color: rgba(232, 222, 210, 0.3);
}

@media (max-width: 1023px) {
  .footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2.5rem;
  }
}

/* ==========================================================================
   ANIMATIONS & TRANSITIONS (SCROLL REVEAL)
   ========================================================================== */

.section-fade {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1), 
              transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
  will-change: transform, opacity;
}

.section-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN CORRECTIONS (EP STUDIO MOBILE FIXES)
   ========================================================================== */
@media (max-width: 767px) {
  section {
    padding: 4rem 0 !important; /* Reduces excessive vertical space on mobile */
  }
  
  .need-card {
    padding: 2rem 1.5rem !important; /* Provides better horizontal text flow inside cards */
  }
  
  .pillar-text {
    padding-left: 0 !important; /* Aligns text cleanly with headings */
  }
  
  .pillar-header {
    gap: 1rem !important;
  }
  
  /* Reset offsets to eliminate hidden horizontal scrollbars on mobile viewports */
  .hero-image-frame::before {
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
  }
  
  .editorial-stamp {
    left: 0 !important;
    bottom: 0 !important;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  
  .about-corner-text {
    text-align: center !important;
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem !important; /* Prevents overflow of very long words like Psicoterapia */
  }
  
  .section-title {
    font-size: 2rem !important;
  }
}
