/* ============================================
   RESPONSIVE STYLES - InspiredByJason.com
   Desktop-First Approach
   Theme: Midnight Navy + Warm Gold
   ============================================ */

/* ========================================
   LARGE DESKTOP (max-width: 1440px)
   ======================================== */
@media (max-width: 1440px) {
    .container {
        padding: 0 var(--space-12);
    }
}

/* ========================================
   DESKTOP (max-width: 1200px)
   ======================================== */
@media (max-width: 1200px) {
    :root {
        --text-6xl: 3rem;
        --text-5xl: 2.5rem;
        --text-4xl: 2rem;
    }

    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   TABLET LANDSCAPE (max-width: 1024px)
   ======================================== */
@media (max-width: 1024px) {
    :root {
        --section-padding: var(--space-16);
        --container-padding: var(--space-8);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Services grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   TABLET (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
    :root {
        --text-6xl: 2.5rem;
        --text-5xl: 2rem;
        --text-4xl: 1.75rem;
        --text-3xl: 1.5rem;
        --text-lg: 1rem;
        --nav-height: var(--nav-height-mobile);
        --section-padding: var(--space-12);
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: var(--nav-height-mobile);
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: var(--space-12);
        gap: var(--space-6);
        background-color: var(--bg-secondary);
        transform: translateX(100%);
        transition: transform var(--transition-slow);
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-link {
        font-size: var(--text-lg);
        padding: var(--space-4);
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: var(--space-16) var(--space-6);
    }

    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-subtitle {
        font-size: var(--text-base);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-glow {
        width: 300px;
        height: 300px;
    }

    /* Grids */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    /* Cards */
    .card-body {
        padding: var(--space-4);
    }

    /* Sections */
    .section-header {
        margin-bottom: var(--space-8);
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: var(--space-6);
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Testimonial */
    .testimonial {
        padding: var(--space-8);
    }

    .testimonial-quote {
        font-size: var(--text-xl);
    }

    /* Pricing cards */
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Hotspots */
    .hotspot-tooltip {
        width: 220px;
        padding: var(--space-3);
    }

    /* Buttons */
    .btn {
        width: 100%;
        justify-content: center;
    }

    .btn-secondary {
        margin-left: 0;
    }
}

/* ========================================
   LARGE MOBILE (max-width: 640px)
   ======================================== */
@media (max-width: 640px) {
    :root {
        --container-padding: var(--space-4);
        --section-padding: var(--space-8);
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        width: 100%;
    }

    /* Forms */
    .form-group {
        margin-bottom: var(--space-4);
    }

    /* Typography */
    h1 {
        font-size: var(--text-3xl);
    }

    h2 {
        font-size: var(--text-2xl);
    }

    h3 {
        font-size: var(--text-xl);
    }

    /* Blockquotes */
    blockquote {
        padding: var(--space-4) var(--space-6);
        font-size: var(--text-lg);
    }
}

/* ========================================
   MOBILE (max-width: 480px)
   ======================================== */
@media (max-width: 480px) {
    :root {
        --text-6xl: 2rem;
        --text-5xl: 1.75rem;
        --text-4xl: 1.5rem;
        --text-3xl: 1.25rem;
        --text-2xl: 1.125rem;
    }

    body {
        font-size: var(--text-base);
    }

    .container {
        padding: 0 var(--space-4);
    }

    section {
        padding: var(--space-8) 0;
    }

    /* Hero adjustments */
    .hero {
        padding: var(--space-8) var(--space-4);
    }

    .hero-cta .btn {
        padding: var(--space-3) var(--space-6);
        font-size: var(--text-xs);
    }

    /* Cards */
    .card {
        border-radius: var(--radius-sm);
    }

    /* Testimonial */
    .testimonial-quote {
        font-size: var(--text-lg);
    }

    /* Hotspots - tap friendly */
    .hotspot {
        width: 32px;
        height: 32px;
    }

    .hotspot-tooltip {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        transform: none;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 50vh;
        overflow-y: auto;
    }

    .hotspot-tooltip::after {
        display: none;
    }

    /* Pricing */
    .pricing-card {
        padding: var(--space-6);
    }

    .pricing-price {
        font-size: var(--text-3xl);
    }

    /* Footer */
    .footer {
        padding: var(--space-8) 0;
    }

    .footer-links {
        gap: var(--space-4);
    }
}

/* ========================================
   TOUCH DEVICE OPTIMIZATIONS
   ======================================== */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .card:hover {
        transform: none;
    }

    .gallery-item:hover img {
        transform: none;
    }

    .btn-primary:hover {
        transform: none;
    }

    /* Make touch targets larger */
    .nav-link {
        padding: var(--space-4);
    }

    .filter-btn {
        min-height: 44px;
    }

    .btn {
        min-height: 44px;
    }

    .form-input,
    .form-textarea,
    .form-select {
        min-height: 44px;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .nav,
    .footer,
    .btn,
    .hotspot,
    .hero-glow {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
}

/* ========================================
   HIGH CONTRAST MODE
   ======================================== */
@media (prefers-contrast: high) {
    :root {
        --border-color: var(--text-secondary);
    }

    .card,
    .btn-secondary,
    .form-input,
    .form-textarea {
        border-width: 2px;
    }
}

/* ========================================
   LANDSCAPE MOBILE
   ======================================== */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--space-8) var(--space-6);
    }

    .nav-menu {
        padding-top: var(--space-4);
        gap: var(--space-2);
    }

    .nav-link {
        padding: var(--space-2);
    }
}
