/* ==========================================================================
   Psicóloga Josiana Dutra — Final merged design.
   Base: restored original site (hero + section pacing).
   Signature: dark "Atendimento Online" section, patterned after the DS4
   exploration, recolored to the original burgundy/beige identity.
   Mobile-first. Breakpoints: 768px (component grids), 1100px (two-column
   layouts: nav, hero, photo sections, footer).
   ========================================================================== */

:root {
  /* Palette --------------------------------------------------------------- */
  --burgundy: #80424d;
  --burgundy-hover: #63333c;
  --burgundy-dark: #3a1d24;
  --burgundy-deep: #2c161b;
  --rose: #d9a3ac;
  --beige: #e5dcd7;
  --cream: #f4eeea;
  --gray: #8f8f8f;
  --muted: #6b5a5f;
  --white: #ffffff;
  --whatsapp: #3dce27;
  --ink: #2a1a1e;

  /* Type -------------------------------------------------------------------*/
  --font-display: 'DM Sans', Arial, sans-serif;
  --font-sans: 'DM Sans', Arial, sans-serif;

  /* Layout tokens ----------------------------------------------------------*/
  --container-width: 1140px;
  --header-height: 76px;
  --radius-card: 24px;
  --radius-image: 20px;
  --radius-pill: 999px;
  --shadow-card: 0 20px 50px rgba(128, 66, 77, 0.08);
  --shadow-card-lg: 0 24px 60px rgba(128, 66, 77, 0.12);
}

/* Reset ---------------------------------------------------------------------*/

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.6;
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-weight: 400;
  margin: 0 0 16px;
}

p {
  margin: 0 0 16px;
}

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

ul, ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

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

button {
  font-family: inherit;
}

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

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

.center {
  text-align: center;
}

/* Eyebrow label --------------------------------------------------------- */

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--burgundy);
}

.eyebrow-on-dark {
  color: var(--rose);
}

/* Section titles ------------------------------------------------------- */

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 27px;
  line-height: 1.25;
  margin: 10px 0 0;
}

.section-title em {
  font-style: normal;
  color: var(--burgundy);
}

.section-title-on-dark {
  color: var(--white);
}

.section-title-on-dark em {
  color: var(--rose);
}

.section-lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 56ch;
  margin: 16px auto 0;
}

/* Buttons / pills --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background-color: var(--burgundy);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--burgundy-hover);
  transform: translateY(-2px);
}

.btn-invert {
  background-color: var(--rose);
  color: var(--burgundy-deep);
}

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

/* Navbar ----------------------------------------------------------------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 10px rgba(58, 29, 36, 0.08);
}

.navbar-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 17px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.nav-logo-strong {
  font-weight: 700;
  color: var(--ink);
}

.nav-logo-light {
  font-weight: 300;
  color: var(--gray);
  margin-left: 4px;
}

.nav-cta {
  display: none;
}

.nav-links {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  box-shadow: 0 4px 12px rgba(58, 29, 36, 0.08);
}

.nav-links.is-open {
  max-height: 520px;
}

.nav-link {
  font-size: 15px;
  color: var(--ink);
  padding: 16px 24px;
  border-bottom: 1px solid var(--cream);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--burgundy);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero --------------------------------------------------------------------- */

