/* Mobile First Responsive Design */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .hero-section {
    min-height: 70vh;
    text-align: center;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .card {
    margin-bottom: 1rem;
  }
  
  .price-card.featured {
    transform: none;
    margin-bottom: 1rem;
  }
  
  .hero-decoration {
    display: none;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .price-value {
    font-size: 2rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 80vh;
  }
  
  h1 {
    font-size: 2.25rem;
  }
  
  .price-card.featured {
    transform: scale(1.02);
  }
  
  .section {
    padding: 3rem 0;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .price-card.featured {
    transform: scale(1.03);
  }
  
  .hero-decoration {
    width: 250px;
    height: 250px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    min-height: 95vh;
  }
  
  .hero-decoration {
    width: 280px;
    height: 280px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .container {
    max-width: 1140px;
  }
}

/* Tablet Portrait Mode */
@media (orientation: portrait) and (min-width: 768px) and (max-width: 1024px) {
  .hero-section {
    min-height: 60vh;
  }
  
  .section {
    padding: 3rem 0;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .hero-decoration {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    background: white;
  }
  
  .card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1 {
    font-size: 18pt;
  }
  
  h2 {
    font-size: 16pt;
  }
  
  h3 {
    font-size: 14pt;
  }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Dark Mode Support */

/* Loading States */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .lozad,
  .section-visible {
    animation: none;
    transition: none;
    opacity: 1;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .card:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  .team-photo:hover {
    transform: none;
  }
  
  .card-img-top {
    transition: none;
  }
}

/* Enhanced Mobile Navigation */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--primary-cream);
    border-radius: 8px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.25rem;
  }
  
  .navbar-nav .nav-link:hover {
    background: var(--clay-light);
  }
}

/* Improved Form Layout on Mobile */
@media (max-width: 575.98px) {
  .contact-form {
    padding: 1.5rem;
  }
  
  .contact-info {
    margin-top: 2rem;
    text-align: center;
  }
  
  .btn {
    width: 100%;
    padding: 1rem;
  }
}

/* Better Gallery on Mobile */
@media (max-width: 767.98px) {
  .gallery-item {
    margin-bottom: 1rem;
  }
  
  #gallery .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Enhanced Typography Scaling */
@media (max-width: 320px) {
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  .price-value {
    font-size: 1.75rem;
  }
} 

.hero-section h1 {
    padding-top: 225px;
}