/* =============================================
   LUCERO LEGAL - DESIGN SYSTEM
   Polished Authority Theme
   ============================================= */

/* Brand Colors */
:root {
  --gold: #C9A227;
  --gold-light: #E4C65B;
  --gold-dark: #9A7B1C;
  --navy: #1A2744;
  --navy-dark: #0F1829;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;
}

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--slate-800);
  line-height: 1.6;
}

.font-serif {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* Utility Colors */
.text-gold {
  color: var(--gold);
}

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

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

.text-navy {
  color: var(--navy);
}

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

/* Buttons */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background-color: var(--gold);
  color: white;
  font-weight: 700;
  border-radius: 0.5rem;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn-gold:hover {
  background-color: var(--gold-dark);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.btn-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background-color: var(--navy);
  color: white;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn-navy:hover {
  background-color: var(--navy-dark);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background-color: transparent;
  color: var(--navy);
  font-weight: 600;
  border: 2px solid var(--slate-300);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background-color: rgba(201, 162, 39, 0.05);
}

/* Badge */
.badge-gold {
  display: inline-block;
  padding: 0.375rem 1rem;
  background-color: rgba(201, 162, 39, 0.1);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 9999px;
  border: 1px solid rgba(201, 162, 39, 0.2);
}

/* Navigation */
.nav-sticky {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero-wrapper {
  position: relative;
  padding: 6rem 0;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-solid {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #243554 100%);
}

.hero-bg-solid::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(201, 162, 39, 0.1) 0%, transparent 50%);
}

.hero-bg-solid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Consultation Card */
.consultation-card {
  background: white;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Card Styles */
.card-base {
  background: white;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.card-base:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.1);
}

/* FAQ Accordion */
.faq-item {
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item[open] {
  border-color: var(--gold);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--slate-900);
  background: white;
  transition: background 0.2s ease;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gold);
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-item[open] .faq-question {
  background: var(--slate-50);
  color: var(--gold);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--slate-600);
  line-height: 1.7;
}

.faq-answer p {
  margin-bottom: 1rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: none;
  /* Hidden on mobile - sticky footer has WhatsApp */
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
  z-index: 40;
}

.floating-whatsapp:hover {
  background: #1fb855;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
  .floating-whatsapp {
    display: flex;
    /* Show on desktop */
  }
}

/* Mobile Sticky Footer CTA */
.sticky-footer-cta {
  background: linear-gradient(to top, white 80%, transparent);
  padding-top: 2rem;
}

/* Prose Styles for Articles */
.prose h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose p {
  color: var(--slate-600);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.prose ul,
.prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose li {
  color: var(--slate-600);
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.prose strong {
  color: var(--slate-900);
  font-weight: 600;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.prose th,
.prose td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--slate-200);
}

.prose th {
  font-weight: 600;
  color: var(--slate-900);
  background: var(--slate-50);
}

.prose td {
  color: var(--slate-600);
}

/* Form Inputs */
input,
select,
textarea {
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--slate-100);
}

::-webkit-scrollbar-thumb {
  background: var(--slate-400);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--slate-500);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Print Styles */
@media print {

  .nav-sticky,
  .floating-whatsapp,
  .sticky-footer-cta,
  footer {
    display: none !important;
  }

  body {
    padding: 0;
  }
}