.hero {
  position: relative;
  background-color: var(--cream);
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero-decor-circle {
  top: -60px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background-color: var(--beige);
}

.hero-decor-glow {
  bottom: -20%;
  right: -10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(128, 66, 77, 0.14), rgba(128, 66, 77, 0) 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.hero-visual {
  position: relative;
  height: 58vh;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-photo {
  height: 100%;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  object-position: bottom;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 28px 24px 48px;
  text-align: center;
}

.hero-logo {
  margin-bottom: 22px;
}

.hero-logo-strong {
  display: block;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--ink);
  line-height: 1;
}

.hero-logo-sub {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.hero-logo-title {
  font-size: 11px;
  line-height: 1.3;
  color: var(--ink);
  padding-bottom: 4px;
  text-align: left;
}

.hero-logo-light {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 1.5px;
  color: var(--gray);
  line-height: 1;
}

.hero-quote {
  font-size: 20px;
  font-weight: 700;
  color: var(--burgundy);
  line-height: 1.4;
  margin: 0 0 20px;
}

/* manual break point so the quote sits on exactly two lines on desktop */
.br-desktop {
  display: none;
}

.hero-tagline {
  color: var(--ink);
  margin-bottom: 26px;
}

/* Generic sections ------------------------------------------------------- */

.section {
  padding: 60px 0;
}

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

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

.section-beige {
  background-color: var(--beige);
}

.section-header {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-text {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink);
  max-width: 820px;
}

/* Sobre Mim ---------------------------------------------------------------- */

.about-intro .section-title {
  text-align: left;
  margin: 0 0 8px;
  max-width: 21ch; /* keep the title measure narrower than the paragraphs below */
}

.about-intro .section-title strong {
  font-weight: 700;
}

.counters-heading {
  text-align: center;
  margin-top: 56px;
}

.counters-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.counter-card {
  background-color: var(--white);
  border-radius: var(--radius-card);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.counter-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 42px;
  color: var(--burgundy);
  line-height: 1;
  margin: 0;
}

.counter-label {
  font-size: 14px;
  color: var(--muted);
  margin: 10px 0 0;
}

/* Apresentação - question cards ------------------------------------------- */

.question-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 36px;
}

.question-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background-color: var(--white);
  border-radius: var(--radius-card);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  text-align: left;
}

.question-chip {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--beige);
  color: var(--burgundy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.question-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* Como te Ajudo (design1 layout: card + accordion + photo) ---------------- */

.help-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.help-card {
  background-color: var(--white);
  border-radius: var(--radius-card);
  padding: 32px 26px;
  box-shadow: var(--shadow-card-lg);
}

.help-photo {
  border-radius: var(--radius-image);
  overflow: hidden;
  height: 260px;
}

.help-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Accordion (shared: Como te Ajudo / Dúvidas) ------------------------------ */

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

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 18px 2px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}

.accordion-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--beige);
  color: var(--burgundy);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.accordion-item.is-open .accordion-icon {
  transform: rotate(45deg);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.33, 0, 0.2, 1);
}

.accordion-item.is-open .accordion-panel {
  grid-template-rows: 1fr;
}

.accordion-panel-inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 2px;
}

.accordion-item.is-open .accordion-panel-inner {
  padding-bottom: 20px;
}

.accordion-panel h5 {
  font-weight: 700;
  font-size: 14.5px;
  margin: 14px 0 4px;
}

.accordion-panel h5:first-child {
  margin-top: 0;
}

.accordion-panel p,
.accordion-panel ul,
.accordion-panel ol {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}

.accordion-panel p:last-child,
.accordion-panel ul:last-child,
.accordion-panel ol:last-child {
  margin-bottom: 0;
}

/* Card for standalone FAQ items -------------------------------------------- */

/* One white card wrapping the whole FAQ — same component language as the
   "Como te Ajudo" card: flat items divided by soft hairlines. */
.faq-list {
  margin-top: 36px;
  background-color: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card-lg);
  padding: 16px 26px;
}

.faq-item {
  background-color: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border-bottom: 1px solid var(--cream);
}

.faq-item:last-child {
  border-bottom: none;
}

@media (min-width: 768px) {
  .faq-list {
    padding: 24px 44px;
  }
}

/* Atendimento Online — dark signature section ------------------------------ */

.section-dark {
  position: relative;
  background-color: var(--burgundy-dark);
  overflow: hidden;
}

.section-dark-glow {
  position: absolute;
  top: -160px;
  left: -140px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 163, 172, 0.16), rgba(217, 163, 172, 0) 70%);
  pointer-events: none;
}

.online-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.online-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.online-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--beige);
}

.online-check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: rgba(128, 66, 77, 0.55);
  color: var(--rose);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.online-cfp {
  font-size: 14px;
  line-height: 1.7;
  color: var(--rose);
  margin: 24px 0 0;
}

.online-cfp strong {
  color: var(--beige);
}

.online-cta {
  margin-top: 28px;
}

.online-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.online-photo-outline {
  position: absolute;
  inset: 10% -14px -14px 14px;
  border: 1px solid rgba(217, 163, 172, 0.45);
  border-radius: 28px;
  pointer-events: none;
}

.online-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.online-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* never crop the head */
}

/* Depoimentos --------------------------------------------------------------- */

.testimonial-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.testimonial-card {
  background-color: var(--white);
  border: 1px solid var(--cream);
  border-radius: var(--radius-card);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 46px;
  line-height: 0.6;
  color: var(--beige);
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--burgundy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 14.5px;
  font-weight: 700;
}

