/* ==========================================================================
   TOP EMERGENCY LOCKSMITH LLC - HIGH-END DESIGN SYSTEM & GLOBAL STYLES
   Bulletproof Mobile-First CSS with Zero-Overflow & Safe Grid Columns
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Architectural Color Palette */
  --slate-950: #070D18;
  --slate-900: #0B1320;
  --slate-800: #152238;
  --slate-700: #243550;
  --slate-600: #435570;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50:  #F8FAFC;

  /* Burnished Amber / Gold Accents */
  --gold-600:  #D97706;
  --gold-500:  #F59E0B;
  --gold-400:  #FBBF24;
  --gold-100:  #FEF3C7;
  --gold-50:   #FFFBEB;

  /* Status Colors */
  --emerald-500: #10B981;
  --emerald-50:  #ECFDF5;
  --rose-500:    #EF4444;

  /* Light Theme Surfaces */
  --bg-main: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --border-subtle: #E2E8F0;
  --border-card: rgba(226, 232, 240, 0.8);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows */
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 24px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px -6px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 20px 48px -10px rgba(15, 23, 42, 0.16);

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-3xl: 32px;
  --radius-full: 9999px;
}

/* --------------------------------------------------------------------------
   2. Absolute Reset & Zero-Overflow Foundation
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box !important;
  margin: 0;
  padding: 0;
  min-width: 0;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--slate-900);
  background-color: var(--bg-main);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
}

body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  position: relative;
  min-height: 100vh;
  padding-bottom: 74px;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

img, svg, video, iframe {
  max-width: 100% !important;
  height: auto;
  display: block;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: 16px; /* iOS auto-zoom prevention */
  color: inherit;
  border: none;
  background: none;
  box-sizing: border-box !important;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   3. Container & Layout Grid
   -------------------------------------------------------------------------- */
.container {
  width: 100% !important;
  max-width: 1280px !important;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box !important;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.section {
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
  width: 100%;
}

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

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2rem auto;
  width: 100%;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 3rem;
  }
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--gold-50);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-600);
  margin-bottom: 0.65rem;
}

.section-pill.on-dark {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--gold-400);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  word-wrap: break-word;
}

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

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

.section-description {
  font-size: 0.95rem;
  color: var(--slate-600);
  line-height: 1.55;
}

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

/* --------------------------------------------------------------------------
   4. Buttons & Interactive Links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-xl);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box !important;
  text-align: center;
  max-width: 100%;
}

.btn-primary {
  background: var(--gold-500);
  color: var(--slate-950);
  border: 1px solid var(--gold-400);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
  background: var(--gold-400);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-outline {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #FFFFFF;
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.825rem;
  border-radius: var(--radius-lg);
}

.btn-lg {
  padding: 0.95rem 1.6rem;
  font-size: 1rem;
}

.btn-full {
  width: 100% !important;
}

/* --------------------------------------------------------------------------
   5. Top Emergency Header & Navigation
   -------------------------------------------------------------------------- */
.header-top-banner {
  background: var(--slate-950);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.4rem 0;
  font-size: 0.775rem;
  color: var(--slate-300);
  position: relative;
  z-index: 60;
  width: 100%;
}

.header-top-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

@media (max-width: 767px) {
  .header-top-content {
    justify-content: center;
    text-align: center;
  }
  .header-top-right {
    display: none !important;
  }
}

.header-top-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .header-top-left {
    justify-content: center;
  }
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--emerald-500);
  font-weight: 700;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-500);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseLive 2s infinite;
  flex-shrink: 0;
}

@keyframes pulseLive {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 50;
  transition: all 0.2s ease;
  width: 100% !important;
}

.header-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  width: 100%;
}

@media (min-width: 768px) {
  .header-nav-container {
    height: 72px;
  }
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo img {
  height: 36px;
  width: auto;
  max-width: 200px;
  display: block;
}

@media (min-width: 640px) {
  .brand-logo img {
    height: 42px;
    max-width: 240px;
  }
}

@media (min-width: 1024px) {
  .brand-logo img {
    height: 46px;
    max-width: 280px;
  }
}

.nav-links {
  display: none;
  list-style: none;
  align-items: center;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--slate-700);
  transition: color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.25rem;
}

.nav-link:hover {
  color: var(--gold-600);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 260px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
  transition: all 0.15s ease;
}

