/* Responsive Design - Mobile First Approach */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  h1 { font-size: 4rem; }
  h2 { font-size: 3.2rem; }
  h3 { font-size: 2.5rem; }
}

/* Desktop (992px to 1199px) */
@media (max-width: 1199px) {
  .container {
    max-width: 960px;
  }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) {
  .container {
    max-width: 720px;
  }
  
  .navbar-nav {
    gap: 1.5rem;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  h1 { font-size: 3rem; }
  h2 { font-size: 2.4rem; }
  h3 { font-size: 2rem; }
}

/* Small Tablet (576px to 767px) */
@media (max-width: 767px) {
  .container {
    max-width: 540px;
  }
  
  /* Header Mobile */
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }
  
  .navbar-nav {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  /* Hero Mobile */
  .hero {
    min-height: 80vh;
    padding-top: 120px;
  }
  
  .hero-content {
    gap: 1.5rem;
  }
  
  /* Shapes - Hide on mobile for performance */
  .shape {
    display: none;
  }
  
  /* Sections */
  section {
    padding: 60px 0;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
  
  /* Grids - Single column on mobile */
  .about-features,
  .services-grid,
  .features-grid,
  .priceplan-grid,
  .team-grid,
  .coreinfo-grid,
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Service Cards */
  .service-card {
    margin: 0 1rem;
  }
  
  /* Contact Form */
  .contact-form {
    margin: 2rem 1rem 0;
    padding: 2rem;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  /* Typography */
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.8rem; }
  h4 { font-size: 1.5rem; }
  h5 { font-size: 1.3rem; }
  h6 { font-size: 1.1rem; }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Mobile (up to 575px) */
@media (max-width: 575px) {
  .container {
    max-width: 100%;
    padding: 0 20px;
  }
  
  /* Header */
  header {
    padding: 0.5rem 0;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  /* Hero */
  .hero {
    min-height: 70vh;
    padding-top: 100px;
  }
  
  .hero-text p {
    font-size: 1rem;
  }
  
  /* Cards */
  .feature-card,
  .service-card,
  .price-card,
  .team-member,
  .review-card,
  .coreinfo-card,
  .blog-card {
    margin: 0 0.5rem;
  }
  
  .feature-card,
  .price-card,
  .coreinfo-card {
    padding: 1.5rem;
  }
  
  .service-content {
    padding: 1.5rem;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 1.5rem;
  }
  
  .form-control,
  .form-select {
    padding: 0.8rem;
  }
  
  /* Typography */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.3rem; }
  h5 { font-size: 1.2rem; }
  h6 { font-size: 1.1rem; }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  
  .gallery-item img {
    height: 150px;
  }
  
  /* FAQ */
  .faq-question,
  .faq-answer {
    padding: 1rem;
  }
}

/* Extra Small Mobile (up to 375px) */
@media (max-width: 375px) {
  .container {
    padding: 0 15px;
  }
  
  /* Typography */
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.4rem; }
  
  /* Cards */
  .feature-card,
  .price-card,
  .coreinfo-card {
    padding: 1rem;
  }
  
  .service-content {
    padding: 1rem;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 1rem;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .shape {
    animation: none;
  }
  
  /* Disable Swiper autoplay on reduced motion */
  .swiper {
    --swiper-autoplay-delay: 0;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-sage: #4A5D3A;
    --primary-lavender: #6B5B7B;
    --primary-peach: #B8743A;
    --primary-mint: #5A8A6C;
    --primary-rose: #A85A5E;
    
    --gray: #4A4A4A;
    --dark-gray: #1A1A1A;
  }
}

/* Print Styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  header,
  footer,
  .navbar,
  .shape,
  .btn-submit {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  .hero,
  section {
    page-break-inside: avoid;
  }
}

/* Focus Styles for Accessibility */
.nav-link:focus,
.btn-submit:focus,
.form-control:focus,
.form-select:focus,
.faq-question:focus {
  outline: 2px solid var(--primary-sage);
  outline-offset: 2px;
}

/* Skip Link for Screen Readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-sage);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
}

.skip-link:focus {
  top: 6px;
} 