/* ============================================================
   GLOBAL RESPONSIVE OVERRIDES
   Samrudhya Elevators - Desktop & Mobile Responsiveness
   ============================================================ */

/* --- MOBILE NAV FIXES (≤1199px) --- */
@media (max-width: 1199px) {
    /* Show hamburger */
    .header-navigation .navbar-toggler {
        display: block !important;
        cursor: pointer;
        padding: 10px;
        z-index: 9999;
    }
    .header-navigation .navbar-toggler span {
        display: block;
        width: 25px;
        height: 3px;
        background: #1a1a2e;
        margin: 5px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    /* Mobile slide-in nav panel */
    .header-navigation .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -320px !important;
        width: 300px !important;
        height: 100vh !important;
        background: #fff !important;
        z-index: 99999 !important;
        overflow-y: auto !important;
        padding: 60px 0 30px !important;
        box-shadow: -5px 0 30px rgba(0,0,0,0.15) !important;
        transition: right 0.35s ease !important;
        display: block !important;
    }
    .header-navigation .nav-menu.menu-on {
        right: 0 !important;
    }

    /* Close button */
    .header-navigation .navbar-close {
        display: block !important;
        position: absolute;
        top: 15px;
        right: 15px;
        cursor: pointer;
        z-index: 100000;
    }
    .header-navigation .cross-wrap {
        width: 30px;
        height: 30px;
        position: relative;
    }
    .header-navigation .cross-wrap span {
        display: block;
        width: 100%;
        height: 2px;
        background: #1a1a2e;
        position: absolute;
        top: 50%;
        left: 0;
    }
    .header-navigation .cross-wrap span.top {
        transform: rotate(45deg);
    }
    .header-navigation .cross-wrap span.bottom {
        transform: rotate(-45deg);
    }

    /* Mobile menu items */
    .header-navigation .main-menu ul {
        padding: 0 !important;
        margin: 0 !important;
    }
    .header-navigation .main-menu ul li {
        display: block !important;
        border-bottom: 1px solid #f1f1f1 !important;
    }
    .header-navigation .main-menu ul li > a {
        display: block !important;
        padding: 14px 25px !important;
        color: #1a1a2e !important;
        font-size: 15px !important;
        font-weight: 600 !important;
    }
    .header-navigation .main-menu ul li:hover > a,
    .header-navigation .main-menu ul li.active > a {
        color: #ff5e14 !important;
    }

    /* Mobile sub-menus */
    .header-navigation .main-menu ul li .sub-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: 100% !important;
        background: #f8f9fa !important;
        box-shadow: none !important;
        display: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }
    .header-navigation .main-menu ul li.active > .sub-menu {
        display: block !important;
    }
    .header-navigation .main-menu ul li .sub-menu li {
        border-bottom: 1px solid #eee !important;
    }
    .header-navigation .main-menu ul li .sub-menu li a {
        padding: 12px 25px 12px 40px !important;
        font-size: 14px !important;
        color: #555 !important;
        font-weight: 500 !important;
    }
    .header-navigation .main-menu ul li .sub-menu li a:hover {
        color: #ff5e14 !important;
    }

    /* dd-trigger for mobile dropdown toggle */
    .header-navigation .main-menu ul li .dd-trigger {
        display: block !important;
        position: absolute;
        right: 0;
        top: 0;
        width: 50px;
        height: 48px;
        line-height: 48px;
        text-align: center;
        cursor: pointer;
        z-index: 10;
        color: #1a1a2e;
        font-size: 14px;
    }
    .header-navigation .main-menu ul li .dd-trigger i {
        font-family: 'Font Awesome 6 Free' !important;
        font-weight: 900 !important;
    }
    .header-navigation .main-menu ul li .dd-trigger i::before {
        content: "\f078" !important;
    }

    /* Logo sizing on mobile */
    .site-branding .brand-logo img {
        max-height: 35px !important;
    }
}

/* --- TABLET (≤991px) --- */
@media (max-width: 991px) {
    /* Header top bar */
    .header-top .top-left,
    .header-top .top-right {
        text-align: center !important;
    }
    .header-top .social-link {
        justify-content: center !important;
    }

    /* Index page hero */
    .single-hero .hero-content h1 {
        font-size: 42px !important;
    }
    .single-hero {
        min-height: 500px !important;
    }

    /* Features strip */
    .features-area-v1 {
        padding: 60px 0 !important;
    }

    /* About section */
    .about-img-box {
        margin-bottom: 40px;
    }

    /* Service slider */
    .service-slider-one .service-item {
        margin: 0 10px;
    }

    /* CTA */
    .cta-wrapper .section-title h2 {
        font-size: 28px !important;
    }

    /* Counters */
    .counter-box h2 {
        font-size: 36px !important;
    }

    /* Footer */
    .footer-widget .col-lg-3 {
        margin-bottom: 40px;
    }

    /* Company page - premium-story-sec */
    .premium-story-sec .story-rail-wrap {
        flex-direction: column !important;
    }

    /* Elevator product pages hero */
    .pep-hero {
        flex-direction: column !important;
    }
    .pep-hero-content,
    .pep-hero-image {
        flex: 1 1 100% !important;
    }
    .pep-hero-content {
        padding: 50px 30px !important;
    }
    .pep-hero-image {
        min-height: 350px !important;
    }
    .pep-hero-title {
        font-size: 42px !important;
    }

    /* Elevator pages grids */
    .pep-grid-4,
    .pep-spaces-grid,
    .pep-arch-grid,
    .pep-safety-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Specs section */
    .pep-specs-wrap {
        flex-direction: column !important;
    }

    /* Service pages - premium intro */
    .premium-service-intro {
        flex-direction: column !important;
    }
    .premium-service-intro .intro-content,
    .premium-service-intro .intro-image {
        flex: 1 1 100% !important;
        min-height: auto !important;
    }

    /* Contact grid */
    .contact-grid {
        grid-template-columns: 1fr !important;
    }

    /* Insight grid */
    .insight-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Project featured rows */
    .featured-row,
    .featured-row:nth-child(even) {
        flex-direction: column !important;
    }
    .featured-text-col {
        padding: 30px !important;
    }
    .featured-img-col {
        min-height: 300px !important;
    }
}

