/* Responsive Design - Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  :root {
    --section-padding: 40px 0;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.6rem; }
  h4 { font-size: 1.4rem; }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .service-card,
  .price-card,
  .team-member {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .shape {
    display: none;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero h1 {
    font-size: 3.2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .shape-1,
  .shape-3 {
    display: none;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero h1 {
    font-size: 3.8rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero h1 {
    font-size: 4rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .shape {
    animation: none;
  }
  
  .swiper-container {
    --swiper-navigation-size: 0;
  }
  
  .swiper-wrapper {
    transform: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-sage: #4A5D3A;
    --primary-lavender: #6B5B7B;
    --primary-peach: #B8743A;
    --primary-mint: #5A8A6C;
    --primary-rose: #A85A5E;
    
    --light-gray: #F0F0F0;
    --gray: #404040;
    --dark-gray: #202020;
  }
  
  .hero::before {
    display: none;
  }
  
  .shape {
    display: none;
  }
}

/* Print styles */
@media print {
  header,
  footer,
  .navbar,
  .breadcrumb,
  .btn,
  .swiper-pagination,
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
  }
  
  .hero,
  section {
    page-break-inside: avoid;
    padding: 20pt 0;
  }
  
  .service-card,
  .price-card,
  .team-member {
    border: 1pt solid #ccc;
    page-break-inside: avoid;
  }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero {
    min-height: 70vh;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .price-card:hover,
  .team-member:hover,
  .about-feature:hover,
  .blog-card:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
  
  .navbar-nav .nav-link::after {
    display: none;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --white: #1a1a1a;
    --light-gray: #2d2d2d;
    --gray: #b0b0b0;
    --dark-gray: #e0e0e0;
    --black: #ffffff;
    
    --light-sage: #2d3329;
    --light-lavender: #332f35;
    --light-peach: #3d342f;
    --light-mint: #2f3d34;
    --light-rose: #3a2f31;
  }
  
  body {
    background-color: var(--white);
    color: var(--dark-gray);
  }
  
  .service-card,
  .price-card,
  .team-member,
  .about-feature,
  .blog-card,
  .contact-form,
  .review-card {
    background: var(--light-gray);
    color: var(--dark-gray);
  }
  
  .form-control {
    background: var(--light-gray);
    color: var(--dark-gray);
    border-color: var(--gray);
  }
  
  .accordion-body {
    background: var(--light-gray);
    color: var(--gray);
  }
} 