/*
Theme Name: David Allan Advocacia
Theme URI: https://davidallan.adv.br
Author: David Allan
Author URI: https://davidallan.adv.br
Description: Landing page profissional para advocacia criminal - David Allan Consultoria & Advocacia Criminal.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: david-allan
*/

/* ========================================
   RESET & BASE
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #0A192F;
  --gold: #C5A059;
  --gold-dark: #B48F48;
  --gold-light: #D4B574;
  --off-white: #FAFAFA;
  --foreground: #111827;
  --text-body: #4B5563;
  --muted: #9CA3AF;
  --border: #E5E7EB;
  --card-shadow: 0 0 0 1px rgba(10,25,47,0.04), 0 2px 4px rgba(10,25,47,0.04), 0 12px 24px -4px rgba(10,25,47,0.06);
  --shadow-elevated: 0 4px 6px -1px rgba(10,25,47,0.06), 0 20px 40px -8px rgba(10,25,47,0.1);
  --radius: 0.5rem;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--off-white);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', Georgia, serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

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

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

/* ========================================
   UTILITIES
   ======================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 200ms ease;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.95);
}

.btn-gold {
  background-color: var(--gold);
  color: #fff;
  box-shadow: 0 4px 14px rgba(197, 160, 89, 0.3);
}

.btn-gold:hover {
  background-color: var(--gold-dark);
}

.btn-navy {
  background-color: var(--navy);
  color: #fff;
}

.btn-navy:hover {
  background-color: #0d2240;
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* ========================================
   MICROCOPY
   ======================================== */
.microcopy {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.label-gold {
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 1.25rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .logo {
  height: 3rem;
}

.site-header .logo-text,
.site-footer .logo-text {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--foreground);
  text-decoration: none;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .site-header .logo {
    height: 4rem;
  }
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,25,47,0.95), rgba(10,25,47,0.80), rgba(10,25,47,0.40));
}

@media (min-width: 768px) {
  .hero__overlay {
    background: linear-gradient(to right, rgba(10,25,47,0.90), rgba(10,25,47,0.70), transparent);
  }
}

.hero__content {
  position: relative;
  z-index: 10;
  padding-top: 8rem;
  padding-bottom: 5rem;
  max-width: 42rem;
}

.hero__microlabel {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: 2.25rem;
  font-weight: 500;
  color: #fff;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: 4.5rem;
  }
}

.hero__subtitle {
  margin-top: 1.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 32rem;
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .hero__subtitle {
    font-size: 1.25rem;
  }
}

.hero__cta {
  margin-top: 2.5rem;
}

/* ========================================
   PAIN POINTS
   ======================================== */
.pain-points {
  padding: 5rem 0;
  background: var(--off-white);
}

@media (min-width: 768px) {
  .pain-points {
    padding: 7rem 0;
  }
}

.pain-points__inner {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.pain-points__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .pain-points__list {
    gap: 1.5rem;
  }
}

.pain-points__item {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--foreground);
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .pain-points__item {
    font-size: 1.875rem;
  }
}

@media (min-width: 1024px) {
  .pain-points__item {
    font-size: 2.25rem;
  }
}

.pain-points__bullet {
  color: var(--gold);
  margin-right: 0.75rem;
}

.pain-points__cta {
  margin-top: 3rem;
}

/* ========================================
   ABOUT
   ======================================== */
.about {
  padding: 5rem 0;
  background: #F3F4F6;
}

@media (min-width: 768px) {
  .about {
    padding: 7rem 0;
  }
}

.about__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.about__image {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}

.about__image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.about__title {
  font-size: 1.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .about__title {
    font-size: 2.25rem;
  }
}

.about__text {
  color: var(--text-body);
  line-height: 1.7;
  text-wrap: pretty;
}

.about__text p + p {
  margin-top: 1rem;
}

.about__sigilo {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.about__sigilo-line {
  width: 2rem;
  height: 1px;
  background: var(--gold);
}

/* ========================================
   SERVICES
   ======================================== */
.services {
  padding: 5rem 0;
  background: var(--off-white);
}

@media (min-width: 768px) {
  .services {
    padding: 7rem 0;
  }
}

.services__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.services__title {
  font-size: 1.875rem;
  font-weight: 500;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .services__title {
    font-size: 2.25rem;
  }
}

.services__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: #fff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--card-shadow);
  transition: box-shadow 300ms ease;
}

.service-card:hover {
  box-shadow: var(--shadow-elevated);
}

.service-card__icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
  stroke-width: 1.5;
}

.service-card__title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.service-card__desc {
  color: var(--text-body);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ========================================
   AUTHORITY
   ======================================== */
.authority {
  padding: 5rem 0;
  background: var(--navy);
}

@media (min-width: 768px) {
  .authority {
    padding: 7rem 0;
  }
}

.authority__inner {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.authority__line {
  width: 4rem;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 2.5rem;
}

.authority__title {
  font-size: 1.875rem;
  font-weight: 500;
  color: #fff;
  text-wrap: balance;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .authority__title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .authority__title {
    font-size: 3rem;
  }
}

.authority__text {
  margin-top: 1.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 1.125rem;
  line-height: 1.7;
  text-wrap: pretty;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   PROCESS
   ======================================== */
.process {
  padding: 5rem 0;
  background: #F3F4F6;
}

@media (min-width: 768px) {
  .process {
    padding: 7rem 0;
  }
}

.process__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.process__title {
  font-size: 1.875rem;
  font-weight: 500;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .process__title {
    font-size: 2.25rem;
  }
}

.process__grid {
  display: grid;
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .process__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.process-step {
  text-align: center;
}

.process-step__circle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(10,25,47,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.process-step__circle svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--navy);
  stroke-width: 1.5;
}

.process-step__num {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.process-step__title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--foreground);
  margin: 0.5rem 0;
}

.process-step__desc {
  color: var(--text-body);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ========================================
   FINAL CTA
   ======================================== */
.final-cta {
  padding: 5rem 0;
  background: var(--off-white);
}

@media (min-width: 768px) {
  .final-cta {
    padding: 7rem 0;
  }
}

.final-cta__inner {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.final-cta__title {
  font-size: 1.875rem;
  font-weight: 500;
  color: var(--foreground);
  text-wrap: balance;
}

@media (min-width: 768px) {
  .final-cta__title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .final-cta__title {
    font-size: 3rem;
  }
}

.final-cta__text {
  margin-top: 1.25rem;
  color: var(--text-body);
  font-size: 1.125rem;
  line-height: 1.7;
}

.final-cta__btn {
  margin-top: 2.5rem;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  padding: 3rem 0;
  background: var(--navy);
}

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

.site-footer .logo {
  height: 4rem;
}

@media (min-width: 768px) {
  .site-footer .logo {
    height: 5rem;
  }
}

.site-footer__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: color 200ms ease;
}

.site-footer__whatsapp:hover {
  color: var(--gold);
}

.site-footer__whatsapp svg {
  width: 1rem;
  height: 1rem;
}

.site-footer__divider {
  width: 3rem;
  height: 1px;
  background: rgba(197,160,89,0.3);
}

.site-footer__copy {
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  text-align: center;
}

/* ========================================
   WHATSAPP FLOAT
   ======================================== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  background: #25D366;
  padding: 1rem;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 200ms ease;
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #fff;
}
