/* Responsive Styles for Custom Wall-Art Printing Template */
/* Mobile-First Approach */

/* =========================================
   MOBILE FIRST (Default: 320px+)
   ========================================= */

/* Base mobile styles already defined in main.css */

/* =========================================
   SMALL DEVICES (576px+)
   ========================================= */
@media (min-width: 576px) {
  .container-sm {
    max-width: 540px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .section-title h2 {
    font-size: 1.6rem;
  }
  
  .service-card {
    margin-bottom: 1.5rem;
  }
}

/* =========================================
   MEDIUM DEVICES (768px+)
   ========================================= */
@media (min-width: 768px) {
  .container-md {
    max-width: 720px;
  }
  
  /* Restore desktop font sizes */
  :root {
    --fs-h1: 2.2rem;
    --fs-h2: 1.8rem;
    --fs-h3: 1.4rem;
    --fs-p: 0.95rem;
    --section-padding: 4rem 0;
  }
  
  /* Hero section improvements */
  #hero {
    min-height: 100vh;
    text-align: left;
  }
  
  .hero-decorative {
    display: block;
  }
  
  /* Navigation improvements */
  .navbar-nav .nav-link {
    padding: 0.5rem 1.5rem;
  }
  
  /* Services grid */
  .services-grid .col-md-4 {
    margin-bottom: 2rem;
  }
  
  /* Team grid */
  .team-grid .col-md-4 {
    margin-bottom: 2rem;
  }
  
  /* Contact form layout */
  .contact-form {
    padding: 2.5rem;
  }
}

/* =========================================
   LARGE DEVICES (992px+)
   ========================================= */
@media (min-width: 992px) {
  .container-lg {
    max-width: 960px;
  }
  
  /* Enhanced hero section */
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  /* Services layout optimization */
  .service-card {
    margin-bottom: 2rem;
  }
  
  .service-image {
    height: 220px;
  }
  
  /* Footer layout */
  .footer-section {
    margin-bottom: 1rem;
  }
  
  /* Gallery improvements */
  .gallery-item {
    margin-bottom: 1.5rem;
  }
}

/* =========================================
   EXTRA LARGE DEVICES (1200px+)
   ========================================= */
@media (min-width: 1200px) {
  .container-xl {
    max-width: 1140px;
  }
  
  /* Maximum font sizes for large screens */
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  /* Enhanced spacing */
  :root {
    --section-padding: 5rem 0;
    --card-padding: 2rem;
  }
  
  /* Service cards full optimization */
  .service-image {
    height: 240px;
  }
  
  .custom-card {
    padding: 2rem;
  }
}

/* =========================================
   EXTRA EXTRA LARGE DEVICES (1400px+)
   ========================================= */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
  
  /* Container max width optimization */
  .container {
    max-width: 1320px;
  }
}

/* =========================================
   MOBILE SPECIFIC OPTIMIZATIONS
   ========================================= */
@media (max-width: 767px) {
  /* Mobile navigation */
  .navbar-collapse {
    background: var(--primary-cream);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    box-shadow: var(--shadow-soft);
  }
  
  /* Mobile hero adjustments */
  #hero {
    padding: 2rem 0;
    text-align: center;
  }
  
  .hero-content {
    padding: 0 1rem;
    padding-top: 125px;
}
  
  /* Mobile section spacing */
  .section {
    padding: 2.5rem 0;
  }
  
  /* Mobile card spacing */
  .custom-card,
  .service-card {
    margin-bottom: 1.5rem;
  }
  
  /* Mobile form adjustments */
  .contact-form {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  /* Mobile team layout */
  .team-member {
    margin-bottom: 2.5rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Mobile gallery */
  .gallery-item {
    margin-bottom: 1rem;
  }
  
  /* Mobile footer */
  .footer-section {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  /* NO SCROLL ANIMATIONS ON MOBILE */
  .sal-animate,
  [data-sal] {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* =========================================
   TABLET PORTRAIT (768px - 991px)
   ========================================= */
@media (min-width: 768px) and (max-width: 991px) {
  /* Tablet-specific optimizations */
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .service-image {
    height: 200px;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
  }
}

/* =========================================
   HIGH DPI / RETINA DISPLAYS
   ========================================= */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Enhance shadows and borders for retina displays */
  .custom-card,
  .service-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  }
  
  .custom-card:hover,
  .service-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18);
  }
}

/* =========================================
   PRINT STYLES
   ========================================= */
@media print {
  /* Hide unnecessary elements when printing */
  .navbar,
  .hero-decorative,
  .btn,
  #footer {
    display: none !important;
  }
  
  /* Optimize spacing for print */
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  /* Ensure readable colors for print */
  body {
    background: white !important;
    color: black !important;
    overflow-x: hidden;
}
  
  .custom-card,
  .service-card {
    border: 1px solid #ccc;
    box-shadow: none;
  }
}

/* =========================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  /* Remove all animations for users who prefer reduced motion */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .custom-card:hover,
  .service-card:hover {
    transform: none;
  }
}

@media (prefers-contrast: high) {
  /* High contrast mode adjustments */
  :root {
    --shadow-soft: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.4);
  }
  
  .form-control {
    border-width: 2px;
  }
  
  .btn-primary {
    border: 2px solid var(--dark-teal);
  }
}

/* =========================================
   LANDSCAPE MOBILE ORIENTATION
   ========================================= */
@media (max-width: 767px) and (orientation: landscape) {
  #hero {
    min-height: 70vh;
  }
  
  .section {
    padding: 2rem 0;
  }
}

/* =========================================
   VERY SMALL SCREENS (320px - 479px)
   ========================================= */
@media (max-width: 479px) {
  :root {
    --fs-h1: 1.6rem;
    --fs-h2: 1.3rem;
    --fs-h3: 1.1rem;
    --fs-p: 0.88rem;
  }
  
  .container,
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-content {
    padding: 0 0.5rem;
    padding-top: 125px;
}
  
  .contact-form {
    padding: 1rem;
    margin: 0.5rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
    font-size: 1.5rem;
  }
} 