/* ============================================
   TimeZone Website — Responsive Styles
   Mobile-first breakpoints
   ============================================ */

/* ---------- Tablet (max 1024px) ---------- */
@media (max-width: 1024px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }

    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.1rem; }

    .features-grid,
    .pricing-grid,
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .feature-detail {
        gap: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        margin-right: 0 !important;
    }

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

    .pricing-card.featured:hover {
        transform: translateY(-6px);
    }
}

/* ---------- Small Tablet / Large Phone (max 768px) ---------- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }

    .section {
        padding: 70px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        gap: 20px;
        padding: 90px 30px 40px;
        transition: right 0.4s ease;
        z-index: 1000;
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 1.1rem;
        padding: 8px 0;
        width: 100%;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .nav-cta.mobile-only {
        display: inline-flex !important;
        width: 100%;
        margin-top: 10px;
    }

    .menu-toggle {
        display: flex;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + 40px);
        padding-bottom: 60px;
    }

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

    .hero p {
        font-size: 1rem;
    }

    .btn-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-group .btn {
        text-align: center;
    }

    /* Stats */
    .stats-bar {
        gap: 32px;
    }

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

    /* Grids */
    .features-grid,
    .pricing-grid,
    .testimonial-grid,
    .blog-grid,
    .shorts-grid,
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Steps */
    .steps {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .steps::before {
        display: none;
    }

    .step {
        max-width: 100%;
    }

    /* Feature Detail */
    .feature-detail {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .feature-detail.reverse {
        direction: ltr;
    }

    /* CTA */
    .cta-box {
        padding: 40px 24px;
    }

    .cta-box h2 {
        font-size: 1.8rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    /* Page Header */
    .page-header {
        padding-top: calc(var(--header-height) + 40px);
        padding-bottom: 40px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    /* Form */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Comparison Table */
    .comparison-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Blog */
    .blog-article {
        padding: 28px;
    }

    /* Pricing */
    .pricing-card {
        padding: 32px 24px;
    }
}

/* ---------- Mobile (max 480px) ---------- */
@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }

    .container {
        padding: 0 16px;
    }

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

    .hero-badge {
        font-size: 0.75rem;
    }

    .section {
        padding: 50px 0;
    }

    .feature-card,
    .card {
        padding: 24px;
    }

    .stats-bar {
        gap: 24px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

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

    .pricing-price .amount {
        font-size: 2.2rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .cta-box {
        padding: 32px 20px;
    }

    .cta-box h2 {
        font-size: 1.5rem;
    }

    .cta-box p {
        font-size: 0.95rem;
    }

    .store-badge {
        padding: 10px 18px;
    }
}

/* ---------- Small Mobile (max 360px) ---------- */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.7rem;
    }

    .logo-text .brand-name {
        font-size: 1.1rem;
    }

    .header {
        padding: 12px 0;
    }
}

/* ---------- Large Screens (min 1440px) ---------- */
@media (min-width: 1440px) {
    .container {
        max-width: 1280px;
    }

    .hero h1 {
        font-size: 4.2rem;
    }
}

/* ---------- Print Styles ---------- */
@media print {
    .header,
    .footer,
    .menu-toggle,
    .cta-section {
        display: none;
    }

    body {
        background: white;
        color: #333;
    }

    .section {
        padding: 20px 0;
    }

    a {
        color: #333;
        text-decoration: underline;
    }
}

/* ---------- 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;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Mobile menu overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}
