/* Responsive CSS for Art Therapy Template */

/* Mobile First Approach */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.87rem; }
    h3 { font-size: 1.60rem; }
    h4 { font-size: 1.33rem; }
    
    .display-4 { font-size: 2rem; }
    .display-3 { font-size: 2.53rem; }
    
    .navbar-brand {
        font-size: 1.26rem;
    }
    
    .hero-section {
        padding: 2rem 0;
        min-height: 60vh;
    }
    
    .hero-section h1 {
        font-size: 1.86rem;
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .card {
        margin-bottom: 1.69rem;
    }
    
    .btn {
        font-size: 0.99rem;
        padding: 0.6rem 1.2rem;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    .gallery img {
        margin-bottom: 1rem;
    }
    
    .accordion-button {
        padding: 1rem;
        font-size: 0.92rem;
    }
    
    .form-control {
        padding: 0.6rem 0.8rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Stack elements vertically */
    .row.align-items-center > div {
        text-align: center !important;
        margin-bottom: 2rem;
    }
    
    .row.align-items-center > div:last-child {
        margin-bottom: 0;
    }
    
    /* Footer adjustments */
    footer .row > div {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    footer .row > div:last-child {
        margin-bottom: 0;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        padding: 3rem 0;
        min-height: 70vh;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .team-member img {
        width: 140px;
        height: 140px;
    }
    
    .card-deck .card {
        margin-bottom: 2rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-section h1 {
        font-size: 2.28rem;
    }
    
    .navbar-nav {
        flex-direction: row;
    }
    
    .navbar-nav .nav-link {
        margin: 0 0.5rem;
    }
    
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Adjust grid for better tablet layout */
    .col-md-6.col-lg-3 {
        margin-bottom: 2rem;
    }
    
    .col-md-6.col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Large Devices (desktops, 997px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section {
        min-height: 90vh;
    }
    
    .container {
        max-width: 940px;
    }
    
    section {
        padding: 5rem 0;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section {
        min-height: 100vh;
    }
    
    section {
        padding: 6rem 0;
    }
    
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced hover effects for larger screens */
    .card:hover {
        transform: translateY(-8px);
    }
    
    .team-member:hover img {
        transform: scale(1.15);
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.88rem;
        margin-bottom: 0.64rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Note: Dark mode disabled per requirements for accessibility */
    /* This media query is kept for future reference but no styles applied */
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-section::before {
        animation: none;
    }
    
    .card:hover,
    .team-member:hover img,
    .gallery img:hover,
    .btn:hover {
        transform: none;
    }
    
    .fade-in {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

/* Print Styles */
@media print {
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .hero-section {
        background: none;
        color: #000;
        padding: 1rem 0;
    }
    
    .hero-section::before {
        display: none;
    }
    
    .card {
        border: 1px solid #b6aeae;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .btn,
    .navbar,
    .accordion-button,
    .gallery,
    footer {
        display: none;
    }
    
    section {
        padding: 1rem 0;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    p, li {
        page-break-inside: avoid;
    }
}

/* Specific Component Responsiveness */

/* Team Grid Responsiveness */
@media (max-width: 991.98px) {
    .team-section .col-lg-2-5 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2rem;
    }
}

@media (max-width: 575.98px) {
    .team-section .col-lg-2-5 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Process Steps Responsiveness */
@media (max-width: 991.98px) {
    .process-section .col-lg-2-4 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2rem;
    }
}

@media (max-width: 575.98px) {
    .process-section .col-lg-2-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Services Grid */
@media (max-width: 767.98px) {
    .services-section .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    .services-section .col-lg-4:last-child {
        margin-bottom: 0;
    }
}

/* FAQ Section */
@media (max-width: 575.98px) {
    .faq-section .col-lg-8 {
        padding: 0 0.5rem;
    }
    
    .accordion-item {
        margin-bottom: 0.69rem;
    }
}

/* Contact Form Responsiveness */
@media (max-width: 575.98px) {
    .contact-form .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .contact-form .form-control {
        font-size: 16px; /* Prevent iOS zoom */
    }
}

/* Gallery Responsiveness */
@media (max-width: 767.98px) {
    .gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    .gallery img {
        height: 200px;
    }
}

@media (max-width: 575.98px) {
    .gallery img {
        height: 150px;
    }
}

/* Blog Grid Responsiveness */
@media (max-width: 991.98px) {
    .blog-section .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Utility Classes for Responsive Design */
.d-mobile-none {
    display: block;
}

@media (max-width: 767.98px) {
    .d-mobile-none {
        display: none !important;
    }
}

.d-mobile-block {
    display: none;
}

@media (max-width: 767.98px) {
    .d-mobile-block {
        display: block !important;
    }
}

/* Text Alignment Utilities */
@media (max-width: 575.98px) {
    .text-sm-center {
        text-align: center !important;
    }
    
    .text-sm-left {
        text-align: left !important;
    }
}

/* Spacing Utilities for Mobile */
@media (max-width: 575.98px) {
    .mb-sm-3 {
        margin-bottom: 1rem !important;
    }
    
    .mt-sm-3 {
        margin-top: 1rem !important;
    }
    
    .py-sm-2 {
        padding-top: 0.71rem !important;
        padding-bottom: 0.60rem !important;
    }
} 