/* === RESPONSIVE DESIGN - MOBILE FIRST === */

/* Extra Small Devices (phones, <576px) */
@media (max-width: 575.98px) {
  :root {
    --h1-size: 1.75rem;
    --h2-size: 1.25rem;
    --navbar-brand-size: 1.1rem;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .services-grid,
  .priceplan-grid,
  .team-grid,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .service-card,
  .priceplan-card,
  .team-member,
  .feature-item {
    padding: 1.5rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: 2rem 1rem;
  }
  
  .blob-1,
  .blob-2 {
    display: none;
  }
  
  /* Disable autoplay and effects on mobile for Swiper */
  .swiper-slide {
    animation: none !important;
  }
}

/* Small Devices (landscape phones, ≥576px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .services-grid,
  .priceplan-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-section h1 {
    font-size: 2.2rem;
  }
}

/* Medium Devices (tablets, ≥768px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .services-grid,
  .priceplan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero-section {
    min-height: 90vh;
  }
}

/* Large Devices (desktops, ≥992px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .priceplan-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Extra Large Devices (large desktops, ≥1200px) */
@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .priceplan-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .hero-section h1 {
    font-size: 3rem;
  }
}

/* === PRINT STYLES === */
@media print {
  .navbar,
  .footer,
  .btn,
  .blob-shape {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    page-break-after: always;
  }
  
  .section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
  }
}

/* === ACCESSIBILITY IMPROVEMENTS === */
@media (prefers-contrast: high) {
  :root {
    --primary-navy: #000080;
    --primary-charcoal: #000000;
    --primary-cream: #ffffff;
  }
  
  .service-card,
  .priceplan-card,
  .team-member,
  .feature-item,
  .contact-form {
    border: 2px solid var(--primary-navy);
  }
}

/* === FOCUS STYLES FOR KEYBOARD NAVIGATION === */
@media (prefers-reduced-motion: no-preference) {
  .nav-link:focus,
  .btn:focus,
  .form-control:focus {
    outline: 3px solid var(--primary-gold);
    outline-offset: 2px;
  }
}

/* === LANDSCAPE PHONE ADJUSTMENTS === */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
}

/* === HOVER EFFECTS DISABLED ON TOUCH DEVICES === */
@media (hover: none) {
  .service-card:hover,
  .priceplan-card:hover,
  .gallery-item:hover img {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

/* === REDUCED MOTION SUPPORT === */
@media (prefers-reduced-motion: reduce) {
  .swiper-slide {
    transition: none !important;
  }
  
  .service-card,
  .priceplan-card,
  .btn-primary,
  .gallery-item img {
    transition: none !important;
  }
  
  .blob-1,
  .blob-2 {
    animation: none !important;
  }
}

/* === HIGH DPI / RETINA DISPLAYS === */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .service-image,
  .team-photo,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* === DARK MODE SUPPORT === */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-cream: #1a1a1a;
    --light-cream: #2d2d2d;
    --primary-charcoal: #e0e0e0;
  }
  
  body {
    background-color: var(--primary-cream);
    color: var(--primary-charcoal);
  }
  
  .service-card,
  .priceplan-card,
  .team-member,
  .feature-item,
  .contact-form,
  .faq-item {
    background: var(--light-cream);
    color: var(--primary-charcoal);
  }
}

/* === CONTAINER MAX-WIDTHS === */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* === NAVIGATION ADJUSTMENTS === */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--primary-cream);
    border-radius: 10px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(30, 58, 95, 0.1);
  }
  
  .navbar-nav .nav-link {
    font-size: 10px !important;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-cream);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* === TESTIMONIALS SLIDER RESPONSIVE === */
@media (max-width: 767.98px) {
  .testimonial-item {
    padding: 1rem;
  }
  
  .testimonial-text {
    font-size: 1rem;
  }
}

/* === FAQ RESPONSIVE === */
@media (max-width: 575.98px) {
  .faq-question,
  .faq-answer {
    padding: 1rem;
  }
}

/* === FOOTER RESPONSIVE === */
@media (max-width: 767.98px) {
  .footer {
    text-align: center;
    padding: 2rem 0 1rem;
  }
  
  .footer .col-md-3,
  .footer .col-md-4 {
    margin-bottom: 2rem;
  }
} 