/* 1-2-3-Locksmith Near Me - Modern Minimalism Premium Design System */

/* Design System Tokens Implementation */

/* Color System - Professional Trust (Blue + Gold + Neutral) */
:root {
  /* Primary Brand Colors */
  --primary-50: #E6F0FF;
  --primary-500: #0066FF;
  --primary-600: #0052CC;
  --primary-900: #003D99;
  
  /* Accent Gold */
  --accent-400: #FDB022;
  --accent-600: #D4920D;
  
  /* Neutrals */
  --neutral-50: #FAFAFA;
  --neutral-100: #F5F5F5;
  --neutral-200: #E5E5E5;
  --neutral-500: #A3A3A3;
  --neutral-700: #404040;
  --neutral-900: #171717;
  
  /* Semantic Colors */
  --success-600: #16A34A;
  --warning-600: #CA8A04;
  --error-600: #DC2626;
  
  /* Backgrounds */
  --bg-page: var(--neutral-50);
  --bg-surface: var(--neutral-100);
  --bg-white: #FFFFFF;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  
  /* Type Scale (Desktop) */
  --hero: 72px;
  --hero-mobile: 48px;
  --title: 48px;
  --title-mobile: 32px;
  --subtitle: 36px;
  --subtitle-mobile: 24px;
  --body-large: 20px;
  --body: 18px;
  --body-small: 16px;
  --caption: 14px;
  --micro: 12px;
  
  /* Font Weights */
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Line Heights */
  --lh-tight: 1.1;
  --lh-snug: 1.3;
  --lh-normal: 1.5;
  --lh-relaxed: 1.6;
  
  /* Letter Spacing */
  --ls-tight: -0.02em;
  --ls-snug: -0.01em;
  --ls-normal: 0;
  --ls-wide: 0.01em;
  --ls-wider: 0.02em;
  
  /* Spacing (8-Point Grid) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;
  --space-16: 128px;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-card: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-modal: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
  --shadow-nav: 0 1px 3px rgba(0,0,0,0.1);
  
  /* Animations */
  --duration-fast: 200ms;
  --duration-base: 250ms;
  --duration-slow: 300ms;
  --duration-page: 400ms;
  --easing-out: ease-out;
  --easing-in-out: ease-in-out;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--body);
  font-weight: var(--font-regular);
  line-height: var(--lh-normal);
  color: var(--neutral-900);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-bold);
  line-height: var(--lh-tight);
  color: var(--neutral-900);
  margin-bottom: var(--space-3);
}

h1 { font-size: var(--hero); }
h2 { font-size: var(--title); }
h3 { font-size: var(--subtitle); }
h4, h5, h6 { font-size: var(--body-large); }

h1 { letter-spacing: var(--ls-tight); }
h2 { letter-spacing: var(--ls-snug); }
h3, h4 { letter-spacing: var(--ls-normal); }

p {
  margin-bottom: var(--space-2);
  color: var(--neutral-700);
}

/* Mobile Typography Adjustments */
@media (max-width: 767px) {
  h1 { font-size: var(--hero-mobile); }
  h2 { font-size: var(--title-mobile); }
  h3 { font-size: var(--subtitle-mobile); }
  body { font-size: 18px; } /* Increased for mobile readability */
}

/* Links */
a {
  color: var(--primary-500);
  text-decoration: none;
  transition: color var(--duration-fast) var(--easing-out);
}

a:hover {
  color: var(--primary-600);
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  height: 56px;
  min-width: 200px;
  font-size: var(--body);
  font-weight: var(--font-semibold);
  text-decoration: none;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--duration-base) var(--easing-out);
  gap: var(--space-1);
}

.btn-primary {
  background: var(--primary-600);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  color: white;
  text-decoration: none;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: white;
  color: var(--neutral-700);
  border: 2px solid var(--neutral-200);
}

.btn-secondary:hover {
  background: var(--neutral-50);
  border-color: var(--primary-500);
  color: var(--primary-600);
  text-decoration: none;
}

.btn-large {
  height: 64px;
  font-size: 20px;
}

.btn-large-mobile {
  height: 72px;
  font-size: 20px;
}

/* Container and Grid */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (max-width: 767px) {
  .container {
    padding: 0 var(--space-2);
  }
}

.grid {
  display: grid;
  gap: var(--space-3);
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-1 { grid-template-columns: 1fr; }

@media (max-width: 1023px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; gap: var(--space-2); }
}

/* Section Spacing */
.section {
  padding: var(--space-12) 0;
}

.section-sm {
  padding: var(--space-8) 0;
}

.section-lg {
  padding: var(--space-16) 0;
}

/* Cards */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
  transition: all var(--duration-base) var(--easing-out);
}

.card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-card-hover);
}

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

.card-service h3 {
  margin-bottom: var(--space-1);
  margin-top: var(--space-2);
}

.card-service p {
  margin-bottom: var(--space-2);
}

/* Trust Badges */
.trust-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  height: 40px;
  background: var(--bg-white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  font-size: var(--micro);
  font-weight: var(--font-medium);
  color: var(--neutral-700);
  gap: var(--space-1);
}

.trust-badge-primary {
  background: var(--primary-50);
  border-color: var(--primary-500);
  color: var(--primary-900);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  align-items: center;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-900) 100%);
  color: white;
  padding: var(--space-12) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: white;
  margin-bottom: var(--space-3);
}

.hero p {
  font-size: var(--body-large);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-4);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta .btn {
  min-width: 180px;
}

/* Mobile Hero Adjustments */
@media (max-width: 767px) {
  .hero {
    padding: var(--space-8) 0;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-cta .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* Navigation */
.nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--neutral-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--duration-base) var(--easing-out);
}

