/* ==========================================================================
   PRIME GROUP - Mobile & iOS Friendly Stylesheet
   Ensures seamless responsive experience across iPhone, iPad, Android & Mobile
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. iOS & General Mobile Reset / Fixes
   -------------------------------------------------------------------------- */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    width: 100%;
    min-width: 320px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-overflow-scrolling: touch;
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
}

.boxed_wrapper {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Fluid Media */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* Remove tap highlight flash on iOS Safari */
* {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Fix iOS Safari touch target issue: elements must have pointer cursor to receive touch clicks */
.navbar-toggle,
.dropdown-btn,
.thm-btn,
button,
a,
input[type="submit"],
.single-fact-counter {
    cursor: pointer !important;
    touch-action: manipulation;
}

/* --------------------------------------------------------------------------
   2. Input Zoom Prevention on iOS (<16px auto-zooms viewport)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 767px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px !important;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 4px;
    }
}

/* --------------------------------------------------------------------------
   3. Top Bar Responsiveness (<= 767px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 767px) {
    .top-bar-area {
        padding: 8px 15px;
        text-align: center;
        background: #111;
    }
    .top-bar-area .clearfix {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    .top-bar-area .pull-left,
    .top-bar-area .pull-right {
        float: none !important;
        width: 100%;
        text-align: center;
        margin: 0;
    }
    .top-bar-area p {
        font-size: 12px;
        line-height: 18px;
        color: #bbb;
    }
    .top-bar-area p i {
        margin-right: 5px;
        color: #fdc716;
    }
}

/* --------------------------------------------------------------------------
   4. Header & Logo on Mobile (<= 767px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 767px) {
    .header-area {
        padding: 18px 0 12px !important;
    }
    .header-area .logo {
        text-align: center;
        margin: 0 auto 15px;
    }
    .header-area .logo img {
        position: static !important;
        left: 0 !important;
        margin: 0 auto;
        display: inline-block;
        max-height: 65px !important;
        width: auto;
    }
    .header-contact-info {
        width: 100% !important;
        max-width: 100%;
        margin: 0 auto 10px;
        float: none !important;
        overflow: visible !important;
    }
    .header-contact-info ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 0;
        margin: 0;
    }
    .header-contact-info ul li {
        float: none !important;
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        padding: 8px 14px !important;
        margin: 0 !important;
        border: 1px solid #eee !important;
        background: #fafafa;
        border-radius: 6px;
        text-align: left;
    }
    .header-contact-info ul li .iocn-holder {
        margin-right: 12px;
        float: none;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 32px;
    }
    .header-contact-info ul li .iocn-holder span {
        font-size: 20px;
        color: #fdc716;
    }
    .header-contact-info ul li .text-holder {
        flex: 1;
        text-align: left;
    }
    .header-contact-info ul li .text-holder h6 {
        font-size: 13px;
        margin: 0 0 2px;
        color: #222;
        font-weight: 600;
    }
    .header-contact-info ul li .text-holder p,
    .header-contact-info ul li .text-holder a {
        font-size: 13px;
        margin: 0;
        line-height: 18px;
        color: #666;
    }
}

/* --------------------------------------------------------------------------
   5. Mobile Navigation & Hamburger Menu (<= 991px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 991px) {
    .mainmenu-area {
        position: relative;
        background: #1a1919;
        margin-bottom: 0;
        margin-top: 0;
        z-index: 9999;
    }
    .mainmenu-area .mainmenu-bg {
        background: #1a1919 !important;
        padding: 0;
    }
    .mainmenu-area .mainmenu-bg .row {
        margin: 0;
    }
    .mainmenu-area .col-md-9 {
        padding: 0;
        width: 100%;
    }
    .main-menu {
        float: none !important;
        width: 100%;
        display: block;
    }
    .main-menu .navbar-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 12px 18px;
        width: 100%;
        background: #1a1919;
        margin: 0;
        position: relative;
    }
    .main-menu .navbar-header:before {
        content: "NAVIGATION";
        color: #fdc716;
        font-weight: 700;
        font-size: 14px;
        letter-spacing: 1.5px;
        font-family: 'Montserrat', sans-serif;
    }
    .main-menu .navbar-header .navbar-toggle {
        display: block !important;
        float: none !important;
        margin: 0;
        padding: 8px 10px;
        background: #fdc716;
        border: none;
        border-radius: 4px;
        width: auto;
        height: auto;
    }
    .main-menu .navbar-header .navbar-toggle .icon-bar {
        background: #1a1919 !important;
        height: 3px;
        width: 22px;
        margin-top: 4px;
        border-radius: 2px;
        display: block;
    }
    .main-menu .navbar-header .navbar-toggle .icon-bar:first-child {
        margin-top: 0;
    }

    /* Hide desktop-only elements on mobile navbar */
    .mainmenu-area .right-column {
        display: none !important;
    }
    .mainmenu-area .navigation {
        display: none !important;
    }

    /* Mobile Menu Drawer */
    .main-menu .navbar-collapse {
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        background: #222222;
        box-shadow: inset 0 3px 6px rgba(0,0,0,0.3);
    }
    .main-menu .mobile-menu {
        background: #222222 !important;
        display: block !important;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    .main-menu .mobile-menu > li {
        border-top: 1px solid #2d2d2d !important;
        border-bottom: none !important;
        position: relative;
    }
    .main-menu .mobile-menu > li:first-child {
        border-top: none !important;
    }
    .main-menu .mobile-menu > li > a {
        background: #222222 !important;
        color: #ffffff !important;
        padding: 13px 20px !important;
        font-size: 14px;
        font-weight: 600;
        text-transform: uppercase;
        display: block;
        letter-spacing: 0.5px;
        transition: all 0.2s ease;
    }
    .main-menu .mobile-menu > li > a:hover,
    .main-menu .mobile-menu > li > a:active,
    .main-menu .mobile-menu > li.current > a {
        background: #fdc716 !important;
        color: #1a1919 !important;
    }

    /* Submenu Toggle Button on Mobile */
    .main-menu .mobile-menu li.dropdown .dropdown-btn {
        position: absolute;
        right: 12px;
        top: 8px;
        width: 36px;
        height: 32px;
        background: rgba(253, 199, 22, 0.15) !important;
        border: 1px solid #fdc716 !important;
        border-radius: 4px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        color: #fdc716;
        cursor: pointer;
        z-index: 10;
        transition: all 0.2s ease;
    }
    .main-menu .mobile-menu li.dropdown .dropdown-btn:hover {
        background: #fdc716 !important;
        color: #1a1919;
    }
    .main-menu .mobile-menu li.dropdown .dropdown-btn:before {
        content: "\f107";
        font-family: FontAwesome;
        font-size: 16px;
        line-height: 1;
        transition: transform 0.3s ease;
    }
    .main-menu .mobile-menu li.dropdown.dropdown-active > .dropdown-btn:before {
        transform: rotate(180deg);
    }
    .main-menu .mobile-menu > li > ul {
        background: #181818 !important;
        padding: 0;
        margin: 0;
        list-style: none;
        display: none;
    }
    .main-menu .mobile-menu > li > ul > li {
        border-top: 1px solid #282828 !important;
    }
    .main-menu .mobile-menu > li > ul > li > a {
        background: #181818 !important;
        color: #bbb !important;
        padding: 11px 32px !important;
        font-size: 13px;
        font-weight: 500;
        text-transform: capitalize;
        display: block;
    }
    .main-menu .mobile-menu > li > ul > li > a:hover {
        background: #252525 !important;
        color: #fdc716 !important;
        padding-left: 36px !important;
    }
}

/* --------------------------------------------------------------------------
   6. Hero Slider on Mobile Screens (<= 767px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 767px) {
    .rev_slider_wrapper {
        min-height: 380px !important;
        max-height: 520px !important;
        overflow: hidden;
    }
    .rev_slider_wrapper .slide-content-box {
        padding: 10px 15px;
        max-width: 100% !important;
    }
    .rev_slider_wrapper .slide-content-box h1 {
        font-size: 20px !important;
        line-height: 26px !important;
        margin-bottom: 8px !important;
        word-break: break-word;
    }
    .rev_slider_wrapper .slide-content-box p {
        font-size: 12px !important;
        line-height: 17px !important;
        margin-bottom: 12px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .rev_slider_wrapper .slide-content-box .button {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .rev_slider_wrapper .slide-content-box .button a {
        padding: 8px 14px !important;
        font-size: 12px !important;
        line-height: 16px !important;
        border-radius: 3px;
    }
}

/* --------------------------------------------------------------------------
   7. About Us Section & Fact Counters (<= 767px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 767px) {
    .about-us {
        padding-top: 35px !important;
        padding-bottom: 25px !important;
    }
    .about-us .about-img {
        margin-bottom: 25px !important;
        text-align: center;
    }
    .about-us .about-img img {
        margin: 0 auto;
        border-radius: 6px;
        width: 100%;
        max-width: 450px;
    }
    .about-us .about-text h2 {
        font-size: 22px !important;
        line-height: 30px !important;
        text-align: center;
        margin-bottom: 15px;
    }
    .about-us .about-text .text p {
        font-size: 14px;
        line-height: 23px;
        text-align: left;
        color: #555;
    }
    .about-us .fact-counter {
        margin: 20px 0 0 !important;
        overflow: visible !important;
    }
    .about-us .fact-counter ul {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .about-us .fact-counter ul li.single-fact-counter {
        margin: 0 !important;
        flex: 1 1 95px;
        max-width: 130px;
        padding: 12px 6px;
        background: #fdfdfd;
        border: 1px solid #f0f0f0;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.04);
        display: inline-block;
        text-align: center;
    }
    .about-us .fact-counter ul li.single-fact-counter .icon-holder {
        margin-bottom: 8px !important;
    }
    .about-us .fact-counter ul li.single-fact-counter .icon-holder span::before {
        width: 48px !important;
        height: 48px !important;
        font-size: 22px !important;
        padding: 13px 0 !important;
        line-height: 22px !important;
        box-shadow: 0 3px 6px rgba(0,0,0,0.15) !important;
    }
    .about-us .fact-counter ul li.single-fact-counter .timer {
        font-size: 22px !important;
    }
    .about-us .fact-counter ul li.single-fact-counter i.fa-plus {
        font-size: 14px !important;
    }
    .about-us .fact-counter ul li.single-fact-counter h3 {
        font-size: 11px !important;
        line-height: 15px !important;
        margin-top: 4px;
    }
}

/* --------------------------------------------------------------------------
   8. Our Services Section (<= 767px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 767px) {
    .our-services {
        padding: 35px 0 20px !important;
    }
    .our-services .section-title h2 {
        font-size: 22px !important;
        line-height: 29px !important;
        text-align: center;
    }
    .our-services .font-20 p {
        font-size: 14px !important;
        line-height: 22px !important;
        text-align: center;
        margin-bottom: 25px;
    }
    .single-our-service {
        margin-bottom: 25px;
        background: #fff;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
    .single-our-service .img-box img {
        width: 100%;
        border-radius: 6px;
    }
    .single-our-service h4 {
        font-size: 18px;
        margin: 14px 0 8px;
    }
    .single-our-service p {
        font-size: 14px;
        line-height: 21px;
    }
}

/* --------------------------------------------------------------------------
   9. Contact Form & Call-back Section (<= 767px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 767px) {
    .call-back {
        padding: 35px 0 !important;
        margin-bottom: 30px !important;
        background-position: center center !important;
        background-size: cover !important;
    }
    .call-back .section-title h2 {
        font-size: 24px !important;
        line-height: 31px !important;
    }
    .call-back h4 {
        font-size: 17px !important;
    }
    .call-back .text {
        font-size: 14px !important;
        line-height: 22px !important;
        margin-bottom: 25px;
    }
    .call-back .text a {
        color: #fdc716;
        word-break: break-all;
        font-weight: 600;
    }
    .contact-form-area {
        padding: 0 !important;
    }
    .contact-form-area .contact-form form input[type="text"],
    .contact-form-area .contact-form form input[type="email"] {
        font-size: 16px !important; /* Prevents iOS auto-zoom */
        padding: 12px 14px !important;
        height: 48px !important;
        margin-bottom: 16px !important;
        border-radius: 4px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        color: #222 !important;
    }
    .contact-form-area .contact-form form textarea {
        font-size: 16px !important;
        padding: 12px 14px !important;
        height: 110px !important;
        margin-bottom: 16px !important;
        border-radius: 4px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        color: #222 !important;
    }
    .contact-form-area .contact-form form button[type="submit"] {
        width: 100% !important;
        height: 50px !important;
        font-size: 16px !important;
        border-radius: 4px !important;
        line-height: 50px !important;
        padding: 0 !important;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
}

/* --------------------------------------------------------------------------
   10. Footer Section on Mobile (<= 767px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 767px) {
    .footer-main {
        padding: 35px 0 15px !important;
    }
    .footer-col {
        margin-bottom: 25px !important;
        padding-bottom: 10px !important;
        text-align: center;
    }
    .footer-col .logo-part {
        text-align: center;
    }
    .footer-col .logo-part img {
        margin: 0 auto 12px;
        max-height: 60px !important;
    }
    .footer-col .footer-words {
        font-size: 13px;
        line-height: 22px;
        text-align: center;
        padding: 0 10px;
    }
    .footer-social {
        text-align: center;
        margin-top: 15px;
    }
    .footer-social li {
        display: inline-block;
        margin: 0 4px;
    }
    .footer-social li a {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 44px !important;
        height: 44px !important;
        font-size: 18px;
        border-radius: 50%;
        background: #2a2a2a;
        color: #fff;
    }
    .footer-title {
        font-size: 17px !important;
        margin-bottom: 12px !important;
        text-align: center;
    }
    .footer-list {
        text-align: center;
    }
    .footer-list li {
        margin-bottom: 6px;
    }
    .footer-list li a {
        font-size: 13px;
        display: inline-block;
        padding: 3px 0;
    }
    .footer-contact p {
        text-align: center;
        font-size: 13px;
        line-height: 22px;
    }
    .footer-bottom {
        padding: 16px 0 !important;
        text-align: center;
    }
    .footer-bottom .copyright {
        font-size: 12px;
        margin-bottom: 8px;
        text-align: center;
    }
    .footer-bottom .footer-menu {
        float: none !important;
        text-align: center;
    }
    .footer-bottom .footer-menu ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 12px;
        padding: 0;
        margin: 0;
    }
    .footer-bottom .footer-menu ul li {
        display: inline-block;
        margin: 0;
    }
    .footer-bottom .footer-menu ul li a {
        font-size: 12px;
        color: #888;
    }
    .scroll-to-top {
        right: 15px !important;
        bottom: 25px !important;
        width: 42px !important;
        height: 42px !important;
        line-height: 40px !important;
        font-size: 15px !important;
        border-radius: 50%;
        z-index: 999;
    }
}

/* --------------------------------------------------------------------------
   11. Inner Pages & Call-Out Sections (<= 767px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 767px) {
    .breadcrumb-area {
        padding: 50px 0 40px !important;
        background-position: center center !important;
        background-size: cover !important;
    }
    .breadcrumb-area h1 {
        font-size: 26px !important;
        line-height: 32px !important;
    }
    .call-out {
        padding: 40px 15px !important;
        text-align: center !important;
    }
    .call-out .content h2 {
        font-size: 20px !important;
        line-height: 28px !important;
        margin-bottom: 14px !important;
    }
    .call-out .content p {
        font-size: 14px !important;
        line-height: 22px !important;
        margin-bottom: 20px !important;
    }
    .call-out2 {
        padding: 25px 15px !important;
        text-align: center !important;
    }
    .call-out2 .float_left,
    .call-out2 .float_right {
        float: none !important;
        text-align: center !important;
        width: 100% !important;
    }
    .call-out2 h4 {
        font-size: 17px !important;
        line-height: 24px !important;
        margin-top: 0 !important;
        margin-bottom: 15px !important;
        text-align: center !important;
    }
    .call-out2 .thm-btn {
        margin-top: 0 !important;
        display: inline-block !important;
    }
    .why-chooseus .item {
        margin-bottom: 20px !important;
    }
    .why-chooseus .inner-box {
        padding: 25px 15px !important;
    }
}

