/**
 * Regentropfen University College - Responsive Styles
 * Breakpoints: 1200px, 1024px, 768px, 480px
 */

/* ===== LARGE DESKTOP (1200px and below) ===== */
@media (max-width: 1200px) {
    :root {
        --container-max-width: 1140px;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 5vw, 4rem);
    }
    
    .faculty-cards {
        gap: var(--spacing-lg);
    }
    
    .why-choose-grid {
        gap: var(--spacing-3xl);
    }
    
    .footer-content {
        gap: var(--spacing-2xl);
    }
}

/* ===== TABLET LANDSCAPE (1024px and below) ===== */
@media (max-width: 1024px) {
    .quick-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-3xl);
    }
    
    .about-visual {
        height: 400px;
        order: -1;
    }
    
    .visual-card-1 {
        width: 100%;
        height: 350px;
    }
    
    .visual-card-2 {
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .faculty-cards {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
    
    .why-stats {
        order: -1;
        grid-template-columns: repeat(4, 1fr);
        margin-bottom: var(--spacing-2xl);
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-featured .news-image {
        height: 300px;
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== TABLET PORTRAIT (768px and below) ===== */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }
    
    /* Quick Access Bar - Hidden on mobile */
    .quick-access-bar {
        display: none;
    }
    
    /* Header */
    .header-content {
        min-height: 60px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
        z-index: 1100;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Mobile Navigation */
    .main-navigation {
        position: fixed;
        inset: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: calc(var(--spacing-3xl) + 60px) var(--spacing-xl) var(--spacing-xl);
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        z-index: 1050;
        overflow-y: auto;
    }
    
    .main-navigation.active {
        transform: translateX(0);
    }
    
    .nav-menu {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: stretch;
    }
    
    .nav-item {
        border-bottom: 1px solid var(--gray-100);
    }
    
    .nav-link {
        padding: var(--spacing-md);
        font-size: 1.125rem;
        justify-content: space-between;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 var(--spacing-md) var(--spacing-lg);
        margin: 0;
        display: none;
        background: var(--gray-50);
    }
    
    .nav-item.has-dropdown.open .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 1rem;
    }
    
    /* Hero Section */
    .hero-slider {
        min-height: 600px;
        height: 100vh;
        max-height: 800px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: var(--spacing-lg);
    }
    
    .stat-divider {
        display: none;
    }
    
    .stat-item {
        flex: 0 0 calc(50% - var(--spacing-md));
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-nav {
        display: none;
    }
    
    .hero-progress {
        bottom: var(--spacing-2xl);
    }
    
    .scroll-indicator {
        display: none;
    }
    
    /* Quick Access Section */
    .section-quick-access {
        margin-top: 0;
        padding: var(--spacing-2xl) 0;
    }
    
    .quick-cards {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .quick-card {
        padding: var(--spacing-lg);
    }
    
    /* About Section */
    .section-about {
        padding: var(--spacing-3xl) 0;
    }
    
    .about-visual {
        height: 350px;
    }
    
    .visual-card-2 {
        width: 140px;
        height: 140px;
    }
    
    .exp-number {
        font-size: 2.5rem;
    }
    
    /* Faculties Section */
    .section-faculties {
        padding: var(--spacing-3xl) 0;
    }
    
    .faculty-card {
        padding: var(--spacing-xl);
    }
    
    /* Why Choose Section */
    .section-why-choose {
        padding: var(--spacing-3xl) 0;
    }
    
    .why-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card {
        padding: var(--spacing-lg);
    }
    
    .stat-card .stat-value {
        font-size: 2.5rem;
    }
    
    /* News Section */
    .section-news {
        padding: var(--spacing-3xl) 0;
    }
    
    .section-news .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
    
    .news-card {
        margin-bottom: var(--spacing-md);
    }
    
    /* Testimonials Section */
    .section-testimonials {
        padding: var(--spacing-3xl) 0;
    }
    
    .testimonial-card {
        padding: var(--spacing-xl);
    }
    
    /* CTA Section */
    .section-cta {
        padding: var(--spacing-3xl) 0;
    }
    
    .cta-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
    
    /* Footer */
    .main-footer {
        padding: var(--spacing-3xl) 0 var(--spacing-lg);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    /* WhatsApp Button */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

/* ===== MOBILE (480px and below) ===== */
@media (max-width: 480px) {
    :root {
        --container-padding: 0.75rem;
    }
    
    /* Hero */
    .hero-slider {
        min-height: 550px;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: var(--spacing-xs) var(--spacing-md);
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .progress-dot {
        width: 36px;
        height: 36px;
    }
    
    /* Quick Cards */
    .quick-card-icon {
        width: 48px;
        height: 48px;
    }
    
    .quick-card-icon svg {
        width: 24px;
        height: 24px;
    }
    
    /* Section Headers */
    .section-heading {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    
    /* About */
    .about-visual {
        height: 300px;
    }
    
    .visual-card-1 {
        height: 280px;
    }
    
    .about-features {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    /* Why Choose */
    .why-stats {
        grid-template-columns: 1fr;
    }
    
    .why-feature {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    /* Faculty Cards */
    .faculty-programs {
        justify-content: center;
    }
    
    .program-tag {
        font-size: 0.75rem;
    }
    
    /* News */
    .news-image {
        height: 180px;
    }
    
    .news-content {
        padding: var(--spacing-lg);
    }
    
    /* CTA */
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-actions .btn {
        width: 100%;
    }
    
    .cta-contact {
        font-size: 0.875rem;
    }
    
    /* Footer */
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/* ===== EXTRA SMALL (360px and below) ===== */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 0.9375rem;
    }
    
    .section-heading {
        font-size: 1.5rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .quick-access-bar,
    .main-header,
    .hero-immersive,
    .section-quick-access,
    .whatsapp-float,
    .main-footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066cc;
        --primary-dark: #004499;
        --gray-600: #333;
        --gray-500: #444;
    }
    
    .btn {
        border-width: 3px;
    }
    
    .nav-link:focus,
    .btn:focus {
        outline: 3px solid #000;
        outline-offset: 2px;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-slide {
        transition: none;
    }
    
    .slide-bg {
        transform: none !important;
    }
}

/* ===== LANDSCAPE ORIENTATION (Mobile) ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-slider {
        min-height: 100vh;
    }
    
    .hero-content {
        padding-top: var(--spacing-lg);
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-stats {
        display: none;
    }
}
