/* ==========================================================================
   juliomesa.com - Luxury Executive Criminal Defense Law Firm Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;1,400&display=swap');

:root {
  --bg-obsidian: #030B08;
  --bg-emerald-deep: #071912;
  --bg-emerald-card: #0D281E;
  --bg-emerald-light: #153C2D;
  
  --gold-imperial: #E6C687;
  --gold-primary: #D4AF37;
  --gold-bronze: #9E7D2B;
  --gold-gradient: linear-gradient(135deg, #FFF0CA 0%, #E6C687 40%, #D4AF37 75%, #9E7D2B 100%);
  
  --bg-light: #F8F9FA;
  --bg-white: #FFFFFF;
  
  --text-dark: #0F172A;
  --text-muted: #94A3B8;
  --text-light: #F8FAFC;
  --text-gold: #F3E5AB;
  
  --border-subtle: #1E293B;
  --border-gold: rgba(230, 198, 135, 0.35);
  --border-gold-strong: rgba(212, 175, 55, 0.8);
  
  --font-serif: 'Cinzel', serif;
  --font-body: 'Outfit', sans-serif;
  --font-quote: 'Playfair Display', serif;
  
  --max-width: 1320px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  position: relative;
  touch-action: manipulation;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-obsidian);
  color: var(--text-light);
  font-family: var(--font-body);
  line-height: 1.6;
  padding-bottom: 75px;
}

/* GLOBAL LINK OVERRIDE (PREVENT DEFAULT BLUE LINKS) */
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* BUTTONS & BADGES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none !important;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-imperial-gold {
  background: var(--gold-gradient) !important;
  color: #030B08 !important;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-imperial-gold:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 35px rgba(230, 198, 135, 0.6);
  color: #030B08 !important;
}

.btn-emerald-glass {
  background: rgba(13, 40, 30, 0.8) !important;
  color: #FFFFFF !important;
  border: 1.5px solid var(--gold-primary) !important;
  backdrop-filter: blur(10px);
}

.btn-emerald-glass:hover {
  background: var(--bg-emerald-light) !important;
  border-color: var(--gold-imperial) !important;
  color: var(--gold-imperial) !important;
}

/* TOP EMERGENCY ANNOUNCEMENT BAR */
.top-emergency-bar {
  background: linear-gradient(90deg, #030B08 0%, #0F261E 50%, #030B08 100%);
  border-bottom: 1px solid rgba(230, 198, 135, 0.25);
  font-size: 0.825rem;
  padding: 0.6rem 0;
  color: #E2E8F0;
}

.top-bar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-emergency-bar a {
  color: var(--gold-imperial) !important;
  font-weight: 700;
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 10px #22C55E;
  animation: pulse-green 1.8s infinite;
  margin-right: 0.4rem;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* NAVBAR */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(3, 11, 8, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-gold);
  padding: 1rem 0;
}

.brand-logo-crest {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none !important;
}

.brand-crest-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gold-gradient);
  color: #030B08;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.brand-title-main {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF !important;
  letter-spacing: 1px;
}

.brand-title-sub {
  font-size: 0.675rem;
  font-weight: 700;
  color: var(--gold-imperial) !important;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

.nav-link {
  color: #E2E8F0 !important;
  font-size: 0.925rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: var(--transition);
  position: relative;
  padding: 0.3rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-gradient);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--gold-imperial) !important;
}

.nav-link:hover::after {
  width: 100%;
}

/* HERO SECTION WITH REAL LEGAL BACKGROUND IMAGE */
.hero-luxury-section {
  position: relative;
  padding: 6rem 0 5rem;
  background: linear-gradient(180deg, rgba(3,11,8,0.75) 0%, rgba(3,11,8,0.98) 100%), 
              url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  border-bottom: 1px solid var(--border-gold);
}

.hero-luxury-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  color: #FFFFFF !important;
}

.gold-gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: 1.15rem;
  color: #CBD5E1;
  line-height: 1.7;
  margin-bottom: 2.25rem;
  font-weight: 300;
}

/* FLOATING STATS COUNTER BAR */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(13, 40, 30, 0.7);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  backdrop-filter: blur(12px);
  margin-top: 2rem;
}

.stat-box {
  text-align: center;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-imperial);
}

.stat-label {
  font-size: 0.8rem;
  color: #94A3B8;
  text-transform: uppercase;
  font-weight: 600;
}

/* INTERACTIVE LEGAL RISK EVALUATION FORM */
.risk-assessor-card {
  background: rgba(7, 25, 18, 0.95);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  position: relative;
}

.form-title-tag {
  display: inline-block;
  background: rgba(230, 198, 135, 0.15);
  color: var(--gold-imperial);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  border: 1px solid var(--gold-primary);
}

.form-group-luxury {
  margin-bottom: 1.25rem;
}

.form-label-luxury {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-imperial);
  margin-bottom: 0.4rem;
}

