/* Responsive Design - Mobile First Approach */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-title {
    font-size: 4.5rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Desktop (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) and (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .about-features {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .priceplan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .coreinfo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Navbar adjustments */
  .navbar-nav {
    flex-direction: row;
    gap: 1rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0 0.5rem;
  }
}

/* Mobile Large (576px to 767px) */
@media (max-width: 767px) and (min-width: 576px) {
  .container {
    max-width: 540px;
  }
  
  /* Typography adjustments */
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.8rem; }
  h4 { font-size: 1.5rem; }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-desc {
    font-size: 1rem;
  }
  
  /* Section padding adjustments */
  section {
    padding: 60px 0;
  }
  
  /* Grid adjustments */
  .services-grid,
  .about-features,
  .features-grid,
  .priceplan-grid,
  .team-grid,
  .coreinfo-grid,
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Card padding adjustments */
  .service-content,
  .team-info,
  .blog-content {
    padding: 1.5rem;
  }
  
  .about-feature,
  .feature-item {
    padding: 1.5rem;
  }
  
  .priceplan-card {
    padding: 2rem 1.5rem;
  }
  
  .coreinfo-item {
    padding: 2rem 1.5rem;
  }
  
  /* Contact form adjustments */
  .contact-form {
    padding: 2rem;
    margin-top: 2rem;
  }
  
  /* Navbar mobile */
  .navbar {
    padding: 0.75rem 0;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .navbar-nav {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0;
    padding: 0.5rem 0;
  }
  
  /* Footer adjustments */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
  .container {
    padding: 0 20px;
  }
  
  /* Typography for small screens */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.3rem; }
  h5 { font-size: 1.1rem; }
  h6 { font-size: 1rem; }
  
  .hero-title {
    font-size: 2.2rem;
    line-height: 1.1;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-desc {
    font-size: 0.95rem;
  }
  
  /* Section adjustments */
  section {
    padding: 40px 0;
  }
  
  .section-title {
    margin-bottom: 0.75rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  
  .section-desc {
    margin-bottom: 2rem;
  }
  
  /* Hero section mobile */
  .hero {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-content {
    text-align: center;
  }
  
  /* All grids single column */
  .services-grid,
  .about-features,
  .features-grid,
  .priceplan-grid,
  .team-grid,
  .coreinfo-grid,
  .blog-grid,
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  /* Card adjustments */
  .service-card,
  .about-feature,
  .feature-item,
  .priceplan-card,
  .team-member,
  .coreinfo-item,
  .blog-item {
    margin-bottom: 1rem;
  }
  
  .service-content,
  .team-info,
  .blog-content,
  .about-feature,
  .feature-item,
  .coreinfo-item {
    padding: 1.25rem;
  }
  
  .priceplan-card {
    padding: 1.5rem 1.25rem;
  }
  
  /* Service image height */
  .service-image,
  .team-image,
  .blog-image {
    height: 180px;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 1.5rem;
    margin-top: 1.5rem;
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-control {
    padding: 0.875rem;
    font-size: 0.95rem;
  }
  
  .btn {
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
    width: 100%;
  }
  
  /* Header mobile */
  header {
    position: relative;
  }
  
  .navbar {
    padding: 1rem 0;
  }
  
  .navbar-brand {
    font-size: 1.4rem;
  }
  
  .navbar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-small);
    background: var(--cream-light);
  }
  
  /* Breadcrumb mobile */
  .breadcrumb {
    margin-top: 0;
    padding: 0.75rem 0;
  }
  
  .breadcrumb-item {
    width: 30px;
    height: 30px;
    margin-right: 0.75rem;
  }
  
  /* Reviews slider mobile */
  .review-item {
    padding: 2rem 1.5rem;
    margin: 0 0.5rem;
  }
  
  .review-text {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  /* FAQ mobile */
  .faq-accordion {
    margin-top: 2rem;
  }
  
  .faq-question {
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
  }
  
  .faq-answer {
    padding: 0 1.5rem 1.25rem;
  }
  
  /* Footer mobile */
  .footer-content {
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 1.5rem;
  }
  
  /* Utility classes for mobile */
  .mobile-center {
    text-align: center;
  }
  
  .mobile-full-width {
    width: 100%;
  }
  
  .mobile-hidden {
    display: none;
  }
}

/* Extra Small Mobile (up to 375px) */
@media (max-width: 375px) {
  .container {
    padding: 0 15px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .service-price,
  .priceplan-price {
    font-size: 1.5rem;
  }
  
  .contact-form,
  .review-item {
    padding: 1.25rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .navbar-nav .nav-link {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
  }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .hero-desc {
    font-size: 0.9rem;
  }
  
  section {
    padding: 30px 0;
  }
}

/* Print Styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  header,
  .navbar,
  .breadcrumb,
  footer {
    display: none;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .service-card,
  .team-member,
  .blog-item {
    page-break-inside: avoid;
  }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for high-resolution displays */
  .hero::before {
    transform: rotate(-15deg) scale(1.1);
  }
  
  .shape-1,
  .shape-2 {
    transform: scale(1.1);
  }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .float-animation,
  .fade-in-up {
    animation: none;
  }
  
  .swiper {
    --swiper-navigation-size: 0;
  }
  
  .service-card:hover,
  .team-member:hover,
  .blog-item:hover,
  .about-feature:hover,
  .feature-item:hover,
  .priceplan-card:hover,
  .coreinfo-item:hover {
    transform: none;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #E8E8E8;
    --text-secondary: #B8B8B8;
    --text-light: #888888;
    --white: #1A1A1A;
    --black: #FFFFFF;
    --cream-light: #2A2A2A;
    --cream-dark: #3A3A3A;
  }
  
  body {
    background-color: var(--white);
    color: var(--text-primary);
  }
  
  .service-card,
  .about-feature,
  .feature-item,
  .priceplan-card,
  .team-member,
  .blog-item,
  .contact-form,
  .faq-item {
    background: #2A2A2A;
    border-color: #3A3A3A;
  }
  
  .form-control {
    background: #2A2A2A;
    border-color: #3A3A3A;
    color: var(--text-primary);
  }
  
  .form-control:focus {
    border-color: var(--primary-sage);
  }
}

/* Focus Styles for Accessibility */
@media (prefers-reduced-motion: no-preference) {
  .nav-link:focus,
  .btn:focus,
  .form-control:focus,
  .faq-question:focus {
    outline: 2px solid var(--primary-sage);
    outline-offset: 2px;
  }
}

/* Container Queries (Future-proofing) */
@container (max-width: 400px) {
  .service-content,
  .team-info,
  .blog-content {
    padding: 1rem;
  }
} 