/* =========================================================
   PAULA MATHEUS ADVOCACIA — STYLE.CSS
   Paleta:
   --vinho:    #6b0015
   --dourado:  #c9a24a
   --branco:   #ffffff
   --offwhite: #f8f4ef
   --texto:    #1f1f1f
   ========================================================= */

:root {
  --vinho: #6b0015;
  --vinho-escuro: #4a000f;
  --dourado: #c9a24a;
  --dourado-claro: #e3c98a;
  --branco: #ffffff;
  --offwhite: #f8f4ef;
  --texto: #1f1f1f;
  --texto-suave: #5a5250;

  --fonte-titulo: 'Playfair Display', Georgia, serif;
  --fonte-corpo: 'Lato', Arial, sans-serif;

  --sombra-suave: 0 10px 30px rgba(107, 0, 21, 0.08);
  --sombra-card: 0 6px 20px rgba(31, 31, 31, 0.06);
  --raio: 16px;
  --raio-pequeno: 10px;
}

/* ===================== RESET BÁSICO ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fonte-corpo);
  color: var(--texto);
  background-color: var(--offwhite);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

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

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================== TIPOGRAFIA GERAL ===================== */
.eyebrow {
  font-family: var(--fonte-corpo);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--dourado);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--fonte-titulo);
  font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  color: var(--vinho);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-title--left {
  text-align: left;
}

.section-subtitle {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px auto;
  color: var(--texto-suave);
  font-size: 1.05rem;
}

/* ===================== BOTÃO WHATSAPP (padrão) ===================== */
.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--vinho);
  color: var(--branco);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 15px 30px;
  border-radius: 50px;
  box-shadow: var(--sombra-suave);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid var(--vinho);
  white-space: nowrap;
}

.whatsapp-button:hover {
  background-color: var(--vinho-escuro);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(107, 0, 21, 0.18);
}

.whatsapp-button--large {
  padding: 18px 40px;
  font-size: 1.05rem;
}

.whatsapp-button--header {
  padding: 12px 22px;
  font-size: 0.9rem;
}

.whatsapp-button--footer {
  background: none;
  border: none;
  color: var(--dourado-claro);
  padding: 0;
  box-shadow: none;
  font-weight: 700;
}
.whatsapp-button--footer:hover {
  background: none;
  transform: none;
  box-shadow: none;
  text-decoration: underline;
}

/* ===================== HEADER ===================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(248, 244, 239, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(201, 162, 74, 0.25);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.header__logo {
  height: 46px;
  width: auto;
  object-fit: contain;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  padding: 90px 0 100px;
  overflow: hidden;
  background-color: var(--vinho);
  color: var(--branco);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(74, 0, 15, 0.95), rgba(107, 0, 21, 0.86)),
    radial-gradient(circle at 85% 20%, rgba(201, 162, 74, 0.28), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(201, 162, 74, 0.16), transparent 40%),
    url('assets/hero-familia.jpg');
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 700px;
}

.hero .eyebrow {
  color: var(--dourado-claro);
}

.hero__title {
  font-family: var(--fonte-titulo);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.25;
  margin-bottom: 22px;
}

.hero__subtitle {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.hero .whatsapp-button {
  background-color: var(--dourado);
  border-color: var(--dourado);
  color: var(--vinho-escuro);
}
.hero .whatsapp-button:hover {
  background-color: var(--dourado-claro);
  border-color: var(--dourado-claro);
}

.hero__oab {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  border-left: 2px solid rgba(201, 162, 74, 0.5);
  padding-left: 16px;
}

/* ===================== SEÇÃO DE DORES ===================== */
.pains {
  padding: 90px 0;
}

.pains__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
}

.pain-card {
  background-color: var(--branco);
  border-radius: var(--raio);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--sombra-card);
  border-top: 3px solid var(--dourado);
  transition: transform 0.2s ease;
}

.pain-card:hover {
  transform: translateY(-4px);
}

.pain-card__icon {
  font-size: 2rem;
  display: inline-block;
  margin-bottom: 14px;
}

