/* Electronics-r-us - Professional Appliance Repair Theme */
/* CSS Framework: Pure.css + Custom Styles */

/* Import Pure.css Framework */
@import url('https://unpkg.com/purecss@2.0.6/build/pure-min.css');
@import url('https://unpkg.com/purecss@2.0.6/build/grids-responsive-min.css');

/* CSS Variables for Consistent Design System */
:root {
  /* Primary Color Palette - Professional Blues & Greys */
  --primary-blue: #2563eb;
  --primary-blue-dark: #1d4ed8;
  --primary-blue-light: #3b82f6;
  --secondary-grey: #64748b;
  --accent-orange: #f97316;
  
  /* Neutral Palette */
  --white: #ffffff;
  --light-grey: #f8fafc;
  --medium-grey: #e2e8f0;
  --dark-grey: #334155;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  
  /* Spacing System */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Typography */
  --font-primary: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 600;
  --font-weight-extrabold: 700;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Global Typography & Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

/* Links & Interactive Elements */
a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

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

/* Header Styles */
.appliance-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--medium-grey);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.appliance-logo {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--primary-blue);
  text-decoration: none;
}

.appliance-logo:hover {
  color: var(--primary-blue-dark);
  text-decoration: none;
}

.main-navigation {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-lg);
}

.main-navigation a {
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.main-navigation a:hover {
  background-color: var(--light-grey);
  color: var(--primary-blue);
  text-decoration: none;
}

.main-navigation a.current {
  background-color: var(--primary-blue);
  color: var(--white);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: var(--space-xs);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  color: var(--white);
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  text-align: center;
  /* background-color: rgba(0, 0, 0, 0.3); */
}

.hero-title {
  font-size: 3rem;
  font-weight: var(--font-weight-extrabold);
  margin-bottom: var(--space-md);
  color: var(--white);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--space-xl);
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-description {
  font-size: 1.125rem;
  margin-bottom: var(--space-2xl);
  color: white;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Hero Buttons Container */
.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  min-height: 44px;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-orange);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: #ea580c;
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-blue);
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
  background-color: var(--primary-blue);
  color: var(--white);
  text-decoration: none;
}

/* Content Sections */
.content-section {
  padding: var(--space-3xl) 0;
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--text-primary);
}

.section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Card Components */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--medium-grey);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-blue-light);
}

/* Service Image Styling */
.service-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.card-title {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.card-description {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.card-price {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--accent-orange);
  margin-bottom: var(--space-md);
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.feature-item {
  text-align: center;
  padding: var(--space-lg);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--white);
  font-size: 1.5rem;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.testimonial-card {
  background: var(--light-grey);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border-left: 4px solid var(--primary-blue);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

.testimonial-author {
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
}

/* Contact Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--medium-grey);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--medium-grey);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: border-color 0.2s ease;
  background-color: var(--white);
  color: var(--text-primary);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

/* FAQ Components */
.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-md);
}

.faq-question {
  padding: var(--space-lg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1.125rem;
  color: var(--text-primary);
}

.faq-question:hover {
  background-color: var(--light-grey);
}

.faq-icon {
  color: var(--primary-blue);
  font-weight: var(--font-weight-bold);
  font-size: 1.25rem;
  min-width: 24px;
  text-align: center;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--light-grey);
}

.faq-answer.active {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-secondary);
  margin: 0;
}

/* Footer */
.appliance-footer {
  background: var(--dark-grey);
  color: var(--white);
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: var(--space-3xl);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

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

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-xs);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--medium-grey);
  z-index: 2000;
  max-width: 400px;
  margin: 0 auto;
}

.cookie-consent-banner h4 {
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  font-size: 1rem;
}

.cookie-consent-banner p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  font-size: 0.875rem;
}

.cookie-consent-banner .btn {
  margin-right: var(--space-sm);
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* Form Error States */
.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Form Messages */
.form-message {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.form-message-success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-message-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Loading States */
.btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn.loading::after {
  content: '';
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design - Mobile First */
@media (max-width: 767px) {
  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    padding: var(--space-md);
    gap: var(--space-sm);
  }
  
  .main-navigation.active {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .content-section {
    padding: var(--space-2xl) 0;
  }
  
  .cookie-consent-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
  
  .contact-form {
    padding: var(--space-lg);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .content-section {
    padding: var(--space-3xl) 0;
  }
  
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

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

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.w-full { width: 100%; }
.h-full { height: 100%; }

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
  animation: slideUp 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* Focus Styles for Accessibility */
button:focus,
.btn:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #000000;
    --text-secondary: #333333;
    --primary-blue: #0000ff;
    --medium-grey: #000000;
  }
}

/* Header Scroll Effect */
.appliance-header.scrolled {
  box-shadow: var(--shadow-md);
}

/* Service Card Specific Enhancements */
.service-card .service-image {
  height: 200px;
  width: 100%;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

/* Ensure text contrast on all backgrounds */
.service-card {
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
}

.service-card h3 {
  color: var(--text-primary);
}