/* ==========================================================================
   Responsive Stylesheet for Remote Assistant Agency Template
   Mobile-First Approach with Bootstrap 5 Breakpoints
   ========================================================================== */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Conservative Typography for Mobile */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Navbar Brand Mobile */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  /* Hero Section Mobile */
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-decorative {
    width: 150px;
    height: 150px;
    top: 10%;
    right: 5%;
  }
  
  .hero-decorative::before {
    width: 75px;
    height: 75px;
    top: -40px;
    left: -40px;
  }
  
  /* Section Padding Mobile */
  .section-padding {
    padding: 40px 0;
  }
  
  /* Cards Mobile */
  .service-card,
  .team-card,
  .review-card,
  .price-card,
  .career-card,
  .case-study-card {
    margin-bottom: 1.5rem;
  }
  
  /* Contact Form Mobile */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Gallery Grid Mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  /* Blog Grid Mobile */
  #blog_grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Process Steps Mobile */
  .process-step {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
  }
  
  /* Team Photo Mobile */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Price Card Featured Mobile */
  .price-card.featured {
    transform: none;
    border: 2px solid var(--primary-color);
  }
  
  /* Custom Spacing Mobile */
  .mb-6 {
    margin-bottom: 2rem;
  }
  
  .py-6 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  /* NO ANIMATIONS ON MOBILE per requirements */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  .service-card:hover,
  .gallery-item:hover img {
    transform: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Gallery Grid Small */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Blog Grid Small */
  #blog_grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Hero Decorative Small */
  .hero-decorative {
    width: 175px;
    height: 175px;
  }
  
  .hero-decorative::before {
    width: 85px;
    height: 85px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Gallery Grid Medium */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Typography Medium */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  /* Section Padding Medium */
  .section-padding {
    padding: 60px 0;
  }
  
  /* Hero Section Medium */
  .hero-section {
    min-height: 90vh;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Full desktop styles applied from main.css */
  /* Additional specific adjustments if needed */
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Maximum width containers */
  .container {
    max-width: 1200px;
  }
  
  /* Enhanced spacing for large screens */
  .section-padding {
    padding: 100px 0;
  }
  
  /* Gallery Grid XL */
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  /* Enhanced decorative elements */
  .hero-decorative {
    width: 250px;
    height: 250px;
  }
  
  .hero-decorative::before {
    width: 125px;
    height: 125px;
    top: -60px;
    left: -60px;
  }
}

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

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

/* Print styles */
@media print {
  /* Hide navigation and interactive elements */
  .navbar,
  .btn,
  .contact-form {
    display: none !important;
  }
  
  /* Ensure proper typography for print */
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000000;
  }
  
  h1, h2, h3, h4 {
    color: #000000;
    page-break-after: avoid;
  }
  
  /* Remove backgrounds and shadows for print */
  .service-card,
  .team-card,
  .review-card,
  .price-card,
  .career-card,
  .case-study-card,
  .faq-card,
  .process-step,
  .blog-card {
    box-shadow: none;
    background: #ffffff !important;
    border: 1px solid #cccccc;
  }
}

/* Accessibility - Focus states */
@media (prefers-reduced-motion: no-preference) {
  /* Only apply smooth transitions when motion is preferred */
  .service-card,
  .gallery-item img,
  .btn {
    transition: transform 0.3s ease;
  }
}

/* Dark mode support (if browser supports) */

/* Contrast adjustments for accessibility */
@media (prefers-contrast: high) {
  /* Enhance contrast for accessibility */
  .btn-primary {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
  }
  
  .service-card,
  .team-card,
  .review-card,
  .price-card,
  .career-card,
  .case-study-card,
  .faq-card,
  .process-step,
  .blog-card {
    border: 2px solid var(--dark-text);
  }
} 

.hero-section h1 {
    padding-top: 275px;
}