/* ==========================================================================
   RESPONSIVE.CSS — Full Responsive Fixes for All Devices
   Covers: Mobile (≤576px), Tablet (577–991px), Desktop (992px+)
   ========================================================================== */

/* -----------------------------------------------------------------------
   1. BASE — Prevent horizontal overflow on all screens
   ----------------------------------------------------------------------- */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* -----------------------------------------------------------------------
   2. CONTAINER & GRID — Consistent gutters
   ----------------------------------------------------------------------- */
.container {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.row {
    margin-left: -15px;
    margin-right: -15px;
}

/* -----------------------------------------------------------------------
   3. HEADER — Sticky + Mobile Nav
   ----------------------------------------------------------------------- */
.header {
    position: relative;
    z-index: 100;
}

.primary-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 10px 0;
}

.header-logo {
    flex-shrink: 0;
}

.header-logo img {
    max-width: 160px;
    height: auto;
    display: block;
}

/* Top bar — hide on small screens */
@media (max-width: 767px) {
    .top-header-one {
        display: none;
    }
}

/* Nav — desktop */
@media (min-width: 992px) {
    .mobile-menu-icon {
        display: none !important;
    }

    .header-menu-wrap {
        display: flex !important;
        align-items: center;
    }

    .header-menu-wrap ul li > a {
        height: 70px;
        line-height: 70px;
        padding: 0 12px;
        font-size: 15px;
    }
}

