/* PhoenixRCS - Responsive CSS */

/* Breakpoint Variables */
:root {
    --mobile-max: 767px;
    --tablet-min: 768px;
    --tablet-max: 1023px;
    --desktop-min: 1024px;
    --large-desktop-min: 1200px;
}

/* Mobile First - Base styles are mobile */

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--pure-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        gap: 2rem;
        transition: left 0.3s ease;
        box-shadow: 2px 0 20px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        font-size: 1.8rem;
        padding: 1.5rem 2rem;
        width: 100%;
        text-align: center;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover {
        background: var(--light-gray);
        color: var(--primary-red);
    }
}

/* Small Mobile (320px - 479px) */
@media (max-width: 479px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 1rem 0;
    }
    
    .header-content {
        align-items: center;
        justify-content: space-between;
    }
    
    .logo {
        font-size: 1.4rem;
        flex: 1;
    }
    
    .hero {
        padding: 120px 0 80px;
        min-height: 90vh;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .btn-call {
        padding: 16px 24px;
        font-size: 1.1rem;
        width: 90%;
        max-width: 300px;
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .trust-indicators, .services, .process {
        padding: 40px 0;
    }
    
    .trust-item, .service-card, .process-step {
        padding: 1.2rem 1rem;
    }
    
    .trust-icon, .service-icon {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    .trust-item h3, .service-card h3, .process-step h3 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    .trust-item p, .service-card p, .process-step p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .final-cta h2 {
        font-size: 1.8rem;
    }
    
    .btn-large {
        font-size: 1.1rem;
        padding: 16px 24px;
    }
    
    .floating-call-btn {
        bottom: 10px;
        right: 10px;
    }
    
    .float-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Large Mobile (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    .hero {
        padding: 130px 0 90px;
        min-height: 80vh;
    }
    
    .hero h1 {
        font-size: 2.8rem;
        margin-bottom: 1.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2.5rem;
    }
    
    .btn-call {
        padding: 18px 32px;
        font-size: 1.2rem;
        width: 80%;
        max-width: 350px;
    }
    
    .trust-indicators, .services, .process {
        padding: 50px 0;
    }
    
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 1.5rem auto 0;
    }
    
    .service-card {
        padding: 1.5rem 1.2rem;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
}

/* Tablet Portrait (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding: 0 30px;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo {
        font-size: 1.6rem;
    }
    
    .mobile-menu-btn {
        display: none !important;
    }
    
    .nav-menu {
        display: flex !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        flex-direction: row !important;
        padding: 0 !important;
        gap: 1.5rem !important;
        left: auto !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .nav-menu a {
        font-size: 0.95rem !important;
        padding: 6px 0 !important;
        width: auto !important;
        text-align: left !important;
        border-radius: 0 !important;
    }
    
    .hero {
        padding: 130px 0 70px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .value-items {
        justify-content: center;
        gap: 2rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        max-width: 500px;
        margin: 3rem auto 0;
    }
    
    .btn-primary, .btn-secondary {
        flex: 1;
    }
    
    .section-title {
        font-size: 2.3rem;
    }
    
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .service-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }
}

/* Desktop and Large Screens (1024px+) */
@media (min-width: 1024px) {
    .container {
        padding: 0 40px;
    }
    
    .header {
        padding: 1.2rem 0;
    }
    
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .mobile-menu-btn {
        display: none !important;
    }
    
    .nav-menu {
        display: flex !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        flex-direction: row !important;
        padding: 0 !important;
        gap: 2rem !important;
        left: auto !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .nav-menu a {
        font-size: 1rem !important;
        padding: 8px 0 !important;
        width: auto !important;
        border-radius: 0 !important;
    }
    
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero h1 {
        font-size: 4rem;
        margin-bottom: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
        margin-bottom: 2.5rem;
    }
    
    .value-items {
        gap: 3rem;
    }
    
    .value-item {
        font-size: 1rem;
        padding: 10px 20px;
    }
    
    .hero-buttons {
        gap: 1.5rem;
        margin-top: 3rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 18px 36px;
        font-size: 1.2rem;
        width: auto;
    }
    
    .section-title {
        font-size: 3rem;
        margin-bottom: 4rem;
    }
    
    .trust-indicators, .services, .process, .final-cta {
        padding: 100px 0;
    }
    
    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .service-card {
        padding: 3rem 2rem;
    }
    
    .process-steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .final-cta h2 {
        font-size: 3.5rem;
    }
    
    .footer {
        padding: 80px 0 40px;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    /* Hover Effects Only on Desktop */
    .trust-item:hover,
    .service-card:hover,
    .process-step:hover {
        transform: translateY(-8px);
    }
    
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-service:hover,
    .header-cta:hover {
        transform: translateY(-3px);
    }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
        padding: 0 20px;
    }
    
    .hero h1 {
        font-size: 4.5rem;
    }
    
    .section-title {
        font-size: 3.2rem;
    }
    
    .trust-indicators, .services, .process, .final-cta {
        padding: 120px 0;
    }
    
    .trust-grid,
    .services-grid {
        gap: 3rem;
    }
    
    .service-card {
        padding: 3.5rem 2.5rem;
    }
    
    .process-steps {
        gap: 2.5rem;
    }
    
    .final-cta h2 {
        font-size: 4rem;
    }
}

/* Ultra Wide Screens (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero {
        padding: 160px 0 100px;
    }
    
    .hero h1 {
        font-size: 5rem;
    }
    
    .trust-indicators, .services, .process, .final-cta {
        padding: 140px 0;
    }
}

/* Landscape Mobile Orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .value-items {
        flex-direction: row;
        gap: 1rem;
    }
    
    .value-item {
        font-size: 0.8rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        margin-top: 2rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .trust-indicators, .services, .process {
        padding: 60px 0;
    }
}

/* Tablet Landscape Specific */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .service-card:nth-child(3) {
        grid-column: auto;
        max-width: none;
    }
    
    .process-steps {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Print Styles */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .header,
    .floating-call-btn {
        display: none;
    }
    
    .hero {
        background: white;
        color: black;
        padding: 40px 0;
    }
    
    .trust-indicators,
    .services,
    .process,
    .final-cta {
        padding: 40px 0;
    }
    
    a[href^="tel:"]::after {
        content: " (" attr(href) ")";
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero::before {
        background-size: 50px 50px;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    .float-btn {
        animation: none;
    }
    
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Dark Mode Support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles would go here if needed */
    /* For now, maintaining light theme as per brand requirements */
}

/* Container Query Support (Future Enhancement) */
@supports (container-type: inline-size) {
    .services {
        container-type: inline-size;
    }
    
    @container (max-width: 600px) {
        .services-grid {
            grid-template-columns: 1fr;
        }
    }
}

/* Aspect Ratio Support for Future Image Containers */
@supports (aspect-ratio: 1) {
    .service-icon,
    .trust-icon {
        aspect-ratio: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}