.pain-card h3 {
  font-family: var(--fonte-titulo);
  color: var(--vinho);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.pain-card p {
  font-size: 0.92rem;
  color: var(--texto-suave);
}

/* ===================== ÁREAS DE ATUAÇÃO ===================== */
.areas {
  padding: 90px 0;
  background-color: var(--branco);
}

.areas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.area-card {
  background-color: var(--offwhite);
  border-radius: var(--raio);
  padding: 28px;
  border: 1px solid rgba(201, 162, 74, 0.3);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.area-card:hover {
  box-shadow: var(--sombra-suave);
  transform: translateY(-3px);
}

.area-card h3 {
  font-family: var(--fonte-titulo);
  color: var(--vinho);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.area-card p {
  font-size: 0.92rem;
  color: var(--texto-suave);
}

/* ===================== SOBRE ===================== */
.about {
  padding: 100px 0;
}

.about__inner {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__image img {
  border-radius: var(--raio);
  box-shadow: var(--sombra-suave);
  border: 4px solid var(--branco);
  outline: 1px solid rgba(201, 162, 74, 0.4);
}

.about__content p {
  margin-bottom: 18px;
  color: var(--texto-suave);
  font-size: 1.02rem;
}

.about__content .whatsapp-button {
  margin-top: 10px;
}

/* ===================== COMO FUNCIONA ===================== */
.how {
  padding: 90px 0;
  background-color: var(--branco);
}

.how__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.how-card {
  text-align: center;
  padding: 20px;
}

.how-card__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--vinho);
  color: var(--dourado-claro);
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.how-card h3 {
  font-family: var(--fonte-titulo);
  color: var(--vinho);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.how-card p {
  font-size: 0.92rem;
  color: var(--texto-suave);
}

/* ===================== PROVA SOCIAL ===================== */
.social-proof {
  padding: 90px 0;
}

.social-proof__inner {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: 50px;
  align-items: center;
}

.rating-card {
  background-color: var(--vinho);
  color: var(--branco);
  border-radius: var(--raio);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--sombra-suave);
}

.rating-card__stars {
  color: var(--dourado);
  font-size: 1.8rem;
  letter-spacing: 4px;
  margin-bottom: 10px;
}

.rating-card__score {
  font-family: var(--fonte-titulo);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--branco);
}

.rating-card__score span {
  font-size: 1rem;
  font-family: var(--fonte-corpo);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  display: block;
  margin-top: 4px;
}

.rating-card__count {
  margin-top: 12px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
}

.social-proof__text p {
  color: var(--texto-suave);
  font-size: 1.02rem;
}

/* ===================== FAQ ===================== */
.faq {
  padding: 90px 0;
  background-color: var(--branco);
}

.faq__list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(201, 162, 74, 0.35);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-family: var(--fonte-titulo);
  font-size: 1.05rem;
  color: var(--vinho);
  text-align: left;
}

.faq-item__icon {
  flex-shrink: 0;
  font-size: 1.4rem;
  color: var(--dourado);
  transition: transform 0.25s ease;
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 4px;
}

.faq-item.is-open .faq-item__answer {
  max-height: 300px;
  padding-bottom: 22px;
}

.faq-item__answer p {
  color: var(--texto-suave);
  font-size: 0.96rem;
}

/* ===================== CTA FINAL ===================== */
.cta-final {
  padding: 100px 0;
  background-color: var(--vinho);
  background-image: radial-gradient(circle at 80% 30%, rgba(201, 162, 74, 0.22), transparent 45%);
  color: var(--branco);
  text-align: center;
}

.cta-final__inner h2 {
  font-family: var(--fonte-titulo);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: 18px;
  font-weight: 600;
}

.cta-final__inner p {
  max-width: 560px;
  margin: 0 auto 34px auto;
  color: rgba(255, 255, 255, 0.85);
}

.cta-final .whatsapp-button {
  background-color: var(--dourado);
  border-color: var(--dourado);
  color: var(--vinho-escuro);
}
.cta-final .whatsapp-button:hover {
  background-color: var(--dourado-claro);
  border-color: var(--dourado-claro);
}

/* ===================== RODAPÉ ===================== */
.footer {
  background-color: var(--vinho-escuro);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 60px;
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(201, 162, 74, 0.25);
}

.footer__logo {
  height: 52px;
  margin-bottom: 14px;
  opacity: 0.95;
}

.footer__col h3 {
  font-family: var(--fonte-titulo);
  color: var(--dourado-claro);
  font-size: 1rem;
  margin-bottom: 12px;
}

.footer__col p {
  font-size: 0.92rem;
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer__bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ===================== BOTÃO FLUTUANTE ===================== */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25D366;
  border-color: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 999;
  animation: pulse-whatsapp 2.4s infinite;
}

.whatsapp-float:hover {
  background-color: #1ebe5b;
  border-color: #1ebe5b;
  transform: translateY(-2px) scale(1.05);
}

@keyframes pulse-whatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    animation: none;
  }
  * {
    scroll-behavior: auto !important;
  }
}

/* ===================== RESPONSIVO ===================== */
@media (max-width: 900px) {
  .about__inner,
  .social-proof__inner {
    grid-template-columns: 1fr;
  }

  .about__image {
    max-width: 340px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .header__logo {
    height: 36px;
  }

  .whatsapp-button--header {
    padding: 10px 16px;
    font-size: 0.82rem;
  }

  .hero {
    padding: 60px 0 70px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero__oab {
    border-left: none;
    padding-left: 0;
  }

  .pains, .areas, .about, .how, .social-proof, .faq, .cta-final {
    padding: 60px 0;
  }

  .section-subtitle {
    margin-bottom: 32px;
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
    bottom: 16px;
    right: 16px;
  }
}
