/* Responsive CSS for Boutique Assisted Living Residence */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-desc {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .service-card,
  .price-card {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
    margin: 0 1rem;
  }
  
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .hero-section {
    padding: 2rem 0;
    min-height: 80vh;
  }
  
  .section {
    padding: 3rem 0;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card,
  .price-card {
    padding: 2rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-section {
    min-height: 90vh;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-title {
    font-size: 3.2rem;
  }
  
  .section-title {
    font-size: 2.3rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .container {
    max-width: 1200px;
  }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
    padding-top: 60px;
  }
  
  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  .hero-desc {
    margin-bottom: 1.5rem;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .service-icon,
  .feature-icon {
    transform: scale(0.9);
  }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .swiper {
    --swiper-navigation-size: 0;
  }
  
  .fade-in-up {
    animation: none;
  }
  
  .service-card:hover,
  .price-card:hover,
  .about-feature:hover,
  .blog-item:hover,
  .gallery-item:hover {
    transform: none;
  }
}

/* Print Styles */
@media print {
  header,
  footer,
  .swiper-pagination,
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section {
    padding: 2rem 0;
    page-break-inside: avoid;
  }
  
  .service-card,
  .price-card,
  .about-feature {
    box-shadow: none;
    border: 1px solid var(--gray-medium);
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1 { font-size: 18pt; }
  h2 { font-size: 16pt; }
  h3 { font-size: 14pt; }
  h4 { font-size: 12pt; }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .service-card,
  .price-card,
  .about-feature,
  .blog-item {
    transition: none;
  }
  
  .service-card:hover,
  .price-card:hover,
  .about-feature:hover,
  .blog-item:hover {
    transform: none;
    box-shadow: var(--shadow-light);
  }
  
  .btn-submit {
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
  }
  
  .form-control {
    padding: 1rem;
    font-size: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 1rem 0.5rem;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --white: #1a1a1a;
    --black: #ffffff;
    --gray-light: #2c2c2c;
    --gray-medium: #a0a0a0;
    --gray-dark: #e0e0e0;
  }
  
  .hero-section {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 50%, #4a4a4a 100%);
  }
  
  .about-section {
    background: linear-gradient(45deg, #2c2c2c, #1a1a1a);
  }
  
  .services-section {
    background: linear-gradient(135deg, #3a4a3a, #4a3a4a);
  }
  
  .service-card,
  .price-card,
  .about-feature,
  .contact-form,
  .blog-item,
  .review-item {
    background: #2c2c2c;
    color: var(--black);
  }
  
  .form-control {
    background: #3a3a3a;
    border-color: #4a4a4a;
    color: var(--black);
  }
  
  .form-control:focus {
    background: #3a3a3a;
    border-color: var(--primary-sage);
  }
}

/* Accessibility Improvements */
@media (prefers-contrast: high) {
  :root {
    --primary-sage: #5a7a50;
    --primary-lavender: #8a5a9a;
    --primary-peach: #d07a53;
    --primary-dusty-rose: #a45a5a;
  }
  
  .service-card,
  .price-card,
  .about-feature {
    border: 2px solid var(--gray-medium);
  }
  
  .btn-submit {
    border: 2px solid var(--dark-sage);
  }
  
  .form-control {
    border-width: 3px;
  }
}

/* Focus Styles for Keyboard Navigation */
.nav-link:focus,
.btn-submit:focus,
.form-control:focus,
.faq-question:focus {
  outline: 3px solid var(--primary-sage);
  outline-offset: 2px;
}

/* Container Responsive Adjustments */
@media (max-width: 1400px) {
  .container {
    max-width: 1200px;
  }
}

@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 540px;
  }
}

@media (max-width: 576px) {
  .container {
    max-width: 100%;
    padding: 0 1rem;
  }
} 