/* ═══════════════════════════════════════════
   PRISCILA DIAS ADVOCACIA — style.css
═══════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --bordeaux:      #7B1C2E;
  --bordeaux-dark: #5C1422;
  --bordeaux-mid:  #9A2238;
  --gold:          #C9A84C;
  --gold-light:    #DFC278;
  --cream:         #F9F6F1;
  --cream-dark:    #EDE8DF;
  --black:         #1A1A1A;
  --gray:          #5A5A5A;
  --gray-light:    #D8D0C5;
  --white:         #FFFFFF;
  --wpp:           #25D366;
  --wpp-dark:      #1DAA55;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;

  --max: 1120px;
  --pad-section: 5.5rem 1.5rem;
  --radius: 4px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); background: var(--cream); color: var(--black); font-size: 1rem; line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* ── Container ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* ── Headings ── */
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }

/* ── Eyebrow ── */
.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.eyebrow--dark  { color: var(--bordeaux); }
.eyebrow--gold  { color: var(--gold); }

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn--lg  { padding: 0.95rem 2rem; font-size: 1rem; }
.btn--sm  { padding: 0.5rem 1.1rem; font-size: 0.85rem; }

.btn--gold {
  background: var(--gold);
  color: var(--bordeaux-dark);
}
.btn--gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,168,76,.3); }

.btn--whatsapp {
  background: var(--wpp);
  color: var(--white);
}
.btn--whatsapp:hover { background: var(--wpp-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,.35); }

/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 2rem;
  background: rgba(92, 20, 34, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201,168,76,.18);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.25); }

.nav__logo { display: flex; flex-direction: column; line-height: 1; }
.nav__logo-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: 0.1em;
  font-weight: 600;
}
.nav__logo-sub {
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 1px;
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  background: var(--bordeaux);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  padding-top: 4.5rem;
  overflow: hidden;
  position: relative;
}

/* sutil gradiente radial de canto */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 15% 60%, rgba(201,168,76,.07) 0%, transparent 60%);
  pointer-events: none;
}

.hero__content {
  padding: 4rem 2rem 5rem 4rem;
  position: relative;
  z-index: 1;
}

.hero__headline {
  color: var(--white);
  margin: 1rem 0 1.5rem;
}

.hero__sub {
  color: rgba(255,255,255,.72);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 460px;
}

/* linha dourada decorativa */
.hero__content .eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 10px;
}

.hero__photo {
  align-self: end;
  overflow: hidden;
  position: relative;
}

.hero__photo img {
  width: 100%;
  object-fit: cover;
  object-position: top center;
  max-height: 92vh;
  display: block;
  /* fade suave na base para fundir com a seção de baixo */
  mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
}

/* ══════════════════════════════════════════
   SOBRE
══════════════════════════════════════════ */
.sobre { padding: var(--pad-section); background: var(--cream); }

.sobre__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.sobre__foto-wrap { position: relative; }

.sobre__foto {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(92,20,34,.16);
}

.sobre__badge {
  position: absolute;
  bottom: -1.1rem;
  right: -1.1rem;
  background: var(--bordeaux);
  color: var(--white);
  padding: 1rem 1.4rem;
  text-align: center;
  border: 2.5px solid var(--gold);
  border-radius: var(--radius);
  line-height: 1.2;
}
.sobre__badge-title { display: block; font-family: var(--serif); font-size: 1.4rem; font-weight: 700; }
.sobre__badge-sub   { display: block; font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-top: 2px; }

.sobre__texto p { color: var(--gray); font-size: 1.03rem; line-height: 1.8; margin-bottom: 1.2rem; }
.sobre__texto strong { color: var(--bordeaux); font-weight: 600; }

.sobre__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-light);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--cream-dark);
  border: 1px solid var(--gray-light);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  color: var(--gray);
}

/* ══════════════════════════════════════════
   SERVIÇOS
══════════════════════════════════════════ */
.servicos {
  padding: var(--pad-section);
  background: var(--bordeaux-dark);
  text-align: center;
}
.servicos h2 { color: var(--white); }

.servicos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

/* últimas 2 cards centralizadas na segunda linha */
.servico-card:nth-child(4) { grid-column: 1; }
.servico-card:nth-child(5) { grid-column: 2; }

.servico-card {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(201,168,76,.22);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: left;
  transition: background 0.22s, border-color 0.22s, transform 0.2s;
}
.servico-card:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(201,168,76,.55);
  transform: translateY(-3px);
}
.servico-card__icon { font-size: 2rem; margin-bottom: 1rem; }
.servico-card h3 { color: var(--gold); font-size: 1.1rem; }
.servico-card p { color: rgba(255,255,255,.68); font-size: 0.93rem; line-height: 1.65; }

