/* ====================================
   DIGITAL PLANNERS MARKETPLACE - RESPONSIVE CSS
   Mobile-First Responsive Design
   ==================================== */

/* Mobile First - Base styles for mobile devices */
@media (max-width: 575.98px) {
  /* Typography adjustments for mobile */
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.2rem;
  }
  
  .navbar-brand {
    font-size: 1rem !important;
  }
  
  /* Hero section mobile optimization */
  .hero-section {
    min-height: 80vh;
    padding: 1rem 0;
    text-align: center;
  }
  
  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  /* Section padding reduction for mobile */
  .section {
    padding: 2rem 0;
  }
  
  /* Card adjustments */
  .custom-card {
    margin-bottom: 1.5rem;
  }
  
  /* Contact form mobile optimization */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Gallery mobile grid */
  .gallery-item img {
    height: 200px;
  }
  
  /* Team photos smaller on mobile */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Footer mobile adjustments */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* Disable hover effects on mobile */
  .custom-card:hover,
  .gallery-item img:hover,
  .btn-primary:hover {
    transform: none;
  }
  
  /* No animations on mobile for reduced motion */
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.1s !important;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .gallery-item img {
    height: 220px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 95vh;
  }
  
  .hero-title {
    font-size: 2.1rem;
  }
  
  .section {
    padding: 3.5rem 0;
  }
  
  /* Two-column layout for tablets */
  .service-card,
  .price-card,
  .team-card {
    margin-bottom: 2rem;
  }
  
  .gallery-item img {
    height: 240px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  /* Three-column layout optimization */
  .service-card,
  .price-card {
    margin-bottom: 2rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section {
    min-height: 100vh;
  }
  
  /* Full layout with all sections properly spaced */
  .section {
    padding: 4rem 0;
  }
  
  /* Optimal spacing for large screens */
  .container {
    max-width: 1140px;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
}

/* High resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .contact-form,
  .decorative-shape {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    page-break-after: always;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .custom-card {
    box-shadow: none;
    border: 1px solid #b4b0b0;
    page-break-inside: avoid;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .hero-section {
    background: var(--primary-light);
  }
  
  .custom-card:hover,
  .gallery-item img:hover,
  .btn-primary:hover {
    transform: none !important;
  }
  
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #114bbe;
    --secondary-color: #e78300;
    --text-primary: #000000;
    --text-secondary: #363535;
    --border-color: #000000;
  }
  
  .custom-card {
    border: 2px solid var(--border-color);
  }
  
  .btn-primary {
    border: 2px solid var(--text-primary);
  }
}

/* Dark mode support (if user prefers) */

/* Focus management for accessibility */
@media (any-hover: none) {
  .custom-card:hover,
  .gallery-item img:hover {
    transform: none;
  }
} 

.hero-content {
    padding-top: 200px;
}