/**
 * Ramos Live Studio - Responsive Styles
 * Media queries for all screen sizes
 */

/* ─────────────────────────────────────────────────────────────────────────────
   TABLET (max-width: 1024px)
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Plans Grid */
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .plan-card.popular {
        transform: none;
    }

    .plan-card.popular:hover {
        transform: translateY(-4px);
    }

    /* Steps */
    .steps-grid::before {
        display: none;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Failover Banner */
    .failover-content {
        grid-template-columns: auto 1fr;
        gap: 1.5rem;
    }

    .failover-action {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: center;
        padding-left: 0;
        padding-top: 1.5rem;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   MOBILE LANDSCAPE (max-width: 768px)
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 0;
        border-left: 1px solid var(--border-color);
        transition: right var(--transition-base);
        z-index: 1001;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 1rem;
    }

    .nav-link::after {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    /* Mobile Menu - Show actions inside */
    .nav-menu.active~.nav-actions-mobile {
        display: flex;
    }

    .nav-actions-mobile {
        display: none;
        position: fixed;
        bottom: 2rem;
        right: calc(80% - 2rem);
        flex-direction: column;
        gap: 0.75rem;
        z-index: 1002;
    }

    /* Hero */
    .hero {
        padding: 100px 0 60px;
    }

    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Plans */
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Steps */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Register */
    .register-card {
        padding: 2rem 1.5rem;
    }

    /* Contact */
    .contact-info h1 {
        font-size: 2rem;
    }

    .contact-form-card {
        padding: 1.5rem;
    }

    /* Failover Banner */
    .failover-banner {
        margin: 3rem auto 0;
    }

    .failover-content {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
        text-align: center;
    }

    .failover-icon {
        width: 64px;
        height: 64px;
        margin: 0 auto;
    }

    .failover-icon svg {
        width: 32px;
        height: 32px;
    }

    .failover-info h3 {
        font-size: 1.5rem;
    }

    .failover-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .failover-features li {
        justify-content: center;
    }

    .failover-action {
        gap: 1.5rem;
    }

    .btn-failover {
        width: 100%;
        justify-content: center;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   MOBILE PORTRAIT (max-width: 480px)
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    :root {
        --section-padding: 50px;
    }

    /* Typography */
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    /* Navbar */
    .nav-logo span {
        display: none;
    }

    .nav-menu {
        width: 100%;
        max-width: none;
    }

    /* Plan Cards */
    .plan-card {
        padding: 1.5rem;
    }

    .plan-price .amount {
        font-size: 2.5rem;
    }

    /* Steps */
    .step-number {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }

    /* Feature Cards */
    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
    }

    .feature-icon svg {
        width: 24px;
        height: 24px;
    }

    /* CTA */
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions .btn {
        width: 100%;
    }

    /* Toast */
    .toast-container {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }

    /* Register */
    .register-section {
        padding: 100px 0 60px;
    }

    .plan-summary {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   LANDSCAPE ORIENTATION ADJUSTMENTS
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 40px;
    }

    .register-section {
        min-height: auto;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   HIGH DPI / RETINA DISPLAYS
   ───────────────────────────────────────────────────────────────────────────── */

@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .nav-logo img,
    .footer-logo img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   LARGE SCREENS (min-width: 1400px)
   ───────────────────────────────────────────────────────────────────────────── */

@media (min-width: 1400px) {
    :root {
        --container-max: 1320px;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   PRINT STYLES
   ───────────────────────────────────────────────────────────────────────────── */

@media print {

    .navbar,
    .footer,
    .nav-toggle,
    .toast-container {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .hero::before {
        display: none;
    }

    .btn {
        border: 1px solid black;
        background: white !important;
        color: black !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   REDUCED MOTION
   ───────────────────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}