/* =============================================
   ZeeGuard — Responsive Fix Stylesheet
   Full mobile/tablet responsive overrides
   ============================================= */

/* ================================================
   BASE: Prevent horizontal scroll on all devices
   ================================================ */
html, body { overflow-x: hidden; max-width: 100%; }
img { max-width: 100%; height: auto; }
iframe { max-width: 100%; }
#scrollUp { position: fixed !important; }

/* ================================================
   CONTAINER: Match page content width to header
   Header uses .container.custom-container3 (1490px).
   Override Bootstrap .container max-width at ≥1200px
   so all page sections align with the navigation bar.
   ================================================ */
@media (min-width: 1200px) {
    .container {
        max-width: 1490px;
    }
}

/* ================================================
   QUOTATION MODAL
   Uses CSS class for flex-centering so Alpine x-show
   (which toggles display:none inline) doesn't conflict.
   ================================================ */
.zg-quotation-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 9999;
    padding: 20px;
}
.zg-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
}
.zg-modal-box {
    position: relative;
    background: #fff;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}
.zg-modal-header {
    background: linear-gradient(135deg, #1a7c3e 0%, #145f30 100%);
    color: #fff;
    padding: 22px 30px;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.zg-modal-title  { margin: 0; font-size: 18px; font-weight: 700; }
.zg-modal-subtitle { margin: 5px 0 0; font-size: 13px; opacity: .8; }
.zg-modal-close {
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.zg-modal-close:hover { background: rgba(255,255,255,.3); }
.zg-modal-body {
    padding: 30px;
}
.zg-modal-product-strip {
    background: #f5f8f5;
    border-left: 4px solid #1a7c3e;
    border-radius: 0 6px 6px 0;
    padding: 12px 18px;
    font-size: 14px;
}
.zg-thankyou-icon {
    width: 72px;
    height: 72px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #1a7c3e;
}

/* Product inquiry form + quotation modal — white inputs on coloured backgrounds */
.contact-form-area .form-area .form-input .form-control,
.contact-form-area .form-area .form-input textarea,
.zg-modal-body .form-area .form-input .form-control,
.zg-modal-body .form-area .form-input textarea {
    background: #fff;
    border-color: #dde4dd;
    border-radius: 6px;
}
.contact-form-area .form-area .form-input .form-control:focus,
.contact-form-area .form-area .form-input textarea:focus,
.zg-modal-body .form-area .form-input .form-control:focus,
.zg-modal-body .form-area .form-input textarea:focus {
    border-color: #1a7c3e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 124, 62, 0.12);
}

/* icon classes work globally (contact-form-area prefix not required) */
.form-area .form-input.input-mail::before  { content: "\f040"; }
.form-area .form-input.input-number::before { content: "\f098"; }
.form-area .form-input.input-subject::before { content: "\f078"; }

/* mobile: full-width modal */
@media (max-width: 575px) {
    .zg-modal-box { max-height: 95vh; }
    .zg-modal-body { padding: 20px; }
    .zg-modal-header { padding: 18px 20px; }
}

/* ================================================
   CONTACT MAP: Centered in container with margins
   ================================================ */
.zg-map-section {
    padding-top: 60px;
    padding-bottom: 60px;
}
.zg-map-wrap {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0,0,0,.10);
    line-height: 0;
}
.zg-map-wrap iframe {
    width: 100% !important;
    height: 460px !important;
    display: block !important;
    border: 0 !important;
}

/* ================================================
   LARGE DESKTOP (max 1199px)
   ================================================ */
@media (max-width: 1199px) {
    .chose-wrapper { margin-left: 0 !important; }
    .sidebar-wrapper { padding-left: 20px !important; }
}

/* ================================================
   TABLET (max 991px)
   ================================================ */
@media (max-width: 991px) {
    /* Margins/Paddings */
    .ml-50, .ml-45, .ml-40 { margin-left: 0 !important; }
    .mr-50, .mr-40         { margin-right: 0 !important; }
    .pl-50, .pl-45, .pl-40 { padding-left: 0 !important; }
    .pr-50, .pr-40         { padding-right: 0 !important; }

    /* Section spacing */
    .pt-180 { padding-top: 80px !important; }
    .pt-125 { padding-top: 70px !important; }
    .pt-100 { padding-top: 60px !important; }
    .pt-80  { padding-top: 50px !important; }
    .pt-70  { padding-top: 45px !important; }
    .pb-200 { padding-bottom: 80px !important; }
    .pb-130 { padding-bottom: 70px !important; }
    .pb-100 { padding-bottom: 60px !important; }
    .pb-70  { padding-bottom: 45px !important; }
    .pb-60  { padding-bottom: 40px !important; }
    .pb-45  { padding-bottom: 35px !important; }

    /* Slider */
    .slider-height2 { min-height: 420px !important; }

    /* About / chose-us */
    .chose-wrapper  { margin-top: 30px; }
    .chose__img__three,
    .chose__img__four,
    .chose__img__five { margin-bottom: 20px; }

    /* Histories text */
    .histories__text { padding-left: 0 !important; }

    /* Sidebar stacks below content */
    .sidebar-wrapper { padding-left: 0 !important; margin-top: 40px; }

    /* Contact map */
    .zg-map-wrap iframe { height: 360px !important; }
    .zg-map-section { padding-top: 45px; padding-bottom: 45px; }

    /* Service widget */
    .service-widget { margin-top: 40px; }

    /* Portfolio detail */
    .portfolio-details__content { margin-top: 30px; }

    /* Team content */
    .team__content { padding-top: 60px !important; }

    /* CTA */
    .cta-area2 .pt-180 { padding-top: 60px !important; }
    .shadow-text3.page-shadow { font-size: 80px !important; }
}

/* ================================================
   MOBILE (max 767px)
   ================================================ */
@media (max-width: 767px) {
    /* Section spacing */
    .pt-180 { padding-top: 55px !important; }
    .pt-125 { padding-top: 55px !important; }
    .pt-100 { padding-top: 50px !important; }
    .pt-80  { padding-top: 40px !important; }
    .pt-70  { padding-top: 35px !important; }
    .pb-200 { padding-bottom: 60px !important; }
    .pb-130 { padding-bottom: 55px !important; }
    .pb-100 { padding-bottom: 50px !important; }
    .pb-70  { padding-bottom: 40px !important; }
    .pb-60  { padding-bottom: 35px !important; }
    .pb-45  { padding-bottom: 30px !important; }
    .mb-50  { margin-bottom: 30px !important; }
    .mb-75  { margin-bottom: 40px !important; }
    .mb-80  { margin-bottom: 40px !important; }

    /* Slider */
    .slider-height2 { min-height: 340px !important; }
    .slider__content h1,
    .slider__content__02 h1 {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }
    .slider__content p { font-size: 14px !important; }
    .slider__content .btn-list { flex-direction: column; align-items: center; gap: 10px; }
    .slider__content .btn-list li { margin: 0 !important; }

    /* Page banner */
    .page-title h1 { font-size: 26px !important; }
    .shadow-text3.page-shadow {
        font-size: 60px !important;
        opacity: .06 !important;
    }
    .breadcrumb-list ul li { font-size: 13px; }
    .breadcrumb-list ul li + li::before { margin: 0 6px; }

    /* Section headings */
    .section-title h2 { font-size: 26px !important; line-height: 1.35 !important; }
    .section-title h6 { font-size: 13px; }

    /* CTA */
    .cta-area2 .pt-180 { padding-top: 50px !important; }
    .cta-area2 .btn-list { flex-direction: column; align-items: center; gap: 10px; }
    .cta-area2 .btn-list li { margin: 0 !important; }

    /* About / chose */
    .chose-wrapper { margin-left: 0 !important; margin-top: 20px; }
    .histories__text .pl-45 { padding-left: 0 !important; }
    .histories__text .ml-45 { margin-left: 0 !important; }

    /* Service promotion cards */
    .promotion2 { margin-bottom: 20px; }

    /* Statistics counters */
    .h2-counter-box { text-align: center; }
    .h2-counter-box h2 { font-size: 38px !important; }

    /* Team */
    .team { margin-bottom: 30px; }
    .team__content.white-bg { padding-top: 70px !important; }

    /* Testimonials */
    .testtimonial-item-active2 .item { padding: 20px !important; }
    .author { flex-wrap: wrap; }

    /* Blog cards */
    .blog { margin-bottom: 30px; }
    .blog__content3 { padding-top: 15px !important; }

    /* Blog detail sidebar stacks below */
    .blog-details-area .sidebar-wrapper { padding-left: 0 !important; margin-top: 40px; }

    /* Contact map */
    .zg-map-wrap iframe { height: 280px !important; }
    .zg-map-section { padding-top: 35px; padding-bottom: 35px; }

    /* Contact info boxes */
    .contact-box { margin-bottom: 20px; }

    /* Shop */
    .shop-sidebar { margin-bottom: 25px; }

    /* Product card */
    .product { margin-bottom: 25px; }
    .product__img img { max-height: 200px; object-fit: contain; }

    /* Product details */
    .product-details__content { padding-left: 0 !important; margin-top: 20px; }

    /* Portfolio */
    .portfolio { margin-bottom: 20px; }

    /* FAQ */
    .faq-wrapper { padding: 0 !important; }

    /* Team details */
    .team-details__img  { margin-bottom: 25px; }

    /* Footer */
    .footer-widget { margin-bottom: 30px; }
    .footer-col-title { font-size: 16px; }

    /* Table */
    table { font-size: 13px; }

    /* Stats right-side images — hide on mobile */
    .statistics-area .service__img__three { display: none !important; }

    /* Promotion section last placeholder image — hide */
    .promotion02__img { display: none !important; }

    /* Brand logos */
    .brand-area .brand-active { gap: 10px !important; }

    /* Touch-friendly tap targets */
    .theme_btn, .more_btn { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ================================================
   HERO SLIDER — full-width background image fix
   .slider-height2 and .single-slider-02 are missing
   background-size/position/repeat in main.css.
   ================================================ */
.slider-height2 {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}
.single-slider-02 {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Slider subtitle label (e.g. "Renewable Energy")
   Styled as a decorative uppercase badge with side lines */
.slider__content__02 p,
.slider__content__02 > p {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.90);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 30px;
}
.slider__content__02 p::before,
.slider__content__02 p::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.55);
    flex-shrink: 0;
}

/* ================================================
   SHOP PAGE — product card hover highlight
   ================================================ */
.product {
    transition: box-shadow .28s ease, transform .28s ease;
    border-radius: 8px;
}
.product:hover {
    box-shadow: 0 10px 36px rgba(26, 124, 62, 0.14);
    transform: translateY(-4px);
}

/* ================================================
   QUOTATION PAGE — product card layout & hover
   ================================================ */
.zg-quote-card {
    border: 1px solid #e8eee8;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: box-shadow .28s ease, transform .28s ease, border-color .28s ease;
}
.zg-quote-card:hover {
    box-shadow: 0 12px 40px rgba(26, 124, 62, 0.16);
    transform: translateY(-4px);
    border-color: #a8d5b5;
}
.zg-quote-card__img {
    background: #f5f8f5;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}
.zg-quote-card__img img {
    max-height: 180px;
    object-fit: contain;
    width: 100%;
}
.zg-quote-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 22px 22px;
}

/* ================================================
   WEBSITE PAGINATION — theme-styled active & disabled states
   The theme CSS styles .pagination li a.page-link but has
   no active or disabled state; we add them here.
   ================================================ */
.pagination .page-item .page-link {
    border: 2px solid #dddddd;
    border-radius: 50%;
    color: #0d3c00;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 8px;
    transition: background .2s, border-color .2s, color .2s;
    background: #fff;
    text-decoration: none;
}
.pagination .page-item .page-link:hover {
    background: #57b33e;
    border-color: #57b33e;
    color: #fff;
}
.pagination .page-item.active .page-link {
    background: #1a7c3e;
    border-color: #1a7c3e;
    color: #fff;
    cursor: default;
}
.pagination .page-item.disabled .page-link {
    background: #f5f5f5;
    border-color: #e5e5e5;
    color: #aaa;
    cursor: default;
}
@media (max-width: 575px) {
    .pagination .page-item .page-link {
        width: 42px;
        height: 42px;
        font-size: 13px;
        margin-right: 5px;
    }
}

/* ================================================
   SMALL MOBILE (max 575px)
   ================================================ */
@media (max-width: 575px) {
    /* Slider */
    .slider-height2 { min-height: 300px !important; }
    .slider__content h1,
    .slider__content__02 h1 { font-size: 22px !important; }

    /* Headings */
    .page-title h1      { font-size: 20px !important; }
    .section-title h2   { font-size: 22px !important; }
    .shadow-text3.page-shadow { font-size: 42px !important; }

    /* Section spacing */
    .pt-125 { padding-top: 45px !important; }
    .pb-100 { padding-bottom: 40px !important; }

    /* Grid: 2-col collapses to 1-col on very small screens */
    .col-md-6.col-sm-6 { width: 100% !important; }

    /* Blog grid: 1 column */
    .blog-area .col-xl-6.col-lg-6.col-md-6 { width: 100% !important; }

    /* Contact form inputs */
    .form-input input,
    .form-input textarea { font-size: 14px; }

    /* Portfolio filter */
    .portfolio-filter { flex-wrap: wrap; gap: 8px; }

    /* Team social */
    .team--social a { width: 32px; height: 32px; font-size: 12px; }

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

    /* Histories section */
    .history-area-02 { padding-top: 40px !important; padding-bottom: 40px !important; }
    .portfolio.portfolios h1 { font-size: 60px !important; }

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

    /* Sidebar category/recent lists */
    .sidebar-wrapper .widget { margin-bottom: 25px !important; }

    /* Navigation search */
    .right__nav--search { display: none !important; }
}

/* ================================================
   EXTRA SMALL (max 400px)
   ================================================ */
@media (max-width: 400px) {
    .slider__content h1,
    .slider__content__02 h1 { font-size: 18px !important; }
    .theme_btn, .theme_btn2 { padding: 10px 18px !important; font-size: 13px !important; }
    .section-title h2 { font-size: 20px !important; }
}

/* ================================================
   IMAGE RESPONSIVENESS
   ================================================ */
.product__img img,
.service-box img,
.portfolio__thumb img,
.portfolio__item--thumb img,
.team__thumb img,
.blog__thumb img,
.chose__img img,
.chose__img__three img,
.chose__img__four img,
.chose__img__five img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ================================================
   MOBILE NAV IMPROVEMENTS
   ================================================ */
@media (max-width: 991px) {
    .mean-container .mean-nav ul li a { font-size: 13px; padding: 10px 5%; }
    .mean-container .mean-nav ul li a.mean-expand { width: 26px; height: 26px; }
}

/* ================================================
   PROJECT SLIDER RESPONSIVE
   ================================================ */
@media (max-width: 767px) {
    .project-slider-active .project__item--thumb img {
        height: 220px;
        object-fit: cover;
    }
    .project-slide { padding: 0 8px; }
}

/* ================================================
   TESTIMONIAL RESPONSIVE
   ================================================ */
@media (max-width: 767px) {
    .testtimonial-item-active2 .item {
        padding: 25px 20px !important;
    }
}

/* ================================================
   NEWSLETTER SECTION
   ================================================ */
@media (max-width: 767px) {
    .subscribe-area { padding: 40px 0 !important; }
    .subscribe-form input { width: 100% !important; margin-bottom: 10px; }
    .subscribe-form button { width: 100% !important; }
}

/* ================================================
   HEADER RESPONSIVE
   ================================================ */
@media (max-width: 767px) {
    .header-top-area { display: none !important; }
    .main-header-area02 { padding: 15px 0; }
    .logo img { max-height: 40px; }
    .right__nav { gap: 10px; }
    .header2__social { display: none !important; }
}

/* ================================================
   FOOTER RESPONSIVE
   ================================================ */
@media (max-width: 767px) {
    .footer-area { padding-top: 50px !important; }
    .footer-bottom { text-align: center !important; }
    .footer-bottom .text-right { text-align: center !important; margin-top: 10px; }
}

/* ================================================
   UTILITY: Fix Bootstrap offset on mobile
   ================================================ */
@media (max-width: 991px) {
    .offset-xl-3 { margin-left: 0 !important; }
    [class*="offset-xl-"] { margin-left: 0 !important; }
    .col-xl-6.offset-xl-3 { width: 100%; max-width: 100%; }
}
