/* 
==================================
RESPONSIVE CSS - Accessible Housing Audit Center
================================== 
*/

/* Large Devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
  .hero-title-1 {
    font-size: 3rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Medium Devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
  html {
    font-size: 15px;
  }
  
  .hero-title-1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle-1 {
    font-size: 1.25rem;
  }
  
  .section {
    padding: var(--spacing-lg) 0;
  }
  
  .navbar-nav {
    margin-top: var(--spacing-md);
  }
  
  .nav-item {
    margin-left: 0;
    margin-right: var(--spacing-md);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-image {
    width: 180px;
    height: 180px;
  }
  
  .priceplan-card.featured {
    transform: scale(1.03);
  }
  
  .priceplan-card.featured:hover {
    transform: scale(1.03) translateY(-10px);
  }
}

/* Small Devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
  html {
    font-size: 14px;
  }
  
  .hero {
    height: auto;
    min-height: 100vh;
  }
  
  .hero-title-1 {
    font-size: 2rem;
  }
  
  .hero-subtitle-1 {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .navbar {
    padding: 1rem 0;
  }
  
  .navbar-toggler {
    display: block;
    z-index: 1001;
    position: relative;
  }
  
  .navbar-collapse {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    transition: all 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    display: block;
    flex: none;
  }
  
  .navbar-collapse.show {
    right: 0;
  }
  
  .navbar-nav {
    flex-direction: column !important;
    margin-top: 3rem;
    width: 100%;
    align-items: flex-start;
  }
  
  .nav-item {
    margin: 0 0 1rem 0;
    width: 100%;
  }
  
  .nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    display: block;
    width: 100%;
  }
  
  .close-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1002;
    color: var(--dark-gray);
    width: 35px;
    height: 35px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
    border-radius: 50%;
  }
  
  .close-menu:hover {
    background-color: var(--medium-gray);
  }
  
  .priceplan-card {
    margin-bottom: var(--spacing-md);
  }
  
  .priceplan-card.featured {
    transform: none;
  }
  
  .priceplan-card.featured:hover {
    transform: translateY(-10px);
  }
  
  .priceplan-features {
    min-height: auto;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .gallery-item {
    height: 200px;
  }
  
  .footer [class^="col-"] {
    margin-bottom: var(--spacing-md);
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

/* Extra Small Devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-title-1 {
    font-size: 1.75rem;
  }
  
  .section {
    padding: var(--spacing-md) 0;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-item {
    height: 250px;
  }
  
  .contact-form {
    padding: var(--spacing-md);
  }
  
  .footer {
    text-align: center;
  }
  
  .footer-heading:after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .contact-info {
    justify-content: center;
  }
  
  .scroll-top {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    bottom: 20px;
    right: 20px;
  }
}

/* Media query for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .card:hover,
  .priceplan-card:hover,
  .blog-card:hover .blog-img img,
  .gallery-item:hover img {
    transform: none;
  }
  
  .hero .swiper-container,
  .reviews .swiper-container {
    --swiper-autoplay-delay: 0;
  }
}

/* Tablet and Mobile Navigation */
@media (max-width: 991.98px) {
  .header {
    padding: 0.5rem 0;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .nav-link:after {
    bottom: -5px;
  }
  
  /* Mobile Menu Styles */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  
  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  .navbar-collapse {
    display: block;
  }
}

/* Specific adjustment for hero height on mobile */
@media (max-width: 767.98px) and (orientation: portrait) {
  .hero {
    min-height: 80vh;
    padding: 4rem 0;
  }
}

/* Hide autoplay on mobile to improve performance */
@media (max-width: 767.98px) {
  .swiper-container {
    --swiper-autoplay-delay: 0;
  }
}

/* Reduce padding on small screens */
@media (max-width: 575.98px) {
  .card,
  .review-card {
    padding: var(--spacing-sm);
  }
  
  .form-group {
    margin-bottom: var(--spacing-sm);
  }
} 