/* ============================================================
   PATRÍCIA TEIXEIRA DE MELO — Advocacia
   Design: navy / ouro / creme · Serifada premium
   ============================================================ */

:root {
  --navy-950: #0b1420;
  --navy-900: #0f1a2b;
  --navy-800: #122032;
  --navy-700: #1a2c44;
  --navy-600: #243c5c;
  --gold: #c8a24b;
  --gold-light: #e0c887;
  --gold-dark: #a87f2e;
  /* Cor da marca (logo azul #001F71) */
  --brand: #001f71;
  --brand-soft: #3a5bbf;
  --cream: #faf7f0;
  --paper: #fffdf8;
  --ink: #20304a;
  --muted: #5a6c88;
  --line: rgba(32, 48, 74, 0.14);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --shadow: 0 24px 60px -24px rgba(13, 20, 32, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ============================ TIPOGRAFIA ============================ */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--navy-900);
}

.em, em { font-style: italic; color: var(--gold-dark); }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--gold);
}

.section-title { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 0.9rem; }
.section-sub { color: var(--muted); max-width: 620px; margin: 0 auto; font-weight: 300; }
.section { position: relative; }

/* ============================ NAVBAR ============================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(32, 48, 74, 0.08);
  transition: background 0.45s var(--ease), padding 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.navbar.scrolled {
  padding: 0.65rem 0;
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(32, 48, 74, 0.12);
  box-shadow: 0 10px 30px -18px rgba(0, 31, 113, 0.22);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 0.8rem; }
.brand-logo {
  height: 82px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(0, 31, 113, 0.16));
  transition: transform 0.4s var(--ease);
}
.brand:hover .brand-logo, .footer-brand:hover .brand-logo { transform: scale(1.05); }
.footer-logo {
  height: 132px;
  filter: none;
}

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a:not(.nav-cta) {
  font-size: 0.86rem; font-weight: 500;
  color: var(--navy-800);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.3s;
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav-links a:not(.nav-cta):hover { color: var(--brand); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  font-size: 0.82rem; font-weight: 600;
  padding: 0.6rem 1.3rem;
  color: var(--navy-950) !important;
  background: var(--gold);
  border-radius: 100px;
  transition: transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s;
  box-shadow: 0 8px 22px -10px rgba(200, 162, 75, 0.9);
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-2px); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--navy-900); transition: 0.35s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ====== OVERLAY DO MENU MOBILE ======
   Fica entre a página e o menu. Usamos uma cor de fundo com rgba()
   (escurece a página) + opacity apenas neste elemento sem conteúdo,
   NUNCA no pai que contém os links. */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;          /* abaixo do menu (header z-index 1000) */
  background: rgba(8, 13, 22, 0.55); /* escurece a página sem "lavar" */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.nav-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ============================ HERO ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 8rem 0 4rem;
  background: linear-gradient(150deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--navy-700) 100%);
  color: #fff;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: float 16s ease-in-out infinite;
}
.orb-1 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(200,162,75,0.5), transparent 70%); top: -80px; right: -60px; }
.orb-2 { width: 340px; height: 340px; background: radial-gradient(circle, rgba(36,60,92,0.9), transparent 70%); bottom: -60px; left: -60px; animation-delay: -5s; }
.orb-3 { width: 260px; height: 260px; background: radial-gradient(circle, rgba(200,162,75,0.35), transparent 70%); top: 40%; left: 38%; animation-delay: -9s; }
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.08); }
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem; align-items: center;
}

