/* ============================================
   RESPONSIVE.CSS - Digit Havens
   Mobile-First Responsive Styles
   ============================================ */

/* ============================================
   RESPONSIVE - HERO & ABOUT FIXES
   ============================================ */

/* Desktop: Ensure full width content */
@media (min-width: 1025px) {
    .hero-text,
    .about-text {
        max-width: var(--max-width-narrow);
        margin: 0 auto;
    }
}

/* ============================================
   TABLET - 1024px and below
   ============================================ */
@media (max-width: 1024px) {
    /* Hero & About */
    .hero-content,
    .about-content {
        padding: var(--spacing-md) 0;
    }
    
    .hero-text,
    .about-text {
        max-width: var(--max-width-medium);
    }
    
    /* Grid Layouts */
    .philosophy-grid,
    .why-grid,
    .engineering-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        text-align: center;
    }
    
    .about-features {
        justify-items: center;
    }
    
    .feature-item {
        text-align: left;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        grid-template-columns: 1fr;
        gap: 4px;
        padding-left: var(--spacing-sm);
    }
    
    /* Section Navigator - Hide on tablet */
    #section-navigator {
        display: none;
    }
}

/* ============================================
   SMALL TABLET - 768px and below
   ============================================ */
@media (max-width: 768px) {
    /* WhatsApp & Back to Top */
    .whatsapp-float {
        bottom: 24px;
        right: 24px;
        width: 48px;
        height: 48px;
    }
    
    #back-to-top {
        bottom: 80px;
        right: 24px;
        width: 38px;
        height: 38px;
    }
    
    #scroll-progress {
        top: 64px;
    }
}

/* ============================================
   MOBILE - 576px and below
   ============================================ */
@media (max-width: 576px) {
    /* Spacing */
    .container,
    .container-narrow {
        padding: 0 var(--spacing-sm);
    }
    
    #hero,
    #philosophy,
    #about,
    #services,
    #why-choose-us,
    #engineering,
    #process,
    #portfolio,
    #solution-finder,
    #faq,
    #contact-cta {
        padding: var(--spacing-lg) 0;
    }
    
    /* Hero */
    .hero-text h1 {
        font-size: 32px;
    }
    
    .hero-text h1 .hero-title-line {
        display: block;
        word-break: keep-all;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-trust-indicators {
        margin-top: var(--spacing-md);
    }
    
    .trust-logos-text {
        gap: var(--spacing-sm);
    }
    
    .trust-badge {
        font-size: 12px;
        padding: 4px 14px;
    }
    
    /* About */
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        justify-content: center;
    }
    
    /* Grid Layouts */
    .philosophy-grid,
    .services-grid,
    .why-grid,
    .engineering-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Services */
    .service-card {
        padding: var(--spacing-sm);
    }
    
    /* Engineering */
    .engineering-card {
        padding: var(--spacing-sm);
    }
    
    /* Process */
    .step-number {
        font-size: 24px;
    }
    
    /* Solution Finder */
    #solution-options {
        grid-template-columns: 1fr;
    }
    
    .solution-option {
        padding: var(--spacing-sm);
        font-size: 14px;
    }
    
    #solution-result {
        padding: var(--spacing-sm);
    }
    
    /* FAQ */
    .faq-question {
        font-size: 15px;
        padding: var(--spacing-sm);
    }
    
    .faq-answer {
        padding: 0 var(--spacing-sm) var(--spacing-sm);
    }
    
    /* Contact */
    #contact-page {
        padding: var(--spacing-lg) 0;
    }
    
    .contact-form-wrapper,
    .contact-info-card {
        padding: var(--spacing-sm);
    }
    
    .contact-cta-small {
        padding: var(--spacing-sm);
    }
    
    /* CTA */
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Footer */
    .footer-legal {
        font-size: 12px;
    }
    
    .footer-legal-links {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* 404 */
    .error-code {
        font-size: 56px;
    }
    
    .error-content h1 {
        font-size: 26px;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .error-quick-links ul {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
}

/* ============================================
   SMALL PHONES - 400px and below
   ============================================ */
@media (max-width: 400px) {
    .hero-text h1 {
        font-size: 28px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .nav-container {
        padding: 0 var(--spacing-sm);
    }
    
    .nav-logo img {
        height: 32px;
    }
}