/* ================================
   RESPONSIVE CSS
   Mobile-First Design
   ================================ */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-title {
    font-size: 2.79rem;
  }
  
  .hero-subtitle {
    font-size: 1.52rem;
  }
  
  .section-title {
    font-size: 2.32rem;
  }
  
  .service-card {
    padding: 2.5rem;
  }
  
  .team-photo {
    width: 220px;
    height: 220px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.65rem;
  }
  
  .section-title {
    font-size: 2.65rem;
  }
  
  .section-desc {
    font-size: 1.16rem;
  }
  
  .service-card {
    padding: 3rem;
  }
  
  .feature-item {
    padding: 2.5rem;
  }
  
  .team-photo {
    width: 250px;
    height: 250px;
  }
  
  .contact-form {
    padding: 3rem;
  }
  
  .priceplan-card {
    padding: 3rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-title {
    font-size: 3.59rem;
  }
  
  .hero-subtitle {
    font-size: 1.72rem;
  }
  
  .section-title {
    font-size: 2.86rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
  }
  
  .service-card {
    padding: 3.5rem;
  }
  
  .feature-item {
    padding: 3rem;
  }
  
  .team-photo {
    width: 280px;
    height: 280px;
  }
  
  .review-card {
    padding: 3rem;
  }
  
  .faq-card {
    padding: 3rem;
  }
  
  .contact-form {
    padding: 3.5rem;
  }
  
  .priceplan-card {
    padding: 3.5rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 1.87rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
  
  .container {
    max-width: 1140px;
  }
  
  .service-card {
    padding: 4rem;
  }
  
  .feature-item {
    padding: 3.5rem;
  }
  
  .team-photo {
    width: 300px;
    height: 300px;
  }
  
  .review-card {
    padding: 3.5rem;
  }
  
  .faq-card {
    padding: 3.5rem;
  }
  
  .contact-form {
    padding: 4rem;
  }
  
  .priceplan-card {
    padding: 4rem;
  }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
  .hero-title {
    font-size: 4.56rem;
  }
  
  .hero-subtitle {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 3.39rem;
  }
  
  .container {
    max-width: 1320px;
  }
}

/* Mobile-specific styles (max-width: 767px) */
@media (max-width: 767px) {
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 2.33rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .hero-desc {
    font-size: 1rem;
    margin-bottom: 1.87rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .section-desc {
    margin-bottom: 2rem;
  }
  
  .navbar-brand {
    font-size: 1.30rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
  }
  
  .service-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .service-icon {
    font-size: 2.63rem;
  }
  
  .feature-item {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .feature-icon {
    font-size: 2.59rem;
  }
  
  .team-member {
    margin-bottom: 3rem;
  }
  
  .team-photo {
    width: 180px;
    height: 180px;
  }
  
  .review-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .faq-card {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .priceplan-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .gallery-item {
    margin-bottom: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .blog-card {
    margin-bottom: 2rem;
  }
  
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer .col-md-3 {
    margin-bottom: 2rem;
  }
  
  /* Timeline responsive */
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item::before {
    left: 30px;
  }
  
  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px !important;
    margin-right: 0 !important;
  }
  
  /* Process responsive */
  .process-step {
    padding: 1.5rem 0.5rem;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.27rem;
  }
  
  /* Contact info responsive */
  .contact-info {
    padding: 1.5rem;
  }
  
  .contact-item {
    margin-bottom: 1rem;
  }
}

/* Tablet-specific styles (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .feature-item {
    margin-bottom: 2rem;
  }
  
  .team-member {
    margin-bottom: 3rem;
  }
  
  .review-card {
    margin-bottom: 2rem;
  }
  
  .priceplan-card {
    margin-bottom: 2rem;
  }
  
  .gallery-item {
    margin-bottom: 1rem;
  }
  
  .blog-card {
    margin-bottom: 2rem;
  }
  
  /* Timeline responsive for tablets */
  .timeline-content {
    width: 48%;
  }
  
  .timeline-item:nth-child(odd) .timeline-content {
    margin-left: 52%;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    margin-right: 52%;
  }
  
  /* Process responsive for tablets */
  .process-step {
    padding: 1.75rem 0.75rem;
  }
  
  .process-number {
    width: 55px;
    height: 55px;
    font-size: 1.46rem;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  .card {
    break-inside: avoid;
  }
  
  .hero-title,
  .section-title {
    color: #000;
  }
  
  .hero-subtitle,
  .hero-desc {
    color: #3b3b3b;
  }
  
  .bg-primary-fresh,
  .bg-primary-storage,
  .contact-section,
  .features-section {
    background: #fff !important;
    color: #000 !important;
  }
  
  .text-white {
    color: #000 !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-solar: #e6821b;
    --primary-fresh: #19887b;
    --primary-storage: #215457;
    --primary-energy: #b3983d;
    --primary-tech: #b35b3a;
    --gray: #615858;
    --light-gray: #f0f0f0;
  }
  
  .card {
    border: 2px solid var(--gray);
  }
  
  .form-control {
    border-width: 3px;
  }
  
  .btn-primary {
    border-width: 3px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .hero-section::before {
    animation: none;
  }
  
  .card:hover,
  .service-card:hover,
  .gallery-item:hover,
  .blog-card:hover,
  .priceplan-card:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
  
  .navbar-nav .nav-link,
  .form-control,
  .btn-primary,
  .blog-link {
    transition: none;
  }
}

/* Focus styles for accessibility */
*:focus {
  outline: 3px solid var(--primary-energy);
  outline-offset: 2px;
}

.btn:focus,
.form-control:focus {
  outline: 3px solid var(--primary-energy);
  outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-storage);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
  border-radius: 4px;
}

.skip-link:focus {
  top: 6px;
}

/* RTL support */
[dir="rtl"] .navbar-nav {
  flex-direction: row-reverse;
}

[dir="rtl"] .breadcrumb-image {
  margin-right: 0;
  margin-left: 0.5rem;
}

[dir="rtl"] .hero-section::before {
  right: auto;
  left: -50%;
}

/* Dark mode support */

.hero-content {
    padding-top: 150px;
}