/* ============================================
   RESPONSIVE STYLES - MOBILE FIRST
   ============================================ */

/* Tablet Landscape - 1024px */
@media screen and (max-width: 1024px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .about-content {
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Tablet Portrait - 768px */
@media screen and (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    /* Header */
    .header-top {
        display: none;
    }
    
    .main-nav {
        padding: 12px 0;
    }
    
    .logo img {
        width: 45px;
        height: 45px;
    }
    
    .logo-name {
        font-size: 1.1rem;
    }
    
    .logo-tagline {
        font-size: 0.7rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 78px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-white);
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-menu.active {
        max-height: 500px;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 10px 0;
    }
    
    .nav-cta {
        width: 100%;
    }
    
    .nav-cta .btn {
        width: 100%;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 80vh;
        margin-top: 78px;
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 50px;
    }
    
    /* Section Headers */
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-image img {
        max-width: 250px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Services Section */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .service-card {
        padding: 30px 25px;
    }
    
    /* Quote Section */
    .quote-form-container {
        padding: 35px 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-map iframe {
        min-height: 300px;
    }
    
    /* Footer */
    .footer-top {
        padding: 50px 0 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* Float Buttons */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 25px;
        right: 25px;
    }
    
    .back-to-top {
        bottom: 90px;
        right: 25px;
    }
}

/* Mobile Large - 480px */
@media screen and (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    section {
        padding: 50px 0;
    }
    
    /* Typography */
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    /* Header */
    .logo img {
        width: 40px;
        height: 40px;
    }
    
    .logo-name {
        font-size: 1rem;
    }
    
    .logo-tagline {
        font-size: 0.65rem;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-text {
        margin-bottom: 40px;
    }
    
    .hero-features {
        margin-top: 40px;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    /* About Section */
    .about-intro {
        font-size: 1.1rem;
    }
    
    .about-text {
        font-size: 1rem;
    }
    
    .about-image img {
        max-width: 200px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Services */
    .service-icon {
        font-size: 3rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    /* Quote Form */
    .quote-form-container {
        padding: 30px 20px;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    /* Contact */
    .contact-item {
        gap: 15px;
    }
    
    .contact-icon {
        font-size: 1.3rem;
    }
    
    .contact-details h4 {
        font-size: 0.95rem;
    }
    
    .contact-details p,
    .contact-details a {
        font-size: 0.9rem;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
    }
    
    /* Footer */
    .footer-logo img {
        width: 50px;
        height: 50px;
    }
    
    .footer-brand {
        font-size: 1rem;
    }
    
    .footer-tagline {
        font-size: 0.8rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    .footer-title {
        font-size: 1.1rem;
    }
    
    .footer-links,
    .footer-contact {
        font-size: 0.9rem;
    }
    
    .footer-badges {
        flex-direction: column;
        width: 100%;
    }
    
    .badge {
        text-align: center;
    }
    
    /* Float Buttons */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 80px;
        right: 20px;
    }
}

/* Mobile Small - 375px */
@media screen and (max-width: 375px) {
    html {
        font-size: 13px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .quote-form-container {
        padding: 25px 15px;
    }
    
    .feature-card,
    .service-card {
        padding: 20px 15px;
    }
}

/* Landscape Orientation */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 30px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .hero-features {
        margin-top: 30px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    section {
        padding: 40px 0;
    }
}

/* High DPI Displays */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi) {
    .logo img,
    .footer-logo img,
    .about-image img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Print Styles */
@media print {
    .header-top,
    .mobile-menu-toggle,
    .whatsapp-float,
    .back-to-top,
    .hero-buttons,
    .quote-form,
    .nav-menu {
        display: none !important;
    }
    
    .main-header {
        position: static;
        box-shadow: none;
        border-bottom: 2px solid var(--border-color);
    }
    
    .hero-section {
        min-height: auto;
        margin-top: 0;
        page-break-after: always;
    }
    
    section {
        padding: 30px 0;
        page-break-inside: avoid;
    }
    
    .section-header h2 {
        color: #000;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

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

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode support
    :root {
        --text-dark: #f9fafb;
        --text-light: #d1d5db;
        --bg-light: #1f2937;
        --bg-white: #111827;
        --border-color: #374151;
    }
    
    .service-card,
    .quote-form-container,
    .footer-social a {
        background: #1f2937;
    }
    */
}

/* Accessibility Enhancements */
@media screen and (prefers-contrast: high) {
    :root {
        --primary-color: #1e40af;
        --secondary-color: #b91c1c;
        --border-color: #6b7280;
    }
    
    .btn-primary,
    .btn-secondary {
        border: 2px solid currentColor;
    }
    
    .nav-link::after {
        height: 3px;
    }
}

/* Hover Support Detection */
@media (hover: none) {
    .btn:hover,
    .service-card:hover,
    .feature-card:hover {
        transform: none;
    }
    
    .btn:active,
    .service-card:active {
        transform: scale(0.98);
    }
}

/* Container Queries Support (Future) */
@supports (container-type: inline-size) {
    .service-card {
        container-type: inline-size;
    }
    
    @container (max-width: 300px) {
        .service-card h3 {
            font-size: 1.2rem;
        }
    }
}