/* Nav — tablet & mobile */
@media (max-width: 991px) {
    .mobile-menu-icon {
        display: block;
        cursor: pointer;
    }

    .header-menu-wrap {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        z-index: 9999;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
        padding: 10px 0 20px;
        max-height: 80vh;
        overflow-y: auto;
    }

    .header-menu-wrap ul li {
        display: block !important;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .header-menu-wrap ul li > a {
        display: block !important;
        height: auto !important;
        line-height: 1.5 !important;
        padding: 12px 20px !important;
        font-size: 15px;
        color: #333 !important;
    }

    .header-menu-wrap ul li > a:hover {
        color: #33a035 !important;
        background: #f9f9f9;
    }

    /* Dropdown sub-menu */
    .header-menu-wrap li ul {
        position: static !important;
        width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none !important;
        padding: 0 !important;
        display: none;
        background: #f9f9f9;
    }

    .header-menu-wrap li li {
        padding-left: 15px !important;
    }

    .header-menu-wrap li li > a {
        font-size: 14px !important;
        color: #555 !important;
        padding: 10px 20px !important;
    }

    .header-right {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* Hide "Book A Maid" header button on small screens */
    .header-right a.header-btn {
        display: none;
    }

    .header-logo img {
        max-width: 130px;
    }
}

@media (max-width: 480px) {
    .header-logo img {
        max-width: 110px;
    }
}

/* -----------------------------------------------------------------------
   4. HERO SLIDER
   ----------------------------------------------------------------------- */
.slider-content-wrap {
    height: 600px;
}

.dl-slider .dl-caption.big {
    white-space: normal !important;
    word-break: break-word;
}

.dl-slider .dl-caption.medium {
    white-space: normal !important;
}

.dl-slider .dl-caption.small {
    white-space: normal !important;
}

@media (max-width: 991px) {
    .slider-content-wrap {
        height: 420px;
    }

    .dl-slider .dl-caption.big {
        font-size: 32px !important;
        line-height: 1.2 !important;
    }

    .dl-slider .dl-caption.medium {
        font-size: 13px !important;
    }

    .dl-slider .dl-caption.small {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    .dl-slider .slider-content {
        padding-left: 0;
    }
}

@media (max-width: 767px) {
    .slider-content-wrap {
        height: 380px;
    }

    .dl-slider .dl-caption.big {
        font-size: 26px !important;
        line-height: 1.2 !important;
    }

    .dl-slider .dl-caption.medium {
        font-size: 12px !important;
    }

    .dl-slider .dl-caption.small {
        font-size: 12px !important;
    }

    .dl-slider .dl-btn {
        padding: 0 20px;
        font-size: 13px;
        line-height: 40px;
    }
}

@media (max-width: 480px) {
    .slider-content-wrap {
        height: 320px;
    }

    .dl-slider .dl-caption.big {
        font-size: 22px !important;
    }

    .dl-slider .dl-caption.medium {
        display: none;
    }
}

/* -----------------------------------------------------------------------
   5. SECTION PADDING
   ----------------------------------------------------------------------- */
.padding {
    padding: 90px 0;
}

@media (max-width: 991px) {
    .padding {
        padding: 70px 0;
    }
}

@media (max-width: 767px) {
    .padding {
        padding: 55px 0;
    }
}

@media (max-width: 480px) {
    .padding {
        padding: 45px 0;
    }
}

/* -----------------------------------------------------------------------
   6. SECTION HEADINGS
   ----------------------------------------------------------------------- */
.section-heading h2 {
    font-size: clamp(1.8rem, 4vw, 3rem) !important;
    line-height: 1.2 !important;
    word-break: break-word;
}

.section-heading p {
    font-size: clamp(15px, 2vw, 17px);
}

@media (max-width: 767px) {
    .section-heading h2 {
        font-size: clamp(1.5rem, 5vw, 2rem) !important;
    }
}

/* -----------------------------------------------------------------------
   7. ABOUT SECTION
   ----------------------------------------------------------------------- */
.about-bg-wrap {
    position: relative;
    margin-top: 0;
}

.about-bg-wrap .img-1 {
    width: 100%;
    border-radius: 12px;
}

.about-bg-wrap .img-2 {
    width: 55% !important;
    position: absolute;
    right: -15px;
    top: 30px;
    border-radius: 12px;
    z-index: 1;
}

.about-bg-wrap .exp-box {
    position: absolute;
    left: 20px;
    top: 20px;
    z-index: 2;
    padding: 15px 20px;
}

.about-bg-wrap .front {
    transform: none;
}

@media (max-width: 991px) {
    .about-bg-wrap {
        margin-top: 30px;
    }

    .about-bg-wrap .img-2 {
        position: relative !important;
        width: 100% !important;
        right: 0 !important;
        top: 0 !important;
        margin-top: 15px;
    }

    .about-bg-wrap .exp-box {
        position: relative;
        left: auto;
        top: auto;
        display: inline-block;
        margin-bottom: 15px;
    }

    .about-bg-wrap .front {
        transform: none;
    }

    .about-content {
        text-align: center;
    }

    .about-list li {
        justify-content: flex-start;
        text-align: left;
    }

    .about-btn {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .about-btn li {
        display: inline-flex;
    }
}

@media (max-width: 576px) {
    .about-list li {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-list li i {
        margin-right: 0;
        margin-bottom: 8px;
    }

    .about-btn {
        flex-direction: column;
        align-items: center;
    }

    .about-btn li a {
        width: 100%;
        max-width: 280px;
        text-align: center;
        justify-content: center;
    }

    .whatsapp {
        display: flex !important;
        justify-content: center;
        padding: 12px 20px;
        border-radius: 12px;
        font-size: 15px;
    }
}

/* -----------------------------------------------------------------------
   8. SERVICE CARDS
   ----------------------------------------------------------------------- */
.service-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.service-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
}

.service-item .p-4 {
    flex: 1;
}

@media (max-width: 767px) {
    .service-item img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .service-item img {
        height: 160px;
    }
}

/* -----------------------------------------------------------------------
   9. WORK PROCESS SECTION
   ----------------------------------------------------------------------- */
.work-pro-item {
    background: #fff;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    height: 100%;
    transition: transform 0.3s ease;
}

.work-pro-item:hover {
    transform: translateY(-6px);
}

.work-pro-item i {
    color: #33a035;
    margin-bottom: 15px;
    display: block;
}

@media (max-width: 767px) {
    .work-pro-item {
        margin-bottom: 20px;
    }
}

/* -----------------------------------------------------------------------
   10. WHY CHOOSE US SECTION
   ----------------------------------------------------------------------- */
.why-choose-us-section {
    overflow: hidden;
}

.features-list .feature-item {
    flex-wrap: nowrap;
}

.image-container {
    max-width: 100% !important;
    margin: 30px auto 0 !important;
}

.image-container img {
    width: 100%;
    height: auto !important;
    max-height: 450px;
    object-fit: cover;
}

@media (max-width: 991px) {
    .image-container img {
        max-height: 350px;
    }
}

@media (max-width: 576px) {
    .features-list .feature-item {
        flex-wrap: wrap;
    }

    .icon-badge {
        margin-bottom: 10px;
    }

    .image-container img {
        max-height: 250px;
    }
}

/* -----------------------------------------------------------------------
   11. BOOKING FORM SECTION
   ----------------------------------------------------------------------- */
.book-section {
    overflow: hidden;
}

.booking-form.premium-card {
    margin: 0 auto;
    max-width: 100%;
    padding: 30px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 0;
}

.form-row .col-md-6 {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
}

@media (max-width: 767px) {
    .form-row .col-md-6 {
        flex: 1 1 100%;
    }

    .booking-form.premium-card {
        padding: 20px;
    }

    .book-section .col-lg-6 {
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .booking-form.premium-card {
        padding: 15px;
    }

    .form-control-lg {
        font-size: 15px !important;
        padding: 10px 12px !important;
        height: auto !important;
    }
}

/* -----------------------------------------------------------------------
   12. TESTIMONIALS SECTION
   ----------------------------------------------------------------------- */
.testi-item {
    padding: 25px;
    margin: 0 8px;
}

.testi-inner {
    flex-wrap: wrap;
    gap: 10px;
}

.testi-item h3 {
    margin-left: 0 !important;
}

.testi-item img {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .testi-item {
        padding: 20px 15px;
        margin: 0 5px;
    }

    .testi-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* -----------------------------------------------------------------------
   13. PAGE HEADER (inner pages)
   ----------------------------------------------------------------------- */
.page-header {
    background-size: cover !important;
    background-position: center center !important;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 280px;
    padding: 80px 0 60px;
    z-index: 1;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.page-content h2 {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
    margin-bottom: 10px;
    word-break: break-word;
}

.page-content p {
    color: #ddd;
    font-size: clamp(14px, 2vw, 17px);
    margin: 0;
}

@media (max-width: 767px) {
    .page-header {
        min-height: 220px;
        padding: 70px 0 50px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .page-header {
        min-height: 180px;
        padding: 60px 0 40px;
    }
}

/* -----------------------------------------------------------------------
   14. CONTACT SECTION
   ----------------------------------------------------------------------- */
.contact-section {
    padding: clamp(40px, 8vw, 90px) 0;
}

.contact-info-box,
.contact-form-box {
    padding: clamp(20px, 4vw, 35px);
    border-radius: 16px;
    height: 100%;
}

.contact-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
}

.contact-list li i {
    margin-top: 3px;
    flex-shrink: 0;
    color: #33a035;
}

@media (max-width: 767px) {
    .contact-info-box,
    .contact-form-box {
        margin-bottom: 20px;
    }
}

/* -----------------------------------------------------------------------
   15. FAQ SECTION
   ----------------------------------------------------------------------- */
.faq-box {
    padding: clamp(30px, 5vw, 80px) clamp(15px, 4vw, 50px);
}

.cta-block h2 {
    font-size: clamp(2rem, 5vw, 4.5rem) !important;
    line-height: 1.1 !important;
}

@media (max-width: 767px) {
    .faq-section .col-md-3,
    .faq-section .col-md-6 {
        padding: 0 15px;
    }

    .cta-block {
        padding: 40px 20px;
        text-align: center;
    }
}

/* -----------------------------------------------------------------------
   16. FOOTER SECTION
   ----------------------------------------------------------------------- */
.footer-section {
    padding: clamp(40px, 8vw, 70px) 0;
}

.footer-item {
    margin-bottom: 30px;
}

.footer-logo {
    max-width: 150px;
    height: auto;
}

.maid-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.maid-icon img {
    width: 50px;
    height: auto;
}

@media (max-width: 767px) {
    .footer-section {
        text-align: center;
    }

    .footer-item {
        text-align: center !important;
        align-items: center !important;
    }

    .footer-logo {
        margin: 0 auto 15px;
        display: block;
    }

    .footer-social {
        justify-content: center;
    }

    .maid-services {
        grid-template-columns: repeat(3, 1fr);
        justify-items: center;
    }
}

@media (max-width: 480px) {
    .maid-services {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-item p,
    .footer-item a {
        font-size: 13px;
    }
}

/* -----------------------------------------------------------------------
   17. POPUP FORM
   ----------------------------------------------------------------------- */
.maid-popup-box {
    width: 90%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-width: 480px) {
    .maid-popup-box {
        width: 95%;
        padding: 20px 15px;
    }

    .maid-popup-box h2 {
        font-size: 20px;
    }

    .maid-popup-form input,
    .maid-popup-form select,
    .maid-popup-form textarea {
        padding: 10px;
        font-size: 14px;
    }

    .maid-btn-submit {
        padding: 10px;
        font-size: 15px;
    }
}

/* -----------------------------------------------------------------------
   18. FLOATING BUTTONS (WhatsApp / Call)
   ----------------------------------------------------------------------- */
.contact-floating-buttons-left {
    position: fixed;
    bottom: 25px;
    left: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.contact-floating-buttons-left a {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

@media (max-width: 576px) {
    .contact-floating-buttons-left {
        bottom: 15px;
        left: 12px;
        gap: 8px;
    }

    .contact-floating-buttons-left a {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

/* -----------------------------------------------------------------------
   19. SCROLL TO TOP
   ----------------------------------------------------------------------- */
#scrollup {
    bottom: 25px;
    right: 25px;
}

@media (max-width: 576px) {
    #scrollup {
        bottom: 15px;
        right: 15px;
        width: 38px;
        height: 38px;
    }
}

/* -----------------------------------------------------------------------
   20. TYPOGRAPHY — Fluid scaling
   ----------------------------------------------------------------------- */
h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    word-break: break-word;
}

h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
}

p {
    font-size: clamp(14px, 2vw, 17px);
    line-height: 1.7;
}

@media (max-width: 480px) {
    p br {
        display: none;
    }
}

/* -----------------------------------------------------------------------
   21. BUTTONS — Full-width on mobile
   ----------------------------------------------------------------------- */
@media (max-width: 480px) {
    .default-btn {
        width: 100%;
        max-width: 300px;
        display: flex;
        justify-content: center;
        margin: 5px auto;
    }

    .btn-block {
        width: 100%;
    }
}

/* -----------------------------------------------------------------------
   22. MISC FIXES
   ----------------------------------------------------------------------- */

/* Prevent absolute-positioned elements from causing overflow */
.about-bg-wrap,
.hero-section,
.dl-slider,
.page-header,
.book-section,
.why-choose-us-section {
    overflow: hidden;
}

/* Fix Bootstrap form-row on small screens */
@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
    }

    .form-row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Ensure tables don't overflow */
table {
    width: 100%;
    overflow-x: auto;
    display: block;
}

/* Fix for sticky header on mobile */
@media (max-width: 991px) {
    .sticky-header {
        display: block !important;
    }
}

/* Why choose us — stack on mobile */
@media (max-width: 767px) {
    .why-choose-us-section .col-lg-6 {
        margin-bottom: 30px;
    }

    .features-list .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Contact list on mobile */
@media (max-width: 576px) {
    .contact-list li {
        font-size: 14px;
        flex-direction: column;
        gap: 4px;
    }
}

/* Why choose us image on tablet */
@media (max-width: 991px) {
    .image-container {
        max-width: 80% !important;
        margin: 20px auto 0 !important;
    }
}

/* Booking section left content spacing */
@media (max-width: 991px) {
    .book-section .col-lg-6:first-child {
        margin-bottom: 20px;
    }

    .section-heading {
        padding-right: 0;
    }
}

/* Service section cards equal height */
@media (max-width: 767px) {
    .service-section .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .service-section .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