.hero-copy h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); color: #fff; margin-bottom: 0.4rem; }
.hero-copy h1 em { color: #fff; }
.hero-copy h2 {
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  color: var(--gold-light);
  font-weight: 500;
  font-family: var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.3rem;
}
.hero-sub { color: rgba(255,255,255,0.82); font-weight: 300; font-size: 1.05rem; max-width: 520px; margin-bottom: 2rem; }
.hero-sub strong { color: #fff; font-weight: 500; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.4rem; }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.95rem 2.1rem;
  border-radius: 100px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, background 0.3s, color 0.3s, border-color 0.3s;
}
.btn-gold { color: #fff; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); box-shadow: 0 16px 34px -14px rgba(200,162,75,0.85); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -14px rgba(200,162,75,0.95); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,0.35); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-3px); }
.btn-block { width: 100%; text-align: center; border: none; }

.hero-tags { display: flex; flex-direction: column; gap: 0.5rem; }
.hero-tags li { display: flex; align-items: center; gap: 0.7rem; color: rgba(255,255,255,0.75); font-size: 0.9rem; font-weight: 300; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(200,162,75,0.16); }

.hero-visual { position: relative; display: grid; place-items: center; }
.frame-frame {
  width: min(440px, 84vw);
  aspect-ratio: 3 / 2;
  border: 1px solid rgba(200,162,75,0.5);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(26,44,68,0.85), rgba(18,32,50,0.95));
  box-shadow: var(--shadow);
}
.frame-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 44px;
  border: 1.6px solid rgba(255,255,255,0.4);
  border-radius: 20px; z-index: 2;
}
.scroll-hint span {
  position: absolute; top: 8px; left: 50%;
  width: 4px; height: 8px; margin-left: -2px;
  background: var(--gold); border-radius: 4px;
  animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(16px); }
}

/* ============================ SOBRE ============================ */
.section { padding: 6.5rem 0; }
.section-head { text-align: center; margin-bottom: 3.4rem; }
.section-head .eyebrow::before { display: none; }

.sobre-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center; }
.sobre-text p { margin-bottom: 1.2rem; color: #41536f; font-weight: 300; }
.sobre-text p strong { color: var(--navy-900); font-weight: 600; }
.sobre-text blockquote {
  margin-top: 1.6rem; padding: 1.4rem 1.6rem;
  border-left: 3px solid var(--gold);
  background: rgba(200,162,75,0.08);
  font-family: var(--serif); font-style: italic; font-size: 1.2rem;
  color: var(--navy-700);
}
/* ============================ ÁREAS ============================ */
.areas { background: var(--paper); }
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.area-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px; padding: 2.4rem 1.9rem;
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s;
}
.area-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.area-card:hover { transform: translateY(-8px); border-color: transparent; box-shadow: var(--shadow); }
.area-card:hover::before { transform: scaleX(1); }

.area-icon {
  font-size: 1.9rem; margin-bottom: 1.2rem;
  width: 62px; height: 62px; display: grid; place-items: center;
  background: rgba(200,162,75,0.12); border-radius: 14px;
  transition: transform 0.4s var(--ease), background 0.4s;
}
.area-card:hover .area-icon { transform: scale(1.1) rotate(-6deg); background: rgba(200,162,75,0.2); }
.area-card h3 { font-size: 1.5rem; margin-bottom: 0.7rem; }
.area-card p { color: #52638a; font-size: 0.94rem; font-weight: 300; margin-bottom: 0.8rem; }
.area-list { list-style: none; margin: 0 0 1.2rem 0; padding: 0; }
.area-list li { color: #52638a; font-size: 0.94rem; font-weight: 300; line-height: 1.5; padding-left: 1.1rem; position: relative; margin-bottom: 0.35rem; }
.area-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.area-link { color: var(--gold-dark); font-weight: 600; font-size: 0.86rem; transition: letter-spacing 0.3s; }
.area-link:hover { letter-spacing: 0.05em; }

/* ============================ FORMAÇÃO ============================ */
.formacao { background: linear-gradient(150deg, var(--navy-950), var(--navy-800)); color: #fff; }
.formacao .section-title, .formacao h3 { color: #fff; }
.formacao .section-title em { color: var(--gold-light); }
.formacao-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.formacao-item {
  text-align: center; padding: 2.6rem 1.8rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
}
.formacao-item:hover { transform: translateY(-6px); border-color: var(--gold); background: rgba(255,255,255,0.06); }
.form-icon {
  font-size: 2.2rem;
  display: inline-grid; place-items: center;
  width: 74px; height: 74px; margin-bottom: 1.2rem;
  border: 1px solid var(--gold); border-radius: 50%;
  color: var(--gold-light);
}
.formacao-item h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.formacao-item p { color: rgba(255,255,255,0.75); font-weight: 300; }
.formacao-item p strong { color: var(--gold-light); }

/* ============================ CONTATO ============================ */
.contato { background: var(--cream); }
.contato-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  background: var(--paper);
  border: 1px solid var(--line); border-radius: 18px; padding: 3.2rem;
  box-shadow: 0 30px 70px -40px rgba(13,20,32,0.35);
}
.contato-copy > p { color: #4f6184; font-weight: 300; margin-bottom: 1.6rem; }
.contato-links { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.4rem; }
.contato-link {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line); border-radius: 12px;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.contato-link:hover { transform: translateX(6px); border-color: var(--gold); box-shadow: 0 10px 26px -18px rgba(13,20,32,0.4); }
.cl-ic {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: rgba(200,162,75,0.13); border-radius: 10px;
  font-size: 1.3rem; flex-shrink: 0;
}
.contato-link span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.contato-link strong { color: var(--navy-900); font-family: var(--serif); font-size: 1.05rem; }
.contato-link span:last-child { color: var(--muted); font-size: 0.84rem; }

.contato-form { display: flex; flex-direction: column; gap: 1rem; }
.contato-form input, .contato-form textarea {
  font-family: var(--sans); font-size: 0.92rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--cream); color: var(--ink);
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: vertical;
}
.contato-form input:focus, .contato-form textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200,162,75,0.14);
  background: #fff;
}
.form-note { font-size: 0.74rem; color: var(--muted); text-align: center; }

.sobre-stats { display: flex; flex-direction: column; gap: 1.2rem; }
.stat-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 1.5rem 1.8rem;
  box-shadow: 0 14px 40px -24px rgba(13,20,32,0.3);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.stat-card:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 22px 50px -24px rgba(13,20,32,0.4); }
