/* ============================================
   belekdentalclinic - Responsive Styles
   ============================================ */

/* ---- Large Desktop (1400px+) ---- */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* ---- Desktop (1200px) ---- */
@media (max-width: 1200px) {
    :root {
        --text-6xl: 3.25rem;
        --text-5xl: 2.75rem;
    }

    .treatments-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
        gap: var(--space-6);
    }
}

/* ---- Tablet Landscape (1024px) ---- */
@media (max-width: 1024px) {
    :root {
        --text-7xl: 3.5rem;
        --text-6xl: 3rem;
        --text-5xl: 2.5rem;
        --text-4xl: 2rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        align-items: stretch;
        padding: calc(var(--header-height) + var(--space-6)) var(--space-6) var(--space-6);
        box-shadow: var(--shadow-2xl);
        transition: right var(--transition-base);
        overflow-y: auto;
        z-index: 100;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-link {
        padding: var(--space-3) var(--space-4);
        font-size: var(--text-base);
        border-radius: var(--radius-md);
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-link.active {
        background: rgba(46, 196, 182, 0.08);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: var(--space-6);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-base);
    }

    .has-dropdown.open .dropdown-menu {
        max-height: 500px;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: var(--space-4);
        text-align: center;
    }

    .mobile-lang-selector {
        display: flex;
        flex-direction: column;
        gap: var(--space-2);
        margin-top: var(--space-6);
        padding-top: var(--space-6);
        border-top: 1px solid var(--color-gray-100);
    }

    .mobile-lang-link {
        padding: var(--space-2) var(--space-4);
        color: var(--color-gray-600);
        font-size: var(--text-sm);
        border-radius: var(--radius-md);
    }

    .mobile-lang-link.active {
        color: var(--color-turquoise);
        background: rgba(46, 196, 182, 0.08);
        font-weight: 600;
    }

    /* Mobile nav overlay */
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .treatment-content {
        grid-template-columns: 1fr;
    }

    .treatment-sidebar {
        position: static;
    }

    .why-grid {
        gap: var(--space-10);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }
}

/* ---- Tablet Portrait (768px) ---- */
@media (max-width: 768px) {
    :root {
        --text-6xl: 2.5rem;
        --text-5xl: 2.25rem;
        --text-4xl: 1.75rem;
        --text-3xl: 1.5rem;
        --space-24: 4rem;
        --space-20: 3.5rem;
        --space-16: 3rem;
    }

    .header-top-left {
        gap: var(--space-4);
    }

    .header-contact-link span {
        display: none;
    }

    .hero {
        min-height: 85vh;
    }

    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-subtitle {
        font-size: var(--text-base);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .treatments-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: var(--space-3);
        text-align: center;
    }

    .cta-title {
        font-size: var(--text-3xl);
    }

    .page-header {
        padding: calc(var(--header-height) + var(--header-top-height) + var(--space-10)) 0 var(--space-10);
    }

    .page-header-title {
        font-size: var(--text-3xl);
    }

    .section-header {
        margin-bottom: var(--space-10);
    }
}

/* ---- Mobile (576px) ---- */
@media (max-width: 576px) {
    :root {
        --text-6xl: 2rem;
        --text-5xl: 1.875rem;
        --text-4xl: 1.5rem;
        --text-3xl: 1.375rem;
        --space-24: 3rem;
        --space-20: 2.5rem;
        --space-16: 2.5rem;
    }

    .container {
        padding: 0 var(--space-4);
    }

    .hero {
        min-height: 80vh;
    }

    .hero-content {
        padding: var(--space-4);
    }

    .hero-badge {
        font-size: var(--text-xs);
    }

    .hero-title {
        font-size: var(--text-3xl);
    }

    .treatments-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2);
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-4);
    }

    .stat-number {
        font-size: var(--text-3xl);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .cookie-consent-inner {
        flex-direction: column;
        text-align: center;
    }

    .whatsapp-float {
        bottom: var(--space-5);
        right: var(--space-5);
        width: 54px;
        height: 54px;
    }

    .back-to-top {
        right: calc(var(--space-5) + 64px);
        bottom: var(--space-5);
        width: 40px;
        height: 40px;
    }

    .whatsapp-tooltip {
        display: none;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-label::before,
    .section-label::after {
        width: 16px;
    }
}

/* ---- Very Small Screens (380px) ---- */
@media (max-width: 380px) {
    :root {
        --text-5xl: 1.75rem;
        --text-4xl: 1.375rem;
    }

    .hero-title {
        font-size: var(--text-2xl);
    }

    .nav-menu {
        width: 100%;
    }
}

/* ---- Print Styles ---- */
@media print {
    .site-header,
    .whatsapp-float,
    .back-to-top,
    .cookie-consent,
    .preloader {
        display: none !important;
    }

    .site-main {
        padding-top: 0;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}

