/* css/responsive.css */

/* ============ MOBILE - < 768px ============ */
@media (max-width: 767px) {
    .container {
        width: 100%;
        padding: 0 20px;
    }
    
    section {
        padding: 50px 20px;
    }
    
    .hero {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 50px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-meta {
        grid-column: 1;
        flex-direction: row;
        gap: 1rem;
    }
    
    .hero-content {
        grid-column: 1;
    }
    
    .hero-title {
        font-size: clamp(3rem, 14vw, 4.5rem);
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .hero-actions {
        margin-top: 1.5rem;
    }
    
    .hero-visual {
        grid-column: 1;
        aspect-ratio: 1/1;
        margin-top: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .editorial-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section-index {
        grid-column: 1;
    }
    
    .section-content {
        grid-column: 1;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .why-therapy-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .process::before {
        left: 1.5rem;
    }
    
    .process li {
        grid-template-columns: 3rem 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .process-number {
        width: 3rem;
        height: 3rem;
        font-size: 0.9rem;
    }
    
    .topic-item {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 1rem 0;
    }
    
    .topic-title {
        font-size: 1.3rem;
        flex-basis: calc(100% - 4rem);
    }
    
    .topic-arrow {
        opacity: 1;
        transform: none;
    }
    
    .card {
        padding: 20px;
    }
    
    .large-quote {
        font-size: 1.6rem;
        margin: 1rem 0;
    }
    
    .about-visual {
        aspect-ratio: 4/3;
        margin-bottom: 1.5rem;
    }
    
    .about-sections {
        gap: 1.5rem;
    }
    
    .fees-info-grid {
        gap: 1rem;
    }
    
    .info-sections {
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .contact-grid {
        gap: 2rem;
    }
    
    .contact-details {
        margin-top: 1rem;
    }
    
    .legal-section {
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .faq-question {
    padding: 1.25rem 0;
    gap: 1rem;
}

.faq-icon {
    width: 20px;
    height: 20px;
}

.faq-answer {
    padding-bottom: 1.25rem;
}
}

/* ============ TABLET - 768px to 1023px ============ */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        width: 100%;
        padding: 0 30px;
    }
    
    section {
        padding: 60px 30px;
    }
    
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .hero-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 20px;
    }
    
    .hero-meta {
        grid-column: 1 / 2;
    }
    
    .hero-content {
        grid-column: 2 / 8;
    }
    
    .hero-title {
        font-size: clamp(3.5rem, 6vw, 5rem);
    }
    
    .hero-visual {
        grid-column: 1 / 9;
        aspect-ratio: 16/9;
        margin-top: 1.5rem;
    }
    
    .why-therapy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .why-item:last-child {
        grid-column: 1 / -1;
    }
    
    .editorial-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 20px;
    }
    
    .section-index {
        grid-column: 1 / 2;
    }
    
    .section-content {
        grid-column: 2 / 8;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .values-grid {
        gap: 1.25rem;
    }
    
    .contact-grid {
        gap: 2.5rem;
    }
    
    .footer-grid {
        gap: 1.5rem;
    }
}

/* ============ DESKTOP - 1024px to 1279px ============ */
@media (min-width: 1024px) and (max-width: 1279px) {
    .container {
        width: min(100% - 80px, var(--container));
    }
    
    .hero-title {
        font-size: clamp(4.5rem, 6vw, 6.5rem);
    }
    
    .desktop-nav {
        gap: 1.75rem;
    }
    
    .desktop-nav a {
        font-size: 0.75rem;
    }
}

/* ============ LARGE DESKTOP - 1280px and above ============ */
@media (min-width: 1280px) {
    .container {
        width: min(100% - 128px, var(--container));
    }
    
    .hero-title {
        font-size: clamp(5rem, 7vw, 8rem);
    }
}

/* ============ EXTRA LARGE DESKTOP - 1536px and above ============ */
@media (min-width: 1536px) {
    .container {
        width: min(100% - 160px, 1400px);
    }
    
    .hero-title {
        font-size: 8.5rem;
    }
}

/* ============ HIGH-DPI SCREENS ============ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-shape {
        background: linear-gradient(135deg, var(--accent-light) 0%, var(--surface) 100%);
    }
    
    .about-placeholder {
        background: linear-gradient(135deg, var(--accent-light) 0%, var(--surface) 100%);
    }
}

/* ============ TOUCH DEVICES ============ */
@media (hover: none) {
    .topic-item:hover {
        transform: none;
    }
    
    .topic-arrow {
        opacity: 1;
        transform: none;
    }
    
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
    
    .card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .theme-toggle:hover {
        transform: none;
    }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-word {
        animation: none !important;
        opacity: 1 !important;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .image-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .hero-shape {
        animation: none !important;
    }
}

/* ============ PRINT STYLES ============ */
@media print {
    .header,
    .footer,
    .mobile-nav,
    .theme-toggle,
    .menu-toggle,
    .cta-section,
    .hero-actions {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        width: 100%;
        padding: 0;
    }
    
    a {
        text-decoration: none;
        color: black;
    }
}

/* Example: make therapy page even tighter on mobile */
@media (max-width: 767px) {
    main.spacing-tight > section {
        padding-block: 24px;
    }
}