/* ═══════════════════════════════════════════════════════════════════
   Dr. Tiago Leal - Advocacia Criminal de Elite
   Responsivo 2026 · mobile-first · touch 44px · safe-area
   ═══════════════════════════════════════════════════════════════════ */

/* Variáveis em variables.css */

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-sans);
  font-size: clamp(0.9375rem, 0.5vw + 0.9rem, 1rem);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-light);
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 clamp(0.75rem, 4vw, 1.25rem); }

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 27, 42, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184, 134, 11, .25);
  transition: background .3s;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 0.5rem;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: .02em;
}
.nav {
  display: flex;
  gap: 1.5rem;
}
.nav a {
  color: rgba(255,255,255,.9);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
}
.nav a:hover { color: var(--gold); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .6rem 1.25rem;
  min-height: var(--touch-min);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s;
}
.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  border: none;
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,.4); }
.btn-primary {
  background: var(--gold);
  color: var(--bg-dark);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--bg-dark); }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  align-items: center;
  justify-content: center;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--white); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  background: var(--bg-dark);
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,27,42,.97) 0%, rgba(27,38,59,.92) 50%, rgba(13,27,42,.96) 100%);
  background-image: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(184,134,11,.08) 0%, transparent 50%);
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-badge {
  display: inline-block;
  padding: .35rem .85rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(184,134,11,.45);
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5rem;
  letter-spacing: -.02em;
}
.hero-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold);
  margin: 0 0 1rem;
}
.hero-desc {
  max-width: 560px;
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
  opacity: .92;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-bottom: 1rem; }
.hero-urg, .hero-oab { font-size: .9rem; opacity: .85; margin: .25rem 0; }
.hero-urg a { color: var(--gold); text-decoration: none; }

/* Alert bar */
.alert-bar {
  background: linear-gradient(90deg, #1b263b 0%, #0d1b2a 100%);
  color: var(--white);
  padding: .85rem 0;
  text-align: center;
  font-size: .95rem;
}
.alert-bar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; }
.alert-icon { font-size: 1.2rem; }
.alert-bar a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  margin-left: .25rem;
}

/* Stats */
.stats {
  padding: 2.5rem 0;
  background: var(--bg-dark);
  color: var(--white);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-n {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: .25rem;
}
.stat-l { font-size: .85rem; opacity: .9; }

/* Sections */
.section {
  padding: 4rem 0;
}
.section--light { background: var(--bg-light); }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--bg-dark);
  margin: 0 0 .5rem;
}
.section-subtitle { font-size: 1rem; color: var(--gold); margin: 0 0 1.25rem; font-weight: 600; }
.section-intro { max-width: 640px; margin: 0 auto 2rem; text-align: center; color: var(--text-muted); }
.text-center { text-align: center; }
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.quote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--gold);
  background: rgba(184,134,11,.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}
.quote cite { display: block; margin-top: .5rem; font-style: normal; font-size: .9rem; opacity: .9; }

.pillars { display: flex; flex-direction: column; gap: 1rem; }
.pillar {
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.06);
}
.pillar-icon { font-size: 1.5rem; }
.pillar h3 { margin: .35rem 0 .25rem; font-size: 1.1rem; color: var(--bg-dark); }
.pillar p { margin: 0; font-size: .9rem; color: var(--text-muted); }

/* Areas */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.area-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}
.area-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.15); }
.area-icon { font-size: 2rem; }
.area-card h3 { margin: .5rem 0 .75rem; font-size: 1.2rem; color: var(--bg-dark); }
.area-card ul { margin: 0; padding-left: 1.25rem; color: var(--text-muted); font-size: .95rem; }
.area-card li { margin-bottom: .35rem; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.step {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.06);
}
.step-n {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: .5rem;
}
.step h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.step p { margin: 0; font-size: .9rem; color: var(--text-muted); }

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.testimonial {
  margin: 0;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}
.testimonial p { margin: 0 0 .75rem; font-style: italic; color: var(--text); }
.testimonial footer { font-size: .85rem; color: var(--text-muted); }

/* FAQ */
.faq-list { max-width: 680px; margin: 2rem auto 0; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: .5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.25rem;
  min-height: var(--touch-min);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--gold); font-size: 1.25rem; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 0; padding: 0 1.25rem 1rem; color: var(--text-muted); font-size: .95rem; }

/* Contact */
.section--contact { background: var(--bg-dark); color: var(--white); }
.section--contact .section-title { color: var(--white); }
.section--contact .section-intro { color: rgba(255,255,255,.8); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(255,255,255,.06);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.1);
  text-decoration: none;
  color: inherit;
  transition: background .2s, border-color .2s;
}
a.contact-card:hover { background: rgba(184,134,11,.15); border-color: var(--gold); }
.contact-icon { font-size: 1.75rem; margin-bottom: .5rem; }
.contact-card strong { display: block; font-size: .85rem; color: var(--gold); margin-bottom: .25rem; }

/* Footer */
.footer {
  background: #0a1628;
  color: rgba(255,255,255,.85);
  padding: 2rem 0;
  text-align: center;
  font-size: .9rem;
}
.footer-legal { max-width: 640px; margin: .75rem auto; font-size: .8rem; opacity: .85; }
.footer .btn { margin-top: .5rem; }

/* Float WhatsApp */
.float-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  text-indent: -9999px;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: transform .2s;
}
.float-whatsapp:hover { transform: scale(1.08); }
.float-whatsapp::after { content: 'WhatsApp'; text-indent: 0; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-size: 0; }
.float-whatsapp::before { content: ''; position: absolute; width: 24px; height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") center/24px no-repeat; }

/* Responsive – breakpoints 360, 768, 992, 1200 */
@media (max-width: 1200px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
}
@media (max-width: 992px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg-dark); padding: 1rem; gap: 0; }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.75rem; min-height: var(--touch-min); display: flex; align-items: center; }
  .menu-toggle { display: flex; }
  .header-inner .btn-whatsapp { margin-right: 0.5rem; font-size: .8rem; padding: .5rem .75rem; min-height: 44px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
}
@media (max-width: 480px) {
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .container { padding-left: 0.75rem; padding-right: 0.75rem; }
}
@media (max-width: 360px) {
  .hero-title { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  .hero-name { font-size: 1.25rem; }
  .section-title { font-size: clamp(1.5rem, 5vw, 1.75rem); }
}
