/* =====================================================
   VISHWAKARMA STEEL FABRICATION
   Responsive Stylesheet
   ===================================================== */

/* =====================================================
   LARGE DEVICES (Laptops/Desktops)
   ===================================================== */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
        gap: 30px;
    }
}

/* =====================================================
   MEDIUM DEVICES (Tablets)
   ===================================================== */
@media (max-width: 1024px) {
    .section-padding {
        padding: 60px 0;
    }
    
    /* Header */
    .nav-menu {
        display: none;
    }
    
    .header-phone {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hero */
    .hero-slide {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Trust Badges */
    .trust-badges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* About Section */
    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-images {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-images .experience-badge {
        left: 0;
    }
    
    .about-images .image-secondary {
        right: 0;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Why Choose */
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stats-cards {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: 30px;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Process */
    .process-steps {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .process-connector {
        display: none;
    }
    
    .process-step {
        flex: 0 0 calc(50% - 15px);
    }
    
    /* Testimonials */
    .testimonial-card {
        flex: 0 0 calc(50% - 12.5px);
    }
    
    /* FAQ */
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .faq-content {
        order: 1;
    }
    
    /* Book Visit */
    .book-visit-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Final CTA */
    .final-cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* Footer */
    .footer-cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-about {
        grid-column: 1 / -1;
    }
}

/* =====================================================
   SMALL DEVICES (Large Phones)
   ===================================================== */
@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }
    
    h1, .section-title {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    /* Top Bar */
    .top-bar {
        display: none;
    }
    
    /* Header */
    .main-header {
        position: fixed;
        top: 0;
    }
    
    .main-content {
        padding-top: var(--header-height);
    }
    
    .logo-name {
        font-size: 1.1rem;
    }
    
    .logo-tagline {
        font-size: 0.7rem;
    }
    
    .header-cta {
        display: none;
    }
    
    /* Hero */
    .hero-slide {
        min-height: 450px;
    }
    
    .hero-content {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-slider-nav {
        bottom: 60px;
    }
    
    .hero-contact-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    /* Trust Badges */
    .trust-badges-section {
        margin-top: -20px;
    }
    
    .trust-badges-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .trust-badge-card {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .trust-badge-card .badge-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .trust-badge-card .badge-value {
        font-size: 1.5rem;
    }
    
    /* About Features */
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .about-buttons {
        flex-direction: column;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .product-filters .filter-btn {
        text-align: center;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    /* Process */
    .process-step {
        flex: 0 0 100%;
    }
    
    /* Testimonials */
    .google-rating-banner .rating-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .testimonial-card {
        flex: 0 0 100%;
    }
    
    .testimonial-header {
        flex-wrap: wrap;
    }
    
    /* Visit Benefits */
    .visit-benefits {
        grid-template-columns: 1fr;
    }
    
    /* Areas */
    .areas-grid .area-item {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-trust-badges {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .footer-cta-buttons .btn {
        width: 100%;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Page Header */
    .page-header {
        padding: 80px 0 60px;
    }
    
    .page-header-content h1 {
        font-size: 1.8rem;
    }
    
    /* Sticky Form */
    .sticky-form-toggle {
        transform: translateY(-50%) rotate(-90deg);
        font-size: 0.85rem;
    }
    
    .sticky-form-toggle .toggle-content {
        padding: 10px 20px;
    }
    
    .sticky-form-panel {
        width: 100%;
        max-width: 100%;
    }
    
    /* WhatsApp Widget */
    .whatsapp-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-button {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }
    
    .whatsapp-popup {
        width: 300px;
        right: -20px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
    
    /* Back to Top */
    .back-to-top {
        bottom: 85px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    
    /* Modals */
    .modal-content {
        margin: 15px;
    }
    
    /* Thank You Page */
    .thank-you-card {
        padding: 30px 20px;
    }
    
    .urgent-buttons {
        flex-direction: column;
    }
    
    /* Form Rows */
    .form-row.two-col {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   EXTRA SMALL DEVICES (Small Phones)
   ===================================================== */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    h1, .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    /* Logo */
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .logo-name {
        font-size: 1rem;
    }
    
    /* Hero */
    .hero-slide {
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 8px 15px;
    }
    
    /* Trust Badges */
    .trust-badges-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-badge-card {
        flex-direction: row;
        text-align: left;
    }
    
    /* Service Cards */
    .service-card {
        padding: 25px 20px;
    }
    
    .service-card .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Product Cards */
    .product-card .product-content {
        padding: 15px;
    }
    
    .product-card .product-actions {
        flex-direction: column;
    }
    
    /* Process */
    .process-step .step-icon {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 20px;
    }
    
    /* Footer */
    .footer-main {
        padding: 40px 0 30px;
    }
    
    .footer-logo {
        flex-direction: column;
        text-align: center;
    }
    
    /* Book Visit Form */
    .book-visit-form-wrapper .form-card {
        padding: 25px;
    }
    
    /* Sticky Form */
    .sticky-form-header {
        padding: 30px 20px 20px;
    }
    
    .sticky-lead-form {
        padding: 20px;
    }
    
    /* WhatsApp Popup */
    .whatsapp-popup {
        width: calc(100vw - 40px);
        right: 0;
        bottom: 70px;
    }
    
    /* Error Page */
    .error-content .error-code {
        font-size: 5rem;
    }
    
    .error-actions {
        flex-direction: column;
    }
    
    /* Steps Timeline */
    .steps-timeline .step {
        flex-direction: column;
    }
    
    .steps-timeline .step::before {
        display: none;
    }
}

/* =====================================================
   LANDSCAPE ORIENTATION
   ===================================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-slide {
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 30px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
}

/* =====================================================
   PRINT STYLES
   ===================================================== */
@media print {
    .top-bar,
    .main-header,
    .sticky-form-toggle,
    .sticky-form-panel,
    .whatsapp-widget,
    .back-to-top,
    .footer-cta,
    .hero-slider-nav,
    .hero-bottom-bar {
        display: none !important;
    }
    
    .main-content {
        padding-top: 0;
    }
    
    .hero-section {
        min-height: auto;
        padding: 30px 0;
    }
    
    .hero-overlay {
        background: rgba(0, 0, 0, 0.3);
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    a {
        text-decoration: underline;
    }
    
    .btn {
        border: 1px solid #000;
        padding: 5px 10px;
    }
}

/* =====================================================
   REDUCED MOTION
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* =====================================================
   HIGH CONTRAST MODE
   ===================================================== */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #cc4400;
        --heading-color: #000000;
        --text-color: #000000;
        --border-color: #000000;
    }
    
    .btn {
        border-width: 3px;
    }
    
    .nav-link:hover,
    .nav-link.active {
        text-decoration: underline;
    }
}

/* =====================================================
   DARK MODE (If user prefers)
   ===================================================== */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode support
    :root {
        --bg-white: #1a1a2e;
        --bg-light: #16213e;
        --heading-color: #ffffff;
        --text-color: #e0e0e0;
        --border-color: #333;
    }
    */
}