/* Solar Power Kiosk Template - Responsive CSS */
/* Mobile-first responsive design with accessibility focus */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  :root {
    --font-size-3xl: 2.25rem;
    --font-size-2xl: 1.75rem;
  }
  
  .hero-section {
    min-height: 100vh;
  }
  
  .navbar-brand {
    font-size: var(--font-size-2xl) !important;
  }
  
  .service-card {
    padding: 2rem;
  }
  
  .price-card {
    padding: 2.5rem 2rem;
  }
  
  .contact-form {
    padding: 3rem;
  }
  
  .hero-blob-1 {
    width: 400px;
    height: 400px;
  }
  
  .hero-blob-2 {
    width: 250px;
    height: 250px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  section {
    padding: 5rem 0;
  }
  
  .hero-section {
    padding: 6rem 0;
  }
  
  .service-card:hover {
    transform: translateY(-8px);
  }
  
  .team-card:hover {
    transform: translateY(-5px);
  }
  
  .blog-card:hover {
    transform: translateY(-5px);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-blob-1 {
    width: 500px;
    height: 500px;
  }
  
  .hero-blob-2 {
    width: 300px;
    height: 300px;
  }
}

/* Mobile-specific optimizations */
@media (max-width: 767.98px) {
  /* Disable animations on mobile for performance */
  .hero-decorative,
  .service-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .gallery-image:hover {
    transform: none !important;
    transition: none !important;
  }
  
  /* Conservative mobile typography */
  .navbar-brand {
    font-size: var(--font-size-lg) !important;
  }
  
  h1 {
    font-size: var(--font-size-2xl);
  }
  
  h2 {
    font-size: var(--font-size-xl);
  }
  
  /* Mobile spacing adjustments */
  section {
    padding: 3rem 0;
  }
  
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .case-study-card,
  .process-step,
  .timeline-card,
  .career-card,
  .coreinfo-card,
  .blog-card {
    margin-bottom: 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .price-card.featured {
    transform: none;
    border-width: 3px;
  }
  
  .price-value {
    font-size: 2.5rem;
  }
  
  /* Hide decorative blobs on mobile for cleaner look */
  .hero-blob-1,
  .hero-blob-2 {
    display: none;
  }
  
  /* Stack hero content vertically on mobile */
  .hero-section .row {
    text-align: center;
  }
  
  .hero-section .col-md-6:first-child {
    margin-bottom: 2rem;
  }
  
  /* Mobile menu improvements */
  .navbar-toggler {
    border: none;
    padding: 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    margin-top: 1rem;
    padding: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin: 0.25rem 0;
  }
  
  .navbar-nav .nav-link:hover {
    background: var(--bg-light-solar);
  }
  
  /* Mobile form optimizations */
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.75rem;
  }
  
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: var(--font-size-base);
  }
  
  /* Mobile gallery grid */
  .gallery-container .col-6 {
    padding: 0.25rem;
  }
  
  .gallery-image {
    border-radius: 6px;
  }
  
  /* Mobile FAQ cards */
  .faq-card {
    padding: 1rem;
    margin-bottom: 0.75rem;
  }
  
  /* Mobile footer */
  .footer-section {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer-section .col-md-3 {
    margin-bottom: 2rem;
  }
  
  /* Mobile contact info cards */
  .contact-info-card {
    margin-bottom: 1rem;
    padding: 1.5rem;
  }
}

/* Tablet-specific adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
  .service-card,
  .price-card {
    min-height: 300px;
  }
  
  .team-card {
    margin-bottom: 2rem;
  }
  
  .hero-section {
    padding: 4rem 0;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .case-study-card,
  .process-step,
  .timeline-card,
  .career-card,
  .coreinfo-card,
  .blog-card,
  .faq-card,
  .contact-form {
    border: 2px solid #000;
  }
  
  .hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
    color: #000;
  }
}

/* Dark mode support */

/* Print styles */
@media print {
  .hero-decorative,
  .navbar,
  .footer-section,
  .btn {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
    background: white !important;
    color: black !important;
  }
  
  section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .service-card,
  .price-card,
  .team-card,
  .review-card {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
}

/* Focus management for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--solar-gold);
  color: #1f2937;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Enhanced focus indicators */
.form-control:focus,
.btn:focus {
  outline: 2px solid var(--solar-gold);
  outline-offset: 2px;
}

/* Responsive images */
.img-responsive {
  max-width: 100%;
  height: auto;
}

/* Mobile navigation enhancements */
@media (max-width: 991.98px) {
  .navbar-nav {
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    text-align: center;
    padding: 0.75rem;
    margin: 0.25rem 0;
    border-radius: 6px;
    transition: background-color 0.3s ease;
  }
  
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:focus {
    background-color: rgba(247, 179, 43, 0.1);
  }
}

.hero-content {
    padding-top: 200px;
}