/* =========================================================
   PHF ADVOGADOS — Stylesheet
   Mobile-first, zero dependências externas (sem fontes/ícones
   de CDN) para máxima velocidade e Índice de Qualidade no Ads.
   ========================================================= */

:root {
  --navy: #0f1f3d;
  --navy-light: #16294f;
  --charcoal: #1c1f26;
  --gold: #a88b55;
  --gold-light: #c7ad82;
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --border: #e3e6ec;
  --text: #2a2e37;
  --text-muted: #5c6270;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5d;

  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1140px;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(15, 31, 61, 0.08);
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-weight: 400;
  margin: 0 0 16px;
  line-height: 1.25;
}

h1 { font-size: 1.9rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 16px; color: var(--text); }

.text-muted { color: var(--text-muted); font-size: 0.95rem; }

ul.check-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
}

ul.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--text);
}

ul.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--gold);
  border-radius: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.16em;
  color: var(--navy);
  white-space: nowrap;
}

.logo span { color: var(--gold); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; color: var(--navy); }

.main-nav {
  position: fixed;
  top: 0;
  right: -100%;
  height: 100vh;
  width: min(340px, 86vw);
  background: var(--navy);
  padding: 90px 28px 28px;
  transition: right 0.28s ease;
  overflow-y: auto;
  z-index: 400;
}
.main-nav.open { right: 0; }

.main-nav ul { list-style: none; margin: 0; padding: 0; }

.nav-group { margin-bottom: 22px; }
.nav-group-title {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.main-nav a.nav-link {
  display: block;
  padding: 9px 0;
  color: #f2f4f8;
  font-size: 0.98rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.main-nav a.nav-link:hover { color: var(--gold-light); }

.nav-cta { margin-top: 24px; }
.nav-cta .btn { width: 100%; justify-content: center; }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 31, 61, 0.45);
  z-index: 350;
}
.nav-overlay.open { display: block; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 56px 0 60px;
  text-align: center;
}
.hero h1 { color: #fff; font-size: 2rem; }
.hero p { color: #dbe1ec; max-width: 640px; margin-left: auto; margin-right: auto; }
.hero .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 26px 0;
}
.hero .badge {
  font-size: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 7px 14px;
  color: #f0f2f6;
}
.hero-ctas { display: flex; flex-direction: column; gap: 12px; align-items: center; margin-top: 10px; }

/* ---------- Areas overview grid ---------- */
.areas {
  padding: 56px 0;
  background: var(--bg-alt);
}
.areas-intro { max-width: 680px; margin: 0 auto 34px; text-align: center; }

.areas-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.area-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.area-card h3 { margin-bottom: 8px; }
.area-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 700;
}
.area-card ul { margin: 0 0 14px; padding-left: 18px; color: var(--text-muted); font-size: 0.92rem; }
.area-card ul li { margin-bottom: 4px; }
.area-card a.link { color: var(--navy); font-weight: 600; font-size: 0.92rem; border-bottom: 1px solid var(--gold); }

/* ---------- Practice sections ---------- */
.practice-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 76px;
}
.practice-section:nth-of-type(even) { background: var(--bg-alt); }

.practice-grid {
  display: grid;
  gap: 30px;
  align-items: start;
}

.practice-content { max-width: 640px; }

.practice-cta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }

.audience-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: #eef1f7;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  font-weight: 700;
}

/* ---------- How it works ---------- */
.how {
  padding: 56px 0;
  text-align: center;
}
.how-steps {
  display: grid;
  gap: 22px;
  margin-top: 30px;
  grid-template-columns: 1fr;
}
.how-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  box-shadow: var(--shadow);
}
.how-step .num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  margin: 0 auto 14px;
  font-size: 1.05rem;
}

/* ---------- About ---------- */
.about { padding: 56px 0; background: var(--bg-alt); }
.about-inner { max-width: 720px; margin: 0 auto; text-align: center; }

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 60px 0;
  text-align: center;
  background: var(--navy);
  color: #fff;
}
.final-cta h2 { color: #fff; }
.final-cta p { color: #dbe1ec; max-width: 560px; margin: 0 auto 24px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: #c7cad2;
  padding: 44px 0 20px;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  margin-bottom: 26px;
}
.footer-col h4 {
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.02rem;
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a:hover { color: var(--gold-light); }

.footer-compliance {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  font-size: 0.78rem;
  color: #8b8f99;
  line-height: 1.7;
}

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 600;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
  animation: wa-pulse 2.6s ease-in-out infinite;
}
.wa-float svg { width: 32px; height: 32px; color: #fff; }

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7); }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float { animation: none; }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* =========================================================
   Breakpoints
   ========================================================= */
@media (min-width: 720px) {
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.9rem; }
  .hero h1 { font-size: 2.7rem; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps { grid-template-columns: repeat(3, 1fr); }
  .hero-ctas { flex-direction: row; justify-content: center; }
  .practice-grid { grid-template-columns: 1fr; }
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: static;
    height: auto;
    width: auto;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 26px;
  }
  .main-nav ul { display: flex; align-items: center; gap: 22px; }
  .nav-group { margin-bottom: 0; position: relative; }
  .nav-group-title { display: none; }
  .main-nav .nav-group > .group-label {
    display: block;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.94rem;
    padding: 9px 0;
    cursor: default;
    border-bottom: none;
  }
  .main-nav .nav-group ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 10px;
    min-width: 240px;
    flex-direction: column;
    gap: 0;
  }
  .main-nav .nav-group:hover ul,
  .main-nav .nav-group:focus-within ul { display: flex; }
  .main-nav a.nav-link {
    color: var(--text);
    border-bottom: none;
    padding: 9px 10px;
    border-radius: 6px;
    font-size: 0.92rem;
  }
  .main-nav a.nav-link:hover { background: var(--bg-alt); color: var(--navy); }
  .nav-overlay { display: none !important; }
  .nav-cta { margin-top: 0; }
  .nav-cta .btn { width: auto; }

  .areas-grid { grid-template-columns: repeat(4, 1fr); }
  .practice-grid { grid-template-columns: 1.3fr 0.9fr; }
}

@media (min-width: 1180px) {
  .areas-grid { grid-template-columns: repeat(4, 1fr); }
}
