/* Responsive Design - Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --h1-size: 1.75rem;
    --h2-size: 1.5rem;
    --h3-size: 1.25rem;
  }
  
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-section::before {
    width: 100%;
    opacity: 0.2;
  }
  
  .hero-title {
    font-size: 1.80rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .navbar-brand {
    font-size: 1.15rem !important;
  }
  
  .services-item,
  .priceplan-item,
  .about-feature {
    margin-bottom: 1.66rem;
  }
  
  .contact-form {
    padding: 2rem 1rem;
  }
  
  .team-member img {
    width: 150px;
    height: 150px;
  }
  
  .gallery img {
    height: 200px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section::before {
    width: 70%;
  }
  
  .services-item {
    max-width: 400px;
    margin: 0 auto 2rem;
  }
  
  .team-member img {
    width: 180px;
    height: 180px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 80vh;
  }
  
  .hero-section::before {
    width: 60%;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .services-item,
  .priceplan-item {
    margin-bottom: 2rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0 0.75rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 90vh;
  }
  
  .hero-section::before {
    width: 50%;
  }
  
  .services-item {
    height: 100%;
  }
  
  .navbar-nav .nav-link {
    margin: 0 1rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 100vh;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .hero-content {
  padding-top: 50px !important;
    padding-right: 4rem;
  }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    background-image: url('../JAY_images/hero-background@2x.webp');
  }
}

/* Tablet Landscape Orientation */
@media (orientation: landscape) and (max-width: 1024px) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 70vh;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .contact-form,
  .footer {
    display: none;
  }
  
  .section {
    padding: 1rem 0;
    break-inside: avoid;
  }
  
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: auto;
    background: none;
  }
  
  .hero-section::before {
    display: none;
  }
}

/* Accessibility - High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-navy: #000000;
    --accent-white: #ffffff;
    --accent-gray: #676767;
  }
  
  .btn-primary {
    background: #000000;
    border: 2px solid #ffffff;
  }
  
  .form-control {
    border: 2px solid #000000;
  }
}

/* Accessibility - Large Text */
@media (prefers-reduced-motion: no-preference) {
  .services-item:hover,
  .about-feature:hover,
  .blog-item:hover {
    transform: translateY(-5px);
  }
  
  .btn-primary:hover {
    transform: translateY(-2px);
  }
}

/* Container Adjustments */
@media (max-width: 576px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Navigation Responsive */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--primary-navy-dark);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--primary-navy-light);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Grid Adjustments */
@media (max-width: 767.98px) {
  .row > [class*="col-"] {
    margin-bottom: 2rem;
  }
  
  .row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
}

/* Image Responsive Adjustments */
@media (max-width: 575.98px) {
  .services-item img,
  .blog-item img,
  .gallery img {
    width: 100%;
    height: auto;
    min-height: 180px;
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  .hero-section img {
    width: 100%;
    height: 250px;
  }
}

/* Form Responsive */
@media (max-width: 575.98px) {
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .btn-primary {
    width: 100%;
    padding: 1rem;
  }
}

/* Typography Responsive */
@media (max-width: 575.98px) {
  .section-title {
    font-size: 1.58rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .section-desc {
    font-size: 1.00rem;
  }
}

/* Card Responsive */
@media (max-width: 767.98px) {
  .services-item,
  .priceplan-item,
  .about-feature,
  .reviews-item,
  .casestudy-item,
  .process-item,
  .timeline-item,
  .career-item,
  .coreinfo-item,
  .faq-item,
  .blog-item {
    margin-left: 0;
    margin-right: 0;
  }
} 