/* ==============================================
   Nika Appliance Repair - Main Stylesheet
   Version: 1.0
   Last Updated: 2025
   ============================================== */

/* === CSS Variables === */
:root {
  /* Primary Colors */
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #38bdf8;
  
  /* Secondary Colors */
  --secondary: #f59e0b;
  --secondary-dark: #d97706;
  
  /* Status Colors */
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  /* Neutral Colors */
  --dark: #0f172a;
  --gray-900: #1e293b;
  --gray-700: #334155;
  --gray-500: #64748b;
  --gray-300: #cbd5e1;
  --gray-100: #f1f5f9;
  --light: #f8fafc;  --white: #ffffff;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  
  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  
  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;
  
  /* Spacing */  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
}

/* === Reset & Base Styles === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--dark);
  background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--dark);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

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

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

/* === Layout === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}
/* === Components === */

/* Emergency Bar */
.emergency-bar {
  background: var(--danger);
  color: var(--white);
  text-align: center;
  padding: var(--space-2);
  font-weight: var(--font-semibold);
}

.emergency-bar a {
  color: var(--white);
  text-decoration: none;
}

/* Navigation */
header {
  background: var(--white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  padding: var(--space-4) 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--primary);
}
.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-6);
  align-items: center;
}

.desktop-nav {
  display: flex;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  transition: all 0.3s ease;
}

/* Buttons */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-weight: var(--font-semibold);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}
.cta-button.primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
}

.cta-button.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35);
}

.cta-button.secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.cta-button.secondary:hover {
  background: var(--primary);
  color: var(--white);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: var(--space-20) 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero h1 {
  font-size: var(--text-5xl);
  color: var(--white);
  margin-bottom: var(--space-4);
}
.hero-subtitle {
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
  opacity: 0.9;
}

.hero-features {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

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

.check {
  color: var(--success);
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Hero Form */
.hero-form {
  background: var(--white);
  color: var(--dark);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.hero-form h3 {
  margin-bottom: var(--space-2);
}
.hero-form p {
  color: var(--success);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-4);
}

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

.form-group input,
.form-group select {
  width: 100%;
  padding: var(--space-3);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.submit-button {
  width: 100%;
  padding: var(--space-4);
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: all 0.3s ease;
}
.submit-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.form-disclaimer {
  text-align: center;
  color: var(--gray-500);
  font-size: var(--text-sm);
  margin-top: var(--space-4);
}

/* Trust Bar */
.trust-bar {
  background: var(--light);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--gray-300);
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.trust-icon {
  font-size: var(--text-3xl);
}

.trust-text strong {
  display: block;
  color: var(--dark);
}

.trust-text span {
  color: var(--gray-500);
  font-size: var(--text-sm);
}
/* Sections */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--gray-500);
}

/* Services */
.services {
  padding: var(--space-20) 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

.service-card {
  background: var(--light);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-4);
}
.service-card h3 {
  margin-bottom: var(--space-3);
}

.service-card p {
  color: var(--gray-500);
  margin-bottom: var(--space-4);
}

.service-link {
  color: var(--primary);
  font-weight: var(--font-semibold);
}

.service-note {
  background: var(--warning);
  color: var(--white);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  text-align: center;
  margin-top: var(--space-8);
}

/* Process */
.process {
  padding: var(--space-20) 0;
  background: var(--light);
}

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

.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  margin: 0 auto var(--space-4);
}
/* Brands */
.brands {
  padding: var(--space-20) 0;
  background: var(--white);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-4);
}

.brand-item {
  background: var(--light);
  padding: var(--space-6);
  text-align: center;
  border-radius: var(--radius-md);
  font-weight: var(--font-semibold);
  transition: all 0.3s ease;
}

.brand-item:hover {
  background: var(--primary);
  color: var(--white);
}

/* Why Choose */
.why-choose {
  padding: var(--space-20) 0;
  background: var(--light);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
}
.benefit {
  text-align: center;
}

.benefit-icon {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-4);
}

.benefit h3 {
  margin-bottom: var(--space-3);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: var(--space-20) 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: var(--space-4);
}

.cta-section p {
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
}

.cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.urgency-text {
  font-size: var(--text-lg);
  opacity: 0.9;
}
/* Footer */
footer {
  background: var(--dark);
  color: var(--white);
  padding: var(--space-16) 0 var(--space-8);
}

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

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

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

.footer-section ul li {
  margin-bottom: var(--space-2);
}

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

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

.footer-phone {
  font-size: var(--text-xl);
  margin-top: var(--space-4);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: var(--space-4);
  text-align: center;
  color: var(--gray-300);
}
/* Responsive */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .hero h1 {
    font-size: var(--text-4xl);
  }
  
  .trust-items {
    grid-template-columns: 1fr 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
/* FAQ Section */
.faq-section {
  padding: var(--space-20) 0;
  background: var(--white);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-6);
}

.faq-item {
  background: var(--light);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
}

.faq-item h3 {
  margin-bottom: var(--space-3);
  color: var(--primary);
}

/* Service Areas */
.service-areas {
  padding: var(--space-20) 0;
  background: var(--light);
}

.areas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: var(--space-8);
  align-items: start;
}

.area-column h3 {
  margin-bottom: var(--space-4);
  color: var(--primary);
}

.area-column ul {
  list-style: none;
}

.area-column li {
  margin-bottom: var(--space-2);
}

.service-map img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
/* Floating Buttons */
.floating-buttons {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  z-index: 999;
}

.fab {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 24px;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.fab.phone {
  background: var(--success);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100%;
  background: var(--white);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 1001;
  overflow-y: auto;
}

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

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

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
}

.mobile-nav-links {
  list-style: none;
  padding: var(--space-4);
}

.mobile-nav-links li {
  margin-bottom: var(--space-3);
}

.mobile-nav-links a {
  display: block;
  padding: var(--space-3);
  color: var(--dark);
  text-decoration: none;
  font-weight: var(--font-medium);
}

.mobile-cta {
  margin-top: var(--space-4);
}

.full-width {
  width: 100%;
}

/* Additional responsive updates */
@media (max-width: 768px) {
  .areas-grid {
    grid-template-columns: 1fr;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .floating-buttons {
    bottom: var(--space-4);
    right: var(--space-4);
  }
}