/* =========================================
   MEDIA QUERIES - Mobile Responsive
   ========================================= */

/* ===== TABLET (max-width: 768px) ===== */
@media screen and (max-width: 768px) {
    .theme-toggle {
        top: 15px;
        right: 15px;
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .hero {
        padding: var(--spacing-lg) var(--spacing-sm);
        min-height: 90vh;
    }

    .hero-headline {
        font-size: 3rem;
    }

    .hero-subtext {
        font-size: 1rem;
        padding: 0 var(--spacing-sm);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .price-card.featured {
        transform: none;
    }

    .price-card.featured:hover {
        transform: translateY(-5px);
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

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

    .contact-form {
        padding: var(--spacing-md);
    }

    /* ===== HEADER ADJUSTMENTS ===== */
    .site-header {
        padding: 15px;
        height: auto;
        justify-content: center;
        /* Center logo horizontally */
        flex-direction: row;
        /* Ensure row direction */

        /* Default Mobile State: Transparent */
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        transition: all 0.3s ease;
    }

    /* Scrolled State for Mobile */
    body.scrolled .site-header {
        background: rgba(26, 26, 26, 0.85);
        /* Dark background on scroll */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    /* Light Mode Scrolled Mobile Override */
    [data-theme="light"] body.scrolled .site-header {
        background: rgba(255, 255, 255, 0.9);
    }

    #site-logo {
        height: 85px;
        /* Large default mobile size */
        /* Reset positioning to prevent clipping */
        position: static;
        transform: none;
        margin: 0;
        transition: height 0.3s ease;
    }

    /* Shrink Logo on Scroll */
    body.scrolled #site-logo {
        height: 60px;
    }

    .theme-toggle {
        position: absolute;
        right: 20px;
        /* Increased from 15px to prevent cutting */
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Force hero content down to clear fixed header */
    .hero {
        align-items: flex-start;
        padding-top: 180px;
        /* Increased from 140px to clear "Faith Driven" text */
    }
}

/* ===== MOBILE (max-width: 480px) ===== */
@media screen and (max-width: 480px) {
    :root {
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
    }

    body {
        font-size: 15px;
    }

    .theme-toggle {
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        padding: 0.4rem 0.7rem;
        font-size: 0.75rem;
        transition: none;
        /* Disable animation on mobile */
    }

    /* Prevent jumpy hover effect on mobile */
    .theme-toggle:hover {
        transform: translateY(-50%);
        box-shadow: none;
    }

    .hero {
        min-height: 85vh;
        padding: 80px var(--spacing-sm) var(--spacing-md);
        /* Reduced to 80px as requested */
        z-index: 10;
        /* Ensure content is above background */
        position: relative;
    }

    .parallax-container,
    .graffiti-elements {
        display: none !important;
        /* Performance fix: Hide complex background on mobile */
    }

    .hero-tag {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

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

    .hero-headline .highlight {
        font-size: 2.2rem;
    }

    .hero-subtext {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.9rem 1.5rem;
        font-size: 1.1rem;
    }

    .section-tag {
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .price-card {
        padding: var(--spacing-md);
    }

    .card-emoji {
        font-size: 2.5rem;
    }

    .card-shoe-type {
        font-size: 1.2rem;
    }

    .card-price {
        font-size: 2.5rem;
    }

    .pricing-note {
        padding: var(--spacing-sm);
    }

    .pricing-note p {
        font-size: 0.85rem;
    }

    .feature-card {
        padding: var(--spacing-md);
    }

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

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

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .contact-form {
        padding: var(--spacing-sm);
    }

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

    .form-input,
    .form-textarea {
        padding: 0.85rem;
        font-size: 0.95rem;
    }

    .btn-primary.btn-large {
        font-size: 1.2rem;
        padding: 1rem 1.5rem;
    }

    .footer-brand {
        font-size: 1.6rem;
    }

    .footer-text {
        font-size: 0.85rem;
    }

    .footer-copy {
        font-size: 0.75rem;
    }
}

/* ===== SMALL PHONES (max-width: 360px) ===== */
@media screen and (max-width: 360px) {
    .hero-headline {
        font-size: 2rem;
    }

    .hero-headline .highlight {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .card-shoe-type {
        font-size: 1rem;
    }

    .card-price {
        font-size: 2rem;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .hero-tag {
        animation: none;
    }

    .price-card,
    .feature-card,
    .btn-primary,
    .btn-secondary,
    .theme-toggle {
        transition: none;
    }
}