/* Mobile First Responsive Design */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --font-xs: 0.7rem;
    --font-sm: 0.8rem;
    --font-base: 0.9rem;
    --font-lg: 1rem;
    --font-xl: 1.1rem;
    --font-2xl: 1.3rem;
    --font-3xl: 1.5rem;
  }

  .hero {
    min-height: 70vh;
    padding: var(--space-lg) 0;
  }

  .hero h1 {
    font-size: var(--font-xl);
  }

  .section {
    padding: var(--space-lg) 0;
  }

  .services-grid,
  .team-grid,
  .features-grid,
  .priceplan-grid,
  .blog-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xs);
  }

  .contact-form {
    padding: var(--space-lg);
    margin: 0 var(--space-sm);
  }

  .navbar-brand {
    font-size: var(--font-base) !important;
  }

  .container {
    padding: 0 var(--space-sm);
  }

  /* Hide autoplay and effects on mobile for Swiper */
  .swiper-autoplay {
    pointer-events: none;
  }

  .swiper-effect-fade,
  .swiper-effect-cube,
  .swiper-effect-flip,
  .swiper-effect-coverflow {
    pointer-events: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .services-grid,
  .priceplan-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    min-height: 80vh;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .priceplan-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Disable Swiper autoplay on mobile devices <768px */
  .swiper-container {
    --swiper-navigation-size: 30px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .services-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-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Print styles */
@media print {
  .header,
  .footer,
  .hero,
  button,
  .btn {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
  }

  .section {
    padding: 20pt 0;
    page-break-inside: avoid;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-teal: #006064;
    --primary-coral: #D32F2F;
    --primary-gold: #F57C00;
    --primary-navy: #000051;
    --primary-sage: #2E7D32;
  }

  .service-card,
  .team-member,
  .contact-form,
  .priceplan-card,
  .blog-card {
    border: 3px solid var(--primary-navy);
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --light-teal: #1A4A52;
    --light-coral: #4A1A1A;
    --light-gold: #4A3A1A;
    --light-navy: #1A1A2E;
    --light-sage: #1A4A2E;
  }

  body {
    background-color: #121212;
    color: #E0E0E0;
  }

  .service-card,
  .contact-form,
  .priceplan-card,
  .blog-card {
    background: #1E1E1E;
    color: #E0E0E0;
  }

  .team-member {
    background: #2A2A2A;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
  }

  .service-card:hover,
  .team-member:hover,
  .gallery-item:hover,
  .feature-item:hover,
  .priceplan-card:hover,
  .blog-card:hover,
  .btn-submit:hover {
    transform: none;
  }
}

/* Focus states for accessibility */
.nav-link:focus,
.form-control:focus,
.btn:focus,
a:focus {
  outline: 3px solid var(--primary-gold);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-navy);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
}

.skip-link:focus {
  top: 6px;
}

/* Container responsive padding */
@media (max-width: 576px) {
  .container-fluid {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }
}

@media (min-width: 576px) {
  .container-fluid {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
}

/* Breadcrumbs responsive */
.breadcrumb {
  background: transparent;
  padding: var(--space-sm) 0;
}

.breadcrumb-item img {
  max-width: 20px;
  height: auto;
}

@media (max-width: 768px) {
  .breadcrumb-item img {
    max-width: 16px;
  }
}

/* Navigation responsive improvements */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(45, 125, 134, 0.95);
    border-radius: 10px;
    margin-top: var(--space-sm);
    padding: var(--space-sm);
  }

  .navbar-nav {
    text-align: center;
  }

  .nav-link {
  font-size: 10px;
    padding: var(--space-xs) 0 !important;
  }
}

/* Form responsive improvements */
@media (max-width: 768px) {
  .contact-form {
    padding: var(--space-md);
  }

  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Image responsive behavior */
img {
  max-width: 100%;
  height: auto;
}

.team-photo {
  width: 120px;
  height: 120px;
}

@media (min-width: 768px) {
  .team-photo {
    width: 150px;
    height: 150px;
  }
}

@media (min-width: 1200px) {
  .team-photo {
    width: 180px;
    height: 180px;
  }
} 