/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

/* Mobile-first approach - adjustments for larger screens */

@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 50px 0;
    }
}

@media (max-width: 992px) {
    .results-grid,
    .products-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .document-display {
        max-width: 100%;
    }

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

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

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 40px 0;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .navbar .container {
        flex-wrap: wrap;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border-color);
    }

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

    .menu-toggle {
        display: flex !important;
    }

    .nav-auth {
        width: 100%;
        justify-content: flex-end;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
        order: 3;
        gap: 0.5rem;
    }

    /* Hero */
    .hero {
        padding: 40px 0;
    }

    .hero .container {
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons a {
        width: 100%;
    }

    /* Grids */
    .results-grid,
    .products-grid,
    .features-grid,
    .steps-grid,
    .counter-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-card.featured {
        transform: scale(1);
    }

    .product-price {
        flex-direction: column;
        gap: 0.25rem;
    }

    .product-features {
        min-height: auto;
    }

    /* Forms */
    .auth-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-benefits {
        order: -1;
    }

    .form-group input,
    .form-group select {
        padding: 10px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    /* Typography */
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    p {
        font-size: 0.95rem;
    }

    section {
        padding: 30px 0;
    }

    /* Sections */
    .proven-results .container {
        padding: 0 15px;
    }

    .result-icon {
        font-size: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-section {
        text-align: center;
    }

    .result-value {
        font-size: 2rem;
    }

    .price {
        font-size: 2rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 640px) {
    /* Navigation */
    .navbar .container {
        height: auto;
        padding: 1rem 15px;
    }

    .nav-brand {
        width: 100%;
        order: 1;
    }

    .logo {
        gap: 8px;
    }

    .logo-icon {
        font-size: 1.5rem;
    }

    .brand-name {
        font-size: 1rem;
    }

    .brand-tagline {
        font-size: 0.65rem;
    }

    .menu-toggle {
        order: 2;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        height: calc(100vh - 80px);
        background: white;
    }

    /* Hero */
    .hero {
        padding: 30px 0;
    }

    .hero-text h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .hero-text p {
        font-size: 0.9rem;
    }

    .document-display {
        padding: 25px 20px;
    }

    .document-label {
        font-size: 1.2rem;
        margin-bottom: 20px;
        letter-spacing: 2px;
    }

    .document-lines {
        gap: 8px;
    }

    /* Buttons */
    .btn-primary,
    .btn-secondary {
        padding: 10px 16px;
        font-size: 0.9rem;
        border-radius: var(--radius-sm);
    }

    /* Typography */
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    p {
        font-size: 0.9rem;
    }

    section {
        padding: 25px 0;
    }

    .container {
        padding: 0 12px;
    }

    /* Forms */
    .auth-card {
        padding: 1.5rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select {
        padding: 10px;
        font-size: 16px;
    }

    .form-divider {
        margin: 1.5rem 0;
        font-size: 0.9rem;
    }

    .form-divider::before,
    .form-divider::after {
        width: 25%;
    }

    /* Cards */
    .card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .badge {
        font-size: 0.65rem;
        padding: 6px 12px;
    }

    .result-value {
        font-size: 1.75rem;
    }

    .result-icon {
        font-size: 2rem;
    }

    .result-label {
        font-size: 0.8rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .product-card {
        padding: 1.5rem;
    }

    .product-price {
        margin-bottom: 1.5rem;
    }

    .price {
        font-size: 1.75rem;
    }

    .duration {
        font-size: 0.8rem;
    }

    .step-card {
        padding: 1.5rem;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .footer-content {
        gap: 1rem;
    }

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .footer-section a,
    .footer-section p {
        font-size: 0.85rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
        padding-top: 1rem;
    }

    /* Benefits */
    .benefit-item {
        gap: 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    /* Hero buttons */
    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons a {
        width: 100%;
        text-align: center;
    }

    /* Grids reduce to 1 column */
    .products-grid,
    .features-grid,
    .result-card {
        grid-template-columns: 1fr;
    }

    /* Mobile-specific tweaks */
    .navbar .container {
        padding: 0.75rem 12px;
    }

    .nav-auth {
        width: 100%;
        gap: 0.25rem;
    }

    .btn-login,
    .btn-get-started {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    /* Typography mobile */
    h1 {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 1.15rem;
    }

    h3 {
        font-size: 1rem;
    }

    p {
        font-size: 0.85rem;
    }

    section {
        padding: 20px 0;
    }

    /* Forms */
    .form-remember {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .product-options {
        gap: 0.75rem;
    }

    .option {
        padding: 0.75rem;
    }

    /* Cards */
    .card {
        padding: 1rem;
    }

    .result-value {
        font-size: 1.5rem;
    }

    .result-label {
        font-size: 0.75rem;
    }

    .price {
        font-size: 1.5rem;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .product-card {
        padding: 1.25rem;
    }

    .product-features {
        margin-bottom: 1.5rem;
    }

    .feature {
        margin-bottom: 0.75rem;
        font-size: 0.9rem;
    }

    .benefit-item {
        gap: 0.5rem;
        font-size: 0.85rem;
    }

    .counter-number {
        font-size: 2rem;
    }

    .counter-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    /* Extra small devices */
    .hero-text h1 {
        font-size: 1.3rem;
    }

    .document-display {
        padding: 20px 15px;
    }

    .document-label {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .auth-card {
        padding: 1rem;
    }

    .form-group input,
    .form-group select {
        font-size: 16px;
        padding: 10px;
    }

    .product-features {
        min-height: auto;
    }

    .price {
        font-size: 1.3rem;
    }

    .card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .btn-primary,
    .btn-secondary,
    .footer {
        display: none;
    }

    body {
        background: white;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: #1e2738;
        --bg-white: #2d3e50;
        --text-dark: #ecf0f1;
        --text-gray: #bdc3c7;
        --border-color: #34495e;
    }

    body {
        background-color: var(--bg-light);
        color: var(--text-dark);
    }

    .navbar {
        background-color: var(--bg-white);
        box-shadow: none;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link {
        color: var(--text-dark);
    }

    .card {
        background-color: var(--bg-white);
    }

    table tbody tr:hover {
        background: rgba(255, 255, 255, 0.05);
    }
}
