/*
Theme Name: Mariley Xavier Advocacia
Theme URI: https://marileyx.adv.br
Author: Mariley Xavier
Author URI: https://marileyx.adv.br
Description: Tema profissional para escritório de advocacia com design elegante e dourado
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
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: mariley-xavier
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */

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

:root {
  /* Colors - Gold Theme */
  --gold: #D4AF37;
  --gold-light: #F4E4B4;
  --gold-dark: #B8941F;
  
  --primary: #D4AF37;
  --primary-foreground: #0A0A0A;
  
  --background: #FFFFFF;
  --foreground: #0A0A0A;
  
  --secondary: #F8F8F6;
  --secondary-foreground: #1A1A1A;
  
  --muted: #F1F1EF;
  --muted-foreground: #6B6B6B;
  
  --border: #E5E5E3;
  
  /* Shadows */
  --shadow-elegant: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-gold: 0 8px 30px rgba(212, 175, 55, 0.25);
  
  /* Typography */
  --font-playfair: 'Playfair Display', serif;
  --font-inter: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-playfair);
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--gold-dark);
}

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

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

.section-padding {
  padding: 6rem 0;
}

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

.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }

/* Gold Utilities */
.text-gold {
  color: var(--gold);
}

.bg-gold {
  background-color: var(--gold);
}

.border-gold {
  border-color: var(--gold);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
  }
}

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

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.6s ease-out forwards;
}

/* Stagger animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Initial hidden state for animated elements */
.animate-on-scroll {
  opacity: 0;
}

.animate-on-scroll.is-visible {
  opacity: 1;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-inter);
}

.btn-primary {
  background-color: var(--gold);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.35);
}

.btn-outline {
  background-color: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

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

/* ============================================
   CARDS
   ============================================ */

.card {
  background-color: var(--background);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow-elegant);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.card:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-5px);
  border-color: var(--gold);
}

/* ============================================
   SECTION DIVIDERS
   ============================================ */

.section-divider {
  width: 80px;
  height: 4px;
  background-color: var(--gold);
  margin: 1rem auto;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  
  .section-padding {
    padding: 4rem 0;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
  }
}