/* Responsive CSS for Meditation & Mindfulness App */

/* Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    html {
        font-size: 14px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.21rem;
    }
    
    .card-img-top {
        height: 150px;
    }
    
    .team-photo {
        width: 80px;
        height: 80px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.29rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        margin-left: 40px;
    }
    
    .timeline-item::before {
        left: 20px;
    }
    
    .gallery-img {
        height: 200px;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .contact-info {
        padding: 1rem;
        margin-top: 2rem;
    }
    
    #space .display-1 {
        font-size: 2.63rem;
    }
    
    .pricing-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
    
    .hero-section {
        text-align: center;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-bottom: 2rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.52rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        margin-left: 50px;
    }
    
    .timeline-item::before {
        left: 30px;
    }
    
    .gallery-img {
        height: 220px;
    }
    
    #space .display-1 {
        font-size: 3rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.84rem;
    }
    
    .team-photo {
        width: 110px;
        height: 110px;
    }
    
    .timeline-item {
        width: 45%;
        margin-left: 0;
    }
    
    .timeline-item:nth-child(odd) {
        margin-left: 0;
        text-align: right;
        padding-right: 2rem;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 55%;
        text-align: left;
        padding-left: 2rem;
    }
    
    .gallery-img {
        height: 240px;
    }
    
    .navbar-nav .nav-link {
        margin: 0 0.25rem;
    }
    
    .contact-form {
        margin-bottom: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .timeline-item {
        width: 40%;
    }
    
    .timeline-item:nth-child(odd) {
        margin-left: 0;
        text-align: right;
        padding-right: 3rem;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 60%;
        text-align: left;
        padding-left: 3rem;
    }
    
    .pricing-card.featured {
        transform: scale(1.03);
    }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section h1 {
        font-size: 3.61rem;
    }
    
    .container {
        max-width: 1140px;
    }
    
    .timeline-item {
        width: 35%;
    }
    
    .timeline-item:nth-child(odd) {
        margin-left: 0;
        text-align: right;
        padding-right: 3rem;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 65%;
        text-align: left;
        padding-left: 3rem;
    }
}

/* Ultra Wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section h1 {
        font-size: 4rem;
    }
    
    .hero-section p {
        font-size: 1.27rem;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.58rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    #space {
        min-height: 100vh;
    }
    
    #space .display-1 {
        font-size: 3rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .breadcrumb-section,
    footer,
    .btn,
    #gallery {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #c6bdbd !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
}


/* High contrast adjustments */
@media (prefers-contrast: high) {
    .card:hover {
        box-shadow: 0 0 0 4px var(--primary-color);
    }
    
    .btn:focus,
    .form-control:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    .navbar-nav .nav-link:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .card:hover {
        transform: none;
    }
    
    .gallery-img:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .timeline-item,
    .process-step,
    .team-photo {
        transition: none;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .card:hover,
    .btn:hover,
    .gallery-img:hover {
        transform: none;
    }
    
    .btn {
        min-height: 44px;
        padding: 1rem 1.5rem;
    }
    
    .form-control {
        min-height: 44px;
        padding: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 1rem 0.5rem;
    }
    
    .accordion-button {
        min-height: 44px;
        padding: 1rem;
    }
}

/* Specific component responsive adjustments */

/* Hero section responsiveness */
@media (max-width: 991.98px) {
    .hero-section .row {
        text-align: center;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-bottom: 3rem;
    }
}

/* Services grid responsiveness */
@media (max-width: 767.98px) {
    .service-card .card-img-top {
        height: 160px;
    }
}

/* Team section responsiveness */
@media (max-width: 575.98px) {
    .team-photo {
        margin-bottom: 1rem;
    }
    
    #team .col-lg-2 {
        margin-bottom: 2rem;
    }
}

/* FAQ section responsiveness */
@media (max-width: 767.98px) {
    .accordion-button {
        font-size: 0.93rem;
        text-align: left;
    }
}

/* Footer responsiveness */
@media (max-width: 767.98px) {
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    footer ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        list-style: none;
        padding: 0;
    }
}

/* Additional pages responsiveness */
@media (max-width: 767.98px) {
    .technique-card,
    .practice-card,
    .posture-card,
    .time-card,
    .advanced-card,
    .program-card,
    .sleep-card,
    .focus-card,
    .emotion-card,
    .integration-card {
        margin-bottom: 1.67rem;
        padding: 1rem;
    }
    
    .breadcrumb-section {
        text-align: center;
    }
} 