.form-control-luxury {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  background: rgba(3, 11, 8, 0.8);
  border: 1.5px solid var(--border-gold);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control-luxury:focus {
  outline: none;
  border-color: var(--gold-imperial);
  box-shadow: 0 0 15px rgba(230, 198, 135, 0.3);
}

/* VERTICAL VIDEO REEL SHOWCASE SECTION */
.reels-section {
  padding: 5.5rem 0;
  background: #020806;
  border-bottom: 1px solid var(--border-gold);
}

.reels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
}

.reel-card {
  position: relative;
  aspect-ratio: 9/16;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--border-gold);
  background: #000;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 12px 35px rgba(0,0,0,0.6);
}

.reel-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--gold-imperial);
  box-shadow: 0 20px 45px rgba(230, 198, 135, 0.35);
}

.reel-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(3, 11, 8, 0.85);
  border: 1px solid var(--gold-primary);
  color: var(--gold-imperial);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  backdrop-filter: blur(8px);
}

.reel-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #030B08;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
  pointer-events: none;
  transition: var(--transition);
}

.reel-card:hover .reel-play-btn {
  transform: translate(-50%, -50%) scale(1.15);
}

.reel-card-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.25rem 1.25rem;
  background: linear-gradient(0deg, rgba(3,11,8,0.98) 0%, rgba(3,11,8,0) 100%);
}

.reel-card-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-imperial);
  margin-bottom: 0.35rem;
}

/* PRACTICE AREAS SLANTED LUXURY CARDS */
.practice-section {
  padding: 6rem 0;
  background: var(--bg-emerald-deep);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
}

.practice-card {
  background: rgba(13, 40, 30, 0.6);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
}

.practice-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold-gradient);
  opacity: 0;
  transition: var(--transition);
}

.practice-card:hover {
  transform: translateY(-6px);
  background: rgba(21, 60, 45, 0.8);
  border-color: var(--gold-imperial);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.practice-card:hover::before {
  opacity: 1;
}

.practice-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(230, 198, 135, 0.12);
  border: 1.5px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.practice-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF !important;
  margin-bottom: 0.75rem;
}

.practice-desc {
  font-size: 0.95rem;
  color: #CBD5E1;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* STOCK PHOTO LEGAL METHODOLOGY SECTION */
.methodology-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, #030B08 0%, #071912 100%);
  border-top: 1px solid var(--border-gold);
}

.methodology-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.photo-stack {
  position: relative;
}

.photo-main {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 20px;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 20px 50px rgba(0,0,0,0.7);
}

.photo-floating-badge {
  position: absolute;
  bottom: -25px;
  right: -25px;
  background: var(--bg-emerald-card);
  border: 2px solid var(--gold-imperial);
  padding: 1.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

/* FOOTER */
.site-footer {
  background: #020806;
  border-top: 1px solid var(--border-gold);
  padding: 5rem 0 2.5rem;
  color: #94A3B8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.4fr 1fr;
  gap: 4rem;
  margin-bottom: 3.5rem;
}

.footer-col h5 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--gold-imperial) !important;
  margin-bottom: 1.35rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: #94A3B8 !important;
  text-decoration: none !important;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold-imperial) !important;
}

.footer-cities-compact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem 1rem;
  max-height: 240px;
  overflow-y: auto;
}

.footer-cities-compact-grid a {
  font-size: 0.8rem;
  color: #CBD5E1 !important;
  text-decoration: none !important;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.footer-cities-compact-grid a:hover {
  color: var(--gold-imperial) !important;
}

/* MOBILE FLOATING ACTION BAR */
.mobile-bottom-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    height: 70px;
    background: #030B08;
    border-top: 2px solid var(--gold-primary);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0.4rem 0.8rem;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.7);
  }

  .mobile-bar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FFFFFF !important;
    font-size: 0.725rem;
    font-weight: 700;
    gap: 0.15rem;
    flex: 1;
    text-decoration: none !important;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    touch-action: manipulation;
  }
}

/* MOBILE NAVIGATION MODAL DRAWER */
.mobile-nav-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 11, 8, 0.98);
  backdrop-filter: blur(20px);
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 6rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  overflow-y: auto;
}

.mobile-nav-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 992px) {
  .hero-luxury-grid, .methodology-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .hero-headline {
    font-size: 2.3rem;
  }
}


/* PERSISTENT FLOATING WHATSAPP BUTTON (DESKTOP & MOBILE) */
.floating-wa-widget {
  position: fixed;
  bottom: 85px;
  right: 25px;
  z-index: 999999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #25D366;
  color: #FFFFFF !important;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.75rem 1.35rem;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid #FFFFFF;
}

.floating-wa-widget:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.7);
  color: #FFFFFF !important;
}

.floating-wa-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .floating-wa-widget {
    bottom: 80px;
    right: 15px;
    padding: 0.65rem 1rem;
    font-size: 0.8rem;
  }
}