.dropdown-item:hover {
  background: var(--slate-50);
  color: var(--gold-600);
}

.dropdown-item-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--gold-50);
  color: var(--gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.header-phone-link {
  display: none;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.925rem;
  font-weight: 800;
  color: var(--slate-900);
  white-space: nowrap !important;
}

@media (min-width: 768px) {
  .header-phone-link {
    display: inline-flex;
  }
}

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-lg);
  background: var(--slate-100);
  color: var(--slate-900);
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   6. Mobile Slide-Over Navigation Drawer
   -------------------------------------------------------------------------- */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 19, 32, 0.65);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background: #FFFFFF;
  z-index: 999;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-sizing: border-box !important;
}

.mobile-nav-drawer.active {
  transform: translateX(0);
}

.drawer-close-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-700);
  cursor: pointer;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-800);
  border-bottom: 1px solid var(--slate-100);
}

/* --------------------------------------------------------------------------
   7. High-Impact Asymmetric Hero Section
   -------------------------------------------------------------------------- */
.hero-bespoke {
  background: radial-gradient(circle at 50% 0%, #1e293b 0%, var(--slate-950) 85%);
  color: #FFFFFF;
  padding: 2.25rem 0 2.75rem 0;
  position: relative;
  overflow: hidden;
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-bespoke {
    padding: 4.5rem 0 4rem 0;
  }
}

.hero-grid-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-grid-split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3.5rem;
  }
}

.hero-editorial-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-full);
  color: var(--gold-400);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  max-width: 100%;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  word-wrap: break-word;
}

@media (min-width: 640px) {
  .hero-headline {
    font-size: 2.65rem;
  }
}

@media (min-width: 1024px) {
  .hero-headline {
    font-size: 3.25rem;
  }
}

.text-gold {
  color: var(--gold-400);
}

.hero-subtext {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--slate-300);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-subtext {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
}

.hero-action-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
  width: 100%;
}

@media (min-width: 640px) {
  .hero-action-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
  }
}

.hero-action-row .btn {
  width: 100%;
}

@media (min-width: 640px) {
  .hero-action-row .btn {
    width: auto;
  }
}

.hero-trust-proof {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack-item {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--slate-950);
  margin-left: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #FFFFFF;
}

.avatar-stack-item:first-child {
  margin-left: 0;
}

.trust-proof-text {
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
}

.trust-proof-text strong {
  color: var(--gold-400);
}

.trust-proof-text span {
  color: var(--slate-400);
}

/* --------------------------------------------------------------------------
   8. "The Top Emergency Standard" Trust Bar
   -------------------------------------------------------------------------- */
.standard-bar-section {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
  padding: 2rem 0;
  width: 100%;
}

.standard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.15rem;
  width: 100%;
}

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

@media (min-width: 1024px) {
  .standard-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.standard-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.standard-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: var(--gold-50);
  color: var(--gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.standard-item h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 0.2rem;
}

.standard-item p {
  font-size: 0.8rem;
  color: var(--slate-600);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   9. Sticky Mobile Action Dock
   -------------------------------------------------------------------------- */
.mobile-bottom-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw !important;
  background: rgba(11, 19, 32, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.65rem 0.85rem;
  display: flex;
  gap: 0.5rem;
  z-index: 900;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  box-sizing: border-box !important;
}

@media (min-width: 768px) {
  .mobile-bottom-dock {
    display: none !important;
  }
}

.dock-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-lg);
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap !important;
  text-align: center;
}

.dock-btn-call {
  background: var(--gold-500);
  color: var(--slate-950);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
}

.dock-btn-sms {
  background: var(--slate-900);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.dock-btn-sms:hover {
  background: var(--slate-800);
  border-color: var(--gold-500);
}

/* --------------------------------------------------------------------------
   10. Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--slate-950);
  color: #FFFFFF;
  padding: 3rem 0 1.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  width: 100%;
}

.footer-grid-luxury {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.25rem;
  margin-bottom: 2.5rem;
  width: 100%;
}

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

@media (min-width: 1024px) {
  .footer-grid-luxury {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  }
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 1.15rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-link {
  color: var(--slate-400);
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--gold-400);
}

.footer-bottom-bar {
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
  text-align: center;
  font-size: 0.825rem;
  color: var(--slate-500);
  width: 100%;
}

@media (min-width: 768px) {
  .footer-bottom-bar {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
