/*
Theme Name: Luana Carvalho Advocacia
Theme URI: https://luanacarvalho.adv.br
Author: Luana Carvalho
Author URI: https://luanacarvalho.adv.br
Description: Tema personalizado para o site institucional da Dra. Luana Carvalho - Advocacia Criminal
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: luana-carvalho
*/

/* ===== RESET & BASE ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Raleway:wght@300;400;500;600;700&display=swap');

:root {
  --background: hsl(220, 20%, 7%);
  --foreground: hsl(40, 20%, 90%);
  --card: hsl(220, 18%, 10%);
  --card-foreground: hsl(40, 20%, 90%);
  --primary: hsl(40, 60%, 55%);
  --primary-foreground: hsl(220, 20%, 7%);
  --secondary: hsl(220, 15%, 15%);
  --secondary-foreground: hsl(40, 20%, 85%);
  --muted: hsl(220, 15%, 13%);
  --muted-foreground: hsl(220, 10%, 55%);
  --accent: hsl(40, 50%, 45%);
  --border: hsl(220, 15%, 18%);
  --gold-glow: hsl(40, 70%, 50%);
  --radius: 0.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Raleway', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== UTILITIES ===== */
.text-gold-gradient {
  background-image: linear-gradient(135deg, hsl(40, 60%, 55%), hsl(40, 80%, 70%), hsl(40, 60%, 55%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-gold {
  box-shadow: 0 0 40px -10px hsla(40, 60%, 55%, 0.2);
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: hsla(220, 20%, 7%, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-header .logo {
  display: flex;
  flex-direction: column;
}

.site-header .logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--foreground);
}

.site-header .logo-subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.main-nav a:hover {
  color: var(--primary);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

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

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--foreground);
  padding: 1rem 2rem;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--foreground);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .main-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background);
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    gap: 1rem;
  }
}

/* ===== 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-1 {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--background), hsla(220, 20%, 7%, 0.85), hsla(220, 20%, 7%, 0.4));
}

.hero-overlay-2 {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--background), transparent, hsla(220, 20%, 7%, 0.5));
}

.hero-content {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 5rem;
  max-width: 640px;
}

.hero-label {
  font-size: 0.875rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero-line {
  width: 80px;
  height: 2px;
  background-color: var(--primary);
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 5rem;
  }
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 32rem;
}

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

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-buttons .btn-primary {
  padding: 1rem 2rem;
  font-weight: 600;
  letter-spacing: 0.15em;
}

/* ===== SECTIONS COMMON ===== */
.section {
  padding: 6rem 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  font-size: 0.875rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 500;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-divider {
  width: 80px;
  height: 2px;
  background-color: var(--primary);
  margin: 1.5rem auto 0;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

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

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

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: all 0.5s ease;
}

.service-card:hover {
  border-color: hsla(40, 60%, 55%, 0.4);
  box-shadow: 0 0 40px -10px hsla(40, 60%, 55%, 0.2);
}

.service-card .icon {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ===== ABOUT ===== */
.about {
  background-color: var(--card);
}

.about-content {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 4rem;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}

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

.highlight-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: hsla(220, 20%, 7%, 0.5);
}

.highlight-card .icon {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.highlight-card span {
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ===== CONTACT ===== */
.contact-description {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  max-width: 32rem;
  margin: 2rem auto 0;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 42rem;
  margin: 0 auto;
}

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

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  transition: all 0.3s ease;
}

.contact-card:hover {
  border-color: hsla(40, 60%, 55%, 0.4);
  box-shadow: 0 0 40px -10px hsla(40, 60%, 55%, 0.2);
}

.contact-card .icon {
  color: var(--primary);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-card .title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-card .subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .site-footer .container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-brand {
    align-items: flex-start;
  }
}

.footer-brand .name {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 600;
}

.footer-brand .tagline {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.site-footer .copyright {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: center;
}

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.75rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
  color: white;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}
