/* ==========================================================================
   Om Sai Fabrication — Responsive CSS
   Clean rewrite: no duplicate blocks, no bare nav rules outside media queries
   ========================================================================== */

/* ========================= */
/* NAVBAR — MOBILE (≤ 991px) */
/* ========================= */
@media (max-width: 991px) {
    .header-top {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    /* Slide-in panel from right */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
        z-index: 1050;
        overflow-y: auto;
        gap: 0;
    }

    .nav-menu.active {
        right: 0;
    }

    /* Space at top so links don't hide behind the fixed header */
    .nav-menu::before {
        content: '';
        display: block;
        height: 70px;
        flex-shrink: 0;
        border-bottom: 1px solid #e5e7eb;
    }

    /* Mobile nav links */
    .nav-menu>li>a {
        padding: 16px 20px;
        font-size: 16px;
        font-weight: 500;
        border-bottom: 1px solid #e5e7eb;
        border-radius: 0;
        color: #2D2D2D;
        width: 100%;
        justify-content: space-between;
    }

    .nav-menu>li>a:hover,
    .nav-menu>li>a.active {
        color: #FF6B35;
        background: #FFF3ED;
    }

    /* Mobile accordion: collapsed by default */
    .nav-dropdown>.dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        background: #f9fafb;
        pointer-events: auto;
    }

    .nav-dropdown.open>.dropdown-menu {
        max-height: 600px;
    }

    .nav-dropdown>.dropdown-menu li a {
        padding: 13px 20px 13px 36px;
        font-size: 14px;
        border-bottom: 1px solid #e5e7eb;
        border-radius: 0;
        white-space: normal;
    }

    .nav-dropdown>.dropdown-menu li:first-child a {
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 13px;
        margin-bottom: 0;
    }

    /* Rotate chevron when accordion is open */
    .nav-dropdown.open>.nav-dropdown-toggle .dropdown-chevron {
        transform: rotate(180deg);
    }

    /* Call Now button at bottom of mobile menu */
    .mobile-nav-cta {
        display: block;
        padding: 16px 20px;
        border-top: 1px solid #e5e7eb;
        margin-top: auto;
    }
}

/* ========================= */
/* NAVBAR — DESKTOP (≥ 992px) */
/* ========================= */
@media (min-width: 992px) {
    .header-top {
        display: block;
    }

    .hamburger {
        display: none !important;
    }

    .mobile-overlay {
        display: none !important;
    }

    .mobile-nav-cta {
        display: none !important;
    }

    /* Horizontal nav bar */
    .nav-menu {
        position: static !important;
        right: auto !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        flex-direction: row !important;
        align-items: center !important;
        padding: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        gap: 2px !important;
        overflow: visible !important;
        transition: none !important;
    }

    .nav-menu::before {
        display: none !important;
    }

    .nav-menu>li>a {
        padding: 10px 14px;
        font-size: 15px;
        border-bottom: none !important;
        border-radius: 6px;
        white-space: nowrap;
        width: auto !important;
        justify-content: center;
    }

    .nav-cta {
        display: block !important;
        margin-left: 12px;
        flex-shrink: 0;
    }

    /* Services toggle inside desktop nav */
    .nav-dropdown>.nav-dropdown-toggle {
        padding: 10px 14px;
        font-size: 15px;
        border-bottom: none !important;
        width: auto !important;
        justify-content: center;
        white-space: nowrap;
    }

    /* Desktop dropdown — hidden by default */
    .nav-dropdown>.dropdown-menu {
        position: absolute !important;
        top: calc(100% + 4px) !important;
        left: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(6px) !important;
        max-height: none !important;
        overflow: visible !important;
        background: #fff !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 8px !important;
        padding: 6px 0 !important;
        min-width: 230px !important;
        pointer-events: none !important;
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease !important;
    }

    .nav-dropdown>.dropdown-menu li a {
        padding: 10px 18px;
        font-size: 14px;
        border-bottom: none;
        white-space: nowrap;
    }

    .nav-dropdown>.dropdown-menu li:first-child a {
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 10px;
        margin-bottom: 2px;
    }

    /* Show dropdown on hover AND focus-within */
    .nav-dropdown:hover>.dropdown-menu,
    .nav-dropdown:focus-within>.dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }

    .nav-dropdown:hover>.nav-dropdown-toggle .dropdown-chevron,
    .nav-dropdown:focus-within>.nav-dropdown-toggle .dropdown-chevron {
        transform: rotate(180deg);
    }
}

/* ========================= */
/* LAYOUT — MOBILE FIRST     */
/* ========================= */

/* These bare rules apply at all widths (mobile-first base) */
.hero {
    min-height: auto;
    padding: var(--space-lg) 0;
    margin-top: 70px;
}

.hero h1 {
    font-size: 28px;
}

.hero-subtitle {
    font-size: var(--font-size-base);
}

.hero-buttons {
    flex-direction: column;
}

.hero-buttons .btn {
    width: 100%;
    justify-content: center;
}

.hero-stats {
    gap: var(--space-md);
}

.hero-stat-number {
    font-size: var(--font-size-xl);
}

.services-grid {
    grid-template-columns: 1fr;
}

.trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.trust-card {
    padding: var(--space-md);
}

.testimonials-grid {
    grid-template-columns: 1fr;
}

