/* Responsive CSS - Mobile First Approach */

/* ========================================
   Mobile Devices (320px - 768px)
========================================= */
@media (max-width: 767.98px) {
  /* Typography adjustments */
  :root {
    --font-size-h1: 1.8rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.3rem;
    --font-size-navbar-brand: 1.2rem;
    --spacing-xl: 3rem;
    --spacing-lg: 2rem;
  }

  /* Navigation */
  .navbar-brand {
    font-size: var(--font-size-navbar-brand) !important;
  }

  .navbar-collapse {
    background: rgba(69, 164, 245, 0.95);
    border-radius: 10px;
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
  }

  /* Hero Section */
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }

  .hero-content {
    padding: var(--spacing-md);
  }

  .hero-title {
    font-size: var(--font-size-h1);
    margin-bottom: var(--spacing-sm);
  }

  .hero-image img {
    max-width: 300px;
    margin-top: var(--spacing-md);
  }

  /* Section padding */
  .section {
    padding: var(--spacing-lg) 0;
  }

  /* Cards */
  .services-card {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
  }

  .services-price {
    font-size: 1.64rem;
  }

  /* FAQ Cards Mobile Styles */
  .faq-container {
    padding: 0 var(--spacing-xs);
  }

  .faq-card summary {
    padding: var(--spacing-sm);
    font-size: 0.95rem;
  }

  .faq-card summary::after {
    width: 25px;
    height: 25px;
    font-size: 20px;
  }

  .faq-question-text {
    font-size: 1rem;
    padding-right: var(--spacing-sm);
  }

  .faq-answer {
    padding: var(--spacing-sm);
    font-size: 0.9rem;
  }

  /* Team members */
  .team-member img {
    width: 150px;
    height: 150px;
  }

  /* Contact form */
  .contact-form {
    padding: var(--spacing-md);
  }

  /* Gallery */
  .gallery-item img {
    height: 200px;
  }

  /* Footer */
  .footer {
    text-align: center;
    padding: var(--spacing-lg) 0 var(--spacing-md);
  }

  .footer .row > div {
    margin-bottom: var(--spacing-md);
  }
}

/* ========================================
   Tablet Devices (768px - 991.98px)
========================================= */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 90vh;
  }

  .hero-image img {
    max-width: 400px;
  }

  .services-card {
    padding: var(--spacing-lg);
  }

  /* FAQ Cards Tablet Styles */
  .faq-container {
    max-width: 700px;
  }

  .faq-card summary {
    padding: calc(var(--spacing-md) * 0.8);
  }

  .faq-question-text {
    font-size: 1.05rem;
  }

  .team-member img {
    width: 180px;
    height: 180px;
  }

  .gallery-item img {
    height: 220px;
  }
}

/* ========================================
   Desktop Small (992px - 1199.98px)
========================================= */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-image img {
    max-width: 450px;
  }

  .services-card {
    padding: var(--spacing-lg);
  }

  .gallery-item img {
    height: 240px;
  }
}

/* ========================================
   Desktop Large (1200px+)
========================================= */
@media (min-width: 1200px) {
  .hero-section {
    min-height: 100vh;
  }

  .hero-image img {
    max-width: 500px;
  }

  .services-card {
    padding: var(--spacing-xl);
  }

  .gallery-item img {
    height: 280px;
  }
}

/* ========================================
   Ultra Wide Screens (1400px+)
========================================= */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }

  .hero-title {
    font-size: 2.55rem;
  }

  .services-price {
    font-size: 2.22rem;
  }
}

/* ========================================
   Print Styles
========================================= */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }

  .navbar,
  .footer,
  .btn,
  .contact-form {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }

  img {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* ========================================
   High DPI / Retina Displays
========================================= */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    background-image: url('../ZYL_images/hero-bg@2x.webp');
  }
}

/* ========================================
   Landscape Orientation (Mobile)
========================================= */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 60vh;
  }

  .hero-content {
    padding: var(--spacing-sm);
  }

  .hero-title {
    font-size: 1.56rem;
  }
}

/* ========================================
   Accessibility - Reduced Motion
========================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-section,
  .card,
  .services-card,
  .gallery-item img,
  .btn-primary {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ========================================
   Dark Mode Support (Optional)
========================================= */
@media (prefers-color-scheme: dark) {
  /* Note: Following the requirement to not create a dark theme for accessibility */
  /* This section is intentionally minimal */
  
  .card,
  .services-card,
  .review-card,
  .faq-item,
  .contact-form {
    background: rgba(255, 255, 255, 0.95) !important;
  }
}

/* ========================================
   Container Adjustments
========================================= */
@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* ========================================
   Navigation Adjustments
========================================= */
@media (max-width: 991.98px) {
  .navbar-nav {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: var(--spacing-sm);
    margin-top: var(--spacing-sm);
  }

  .navbar-nav .nav-link {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 5px;
    margin: 2px 0;
  }

  .navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
  }
}

/* ========================================
   Grid System Adjustments
========================================= */
@media (max-width: 767.98px) {
  .row > [class^="col-"] {
    margin-bottom: var(--spacing-md);
  }

  .row > [class^="col-"]:last-child {
    margin-bottom: 0;
  }
}

/* ========================================
   Form Adjustments
========================================= */
@media (max-width: 575.98px) {
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .btn-primary {
    width: 100%;
    padding: var(--spacing-md);
  }
}

/* ========================================
   Image Gallery Responsive Grid
========================================= */
@media (max-width: 575.98px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   Services Grid Responsive
========================================= */
@media (max-width: 767.98px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
} 