/* ══════════════════════════════════════════
   COMO FUNCIONA
══════════════════════════════════════════ */
.como-funciona {
  padding: var(--pad-section);
  background: var(--cream-dark);
  text-align: center;
}

.passos {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 3rem auto 2.5rem;
  max-width: 960px;
}

.passo {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: left;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

.passo__num {
  font-family: var(--serif);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--bordeaux);
  opacity: 0.18;
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.passo h3 { color: var(--bordeaux); }
.passo p  { color: var(--gray); font-size: 0.93rem; line-height: 1.65; }

.passo__seta {
  font-size: 1.4rem;
  color: var(--gold);
  margin-top: 4rem;
  flex-shrink: 0;
  opacity: 0.7;
}

/* ══════════════════════════════════════════
   FAQ
══════════════════════════════════════════ */
.faq { padding: var(--pad-section); background: var(--bordeaux); }
.faq h2 { color: var(--white); margin-bottom: 2.5rem; }

.faq__lista { max-width: 760px; }

.faq-item { border-bottom: 1px solid rgba(201,168,76,.18); }

.faq-item__btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.5;
  transition: color 0.2s;
}
.faq-item__btn:hover { color: var(--gold-light); }

.faq-item__icone {
  font-size: 1.4rem;
  color: var(--gold);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.25s ease;
}
.faq-item.open .faq-item__icone { transform: rotate(45deg); }

.faq-item__body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding-bottom 0.35s ease;
}
.faq-item.open .faq-item__body {
  max-height: 300px;
  padding-bottom: 1.4rem;
}
.faq-item__body p { color: rgba(255,255,255,.72); line-height: 1.75; font-size: 0.95rem; }

/* ══════════════════════════════════════════
   CONTATO
══════════════════════════════════════════ */
.contato { padding: var(--pad-section); background: var(--cream); text-align: center; }

.contato__sub {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 440px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.contato__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin-top: 3rem;
}

.contato__linha {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--gray);
  font-size: 0.94rem;
  max-width: 480px;
  text-align: left;
}
.contato__linha a { color: var(--bordeaux); font-weight: 500; }
.contato__linha a:hover { color: var(--bordeaux-dark); }
.contato__linha--pendente { opacity: 0.5; font-style: italic; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer { background: var(--black); padding: 2.5rem 1.5rem; }

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer__logo { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.footer__logo-name {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.12em;
}
.footer__logo-sub {
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 2px;
}

.footer__copy { color: rgba(255,255,255,.28); font-size: 0.78rem; }

/* ══════════════════════════════════════════
   WHATSAPP FLUTUANTE
══════════════════════════════════════════ */
.wpp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 200;
  background: var(--wpp);
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wpp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.55);
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 960px) {
  /* Hero: empilha foto em baixo */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero__content {
    padding: 6.5rem 1.5rem 2.5rem;
    text-align: center;
  }
  .hero__content .eyebrow::before { display: none; }
  .hero__sub { max-width: 100%; }
  .hero__photo { max-height: 60vw; overflow: hidden; }
  .hero__photo img {
    max-height: 60vw;
    object-position: top center;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  }

  /* Sobre */
  .sobre__grid { grid-template-columns: 1fr; gap: 3rem; }
  .sobre__foto-wrap { max-width: 420px; margin: 0 auto; }

  /* Serviços */
  .servicos__grid { grid-template-columns: 1fr 1fr; }
  .servico-card:nth-child(4), .servico-card:nth-child(5) { grid-column: auto; }

  /* Passos */
  .passos { flex-direction: column; max-width: 480px; }
  .passo__seta { transform: rotate(90deg); align-self: center; margin: -0.25rem 0; }
}

@media (max-width: 600px) {
  :root { --pad-section: 4rem 1.25rem; }

  .nav { padding: 0.8rem 1.25rem; }

  .hero__content { padding: 5.5rem 1.25rem 2rem; }
  .hero__content .btn { width: 100%; justify-content: center; }

  .servicos__grid { grid-template-columns: 1fr; }

  .como-funciona .btn { width: 100%; justify-content: center; }

  .sobre__badge { bottom: -0.75rem; right: -0.75rem; }

  .wpp-float { width: 54px; height: 54px; bottom: 1.25rem; right: 1.25rem; }
}
