/* ==========================================================================
   Lidando com Traumas — Thaysa Bezerra Psicóloga
   Guarulhos – SP | Psicoterapia, LGBTQIA+, Traumas
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #3a3a3a;
  background: #f4f1ea;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease, background .2s ease; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ---------- Root tokens ---------- */
:root {
  --c-green: #4d5b4f;
  --c-green-dark: #3a4640;
  --c-rose: #d7ddd0;
  --c-rose-dark: #4d5b4f;
  --c-cream: #f1f4ec;
  --c-pink-bg: #eef1e8;
  --c-teal: #778368;
  --c-brown: #4d5b4f;
  --c-brown-2: #778368;
  --c-text: #3a3a3a;
  --c-muted: #6a6a6a;
  --c-white: #ffffff;
  --c-line: #e5e0d5;
  --shadow-sm: 0 4px 14px rgba(0,0,0,.06);
  --shadow-md: 0 10px 30px rgba(0,0,0,.08);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --header-h: 92px;
}

/* ---------- Utilities ---------- */
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding: 80px 0; }
.text-center { text-align: center; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-green); color: #fff; padding: 10px 14px; z-index: 9999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 10px; font-weight: 600; font-size: .95rem;
  letter-spacing: .04em; text-transform: uppercase; line-height: 1;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  min-height: 44px;
}
.btn:focus-visible { outline: 3px solid var(--c-teal); outline-offset: 2px; }
.btn-primary { background: var(--c-green); color: #fff; }
.btn-primary:hover { background: var(--c-green-dark); }
.btn-outline { background: transparent; color: var(--c-green); border: 2px solid var(--c-green); }
.btn-outline:hover { background: var(--c-green); color: #fff; }
.btn-brown { background: var(--c-brown-2); color: #fff; }
.btn-brown:hover { background: var(--c-brown); }
.btn-light { background: #fff; color: var(--c-rose-dark); }
.btn-light:hover { background: var(--c-pink-bg); }
.btn-ghost { background: #f0ece2; color: var(--c-green); }
.btn-ghost:hover { background: var(--c-green); color: #fff; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #f1f4ec;
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: none;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 24px;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 64px; width: auto; }

.nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 6px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; font-weight: 500; font-size: .98rem; color: var(--c-text);
  border-radius: 8px;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--c-green); }
.nav-link.has-sub::after {
  content: ""; width: 8px; height: 8px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s ease;
  display: inline-block;
}
.nav-item.open > .nav-link.has-sub::after,
.nav-item:hover > .nav-link.has-sub::after { transform: rotate(-135deg) translateY(-2px); }

/* Submenu vertical */
.submenu {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: #fff; border: 1px solid var(--c-line); border-radius: 12px;
  box-shadow: var(--shadow-md);
  min-width: 280px; padding: 10px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav-item:hover > .submenu,
.nav-item.open > .submenu,
.nav-item:focus-within > .submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.submenu a {
  display: block; padding: 10px 14px; border-radius: 8px;
  font-size: .95rem; color: var(--c-text);
  border-left: 3px solid transparent;
}
.submenu a:hover, .submenu a:focus-visible {
  background: var(--c-pink-bg); color: var(--c-green);
  border-left-color: var(--c-rose);
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 8px;
  align-items: center; justify-content: center; color: var(--c-green);
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: currentColor;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* ---------- Hero (arch + Pride flag) ---------- */
.hero {
  position: relative; padding: 80px 0 90px;
  background: var(--c-cream);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center;
}
.hero-text h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.1; color: #8ea28a; margin-bottom: 22px; font-weight: 700;
  letter-spacing: -0.01em;
}
.hero-text h1 em {
  color: #3a4a3c; font-style: italic; font-weight: 700;
}
.hero-text h1 .h1-highlight, .hero-text h1 .h1-highlight em { color: #3a4a3c; }
.hero-text > p {
  color: #4a4a4a; font-size: 1.02rem; max-width: 520px; margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { background: var(--c-green); color: #fff; text-transform: none; letter-spacing: 0; font-size: 1rem; padding: 14px 22px; border-radius: 999px; }
.hero-actions .btn:hover { background: var(--c-green-dark); }
.hero-meta { margin-top: 24px; font-size: .9rem; color: var(--c-muted); }
.hero-meta strong { color: #3a3a3a; }

/* Visual: single arch image (Thaysa + Progress Pride background already in the photo) */
.hero-visual {
  position: relative; width: 100%; max-width: 520px; margin-left: auto;
}
.hero-arch-img {
  width: 100%; height: auto; display: block;
  border-radius: 260px 260px 24px 24px;
  object-fit: cover;
  aspect-ratio: 1/1.1;
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
}

/* ---------- Section titles ---------- */
.section-title {
  text-align: center; margin-bottom: 12px;
  font-family: 'Merriweather', 'Georgia', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--c-brown);
  font-weight: 700;
}
.section-subtitle {
  text-align: center; max-width: 720px; margin: 0 auto 44px;
  color: var(--c-muted); font-size: 1.05rem;
}

/* ---------- Chegou aqui (pain points) ---------- */
.chegou { background: var(--c-pink-bg); }
.chegou-intro { text-align: center; max-width: 780px; margin: 0 auto 48px; color: #4a3a3a; }
.chegou-intro p + p { margin-top: 8px; }
.cards-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.card {
  background: #fff; border-radius: var(--radius); padding: 28px 22px;
  text-align: center; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: center;
}
.card-icon {
  width: 68px; height: 68px; margin-bottom: 14px;
  background: #e3efe1; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--c-green);
}
.card-icon svg { width: 34px; height: 34px; }
.card h3 {
  font-size: 1.15rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-text); margin-bottom: 14px; font-weight: 700;
}
.card ul { text-align: left; margin-bottom: 18px; }
.card ul li { padding: 3px 0; font-size: .95rem; color: #4a4a4a; }
.card ul li::before { content: "* "; color: var(--c-rose); }
.card .btn { margin-top: auto; }

/* ---------- Como posso te ajudar ---------- */
.ajudar { background: var(--c-cream); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: #fff; border-radius: var(--radius); padding: 32px 26px;
  text-align: center; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.service-icon {
  width: 74px; height: 74px; margin: 0 auto 18px;
  background: #d7ddd0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #4d5b4f;
}
.service-icon svg { width: 40px; height: 40px; }
.service-card h3 { color: var(--c-text); font-size: 1.2rem; margin-bottom: 14px; }
.service-card p { color: #555; margin-bottom: 22px; font-size: .95rem; }
.service-card .btn { margin-top: auto; }
.service-note { font-size: .85rem; color: var(--c-muted); margin-top: 12px; font-style: italic; }

/* ---------- Duas colunas (identidade / ciência) ---------- */
.two-tone { background: #d7ddd0; color: #2c3a2e; padding: 80px 0; }
.two-tone .section-title { color: #4d5b4f; }
.two-tone .section-subtitle { color: #4d5b4f; }
.two-tone .bio-content h2 { color: #4d5b4f; }
.two-tone .btn-light { background: #4d5b4f; color: #fff; }
.two-tone .btn-light:hover { background: #3a4640; }
.two-tone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.tone-card {
  background: #000; color: #fff; border-radius: var(--radius); padding: 30px;
  min-height: 300px; position: relative; overflow: hidden;
}
.tone-card.bg-1 { background-image: url('../images/identidade-respeitada.webp'); background-size: cover; background-position: center; }
.tone-card.bg-2 { background-image: url('../images/psicoterapia-ciencia-vivencia.webp'); background-size: cover; background-position: center; }
.tone-card::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.65));
}
.tone-card h3 { position: relative; z-index: 1; font-size: 1.15rem; margin-top: auto; align-self: flex-end; }
.tone-card { display: flex; flex-direction: column; justify-content: flex-end; }
.tone-card h3, .tone-card p { position: relative; z-index: 1; }

/* Thaysa bio block */
.bio-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.bio-content h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 12px; }
.bio-content .lead { font-size: 1.05rem; margin-bottom: 14px; opacity: .95; }
.bio-content p { margin-bottom: 14px; }
.bio-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.bio-photo img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 4/5; }
.bio-actions { margin-top: 18px; }

/* ---------- Valores table ---------- */
.valores-section { background: var(--c-cream); padding: 80px 0; }
.valores-card {
  max-width: 640px; margin: 0 auto; background: #fff;
  border-radius: var(--radius); padding: 44px 40px; box-shadow: var(--shadow-md);
}
.valores-card h2 {
  text-align: center; color: var(--c-brown); font-family: 'Merriweather', serif;
  font-size: 2rem; margin-bottom: 6px;
}
.valores-card .note { text-align: center; color: var(--c-muted); font-size: .9rem; margin-bottom: 26px; }
.valores-table { width: 100%; border-collapse: collapse; }
.valores-table td {
  padding: 14px 0; border-bottom: 1px solid var(--c-line); font-size: 1rem;
}
.valores-table tr:last-child td { border-bottom: none; }
.valores-table td:first-child { color: var(--c-green); font-weight: 600; }
.valores-table td:last-child { text-align: right; color: var(--c-text); }
.valores-cta { text-align: center; margin-top: 26px; }

/* ---------- Consultório (galeria) ---------- */
.consultorio { background: var(--c-green); color: #fff; padding: 90px 0; }
.consultorio h2 { color: #fff; }
.consultorio .section-title { color: #fff; }
.consultorio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery img { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; }
.consultorio-text p { margin-bottom: 16px; opacity: .95; }
.consultorio-text strong { color: #fff; }

/* ---------- Depoimentos ---------- */
.testimonials { padding: 80px 0; background: var(--c-cream); }
.testi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.testi-card {
  border-radius: var(--radius); padding: 44px 36px; color: #fff;
  min-height: 320px; display: flex; flex-direction: column; justify-content: space-between;
}
.testi-card.dark { background: var(--c-green); }
.testi-card.rose { background: #778368; }
.testi-card h2 { font-family: 'Merriweather', serif; font-size: 2rem; line-height: 1.15; }
.testi-card .quote { margin-top: 26px; }
.testi-card .author { font-weight: 700; }
.testi-card .btn { align-self: flex-start; margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #778368; color: #f4f1ea; padding: 60px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.1fr 1.1fr .3fr; gap: 40px; align-items: start;
}
.footer h4 { font-size: 1.05rem; margin-bottom: 14px; color: #ffffff; }
.footer p, .footer a { color: #f4f1ea; font-size: .95rem; line-height: 1.75; }
.footer a:hover { color: #ffffff; text-decoration: underline; }
.footer .divider { height: 1px; background: rgba(255,255,255,.25); margin: 20px 0; }
.socials { display: flex; flex-direction: column; gap: 14px; }
.socials a {
  width: 40px; height: 40px; border-radius: 8px; background: #4d5b4f; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.socials a:hover { background: #3a4640; text-decoration: none; }
.socials svg { width: 20px; height: 20px; }
.copyright {
  border-top: 1px solid rgba(255,255,255,.25); margin-top: 40px; padding-top: 20px;
  text-align: center; font-size: .85rem; color: #f4f1ea;
}

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed; bottom: 20px; right: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  background: #25d366; color: #fff; padding: 10px 18px 10px 12px;
  border-radius: 40px; box-shadow: 0 6px 18px rgba(0,0,0,.2);
  font-weight: 600; font-size: .95rem;
}
.wa-float:hover { background: #1ebe5b; }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 18px 0; font-size: .9rem; color: var(--c-muted);
  background: #fff; border-bottom: 1px solid var(--c-line);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-green); }
.breadcrumb [aria-current="page"] { color: var(--c-green); font-weight: 600; }

/* ---------- Inner page hero ---------- */
.page-hero {
  padding: 70px 0 40px; text-align: center; background: var(--c-cream);
}
.page-hero h1 {
  font-family: 'Merriweather', serif; color: var(--c-brown);
  font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 10px;
}
.page-hero p { color: var(--c-muted); max-width: 760px; margin: 0 auto; font-size: 1.05rem; }

/* ---------- Article content ---------- */
.content-section { padding: 60px 0; background: #fff; }
.content-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; align-items: start; }
.content-body h2 { color: var(--c-green); font-family: 'Merriweather', serif; margin-bottom: 14px; font-size: 1.6rem; }
.content-body h3 { color: var(--c-text); margin: 24px 0 10px; font-size: 1.15rem; }
.content-body p { margin-bottom: 14px; }
.content-body ul { margin: 0 0 20px 20px; list-style: disc; }
.content-body ul li { padding: 4px 0; }
.side-card {
  background: var(--c-pink-bg); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 16px);
}
.side-card h3 { color: var(--c-green); margin-bottom: 12px; }
.side-card .price { font-size: 1.6rem; color: var(--c-brown); font-weight: 700; margin: 8px 0 16px; }

/* ---------- 404 ---------- */
.not-found {
  padding: 120px 0; text-align: center;
}
.not-found h1 { font-size: 6rem; color: var(--c-rose); font-family: 'Merriweather', serif; }
.not-found h2 { color: var(--c-green); margin-bottom: 10px; }
.not-found p { color: var(--c-muted); margin-bottom: 20px; }

/* ---------- Cookies banner ---------- */
.cookies {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  background: #fff; padding: 18px 22px; border-radius: 12px; box-shadow: var(--shadow-md);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  border: 1px solid var(--c-line);
  transform: translateY(150%); transition: transform .4s ease;
}
.cookies.visible { transform: translateY(0); }
.cookies p { flex: 1 1 320px; font-size: .9rem; color: var(--c-text); margin: 0; }
.cookies-actions { display: flex; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .consultorio-grid, .bio-grid, .two-tone-grid, .content-grid, .footer-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
}

@media (max-width: 780px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 50px 0 60px; }
  .hero-visual { max-width: 380px; margin: 0 auto; }
  .hero-text { text-align: center; }
  .hero-text > p { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .section { padding: 60px 0; }

  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    max-height: calc(100vh - var(--header-h));
    background: #f1f4ec; padding: 24px; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s ease;
    display: block; visibility: hidden;
  }
  .nav.open { transform: translateX(0); visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link { padding: 14px 12px; border-bottom: 1px solid var(--c-line); border-radius: 0; }
  .nav-link.has-sub::after { display: none; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding: 4px 0 10px 14px;
    background: transparent;
    max-height: none; overflow: visible;
    display: flex; flex-direction: column; gap: 2px;
  }
  .submenu a { border-left: 3px solid var(--c-teal); }

  .testi-grid { grid-template-columns: 1fr; }
  .gallery img { height: 140px; }
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .valores-card { padding: 30px 22px; }
  .wa-float span { display: none; }
  .wa-float { padding: 12px; }
}

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .wa-float, .cookies { display: none; }
  body { background: #fff; color: #000; }
}
