/* ===== RESPONSIVE DESIGN ===== */

/* Tablets and smaller desktops */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .content-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    /* Reset equal-heights on smaller screens */
    #despre .content-image {
        height: auto;
    }
    #despre .content-image img {
        height: auto;
        object-fit: cover;
    }
    #despre .content-text {
        max-height: none;
        overflow: visible;
    }

    /* Reset equal-height for Body Symphony on smaller screens */
    #body-symphony .content-image {
        height: auto;
    }
    #body-symphony .content-image img {
        height: auto;
        object-fit: cover;
    }
    #body-symphony .content-text {
        max-height: none;
        overflow: visible;
    }
    
    .content-grid.reverse {
        direction: ltr;
    }
    
    .book-showcase {
        grid-template-columns: 1fr;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    :root {
        --spacing-xs: 0.5rem;
        --spacing-sm: 0.75rem;
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
    }
    
    /* Navigation mobile */
    .nav-container {
        padding: 0.75rem 1rem;
    }
    
    /* Mobile menu overlay */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 998;
    }
    
    body.menu-open::before {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu {
        position: fixed;
        top: 76px;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: calc(100vh - 76px);
        background: var(--color-beige);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .nav-link {
        display: block;
        padding: 0.75rem 0;
        font-size: 1.1rem;
        width: 100%;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(10px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-10px);
    }
    
    /* Logo */
    .logo {
        font-size: 1.3rem;
    }
    
    .logo-image {
        width: 50px;
        height: 50px;
    }
    
    /* Hero */
    .hero {
        height: 100vh;
        min-height: 600px;
    }
    
    .hero-content {
        padding: var(--spacing-lg) var(--spacing-md);
        min-height: 300px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        line-height: 1.5;
    }
    
    /* Sections */
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: var(--spacing-md);
        line-height: 1.3;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    /* Content grids */
    .content-grid,
    .content-grid.reverse {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding-top: 0;
        min-height: auto;
    }
    
    .content-text,
    .content-text.centered {
        margin: 0;
        padding: var(--spacing-md);
    }
    
    .intro-text {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    /* Bio columns */
    .bio-columns {
        columns: 1;
        column-gap: 0;
    }
    
    .bio-quote {
        font-size: 0.95rem;
        padding: 0.75rem;
        margin-top: 1rem;
    }
    
    /* Highlights */
    .highlights {
        gap: var(--spacing-sm);
        padding: var(--spacing-md);
    }
    
    .highlight-item {
        padding: var(--spacing-sm);
    }
    
    .highlight-item i {
        font-size: 1.3rem;
    }
    
    .highlight-item span {
        font-size: 0.95rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding-top: 0;
        min-height: auto;
    }
    
    .service-card {
        padding: var(--spacing-md);
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-icon i {
        font-size: 1.75rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    /* Workshop features */
    .workshop-features {
        padding-top: 0;
        min-height: auto;
        gap: var(--spacing-sm);
    }
    
    .feature-item {
        padding: var(--spacing-md);
        flex-direction: row;
        gap: var(--spacing-md);
    }
    
    .feature-item i {
        font-size: 1.75rem;
        min-width: 40px;
    }
    
    .feature-item h4 {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }
    
    .feature-item p {
        font-size: 0.9rem;
    }
    
    /* Media grid - Body Symphony */
    .media-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding-top: 0;
        min-height: auto;
    }
    
    #body-symphony .media-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    #body-symphony .media-grid > div {
        aspect-ratio: 9 / 16;
        max-height: 500px;
    }
    
    /* Overlay text sizing */
    .see-more-overlay {
        font-size: 1rem;
    }
    
    .see-more-overlay span {
        padding: 0.5rem 1rem;
    }
    
    /* Groups grid */
    .groups-grid {
        grid-template-columns: 1fr;
        padding-top: 0;
        min-height: auto;
    }
    
    /* Book showcase */
    .book-showcase {
        grid-template-columns: 1fr;
        padding: var(--spacing-md);
        margin-top: var(--spacing-md);
        padding-top: var(--spacing-md);
        min-height: auto;
    }
    
    .book-details h3 {
        font-size: 1.5rem;
    }
    
    .book-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .book-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Therapy images */
    .therapy-images {
        grid-template-columns: 1fr;
        padding-top: 0;
        min-height: auto;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        padding-top: 0;
        min-height: auto;
    }
    
    .contact-form {
        padding: var(--spacing-md);
        min-height: auto;
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-lg) 0;
        min-height: auto;
    }
    
    .footer-logo {
        font-size: 1.3rem;
    }
    
    .footer-logo-image {
        width: 45px;
        height: 45px;
    }
    
    .developer-credit {
        font-size: 0.85rem;
        padding: 0.35rem 0.75rem;
    }
    
    /* Scroll to top */
    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    :root {
        --spacing-xs: 0.4rem;
        --spacing-sm: 0.6rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0.6rem 0.75rem;
    }
    
    .nav-menu {
        width: 85%;
        max-width: 280px;
        padding: 1rem;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .logo span {
        font-size: 0.9rem;
    }
    
    .logo-image {
        width: 40px;
        height: 40px;
    }
    
    /* Hero */
    .hero {
        min-height: 500px;
    }
    
    .hero-content {
        padding: 1rem;
        min-height: 250px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.85rem 1.75rem;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
    }
    
    /* Sections */
    .section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Text content */
    .intro-text {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .content-text,
    .content-text.centered {
        padding: 1rem;
        margin: 0;
    }
    
    .content-text p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    /* Bio quote */
    .bio-quote {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
    
    /* Highlights */
    .highlights {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .highlight-item {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .highlight-item i {
        font-size: 1.2rem;
    }
    
    /* Service cards */
    .service-card {
        padding: 1.25rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .service-list {
        margin-top: 0.75rem;
    }
    
    .service-list li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    /* Workshop features */
    .feature-item {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .feature-item i {
        font-size: 1.5rem;
        min-width: 35px;
    }
    
    .feature-item h4 {
        font-size: 1rem;
    }
    
    .feature-item p {
        font-size: 0.85rem;
    }
    
    /* Media grid */
    .media-grid {
        gap: 1rem;
    }
    
    #body-symphony .media-grid {
        gap: 1rem;
    }
    
    #body-symphony .media-grid > div {
        max-height: 450px;
    }
    
    .see-more-overlay {
        font-size: 0.9rem;
    }
    
    .see-more-overlay span {
        padding: 0.4rem 0.85rem;
    }
    
    /* Book showcase */
    .book-showcase {
        padding: 1rem;
    }
    
    .book-details h3 {
        font-size: 1.3rem;
    }
    
    .book-subtitle {
        font-size: 0.9rem;
    }
    
    .book-description {
        font-size: 0.9rem;
    }
    
    /* Forms */
    .form-group input,
    .form-group textarea {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    /* Footer */
    .footer {
        padding: 1.5rem 0;
    }
    
    .footer-logo {
        font-size: 1.1rem;
    }
    
    .footer-logo-image {
        width: 40px;
        height: 40px;
    }
    
    .footer p {
        font-size: 0.85rem;
    }
    
    .developer-credit {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
    
    /* Scroll indicator */
    .scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-indicator i {
        font-size: 1.5rem;
    }
    
    /* Scroll to top button */
    .scroll-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 0.9rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.35rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    #body-symphony .media-grid > div {
        max-height: 400px;
    }
}

