/* ===== HOUSING POLICY ADVOCACY OFFICE - RESPONSIVE CSS ===== */

/* Tablet Styles (max-width: 991px) */
@media (max-width: 991px) {
  /* Typography */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  /* Hero Section */
  .hero-section {
    min-height: 80vh;
  }
  
  /* Services */
  .service-card {
    margin-bottom: 2rem;
  }
  
  /* Team */
  .team-member img {
    width: 150px;
    height: 150px;
  }
  
  /* Process */
  .process-step {
    margin-bottom: 2rem;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Mobile Styles (max-width: 767px) */
@media (max-width: 767px) {
  /* Global */
  .section {
    padding: 3rem 0;
  }
  
  /* Typography */
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.125rem; }
  p { font-size: 0.9375rem; }
  
  .navbar-brand {
    font-size: 1.125rem !important;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-content {
    padding: 0 1rem;
  }
  
  .hero-image {
    margin-top: 2rem;
  }
  
  /* About Features */
  .feature-box {
    margin-bottom: 1.5rem;
  }
  
  /* Services */
  .service-price {
    font-size: 1.5rem;
  }
  
  /* Team */
  .team-member {
    margin-bottom: 3rem;
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Footer */
  footer {
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 2rem;
  }
  
  /* Blog Grid */
  #blog_grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Price Cards */
  .price-card {
    margin-bottom: 2rem;
  }
  
  .price-amount {
    font-size: 2rem;
  }
  
  /* FAQ */
  .faq-question {
    font-size: 0.9375rem;
    padding: 0.75rem 1rem;
  }
  
  .faq-answer {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
  }
  
  /* Decorative Blobs - Hide on mobile */
  .blob-shape {
    display: none;
  }
  
  /* Timeline */
  .timeline-item {
    padding-left: 2rem;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-item {
    height: 200px;
  }
  
  /* Space Page */
  #space h1 {
    font-size: 2rem;
    padding: 0 1rem;
  }
  
  /* Swiper Slider - Disable autoplay and effects on mobile */
  .swiper-container {
    overflow: hidden;
  }
  
  .swiper-slide {
    transition-duration: 0ms !important;
  }
  
  .swiper-container[data-autoplay] {
    --swiper-autoplay: 0;
  }
  
  /* Disable Swiper effects on mobile */
  .swiper-container[data-effect] {
    --swiper-effect: slide !important;
  }
}

/* Small Mobile (max-width: 575px) */
@media (max-width: 575px) {
  /* Container adjustments */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Hero */
  .hero-section {
    min-height: 60vh;
  }
  
  /* Section Titles */
  .section-title {
    margin-bottom: 2rem;
  }
  
  /* Cards and boxes */
  .service-card,
  .feature-box,
  .testimonial-card,
  .price-card,
  .career-card,
  .case-study-card {
    padding: 1.5rem;
  }
  
  /* Process numbers */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Contact Info */
  #contact-info-phone,
  #contact-info-email,
  #contact-info-address {
    font-size: 0.875rem;
  }
}

/* Extra Small Mobile (max-width: 375px) */
@media (max-width: 375px) {
  /* Further typography reduction */
  h1 { font-size: 1.375rem; }
  h2 { font-size: 1.125rem; }
  h3 { font-size: 1rem; }
  p { font-size: 0.875rem; }
  
  /* Button adjustments */
  .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
  }
  
  /* Form controls */
  .form-control,
  .form-select {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }
}

/* Landscape Mobile (max-height: 600px and orientation: landscape) */
@media (max-height: 600px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
  }
  
  .section {
    padding: 2rem 0;
  }
}

/* Print Styles */
@media print {
  /* Hide navigation and footer */
  .navbar,
  footer,
  .btn,
  .breadcrumb-section {
    display: none !important;
  }
  
  /* Adjust sections for print */
  .section {
    page-break-inside: avoid;
  }
  
  /* Remove backgrounds and shadows */
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  /* Links */
  a[href]:after {
    content: " (" attr(href) ")";
  }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Sharper borders and shadows */
  .service-card,
  .feature-box,
  .testimonial-card,
  .price-card {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Disable Swiper animations */
  .swiper-container {
    --swiper-speed: 0;
  }
} 