/*
 * GestLoc - Responsive CSS
 * Mobile-First Responsive Design
 */

/* ================================
   TABLET (768px - 1024px)
   ================================ */
@media (max-width: 1024px) {
    /* Hero Section */
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-8);
    }

    .hero-right {
        order: -1;
    }

    .hero-title {
        font-size: var(--font-size-4xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-lg);
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Tabs */
    .tab-panel.active {
        grid-template-columns: 1fr;
    }

    .tab-description {
        order: -1;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================================
   MOBILE (< 768px)
   ================================ */
@media (max-width: 768px) {
    /* Typography */
    .section-title {
        font-size: var(--font-size-3xl);
    }

    .section-subtitle {
        font-size: var(--font-size-base);
    }

    /* Navbar */
    .desktop-menu,
    .navbar-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Hero */
    .hero-section {
        padding: var(--spacing-16) 0;
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-base);
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .floating-element {
        display: none;
    }

    /* Clients Logos */
    .clients-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-4);
    }

    /* Problems Grid */
    .problems-grid {
        grid-template-columns: 1fr;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Tabs */
    .tabs-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-btn {
        width: 100%;
        justify-content: center;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: var(--font-size-4xl);
    }

    /* Testimonials */
    .testimonial-text {
        font-size: var(--font-size-base);
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }

    .author-info {
        text-align: center;
    }

    /* Final CTA */
    .final-cta-title {
        font-size: var(--font-size-3xl);
    }

    .final-cta-subtitle {
        font-size: var(--font-size-base);
    }

    .final-cta-buttons {
        flex-direction: column;
    }

    .final-cta-buttons .btn {
        width: 100%;
    }

    .final-cta-note {
        flex-direction: column;
        gap: var(--spacing-2);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal-links {
        justify-content: center;
    }

    /* Mobile Sticky Bar */
    .mobile-sticky-bar {
        display: block;
    }

    .main-content {
        padding-bottom: 80px; /* Space for sticky bar */
    }

    /* Scroll to Top */
    .scroll-to-top {
        bottom: 100px; /* Above sticky bar */
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* ================================
   SMALL MOBILE (< 480px)
   ================================ */
@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 var(--spacing-4);
    }

    /* Typography */
    .section-title {
        font-size: var(--font-size-2xl);
    }

    .hero-title {
        font-size: var(--font-size-2xl);
    }

    /* Buttons */
    .btn-large {
        padding: var(--spacing-3) var(--spacing-6);
        font-size: var(--font-size-base);
    }

    /* Stats */
    .stat-number {
        font-size: var(--font-size-3xl);
    }

    /* Clients */
    .clients-logos {
        grid-template-columns: 1fr;
    }
}

/* ================================
   LARGE DESKTOP (> 1440px)
   ================================ */
@media (min-width: 1440px) {
    .container {
        max-width: 1440px;
    }

    .hero-title {
        font-size: var(--font-size-6xl);
    }

    .section-title {
        font-size: var(--font-size-5xl);
    }
}

/* ================================
   TOUCH DEVICES
   ================================ */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .navbar-menu a {
        padding: var(--spacing-2);
    }

    /* Remove hover effects */
    .hover-lift:hover {
        transform: none;
    }

    .feature-card:hover,
    .problem-card:hover {
        transform: none;
    }
}

/* ================================
   PRINT STYLES
   ================================ */
@media print {
    .navbar,
    .footer,
    .mobile-sticky-bar,
    .scroll-to-top,
    .hero-cta,
    .final-cta-section {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .main-content {
        padding-top: 0;
    }
}
