/* Elder Guardianship Assessment Clinics - Responsive CSS */

/* Mobile First Approach */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .card-icon {
    font-size: 2.5rem;
  }
  
  .team-member img {
    width: 150px;
    height: 150px;
  }
  
  .contact-form {
    padding: 2rem 1rem;
  }
  
  /* Disable animations on mobile for performance */
  .hero-section::before {
    animation: none;
  }
  
  .service-card:hover, .feature-card:hover, .price-card:hover {
    transform: none;
  }
  
  .gallery-item:hover {
    transform: none;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 3.25rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 992px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Container responsive adjustments */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Navigation responsive behavior */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(156, 181, 163, 0.95);
    border-radius: 10px;
    margin-top: 1rem;
    padding: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Card grid responsive behavior */
@media (max-width: 767.98px) {
  .service-card, .feature-card, .price-card {
    margin-bottom: 2rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .col-md-6 .service-card,
  .col-md-6 .feature-card,
  .col-md-6 .price-card {
    height: auto;
    min-height: 300px;
  }
}

/* Team section responsive */
@media (max-width: 767.98px) {
  .team-member {
    margin-bottom: 3rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .team-member img {
    width: 180px;
    height: 180px;
  }
}

/* Swiper responsive settings */
@media (max-width: 767.98px) {
  .swiper-button-next, .swiper-button-prev {
    display: none;
  }
  
  .swiper-pagination {
    bottom: 1rem;
  }
}

/* Footer responsive */
@media (max-width: 767.98px) {
  footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-content {
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 2rem;
  }
}

/* Form responsive adjustments */
@media (max-width: 575.98px) {
  .form-control {
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
  }
  
  .btn-primary {
    width: 100%;
    padding: 0.75rem;
  }
}

/* FAQ responsive */
@media (max-width: 767.98px) {
  .faq-question, .faq-answer {
    padding: 1rem;
  }
}

/* Typography responsive scaling */
@media (max-width: 575.98px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
  h5 { font-size: 1.1rem; }
  h6 { font-size: 1rem; }
  
  .section-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
}

/* Utility responsive classes */
@media (max-width: 767.98px) {
  .text-md-left { text-align: left !important; }
  .text-md-center { text-align: center !important; }
  .text-md-right { text-align: right !important; }
  
  .d-md-none { display: none !important; }
  .d-md-block { display: block !important; }
  
  .mb-md-3 { margin-bottom: 1rem !important; }
  .mb-md-4 { margin-bottom: 1.5rem !important; }
  .mb-md-5 { margin-bottom: 3rem !important; }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .gallery-item img,
  .blog-card img,
  .team-member img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .navbar, .footer, .btn, .swiper-button-next, .swiper-button-prev, .swiper-pagination {
    display: none !important;
  }
  
  body {
overflow-x: hidden;
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section-title, .hero-title {
    color: #000;
    font-size: 18pt;
  }
  
  .card-title, .team-name {
    color: #000;
    font-size: 14pt;
  }
}

/* Accessibility improvements for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .swiper {
    scroll-behavior: auto;
  }
  
  .gallery-item, .blog-card, .service-card, .feature-card, .price-card {
    transition: none;
  }
  
  .btn-primary {
    transition: none;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --gray-100: #1a1a1a;
    --gray-200: #2d2d2d;
    --gray-300: #404040;
    --gray-600: #a0a0a0;
    --gray-800: #e0e0e0;
    --gray-900: #ffffff;
    --white: #121212;
  }
  
  .hero-section {
    background: linear-gradient(135deg, var(--dark-sage) 0%, var(--dark-lavender) 50%, var(--dark-mint) 100%);
  }
  
  .service-card, .feature-card, .price-card, .review-card, .faq-item, .blog-card {
    background: var(--gray-200);
    color: var(--gray-800);
  }
} 