/* Responsive Design - Mobile First Approach */

/* Mobile Styles (default) */
@media (max-width: 768px) {
    /* Sidebar becomes overlay on mobile */
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width-mobile);
        z-index: 1001;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        display: flex;
    }
    
    /* Main content takes full width on mobile */
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    /* Hero section adjustments */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-12) 0;
        min-height: auto;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: var(--spacing-8);
    }
    
    .hero h1 {
        font-size: var(--font-size-4xl);
    }
    
    .hero p {
        font-size: var(--font-size-lg);
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        margin-top: var(--spacing-8);
    }
    
    .hero-image .placeholder-image {
        height: 250px;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: var(--font-size-4xl);
    }
    
    h2 {
        font-size: var(--font-size-3xl);
    }
    
    h3 {
        font-size: var(--font-size-xl);
    }
    
    /* Container padding */
    .container {
        padding: 0 var(--spacing-4);
    }
    
    /* Features grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-6);
    }
    
    .feature-card {
        padding: var(--spacing-6);
    }
    
    /* Quick links grid */
    .links-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-6);
    }
    
    /* Products grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-6);
    }
    
    /* Filter buttons */
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
        text-align: center;
    }
    
    /* About page adjustments */
    .intro-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .intro-image .placeholder-image {
        width: 200px;
        height: 200px;
    }
    
    .credentials-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-6);
    }
    
    .philosophy-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-6);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-6);
    }
    
    /* Coaching page adjustments */
    .packages-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-6);
    }
    
    .expect-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-6);
    }
    
    /* Form adjustments */
    .form {
        padding: var(--spacing-6);
    }
    
    /* Button adjustments */
    .btn {
        width: 100%;
        margin-bottom: var(--spacing-3);
    }
    
    .hero-buttons .btn {
        width: auto;
        margin: 0 var(--spacing-2) var(--spacing-3) 0;
    }
    
    /* Product specs */
    .product-specs {
        flex-direction: column;
        gap: var(--spacing-2);
    }
    
    .product-specs span {
        text-align: center;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }
    
    .main-content {
        margin-left: 250px;
    }
    
    .hero {
        padding: var(--spacing-16) 0;
    }
    
    .hero h1 {
        font-size: var(--font-size-4xl);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .credentials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .philosophy-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .expect-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Styles */
@media (min-width: 1025px) {
    .sidebar {
        width: var(--sidebar-width);
    }
    
    .main-content {
        margin-left: var(--sidebar-width);
    }
    
    .hero {
        padding: var(--spacing-20) 0;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .credentials-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .philosophy-content {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .packages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .expect-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Desktop Styles */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero h1 {
        font-size: var(--font-size-5xl);
    }
    
    .hero p {
        font-size: var(--font-size-2xl);
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .placeholder-image {
        background-size: cover;
        background-position: center;
    }
}

/* Print Styles */
@media print {
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .btn {
        display: none;
    }
    
    .hero-buttons {
        display: none;
    }
    
    .filter-buttons {
        display: none;
    }
    
    .sidebar-toggle {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .product-card,
    .package-card,
    .testimonial-card {
        page-break-inside: avoid;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #0f172a;
        --gray-50: #1e293b;
        --gray-100: #334155;
        --gray-200: #475569;
        --gray-300: #64748b;
        --gray-400: #94a3b8;
        --gray-500: #cbd5e1;
        --gray-600: #e2e8f0;
        --gray-700: #f1f5f9;
        --gray-800: #f8fafc;
        --gray-900: #ffffff;
    }
}

/* Focus Styles for Accessibility */
.btn:focus,
.filter-btn:focus,
.lang-btn:focus,
.faq-question:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Skip Link for Screen Readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}
