/* Enchanting Life Unleashed - Responsive Styles */
/* Mobile-first approach for modern mystics on all devices */

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .offers-grid,
    .who-list,
    .featured-offerings {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--cream-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Typography */
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    /* Home page specific responsive fixes */
    .who-content {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .who-content img {
        max-width: 300px !important;
        margin: 0 auto;
    }
    
    /* Real Magic section on mobile */
    section div[style*="grid-template-columns: 350px 1fr"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Grids become single column */
    .offers-grid,
    .who-list,
    .footer-content,
    .featured-offerings,
    .blog-categories,
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Newsletter form */
    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .page-content {
        padding: 40px 0;
    }
    
    /* Cards */
    .offer-card,
    .who-item,
    .value-card,
    .category-card,
    .offering-preview {
        padding: 1.5rem;
    }
    
    /* Contact form */
    .contact-form {
        padding: 2rem;
    }
    
    /* Blog posts */
    .blog-post-preview {
        padding: 1.5rem;
    }
    
    .blog-post-preview:hover {
        transform: translateY(-5px);
        /* Remove horizontal transform on mobile */
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero h1 {
        font-size: 1.7rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .offer-card,
    .who-item,
    .value-card {
        padding: 1rem;
    }
    
    .newsletter {
        padding: 2rem 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Adjust logo size */
    .logo {
        font-size: 1.5rem;
    }
    
    /* Mobile menu toggle adjustments */
    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
    }
}

/* Large Desktop Styles */
@media (min-width: 1400px) {
    .container {
        max-width: 1300px;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
    
    .offers-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
        margin: 3rem auto 0;
    }
}

/* Animation adjustments for mobile */
@media (max-width: 768px) {
    .animate-on-scroll {
        /* Reduce animation distance on mobile */
        transform: translateY(15px);
    }
    
    /* Ensure animations work well on touch devices */
    .offer-card:hover,
    .who-item:hover,
    .value-card:hover {
        transform: translateY(-3px);
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .newsletter,
    .btn {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero {
        background: none !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
}

/* High DPI / Retina Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp text rendering on high DPI displays */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero::before {
        animation: none !important;
    }
}

/* Dark Mode Support (for future enhancement) */
@media (prefers-color-scheme: dark) {
    /* Currently maintaining light theme for brand consistency */
    /* Future enhancement: Add dark mode variables here */
}