.testimonial-note {
  max-width: 640px;
  margin: 32px auto 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

/* Footer / Contato ----------------------------------------------------------- */

.footer {
  position: relative;
  background-color: var(--burgundy-deep);
  color: var(--beige);
  overflow: hidden;
  padding: 56px 0 32px;
}

.footer-glow {
  position: absolute;
  bottom: -140px;
  right: -100px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 163, 172, 0.14), rgba(217, 163, 172, 0) 70%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--white);
  margin: 0 0 6px;
}

.footer-role {
  font-size: 14px;
  color: var(--rose);
  margin-bottom: 0;
}

.footer-columns {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-block-title {
  display: block;
  color: var(--rose);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.footer-whatsapp .icon-whatsapp {
  color: var(--whatsapp);
}

.footer-crisis {
  font-size: 13px;
  line-height: 1.65;
  color: var(--beige);
  max-width: 900px;
}

.footer-copy {
  font-size: 12px;
  color: var(--rose);
  margin: 0;
}

/* Icons ---------------------------------------------------------------------- */

.icon {
  display: block;
  flex-shrink: 0;
}

/* Floating WhatsApp button ----------------------------------------------------- */

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
}

.whatsapp-float-bubble {
  display: none;
  background-color: var(--white);
  border: 1px solid var(--beige);
  border-radius: 15px;
  padding: 10px 15px;
  font-size: 13px;
  line-height: 1.2;
  box-shadow: 0 4px 12px rgba(58, 29, 36, 0.18);
}

.whatsapp-float-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

/* Scroll reveal ---------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .accordion-panel {
    transition: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Breakpoint: 768px — component grids gain columns
   ========================================================================== */

@media (min-width: 768px) {
  .section {
    padding: 84px 0;
  }

  .section-title {
    font-size: 34px;
  }

  .hero-quote {
    font-size: 23px;
  }

  .counters-grid {
    flex-direction: row;
  }

  .counter-card {
    flex: 1;
  }

  .question-cards {
    flex-direction: row;
  }

  .question-card {
    flex: 1;
  }

  .testimonial-grid {
    flex-direction: row;
  }

  .testimonial-card {
    flex: 1;
  }

  .footer-columns {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-columns > div {
    flex: 1;
  }

  .whatsapp-float-bubble {
    display: block;
  }
}

/* ==========================================================================
   Breakpoint: 1100px — full desktop composition
   ========================================================================== */

@media (min-width: 1100px) {
  .nav-cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    max-height: none;
    overflow: visible;
    background: none;
    box-shadow: none;
  }

  .nav-link {
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    white-space: nowrap;
  }

  .nav-cta {
    padding: 10px 22px;
    font-size: 12px;
    white-space: nowrap;
    margin-left: 6px;
  }

  .nav-link:hover {
    border-color: var(--burgundy);
  }

  /* Hero: two-column composition, photo bottom-anchored full bleed --------- */

  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
  }

  .hero-decor-circle {
    top: 50%;
    right: -8%;
    width: 640px;
    height: 640px;
    transform: translateY(-50%);
  }

  .hero-decor-glow {
    bottom: -15%;
    right: 4%;
    width: 560px;
    height: 560px;
  }

  .hero-inner {
    width: 100%;
    position: static; /* let .hero-visual span the full hero, not just the content row */
  }

  .hero-visual {
    position: absolute;
    inset: 0;
    height: auto;
    align-items: flex-end;
    justify-content: flex-end;
    z-index: 1;
    pointer-events: none;
  }

  .hero-photo {
    height: 90%;
    max-width: 46%;
    margin-right: 7%;
  }

  .hero-content {
    max-width: 640px;
    margin: 0 0 0 7vw;
    padding: 40px 20px;
    text-align: left;
  }

  .br-desktop {
    display: inline;
  }

  .hero-logo-sub {
    justify-content: flex-start;
  }

  .hero-logo-title {
    text-align: left;
  }

  /* Sobre mim ---------------------------------------------------------------- */

  .counters-heading {
    text-align: left;
  }

  /* Como te Ajudo: card + photo side by side --------------------------------- */

  .help-grid {
    flex-direction: row;
    align-items: stretch;
    gap: 36px;
  }

  .help-card {
    flex: 1.15;
  }

  .help-photo {
    flex: 0.85;
    height: auto;
  }

  /* Atendimento Online: text + photo side by side ----------------------------- */

  .online-grid {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }

  .online-grid > .online-copy {
    flex: 1.1;
  }

  .online-grid > .online-photo-wrap {
    flex: 0.9;
    margin: 0;
  }

  /* Footer ----------------------------------------------------------------- */

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-brand {
    flex: 1;
  }

  .footer-columns {
    flex: 1.4;
  }
}