.nav.scrolled {
  box-shadow: var(--shadow-nav);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-4);
  align-items: center;
}

.nav-links a {
  color: var(--neutral-700);
  font-weight: var(--font-medium);
  transition: color var(--duration-fast) var(--easing-out);
}

.nav-links a:hover {
  color: var(--primary-500);
  text-decoration: none;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Mobile Navigation */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--neutral-900);
  cursor: pointer;
}

@media (max-width: 767px) {
  .nav-content {
    height: 64px;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .nav-cta .btn {
    height: 48px;
    padding: 8px 16px;
    font-size: var(--caption);
    min-width: auto;
  }
}

/* Mobile Menu Drawer */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--neutral-50);
  z-index: 2000;
  transition: right var(--duration-slow) var(--easing-out);
  padding: var(--space-4);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu ul {
  list-style: none;
  padding-top: var(--space-8);
}

.mobile-menu li {
  margin-bottom: var(--space-2);
}

.mobile-menu a {
  display: block;
  padding: var(--space-2) 0;
  font-size: var(--body-large);
  color: var(--neutral-900);
  border-bottom: 1px solid var(--neutral-200);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* Emergency Hero (Simplified) */
.hero-emergency {
  background: var(--error-600);
  color: white;
  text-align: center;
  padding: var(--space-8) 0;
}

.hero-emergency h1 {
  color: white;
  margin-bottom: var(--space-2);
}

.hero-emergency p {
  font-size: var(--body-large);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-4);
}

/* Service List */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-4);
}

.service-item {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  padding: var(--space-3);
}

.service-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--primary-500);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* Pricing Section */
.pricing-panel {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-4) 0;
}

.pricing-example {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--neutral-200);
}

.pricing-example:last-child {
  border-bottom: none;
}

.price {
  font-weight: var(--font-semibold);
  color: var(--primary-500);
  font-size: var(--body-large);
}

/* Testimonial Cards */
.testimonial {
  background: var(--bg-white);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: var(--space-3);
  font-size: 60px;
  color: var(--accent-400);
  line-height: 1;
}

.testimonial-text {
  font-size: var(--body-large);
  color: var(--neutral-900);
  margin-bottom: var(--space-3);
  font-style: italic;
}

.testimonial-author {
  font-weight: var(--font-medium);
  color: var(--neutral-700);
  margin-bottom: var(--space-1);
}

.testimonial-location {
  font-size: var(--caption);
  color: var(--neutral-500);
}

.stars {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

.star {
  color: var(--accent-400);
}

/* FAQ */
.faq-item {
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
}

.faq-question {
  padding: var(--space-3);
  background: var(--bg-white);
  border: none;
  width: 100%;
  text-align: left;
  font-weight: var(--font-medium);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 var(--space-3);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-base) var(--easing-out);
}

.faq-item.active .faq-answer {
  padding: var(--space-3);
  max-height: 200px;
}

/* Forms */
.form-group {
  margin-bottom: var(--space-3);
}

.form-label {
  display: block;
  margin-bottom: var(--space-1);
  font-weight: var(--font-medium);
  color: var(--neutral-700);
  font-size: var(--body-small);
}

.form-input {
  width: 100%;
  height: 56px;
  padding: 16px;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  font-size: var(--body);
  background: white;
  transition: border-color var(--duration-fast) var(--easing-out);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 2px var(--primary-50);
}

.form-input.error {
  border-color: var(--error-600);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Map Container */
.map-container {
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* Footer */
.footer {
  background: var(--neutral-900);
  color: var(--neutral-100);
  padding: var(--space-8) 0 var(--space-4);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.footer-section h3 {
  color: white;
  margin-bottom: var(--space-3);
}

.footer-section p,
.footer-section li {
  color: var(--neutral-500);
  margin-bottom: var(--space-1);
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: var(--neutral-500);
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--primary-400);
}

.footer-bottom {
  border-top: 1px solid var(--neutral-700);
  padding-top: var(--space-4);
  text-align: center;
  color: var(--neutral-500);
  font-size: var(--caption);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }

.hidden { display: none; }
.visible { display: block; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
}

.img-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--duration-page) var(--easing-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Navigation Dropdown Styles - Added for Resources Dropdown */
.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-4);
  align-items: center;
}

.nav-links a {
  color: var(--neutral-700);
  font-weight: var(--font-medium);
  transition: color var(--duration-fast) var(--easing-out);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--primary-500);
  text-decoration: none;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-toggle::after {
  content: '▼';
  font-size: 10px;
  margin-left: 5px;
  transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-card-hover);
  padding: 16px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  z-index: 1000;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 8px 12px;
  color: var(--neutral-700);
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: var(--body-small);
}

.dropdown-menu a:hover {
  background: var(--neutral-100);
  color: var(--primary-500);
  text-decoration: none;
}

/* Mobile Navigation */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: white;
  transition: right 0.3s ease;
  z-index: 1001;
  padding: 20px;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--neutral-200);
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu ul li {
  margin-bottom: 15px;
}

.mobile-menu ul li a {
  color: var(--neutral-700);
  text-decoration: none;
  font-size: var(--body);
  padding: 8px 0;
  display: block;
}

.mobile-menu ul li a:hover {
  color: var(--primary-500);
}

/* Mobile Dropdown Styles */
@media (max-width: 767px) {
  .nav-links {
    display: none;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 8px 0;
    background: transparent;
  }
  
  .dropdown .dropdown-toggle::after {
    display: none;
  }
  
  .dropdown-menu a {
    padding-left: 20px;
    font-size: var(--body);
  }
}