.contact-grid {
    grid-template-columns: 1fr;
}

.footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs);
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
}

.contact-info-block {
    padding: var(--space-md) !important;
}

.contact-info-item a {
    word-break: break-all;
}

.service-detail-grid {
    grid-template-columns: 1fr;
}

.service-sidebar {
    position: static;
}

.about-grid {
    grid-template-columns: 1fr;
}

.mission-vision-grid {
    grid-template-columns: 1fr;
}

.location-services-grid {
    grid-template-columns: 1fr;
}

.page-header {
    margin-top: 70px;
    padding: var(--space-lg) 0 var(--space-md);
}

.page-header h1 {
    font-size: var(--font-size-xl);
}

.breadcrumb {
    margin-top: 70px;
}

.section {
    padding: var(--space-lg) 0;
}

.cta-banner .btn {
    display: block;
    margin: var(--space-xs) auto;
    width: 100%;
    max-width: 300px;
}

.lightbox-prev {
    left: 5px;
}

.lightbox-next {
    right: 5px;
}

.lightbox-close {
    top: 5px;
    right: 5px;
}

.floating-cta {
    bottom: 16px;
    right: 16px;
}

.floating-btn {
    width: 48px;
    height: 48px;
    font-size: 20px;
}


.map-container iframe {
    height: 250px;
}

h1 {
    font-size: var(--font-size-xl);
}

h2 {
    font-size: 22px;
}

h3 {
    font-size: var(--font-size-lg);
}

body {
    font-size: var(--font-size-lg);
}

.hero-content {
    max-width: 100%;
}

.cta-banner .container {
    padding: 0 var(--space-sm);
}

.testimonial-card {
    padding: var(--space-md);
    word-break: break-word;
}

/* ========================= */
/* BREAKPOINT: 480px          */
/* ========================= */
@media (min-width: 480px) {
    .hero h1 {
        font-size: var(--font-size-2xl);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
}

@media (min-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .floating-cta {
        bottom: 80px;
        /* Prevent overlap with footer */
    }

    .floating-whatsapp,
    .floating-call {
        width: 45px;
        height: 45px;
        bottom: 30px;
    }

    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* ========================= */
/* BREAKPOINT: 768px          */
/* ========================= */
@media (min-width: 768px) {
    .hero {
        min-height: 500px;
        margin-top: 100px;
    }

    .hero h1 {
        font-size: var(--font-size-3xl);
    }

    .hero-buttons {
        flex-direction: row;
    }

    .hero-buttons .btn {
        width: auto;
    }

    h1 {
        font-size: var(--font-size-2xl);
    }

    h2 {
        font-size: var(--font-size-xl);
    }

    body {
        font-size: var(--font-size-base);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr 1fr;
    }

    .location-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-header {
        margin-top: 100px;
        padding: var(--space-xl) 0 var(--space-lg);
    }

    .page-header h1 {
        font-size: var(--font-size-2xl);
    }

    .breadcrumb {
        margin-top: 100px;
    }

    .section {
        padding: var(--space-xl) 0;
    }

    .map-container iframe {
        height: 350px;
    }
}

/* ========================= */
/* BREAKPOINT: 1024px         */
/* ========================= */
@media (min-width: 1024px) {
    .hero {
        min-height: 600px;
    }

    .hero h1 {
        font-size: var(--font-size-4xl);
    }

    h1 {
        font-size: var(--font-size-3xl);
    }

    h2 {
        font-size: var(--font-size-2xl);
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .service-detail-grid {
        grid-template-columns: 2fr 1fr;
    }

    .service-sidebar {
        position: sticky;
        top: 120px;
    }

    .page-header h1 {
        font-size: var(--font-size-3xl);
    }

    .map-container iframe {
        height: 400px;
    }
}

/* ========================= */
/* BREAKPOINT: 1280px         */
/* ========================= */
@media (min-width: 1280px) {
    .container {
        padding: 0 var(--space-md);
    }

    .nav-menu>li>a {
        padding: 10px 14px;
        font-size: 15px;
    }

    .nav-dropdown>.nav-dropdown-toggle {
        padding: 10px 14px;
        font-size: 15px;
    }

    .services-grid {
        gap: var(--space-lg);
    }
}

/* ========================= */
/* BREAKPOINT: 1920px         */
/* ========================= */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }

    .hero {
        min-height: 700px;
    }
}

/* ========================= */
/* PRINT                      */
/* ========================= */
/* ========================= */
/* NEW ELEMENTS RESPONSIVE    */
/* ========================= */

/* Quote CTA Box — mobile */
@media (max-width: 480px) {
    .quote-cta-box {
        padding: var(--space-lg) var(--space-md);
    }

    .quote-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .quote-cta-buttons .btn {
        min-width: auto;
        width: 100%;
    }

    .quote-cta-icon {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }

    .location-search-wrap input {
        font-size: 16px; /* prevent iOS zoom */
    }
}


/* Footer social */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: var(--space-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 16px;
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--orange);
    color: var(--white);
}

@media print {

    .site-header,
    .floating-cta,
    .hamburger,
    .mobile-overlay {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .hero {
        margin-top: 0;
        background: #f0f0f0 !important;
        padding: 20px 0;
        min-height: auto;
    }

    .hero h1 {
        color: #000;
        font-size: 24pt;
    }

    .section {
        padding: 20px 0;
    }
}