/* Mobile First Responsive Design */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography */
  h1 { font-size: var(--font-size-2xl); }
  h2 { font-size: var(--font-size-xl); }
  h3 { font-size: var(--font-size-lg); }
  
  .hero-title {
    font-size: var(--font-size-2xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
  }
  
  /* Sections */
  .section {
    padding: 3rem 0;
  }
  
  /* Hero Section */
  .hero-section {
    padding: 2rem 0;
  }
  
  .hero-shape {
    display: none;
  }
  
  /* Cards */
  .card-body {
    padding: 1.5rem;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .gallery-img {
    height: 200px;
  }
  
  /* Team Images */
  .team-img {
    width: 120px;
    height: 120px;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
  }
  
  /* Navigation */
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    margin: 0.25rem 0;
  }
  
  /* Services */
  .services-price {
    font-size: var(--font-size-xl);
  }
  
  /* Process Icons */
  .process-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  /* FAQ */
  .faq-question {
    padding: 1rem;
    font-size: var(--font-size-sm);
  }
  
  .faq-answer {
    padding: 1rem;
  }
  
  /* Blog */
  .blog-img {
    height: 150px;
  }
  
  .blog-content {
    padding: 1rem;
  }
  
  /* Contact Info */
  .contact-info {
    padding: 1.5rem;
  }
  
  /* Price Cards */
  .price-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .price-amount {
    font-size: var(--font-size-2xl);
  }
  
  /* Timeline */
  .timeline-item {
    padding-left: 1.5rem;
  }
  
  /* Reviews */
  .review-card {
    padding: 1.5rem;
    margin: 0.5rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Cards in rows */
  .services-row .col-md-4 {
    margin-bottom: 1rem;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 2.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Hero adjustments */
  .hero-section {
    padding: 3rem 0;
  }
  
  /* Sections */
  .section {
    padding: 4rem 0;
  }
  
  /* Cards */
  .card-body {
    padding: 1.75rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Full sections padding */
  .section {
    padding: 4.5rem 0;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  /* Maximum container width */
  .container {
    max-width: 1140px;
  }
}

/* Disable Swiper autoplay and effects on mobile */
@media (max-width: 767.98px) {
  .swiper-slide {
    transition: none !important;
  }
  
  .swiper-wrapper {
    transform: none !important;
  }
}

/* Print Styles */
@media print {
  * {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  .navbar,
  .footer,
  .hero-shape,
  .btn {
    display: none !important;
  }
  
  .hero-section {
    background: none !important;
    color: #000 !important;
    min-height: auto !important;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  .card {
    border: 1px solid #ddd !important;
    break-inside: avoid;
  }
  
  h1, h2, h3, h4, h5, h6 {
    break-after: avoid;
  }
  
  .gallery-grid {
    display: none;
  }
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Sharper images for retina displays */
  .hero-section::before {
    background-size: cover;
  }
  
  .gallery-img,
  .blog-img,
  .team-img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .hero-title {
    font-size: var(--font-size-xl);
    margin-bottom: 0.5rem;
  }
  
  .hero-subtitle {
    font-size: var(--font-size-base);
    margin-bottom: 0.5rem;
  }
  
  .hero-desc {
    font-size: var(--font-size-sm);
    margin-bottom: 1rem;
  }
}

/* Dark Mode Support (for system preference, even though we don't include dark styles) */
@media (prefers-color-scheme: dark) {
  /* We're not implementing dark mode per requirements, but we acknowledge the preference */
}

/* Focus Styles for Accessibility */
@media (any-hover: none) {
  .card:hover {
    transform: none;
  }
  
  .gallery-item:hover {
    transform: none;
  }
  
  .blog-card:hover {
    transform: none;
  }
}

/* Touch Device Optimizations */
@media (pointer: coarse) {
  .btn,
  .nav-link,
  .faq-question {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-link {
    padding: 0.75rem 1rem;
  }
}

/* Ultra-wide Screen Support */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
  
  .hero-section {
    padding: 6rem 0;
  }
  
  .section {
    padding: 6rem 0;
  }
}

/* Specific Mobile Optimizations */
@media (max-width: 480px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .navbar-brand {
    font-size: var(--font-size-lg) !important;
  }
  
  .btn {
    font-size: var(--font-size-sm);
    padding: 0.5rem 1rem;
  }
  
  .services-features li {
    font-size: var(--font-size-sm);
    padding: 0.25rem 0;
  }
  
  .team-name {
    font-size: var(--font-size-base);
  }
  
  .team-role {
    font-size: var(--font-size-xs);
  }
  
  .review-text {
    font-size: var(--font-size-base);
  }
  
  .price-features li {
    font-size: var(--font-size-sm);
    padding: 0.5rem 0;
  }
  
  .timeline-item {
    padding-left: 1rem;
  }
  
  .timeline-item:before {
    left: -6px;
    width: 12px;
    height: 12px;
  }
} 