/* --- MOBILE (≤767px) --- */
@media (max-width: 767px) {
    /* Global section padding */
    .pep-section,
    .about-area-v1,
    .service-area-v1,
    .cta-area-v1,
    .features-area-v2,
    .counter-area-v1,
    .project-area-v1,
    .testimonial-area-v1,
    .insight-content,
    .project-content,
    .contact-content {
        padding: 60px 0 !important;
    }

    /* Hero */
    .single-hero {
        min-height: 400px !important;
    }
    .single-hero .hero-content h1 {
        font-size: 32px !important;
        line-height: 1.2 !important;
    }
    .single-hero .hero-content h4 {
        font-size: 16px !important;
    }

    /* Section titles */
    .section-title h2,
    .section-white-title h2 {
        font-size: 28px !important;
    }

    /* Elevator pages - single col grids */
    .pep-grid-4,
    .pep-spaces-grid,
    .pep-arch-grid,
    .pep-safety-grid {
        grid-template-columns: 1fr !important;
    }
    .pep-hero-title {
        font-size: 36px !important;
        letter-spacing: -1px !important;
    }
    .pep-hero-content {
        padding: 40px 20px !important;
    }
    .pep-section-title {
        font-size: 28px !important;
    }
    .pep-section {
        padding: 60px 0 !important;
    }
    .pep-card {
        padding: 25px !important;
    }
    .pep-specs-right {
        padding: 25px !important;
    }
    .pep-spec-row {
        flex-direction: column !important;
    }
    .pep-spec-label {
        margin-bottom: 5px !important;
    }

    /* Insight cards */
    .insight-grid {
        grid-template-columns: 1fr !important;
    }

    /* Project cards */
    .project-card .project-img {
        height: 200px !important;
    }

    /* Header */
    .insight-header h1,
    .project-header h1,
    .contact-header h1,
    .page-banner h1 {
        font-size: 32px !important;
    }
    .insight-header p,
    .project-header p {
        font-size: 16px !important;
    }

    /* Company page story */
    .premium-story-sec {
        padding: 60px 0 !important;
    }
    .premium-story-sec h2 {
        font-size: 28px !important;
    }

    /* Contact form */
    .contact-form-card {
        padding: 25px !important;
    }
    .contact-form-card h2 {
        font-size: 24px !important;
    }
    .neat-form .form-row {
        grid-template-columns: 1fr !important;
    }
    .contact-info-card {
        padding: 25px !important;
    }

    /* Featured project stats */
    .featured-stats {
        flex-wrap: wrap !important;
        gap: 15px !important;
    }
    .featured-title {
        font-size: 24px !important;
    }

    /* Case study cards */
    .case-card {
        padding: 25px !important;
    }
    .case-title {
        font-size: 20px !important;
    }

    /* CTA */
    .cta-wrapper {
        padding: 30px 20px !important;
        text-align: center !important;
    }
    .cta-wrapper .section-title h2 {
        font-size: 22px !important;
    }
    .button-box {
        text-align: center !important;
        margin-top: 20px !important;
    }

    /* Counters */
    .counter-box h2 {
        font-size: 32px !important;
    }
    .counter-column {
        margin-bottom: 30px !important;
    }

    /* Footer */
    .footer-area .footer-widget {
        padding: 40px 0 !important;
    }
    .footer-widget .widget {
        margin-bottom: 30px !important;
    }
    .copyright-area {
        text-align: center !important;
    }
}

/* --- SMALL MOBILE (≤480px) --- */
@media (max-width: 480px) {
    .pep-hero-title {
        font-size: 28px !important;
        letter-spacing: 0 !important;
    }
    .pep-hero-tags {
        gap: 8px !important;
    }
    .pep-hero-tag {
        font-size: 12px !important;
        padding: 6px 12px !important;
    }
    .pep-hero-actions {
        flex-direction: column !important;
    }
    .pep-btn {
        width: 100% !important;
        text-align: center !important;
    }

    .single-hero .hero-content h1 {
        font-size: 26px !important;
    }
    .main-btn {
        padding: 12px 24px !important;
        font-size: 14px !important;
    }

    .section-title h2,
    .section-white-title h2 {
        font-size: 24px !important;
    }

    .insight-header h1,
    .project-header h1 {
        font-size: 26px !important;
    }
}

/* ============================================================
   FIX: Ensure the dd-trigger chevron uses Font Awesome 
   (since IcoFont/flaticon may not be loaded)
   ============================================================ */
.dd-trigger i::before {
    content: "\f078" !important;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
}
