/* ======================================
   Responsive Styles - Mobile First Approach
   ====================================== */

/* Base Mobile Styles (up to 575px) */
@media (max-width: 575.98px) {
  /* Typography adjustments for mobile */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  /* Hero section mobile adjustments */
  #hero {
    min-height: 80vh;
    text-align: center;
    padding: 60px 0;
  }
  
  #hero::before {
    display: none; /* Remove decorative shapes on mobile */
  }
  
  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  /* Section padding reduction for mobile */
  .section {
    padding: 60px 0;
  }
  
  /* Service cards mobile layout */
  .service-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .service-image {
    height: 180px;
  }
  
  /* Price plan cards mobile */
  .priceplan-card {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }
  
  .priceplan-card.featured {
    transform: none;
    border: 2px solid var(--primary-teal);
  }
  
  .priceplan-card.featured:hover {
    transform: translateY(-5px);
  }
  
  /* Team images smaller on mobile */
  .team-image {
    width: 120px;
    height: 120px;
  }
  
  /* Contact form mobile adjustments */
  .contact-form,
  .contact-info {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }
  
  /* Gallery grid mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  /* Footer mobile adjustments */
  #footer {
    padding: 3rem 0 1.5rem;
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 2rem;
  }
  
  /* Process items mobile */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  /* Timeline mobile adjustments */
  .timeline-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  /* Feature items mobile */
  .feature-item {
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
  }
  
  .feature-icon {
    font-size: 2.5rem;
  }
  
  /* Core info mobile */
  .coreinfo-card {
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
  }
  
  .coreinfo-icon {
    font-size: 2.5rem;
  }
  
  /* Career cards mobile */
  .career-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  /* Case study cards mobile */
  .casestudy-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  /* Blog cards mobile */
  .blog-card {
    margin-bottom: 2rem;
  }
  
  .blog-image {
    height: 180px;
  }
  
  /* Review cards mobile */
  .review-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  /* FAQ cards mobile */
  .faq-card {
    padding: 1.5rem;
  }
  
  /* Button adjustments for mobile */
  .btn-primary,
  .btn-secondary {
    padding: 10px 25px;
    font-size: 14px;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  /* Form controls mobile */
  .form-control {
    padding: 10px 12px;
    margin-bottom: 1rem;
  }
  
  /* Contact items mobile */
  .contact-item {
    flex-direction: column;
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .contact-icon {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Slightly increase button width */
  .btn-primary,
  .btn-secondary {
    width: auto;
    min-width: 150px;
  }
  
  /* Contact items side by side */
  .contact-item {
    flex-direction: row;
    text-align: left;
  }
  
  .contact-icon {
    margin-right: 1rem;
    margin-bottom: 0;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Gallery grid 3 columns for tablets */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Hero section tablet adjustments */
  #hero {
    text-align: left;
  }
  
  /* Section padding tablet */
  .section {
    padding: 70px 0;
  }
  
  /* Price plan featured scale */
  .priceplan-card.featured {
    transform: scale(1.02);
  }
  
  /* Footer tablet layout */
  #footer {
    text-align: left;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Gallery grid 4 columns for desktop */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Full section padding */
  .section {
    padding: var(--section-padding);
  }
  
  /* Hero decorative shapes visible */
  #hero::before {
    display: block;
  }
  
  /* Price plan featured scale */
  .priceplan-card.featured {
    transform: scale(1.05);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Gallery grid 5 columns for large screens */
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  /* Maximum content width */
  .container {
    max-width: 1140px;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  /* Reduce hero height in landscape mobile */
  #hero {
    min-height: 70vh;
    padding: 40px 0;
  }
  
  /* Reduce section padding in landscape mobile */
  .section {
    padding: 40px 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp images on retina displays */
  .gallery-image,
  .service-image,
  .blog-image,
  .team-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  /* Hide navigation and footer for print */
  .navbar,
  #footer {
    display: none;
  }
  
  /* Ensure sections break properly */
  .section {
    page-break-inside: avoid;
    padding: 20px 0;
  }
  
  /* Remove box shadows for print */
  .service-card,
  .priceplan-card,
  .review-card,
  .blog-card,
  .career-card,
  .casestudy-card,
  .faq-card,
  .contact-form,
  .contact-info {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  /* Use black text for print */
  body,
  h1, h2, h3, h4, h5, h6,
  p, .feature-description,
  .service-description,
  .review-text,
  .career-description {
    color: #000 !important;
  }
  
  /* Hide decorative elements */
  #hero::before,
  .feature-icon,
  .coreinfo-icon {
    display: none;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  /* Remove all animations and transitions 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;
  }
  
  /* Remove hover transforms */
  .service-card:hover,
  .priceplan-card:hover,
  .team-card:hover,
  .feature-item:hover,
  .coreinfo-card:hover,
  .career-card:hover,
  .casestudy-card:hover,
  .blog-card:hover,
  .gallery-item:hover .gallery-image,
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  /* Increase contrast for better accessibility */
  .btn-primary,
  .btn-secondary {
    border: 2px solid currentColor;
  }
  
  .form-control {
    border-width: 2px;
  }
  
  .service-card,
  .priceplan-card,
  .review-card,
  .blog-card,
  .career-card,
  .casestudy-card,
  .faq-card,
  .contact-form,
  .contact-info {
    border: 2px solid var(--primary-charcoal);
  }
}

/* Dark mode preference support */

/* Focus improvements for keyboard navigation */
.btn:focus,
.form-control:focus,
.nav-link:focus,
.navbar-brand:focus,
.blog-link:focus,
.footer-link:focus {
  outline: 3px solid var(--primary-teal);
  outline-offset: 2px;
}

/* Ensure minimum touch target size on mobile */
@media (max-width: 767.98px) {
  .btn,
  .form-control,
  .nav-link {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Container max-width adjustments for different breakpoints */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Specific mobile menu adjustments (using Bootstrap standard) */
@media (max-width: 991.98px) {
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem var(--primary-teal);
  }
  
  .navbar-collapse {
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-cream);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
} 

.hero-content {
    padding-top: 275px;
}