.stat-line { margin-bottom: 0.4rem; }
.stat-num { font-family: var(--serif); font-size: 3rem; font-weight: 700; color: var(--navy-900); line-height: 1; }
.stat-suffix { font-family: var(--serif); font-size: 2rem; color: var(--gold); margin-left: 0.1rem; }
.stat-card p { color: var(--muted); font-size: 0.86rem; letter-spacing: 0.03em; }
/* ============================ RODAPÉ ============================ */
.footer { background: var(--navy-950); color: rgba(255,255,255,0.7); padding: 2.6rem 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 0.9rem; }
.footer-cred { font-size: 0.82rem; }
.footer-oab { font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }

/* ============================ WHATSAPP FLUTUANTE ============================ */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #25d366;
  box-shadow: 0 10px 28px -8px rgba(37, 211, 102, 0.7);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
  text-decoration: none;
}
.wa-float:hover { transform: translateY(-4px) scale(1.06); box-shadow: 0 16px 34px -8px rgba(37, 211, 102, 0.85); }
.wa-badge { display: grid; place-items: center; }

/* Anel de pulso */
.wa-float::before,
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.45);
  z-index: -1;
  animation: wa-pulse 2.4s var(--ease) infinite;
}
.wa-float::after { animation-delay: 1.2s; }
@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 0.7; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Balão de texto */
.wa-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: #fff;
  color: var(--navy-900);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  box-shadow: 0 10px 26px -12px rgba(13, 20, 32, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.wa-tooltip::after {
  content: "";
  position: absolute;
  left: 100%; top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #fff;
}
.wa-float:hover .wa-tooltip { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ============================ REVEAL (scroll) ============================ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.12s; }
.reveal:nth-child(3) { transition-delay: 0.24s; }

/* ============================ RESPONSIVO ============================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 4rem; }
  .hero-visual { order: -1; }
  .sobre-grid, .contato-wrap { grid-template-columns: 1fr; gap: 2.6rem; }
  .areas-grid, .formacao-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(320px, 82vw);
    z-index: 1001;          /* acima do overlay (998) */
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
    padding: 5.5rem 2rem 2rem;
    background: #fff;       /* fundo sólido: menu nítido e legível */
    box-shadow: -18px 0 40px -24px rgba(0, 31, 113, 0.28);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a:not(.nav-cta) {
    font-size: 1.05rem;
    width: 100%;
    padding: 0.72rem 0;
    border-bottom: 1px solid var(--line);
    -webkit-tap-highlight-color: transparent;
  }
  /* Remove a risquinha dourada de hover que "gruda" no toque em celular */
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-toggle { display: flex; -webkit-tap-highlight-color: transparent; }
  .nav-cta { align-self: flex-start; margin-top: 0.6rem; }
  .brand-logo { height: 84px; }
  .section { padding: 4.5rem 0; }
  .contato-wrap { padding: 2rem 1.4rem; }
  .scroll-hint { display: none; }
  .formacao-grid { grid-template-columns: 1fr; }
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .wa-float svg { width: 30px; height: 30px; }
}