/**
 * FD Immigration Theme - Responsive Styles
 * Mobile-first responsive design
 * 
 * @package FD_Immigration_Theme
 * @since 1.0.0
 */

/* Tablet Styles (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .fd-home-hero-title {
        font-size: 2.8rem;
    }
    
    .fd-home-services-grid-mobile {
        grid-template-columns: repeat(3, 1fr);
        max-width: 600px;
        gap: 25px;
    }
    
    .fd-home-service-icon-wrapper {
        width: 90px;
        height: 90px;
    }
    
    .fd-home-service-icon {
        font-size: 28px;
    }
    
    .fd-home-service-title {
        font-size: 12px;
    }
    
    .fd-home-pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fd-home-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Styles (1024px and up) */
@media (min-width: 768px) {
    .fd-home-services-grid-mobile {
        display: none;
    }
    
    .fd-home-services-grid-desktop {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 50px;
        max-width: 800px;
        margin: 0 auto;
        padding: 60px 40px;
    }
    
    .fd-home-service-icon-wrapper {
        width: 120px;
        height: 120px;
        border-radius: 28px;
    }
    
    .fd-home-service-icon {
        font-size: 40px;
    }
    
    .fd-home-service-title {
        font-size: 16px;
    }
    
    /* Enhanced floating for desktop */
    @keyframes float1 {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-20px); }
    }
    
    @keyframes float2 {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-25px); }
    }
    
    @keyframes float3 {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-15px); }
    }
}

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .fd-home-services-grid-desktop {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1000px;
    }
    
    .fd-home-pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .fd-home-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .fd-home-ircc-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile Styles (max-width: 767px) */
@media (max-width: 768px) {
    /* Services Mobile - 3 columns */
    .fd-home-services {
        padding: 40px 0;
        min-height: auto;
    }
    
    .fd-home-services-grid-mobile {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
        padding: 15px 10px !important;
        max-width: 100%;
    }
    
    .fd-home-service-icon-wrapper {
        width: 80px !important;
        height: 80px !important;
        border-radius: 16px !important;
    }
    
    .fd-home-service-icon {
        font-size: 28px !important;
    }
    
    .fd-home-service-title {
        font-size: 11px !important;
        line-height: 1.2 !important;
    }
    /* Header Mobile */
    .fd-home-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 30px;
        box-shadow: var(--fd-shadow);
        transform: translateX(-100%);
        transition: var(--fd-transition);
        z-index: 999;
    }
    
    .fd-home-menu.active {
        transform: translateX(0);
    }
    
    .fd-home-hamburger {
        display: flex;
    }
    
    .fd-home-cta-btn {
        display: none;
    }
    
    /* Hero Mobile */
    .fd-home-hero {
        min-height: 90vh;
        padding: 100px 0 50px;
    }
    
    .fd-home-hero-title {
        font-size: 2.5rem;
    }
    
    .fd-home-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .fd-home-hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .fd-home-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    /* Services Mobile */
    .fd-home-services {
        padding: 60px 0;
        min-height: auto;
    }
    
    /* Pricing Mobile */
    .fd-home-pricing {
        padding: 60px 0;
    }
    
    .fd-home-section-title h2 {
        font-size: 2rem;
    }
    
    .fd-home-section-title p {
        font-size: 1rem;
    }
    
    .fd-home-pricing-grid {
        grid-template-columns: 1fr;
    }
    
    /* Why Choose Mobile */
    .fd-home-why-choose {
        padding: 60px 0;
    }
    
    .fd-home-features-grid {
        grid-template-columns: 1fr;
    }
    
    .fd-home-feature {
        flex-direction: column;
        text-align: center;
    }
    
    /* IRCC Data Mobile */
    .fd-home-ircc-data {
        padding: 60px 0;
    }
    
    .fd-home-ircc-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .fd-home-ircc-number {
        font-size: 2.5rem;
    }
    
    /* Contact Mobile */
    .fd-home-contact {
        padding: 60px 0;
    }
    
    .fd-home-contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .fd-home-contact-info h2 {
        font-size: 2rem;
    }
    
    .fd-home-contact-info p {
        font-size: 1rem;
    }
    
    .fd-home-contact-form {
        padding: 30px 20px;
    }
    
    /* Footer Mobile */
    .fd-home-footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .fd-home-container {
        padding: 0 15px;
    }
}

/* Extra Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .fd-home-hero-title {
        font-size: 2rem;
    }
    
    .fd-home-hero-subtitle {
        font-size: 1rem;
    }
    
    /* Keep 3 columns on small screens */
    .fd-home-services-grid-mobile {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
        padding: 15px 8px !important;
    }
    
    .fd-home-service-icon-wrapper {
        width: 70px !important;
        height: 70px !important;
        border-radius: 14px !important;
    }
    
    .fd-home-service-icon {
        font-size: 24px !important;
    }
    
    .fd-home-service-title {
        font-size: 10px !important;
    }
    
    .fd-home-btn {
        padding: 14px 24px;
        font-size: 1rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .fd-home-hero {
        min-height: 100vh;
    }
    
    .fd-home-hero-title {
        font-size: 2rem;
    }
    
    .fd-home-services-grid-mobile {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        max-width: 600px;
    }
}

/* Print Styles */
@media print {
    .fd-home-header,
    .fd-home-footer,
    .fd-home-btn,
    .fd-home-hamburger,
    .fd-home-cta-btn {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .fd-home-hero {
        background: white !important;
        color: black !important;
        min-height: auto !important;
        padding: 2rem 0 !important;
    }
    
    .fd-home-section-title {
        color: black !important;
    }
    
    .fd-home-services,
    .fd-home-pricing,
    .fd-home-why-choose,
    .fd-home-ircc-data,
    .fd-home-contact {
        page-break-inside: avoid;
        background: white !important;
        color: black !important;
    }
}