/* Digital Minimalism Coaching Template - Responsive CSS */

/* Mobile First Approach - Base styles for mobile */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.910px) {
    /* Typography Adjustments */
    h1 {
        font-size: 1.78rem;
    }
    
    h2 {
        font-size: 1.53rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Hero Section Mobile */
    #hero {
        padding-top: 2rem;
        padding-bottom: 2rem;
        text-align: center;
    }
    
    #hero h1 {
        margin-bottom: 1rem;
    }
    
    #hero .lead {
        font-size: 1rem;
        margin-bottom: 1.58rem;
    }
    
    /* Remove animations on mobile per specification */
    * {
        animation: none;
        transition: none;
    }
    
    .card:hover {
        transform: none;
        box-shadow: 0 7px 15px rgba(0, 0, 0, 0.08);
    }
    
    .btn:hover {
        transform: none;
    }
    
    .rounded-circle:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    /* Navbar Mobile */
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 15px;
        margin-top: 0.60rem;
        padding: 1rem;
        box-shadow: 0 7px 15px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #dae7f6;
    }
    
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    
    /* Button Adjustments */
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Card Spacing */
    .card {
        margin-bottom: 1.71rem;
    }
    
    /* Section Padding */
    .py-5 {
        padding-top: 2.65rem;
        padding-bottom: 2.66rem;
    }
    
    /* Team Section Mobile */
    .col-6 {
        margin-bottom: 2rem;
    }
    
    /* Form Mobile */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Gallery Mobile */
    #gallery .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* Footer Mobile */
    #footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Process Section Mobile */
    .col-lg-2 {
        margin-bottom: 2rem;
        text-align: center;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.88rem;
    }
    
    #hero {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .py-5 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    /* Remove animations on mobile per specification */
    * {
        animation: none;
        transition: none;
    }
    
    .card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    h1 {
        font-size: 2.31rem;
    }
    
    h2 {
        font-size: 1.99rem;
    }
    
    /* Hero Section Tablet */
    #hero {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    /* Enable animations for tablet and up */
    .card {
        transition: all 0.96s ease;
    }
    
    .btn {
        transition: all 0.81s ease;
    }
    
    /* Card Grid Adjustments */
    .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Team Section Tablet */
    .col-md-4 {
        margin-bottom: 2rem;
    }
    
    /* Navbar Tablet */
    .navbar-nav .nav-link {
        padding: 0.5rem 0.875rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    h1 {
        font-size: 2.40rem;
    }
    
    h2 {
        font-size: 2.07rem;
    }
    
    /* Hero Section Desktop */
    #hero {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
    
    /* Full animations enabled */
    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(91, 96, 255, 0.30);
    }
    
    .btn-outline-primary:hover {
        transform: translateY(-2px);
    }
    
    .rounded-circle:hover {
        transform: scale(1.1);
    }
    
    #gallery img:hover {
        transform: scale(1.05);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    h1 {
        font-size: 2.59rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Hero Section Large Desktop */
    #hero {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
    
    .py-5 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
    
    /* Enhanced spacing for large screens */
    .mb-4 {
        margin-bottom: 2rem;
    }
    
    .mt-5 {
        margin-top: 3rem;
    }
}

/* Specific Mobile Navigation Improvements */
@media (max-width: 991.98px) {
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
}

/* Accessibility Improvements */
@media (max-width: 767.98px) {
    /* Ensure touch targets are at least 44px */
    .btn, .nav-link, .card-title a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .nav-link {
        justify-content: flex-start;
        text-align: left;
    }
}

/* Landscape Phone Specific */
@media (max-height: 480px) and (orientation: landscape) {
    #hero {
        min-height: 80vh;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img-top, 
    .rounded-circle,
    #gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .navbar,
    #footer,
    .btn,
    .card:hover {
        display: none;
    }
    
    .container {
        max-width: none;
        width: 100%;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #d6c4c3;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
        scroll-behavior: auto;
    }
    
    .card:hover,
    .btn:hover,
    .rounded-circle:hover,
    #gallery img:hover {
        transform: none;
    }
} 

body {
    overflow-x: hidden;
}