/* ============================================
   Psicanalista Salete Marini - Estilos
   Fundo azul, conversão, responsivo, acessível
   ============================================ */

/* --- Variáveis (paleta azul) --- */
:root {
  --blue-900: #0d3b4c;
  --blue-800: #134a5e;
  --blue-700: #1a5f7a;
  --blue-600: #217a99;
  --blue-500: #2e9bb8;
  --blue-200: #b8e0eb;
  --blue-100: #e0f2f7;
  --blue-50: #eef8fb;
  --white: #ffffff;
  --gray-800: #2c2c2c;
  --gray-600: #444;
  --gray-500: #555;
  --whatsapp: #25d366;
  --whatsapp-hover: #20bd5a;
}

/* --- Reset mínimo --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: 3.5rem; /* espaço para a barra de navegação fixa */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--gray-800);
  background-color: var(--blue-50);
}

a {
  color: var(--blue-700);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--blue-700);
  outline-offset: 2px;
}

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

/* --- Container --- */
.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--narrow {
  max-width: 42rem;
}

/* --- Barra de navegação --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(13, 59, 76, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.5rem;
  gap: 1rem;
}

.nav__brand {
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}

.nav__brand:hover {
  color: var(--blue-200);
  text-decoration: none;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  color: var(--white);
}

.nav__toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav__toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav--open .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav--open .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav--open .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--blue-200);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.nav__link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.nav__link--cta {
  color: var(--white);
  background: var(--blue-600);
}

.nav__link--cta:hover {
  background: var(--blue-500);
  color: var(--white);
}

/* --- Hero (fundo azul + foto em destaque) --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 3rem 0 4rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-700) 40%, var(--blue-600) 100%);
  z-index: 0;
}

.hero__bg::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__content {
  text-align: left;
}

.hero__label {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue-200);
}

.hero__title {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
}

.hero__headline {
  margin: 0 0 0.5rem;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
  color: var(--white);
}

.hero__subtitle {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  color: var(--blue-100);
  opacity: 0.95;
}

.hero__niche {
  margin: 0 0 1.75rem;
  font-size: 0.9375rem;
  color: var(--blue-200);
  font-style: italic;
}

.hero__photo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__photo img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

/* --- Botões --- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
}

.btn--primary {
  background-color: var(--whatsapp);
  color: var(--white);
  text-decoration: none;
}

.btn--primary:hover {
  background-color: var(--whatsapp-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* --- Seções --- */
.section {
  padding: 4.5rem 0;
}

.section__title {
  margin: 0 0 1.5rem;
  font-size: 1.625rem;
  font-weight: 600;
  color: var(--blue-900);
}

.section__title--light {
  color: var(--white);
}

.section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.section__content {
  min-width: 0;
}

.section__media img {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(13, 59, 76, 0.12);
}

/* Sobre a profissional (segunda foto menor) */
.section--about {
  background-color: var(--white);
}

.section--about .section__media {
  max-width: 350px;
  margin: 0 auto;
}

.section--about .section__media img {
  max-width: 100%;
}

.about__content p {
  margin: 0 0 1rem;
  color: var(--gray-600);
}

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

/* Prática analítica */
.section--practice {
  background: linear-gradient(180deg, var(--blue-100) 0%, var(--blue-50) 100%);
}

.practice__content p {
  margin: 0 0 1rem;
  color: var(--gray-800);
}

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

/* Como funciona */
.section--steps {
  background-color: var(--white);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps__item {
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: 2rem;
}

.steps__item:last-child {
  margin-bottom: 0;
}

.steps__number {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--blue-700);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 50%;
}

.steps__title {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--blue-900);
}

.steps__item p {
  margin: 0;
  color: var(--gray-600);
}

/* Encontre um espaço (fundo azul forte) */
.section--transform {
  background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-700) 100%);
}

.transform__content p {
  margin: 0 0 1rem;
  color: var(--blue-100);
  font-size: 1.0625rem;
}

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

.transform__niche {
  margin-top: 1rem;
  font-weight: 500;
}

.transform__cta-text {
  font-weight: 600;
  margin-top: 1.25rem !important;
}

/* CTA Agende (fundo azul, botão em evidência) */
.section--cta {
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-600) 100%);
  text-align: center;
}

.section--cta .section__title {
  margin-bottom: 1.5rem;
}

/* Para quem é indicado */
.section--who {
  background-color: var(--white);
}

.who-intro {
  margin: 0 0 0.75rem;
  color: var(--gray-600);
}

.who-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--gray-600);
}

.who-list li {
  margin-bottom: 0.5rem;
}

.who-note {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--gray-500);
}

/* Depoimentos */
.section--testimonials {
  background-color: var(--blue-50);
}

.testimonials {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.testimonial {
  margin: 0;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-radius: 8px;
  border-left: 4px solid var(--blue-600);
  box-shadow: 0 2px 8px rgba(13, 59, 76, 0.06);
}

.testimonial__text {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-800);
  font-style: italic;
}

.testimonial__author {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.testimonials__note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* --- Rodapé --- */
.footer {
  padding: 2.5rem 1.25rem;
  background-color: var(--blue-900);
  color: var(--blue-200);
  text-align: center;
  font-size: 0.9375rem;
}

.footer__name {
  margin: 0 0 0.25rem;
  font-weight: 600;
  color: var(--white);
}

.footer__info {
  margin: 0 0 0.5rem;
}

.footer__contact {
  margin: 0 0 1rem;
}

.footer__contact a {
  color: var(--blue-200);
  font-weight: 500;
}

.footer__contact a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer__ethics {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--blue-200);
  opacity: 0.85;
}

/* --- CTA fixo mobile --- */
.cta-mobile {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background-color: var(--white);
  box-shadow: 0 -4px 20px rgba(13, 59, 76, 0.15);
  z-index: 100;
}

.cta-mobile__btn {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  background-color: var(--whatsapp);
  color: var(--white);
  border-radius: 8px;
  text-decoration: none;
}

.cta-mobile__btn:hover {
  background-color: var(--whatsapp-hover);
  text-decoration: none;
  color: var(--white);
}

.cta-mobile__btn:focus-visible {
  outline: 2px solid var(--blue-700);
  outline-offset: 2px;
}

/* ========== Responsivo ========== */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero__content {
    text-align: center;
  }

  .hero__photo {
    order: -1;
  }

  .hero__photo img {
    max-width: 280px;
    margin: 0 auto;
  }

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

  .section__media {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }

  .section--about .section__media {
    max-width: 260px;
  }
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: rgba(13, 59, 76, 0.98);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }

  .nav--open .nav__list {
    max-height: 20rem;
    opacity: 1;
  }

  .nav__link {
    display: block;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
  }

  .cta-mobile {
    display: block;
  }

  .footer {
    padding-bottom: 4.5rem;
  }

  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: auto;
    padding: 2rem 0 3rem;
  }

  .hero__photo img {
    max-width: 240px;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .steps__item {
    padding-left: 3rem;
  }

  .steps__number {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.875rem;
  }
}
