/* ============================================= */
/* CANBRICO RESPONSIVE STYLES */
/* ============================================= */

/* Extra Large Screens (>= 1400px) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
}

/* Large Screens (1200px - 1399px) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Desktop (992px - 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .module-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .booking-form-container {
        flex-direction: column;
    }
    
    .booking-sidebar {
        margin-top: var(--spacing-lg);
        width: 100%;
    }
}

/* Tablet Landscape (768px - 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Navigation */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-darker);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: var(--spacing-lg);
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    .nav-dropdown .dropdown-content {
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-dropdown .dropdown-content.active {
        max-height: 300px;
    }
    
    .dropdown-content a {
        padding: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Header actions */
    .header-actions .btn-primary {
        display: none;
    }
    
    /* Hero */
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-stats {
        gap: var(--spacing-md);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Footer */
    .footer-newsletter {
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Booking */
    .experience-selection {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .module-options {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .datetime-selection {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* Tablet Portrait (576px - 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 var(--spacing-sm);
    }
    
    .hero-section {
        min-height: 60vh;
        padding-top: 70px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    /* Benefits & Cards */
    .benefits-grid,
    .values-grid,
    .team-grid,
    .process-steps {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    /* Services */
    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
    
    .service-price {
        text-align: left;
        width: 100%;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .service-cta {
        flex-direction: column;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-filters {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-btn {
        flex: 1 0 calc(33.333% - 0.5rem);
        min-width: 120px;
        margin-bottom: 0.5rem;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .social-feed {
        grid-template-columns: 1fr;
    }
    
    /* Booking */
    .booking-process .process-steps {
        display: none;
    }
    
    .experience-selection {
        grid-template-columns: 1fr;
    }
    
    .module-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .time-slots {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .confirmation-summary {
        grid-template-columns: 1fr;
    }
    
    .payment-methods {
        flex-direction: column;
    }
    
    /* Footer Grid */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Mobile Landscape (480px - 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: var(--spacing-sm);
    }
    
    .stat-item {
        flex: 0 0 calc(50% - 1rem);
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Header */
    .logo-text-can,
    .logo-text-bri,
    .logo-text-co {
        font-size: 1.4rem;
    }
    
    .logo-subtitle {
        font-size: 0.6rem;
    }
    
    /* Cards */
    .benefit-card,
    .value-card,
    .team-card,
    .testimonial-card,
    .module-card,
    .service-card {
        padding: var(--spacing-md);
    }
    
    /* Forms */
    .form-step h2 {
        font-size: 1.5rem;
    }
    
    .module-options {
        grid-template-columns: 1fr;
    }
    
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Gallery */
    .gallery-filters {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .filter-btn {
        flex: 1;
        min-width: auto;
    }
    
    /* Footer */
    .footer-legal {
        flex-direction: column;
        gap: 1rem;
    }
    
    .newsletter-form button {
        width: 100%;
    }
    
    /* Animations */
    .hero-title-line {
        display: inline;
    }
}

/* Mobile Portrait (<= 479px) */
@media (max-width: 479px) {
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero-title-line {
        display: block;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .btn-cta-large {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }
    
    /* Statistics */
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        flex: 0 0 auto;
        width: 100%;
        max-width: 200px;
    }
    
    /* Navigation */
    .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    /* Forms */
    .participants-control {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .participant-btn {
        width: 40px;
        height: 40px;
    }
    
    #participants {
        width: 100%;
        max-width: 200px;
    }
    
    /* Gallery */
    .gallery-filters {
        grid-template-columns: 1fr;
    }
    
    /* Utility Classes */
    .text-center-mobile {
        text-align: center;
    }
    
    .hide-mobile {
        display: none;
    }
    
    .show-mobile {
        display: block;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .hover-lift:hover,
    .hover-glow:hover,
    .hover-scale:hover,
    .hover-shine:hover,
    .btn-cyber:hover::before {
        transform: none;
        box-shadow: none;
    }
    
    .nav-link:hover::after {
        width: 0;
    }
    
    .nav-link.active::after {
        width: 100%;
    }
    
    .dropdown-content {
        display: none;
    }
    
    .nav-dropdown.active .dropdown-content {
        display: block;
    }
    
    /* Larger touch targets */
    .btn-hero-primary,
    .btn-hero-secondary,
    .nav-link,
    .filter-btn,
    .time-slot,
    .module-label,
    .payment-method label {
        min-height: 44px;
        min-width: 44px;
    }
    
    .form-control,
    .form-select,
    input,
    select,
    textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Print Styles */
@media print {
    .canbrico-header,
    .canbrico-footer,
    .hero-section,
    .cta-section,
    .btn-primary,
    .btn-cta-large,
    .booking-sidebar,
    .mobile-menu-toggle,
    .social-links,
    .newsletter-form {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    .section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .booking-form {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .confirmation-summary {
        display: block;
    }
    
    .summary-card {
        border: 1px solid #ccc;
        margin-bottom: 1rem;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --cyber-cyan: #00ffff;
        --cyber-cyan-dark: #00cccc;
        --cyber-purple: #ff00ff;
        --cyber-amber: #ffff00;
        --cyber-green: #00ff00;
        --cyber-red: #ff0000;
        
        --bg-dark: #000000;
        --bg-darker: #000000;
        --bg-card: #111111;
        
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
    }
    
    .category-card::before {
        background: linear-gradient(to bottom, transparent, #000000);
    }
    
    .hero-section::before {
        background: none;
    }
}

/* 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;
    }
    
    .loading-screen {
        animation: none;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Dark Mode (already dark, but for consistency) */
@media (prefers-color-scheme: dark) {
    /* Our theme is already dark, so no changes needed */
}

/* Orientation Specific */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .hero-content {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-cta {
        margin-bottom: 1rem;
    }
    
    .hero-stats {
        flex-wrap: nowrap;
        gap: 1rem;
    }
    
    .stat-item {
        flex: 1;
    }
}

/* Very Small Screens */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .logo-text-can,
    .logo-text-bri,
    .logo-text-co {
        font-size: 1.2rem;
    }
}