/* Eco Brisbane – responsive repairs only. Loaded after the existing theme and Bootstrap.
   Original colours, fonts, content and wide-screen component styling are retained. */

/* Bootstrap's 540px/720px container caps make the tablet layout unnecessarily narrow.
   The original layout is designed to use the available tablet width, so remove only
   these two intermediate caps. Desktop container widths (992px and above) stay native. */
@media (min-width: 576px) and (max-width: 991.98px) {
  .container,
  .container-sm,
  .container-md {
    width: 100%;
    max-width: 100% !important;
  }
}
.eco-mobile-nav { display: none; }
img, video, canvas { max-width: 100%; }
img:not([class]) { height: auto; }
.row > *, .card, .tab-content, .testimonial-carousel .item .content { min-width: 0; }
.wpcf7, .wpcf7-form-control-wrap, .wpcf7-form-control, .wpcf7 input, .wpcf7 select, .wpcf7 textarea { max-width: 100%; min-width: 0; }
.wpcf7 textarea { resize: vertical; }
.wpcf7 .wpcf7-not-valid-tip, .wpcf7-response-output, .breadcrumb-item, .card-title, .card-subtitle, .footer-latest-posts a { overflow-wrap: anywhere; }
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpcf7 input[type="checkbox"], .wpcf7 input[type="radio"] { width: auto; }
.wpcf7 .wpcf7-list-item label { display: inline; }
.about-banner ul, .single-banner ul { flex-wrap: wrap; }
.about-banner li, .single-banner li { min-width: 0; }
.popup-form { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; }
.modal-backdrop { z-index: 1040; }
.modal { z-index: 1050; }
.modal-dialog { max-width: min(500px, calc(100% - 24px)); margin-left: auto; margin-right: auto; }
.modal-body { overflow-wrap: anywhere; }
.modal-body .row > div { min-width: 0; }
.cta > .row, .row > .row { margin-left: 0; margin-right: 0; }
.wp-block-embed__wrapper iframe, iframe:not([src*="recaptcha"]) { max-width: 100%; }
.wp-block-table { overflow-x: auto; }
.wp-block-table table { width: 100%; }
.owl-carousel .owl-stage-outer { overflow: hidden; }
.owl-carousel .owl-item { min-width: 0; }
/* A readable fallback if the external Owl script is unavailable. JS applies the
   real slider dimensions when it initializes; these rules never affect it. */
.owl-carousel:not(.owl-refresh):not(.owl-loaded) { display: block; }
.owl-carousel:not(.owl-refresh):not(.owl-loaded) > .item { width: 100%; }
.eco-pricing-layout > .nav, .eco-pricing-layout > .tab-content { min-width: 0; }
.tab-set-1 > .nav, .tab-set-2 > .nav { flex: 0 0 24%; min-width: 0; }
.tab-set-1 > .tab-content, .tab-set-2 > .tab-content { flex: 1 1 0; min-width: 0; }
@media (min-width: 1200px) {
  .eco-desktop-nav > .navbar > .container-fluid { flex-wrap: nowrap; }
  .eco-desktop-nav .custom-logo-link { flex-shrink: 0; }
  .eco-desktop-nav .navbar-collapse { min-width: 0; }
  .eco-desktop-nav .navbar-nav { flex-wrap: wrap; align-items: center; }
  .eco-desktop-nav .dropdown-menu { max-width: min(360px, 90vw); }
  .eco-desktop-nav .dropdown-item { white-space: normal; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .eco-desktop-nav .custom-logo { width: 170px; }
  .eco-desktop-nav .navbar-nav > li { margin-left: 3px; font-size: 16px; }
  .eco-desktop-nav .navbar-nav > li > a { padding-left: 6px; padding-right: 6px; }
}
@media (max-width: 1199.98px) {
  .eco-desktop-nav { display: none !important; }
  header .eco-mobile-nav { display: flex !important; align-items: center; justify-content: space-between; position: relative !important; width: 100% !important; min-height: 76px; padding: 12px clamp(16px, 3vw, 32px) !important; z-index: 1020 !important; }
  .eco-mobile-nav .custom-logo-link { display: block; max-width: calc(100% - 60px); }
  .eco-mobile-nav .custom-logo { width: clamp(145px, 25vw, 200px); height: auto; }
  .eco-mobile-nav .menuToggle { position: static; display: flex; align-items: center; }
  .eco-mobile-nav #menuToggleCheckbox { position: absolute; opacity: 0; width: 44px; height: 44px; margin: 0; right: clamp(16px, 3vw, 32px); cursor: pointer; z-index: 2; }
  .eco-mobile-nav .menuToggle > label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; margin: 0; cursor: pointer; }
  .eco-mobile-nav .menuToggle > label span { display: block; width: 27px; height: 3px; border-radius: 2px; background: #1239ac; margin: 0; transition: transform .2s, opacity .2s; }
  .eco-mobile-nav #menuToggleCheckbox:focus-visible + label { outline: 2px solid #0d6efd; outline-offset: 2px; }
  .eco-mobile-nav #menuToggleCheckbox:checked + label span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .eco-mobile-nav #menuToggleCheckbox:checked + label span:nth-child(2) { opacity: 0; }
  .eco-mobile-nav #menuToggleCheckbox:checked + label span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .eco-mobile-nav .menuItem { position: absolute; top: 100%; right: 0; left: auto; width: min(100%, 420px); max-height: calc(100vh - 130px); max-height: calc(100dvh - 130px); overflow-y: auto; overscroll-behavior: contain; background: #fff; padding: 8px 16px 16px; margin: 0; box-shadow: 0 10px 20px rgba(0,0,0,.13); visibility: hidden; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s, transform .2s, visibility .2s; z-index: 1021; }
  .eco-mobile-nav #menuToggleCheckbox:checked ~ .menuItem { visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
  .eco-mobile-nav .menuItem ul { padding: 0; margin: 0; list-style: none; }
  .eco-mobile-nav .menuItem li { position: relative; margin: 0; list-style: none; border-bottom: 1px solid #e7e7e7; }
  .eco-mobile-nav .menuItem a { display: block; padding: 12px 8px; color: #1239ac; overflow-wrap: anywhere; }
  .eco-mobile-nav .menuItem .menu-item-has-children > a { padding-right: 50px; }
  .eco-mobile-nav .menuItem .sub-menu { display: none; padding-left: 16px !important; }
  .eco-mobile-nav .menuItem .open > .sub-menu { display: block; }
  .eco-mobile-nav .menuItem .sub-menu li:last-child { border-bottom: 0; }
  .eco-mobile-nav .eco-submenu-toggle { position: absolute; right: 0; top: 0; min-width: 44px; min-height: 44px; border: 0; background: transparent; color: #1239ac; }
  .eco-mobile-nav .eco-submenu-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
  .topbar .list-inline { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 8px; }
  .topbar li { font-size: 14px; margin-left: 0; }
  .topbar > .container-fluid > .row > div:first-child > li { list-style: none; }
  .ps5pe5 { padding-left: clamp(12px, 3vw, 36px) !important; padding-right: clamp(12px, 3vw, 36px) !important; }
  .single-banner, .single-banner.postbanner { height: auto !important; min-height: 0; padding-top: clamp(65px, 10vw, 150px) !important; padding-bottom: clamp(65px, 10vw, 150px) !important; margin-bottom: 50px; }
  .single-banner h1 { font-size: clamp(32px, 5vw, 55px); }
  .banner-form { height: auto !important; overflow: visible; }
  .banner-form .formbg { height: auto !important; }
  .content { margin: 24px; padding-top: clamp(55px, 12vw, 180px); padding-bottom: clamp(55px, 12vw, 180px); }
  .content .h2, .content h2 { font-size: clamp(32px, 5vw, 54px); }
  .experience .year .h2 { font-size: clamp(80px, 13vw, 160px); line-height: .9 !important; }
  .testimonial-carousel .item .content { padding: clamp(24px, 5vw, 70px); margin: 12px; width: calc(100% - 24px); }
  .testimonial-carousel .item .provider { flex-wrap: wrap; gap: 8px; }
  .testimonial-carousel .item .provider h5 { margin-left: 0; }
  .process-section .prcimg, .prcimg2 { width: clamp(130px, 20vw, 240px); aspect-ratio: 1; padding: 0; height: auto; max-width: 100%; }
  .cta .myctaform { width: auto !important; max-width: 680px; margin: 24px auto !important; }
  .cta > .row > div { padding-left: 20px; padding-right: 20px; }
  .cta > .row > div:first-child[style*="background-image"] { min-height: clamp(200px, 35vw, 380px); background-position: center; }
  .card-subtitle { font-size: clamp(30px, 4vw, 52px); }
  .eco-pricing-intro { padding-top: 36px !important; }
  .tab-set-1 .tab-pane .col-md-3, .tab-set-2 .tab-pane .col-md-3 { width: 50%; }
}
@media (max-width: 991.98px) {
  /* On tablet-sized screens, stack the About page's image and copy so each
     section can use the full available width instead of squeezing two columns. */
  .eco-about-first > .row,
  .eco-about-secondary > .row {
    row-gap: clamp(24px, 3.5vw, 36px);
  }
  .eco-about-first > .row > .about-style-two,
  .eco-about-first > .row > .pt-10,
  .eco-about-secondary > .row > .col-md-6 {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }
  .eco-about-first .about-style-two {
    margin: 0 !important;
  }
  .eco-about-first .pt-10 {
    padding-top: 0 !important;
  }
  .eco-about-first .about-style-three {
    padding: 0 !important;
  }
  .eco-about-first .thumb,
  .eco-about-first .thumb img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  .eco-about-secondary > .row > .col-md-6 + .col-md-6 {
    margin-top: 0;
  }
  .eco-about-first .about-style-two {
    margin-top: 0 !important;
  }
  .eco-about-first .pt-10 {
    padding-top: 0 !important;
  }
  .eco-about-first .about-style-three {
    padding: 0 12px !important;
  }
  .eco-about-first .thumb,
  .eco-about-first .thumb img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  .about-banner, .about__bg-two, .faq-area, footer, .single-banner { background-attachment: scroll !important; }
  .about-banner .display-3 { font-size: clamp(30px, 5vw, 50px); padding-top: 12px !important; }
  .about-banner > .container { padding-top: 24px !important; padding-bottom: 24px !important; }
  .about-banner ul { padding-bottom: 12px !important; }
  #carouselExampleControls .carousel-item > .container { padding: clamp(48px, 10vw, 100px) max(12%, 24px); }
  #carouselExampleControls .display-4 { font-size: clamp(28px, 5vw, 48px); }
  #carouselExampleControls .lead { font-size: clamp(16px, 2.5vw, 20px); }
  #carouselExampleControls .carousel-control-prev, #carouselExampleControls .carousel-control-next { width: 10%; }
  .banner-form .formbg { padding: 24px 16px; }
  .about-style-two { margin-top: 0 !important; }
  .about-style-three { padding-top: 24px; padding-left: 0 !important; }
  .about__image { margin-top: 24px !important; }
  .clenix-about-service-img-wrap { top: 0; padding: 0; }
  .clenix-about-service-img-wrap .img-shape, .clenix-about-service-img-wrap .img-shapes { display: none; }
  .clenix-about-service-img-wrap img { margin-top: 0 !important; }
  .process-section > center { padding-inline: 16px; }
  .process-section > center > .w-50 { width: 100% !important; }
  .process-section .pt-10 > center > div[style*="width: 80%"] { width: calc(100% - 32px) !important; background-image: none !important; }
  .process-section .pt-10 > center > div > .row { margin-inline: 0; }
  .service-section > .p-5 { padding: 20px 12px !important; }
  .sevices-style-two { padding: 36px 22px; }
  .services-style-two-area .services-4-col-carousel .owl-nav .owl-prev, .services-style-two-area .services-4-col-carousel .owl-nav .owl-next, .projects-area .project-items .owl-nav .owl-prev, .projects-area .project-items .owl-nav .owl-next { opacity: 1; width: 38px; height: 38px; line-height: 38px; font-size: 16px; }
  .services-style-two-area .services-4-col-carousel .owl-nav .owl-prev, .projects-area .project-items .owl-nav .owl-prev { left: 4px !important; }
  .services-style-two-area .services-4-col-carousel .owl-nav .owl-next, .projects-area .project-items .owl-nav .owl-next { right: 4px !important; }
  .eco-pricing-layout { flex-direction: column; gap: 16px; }
  .eco-pricing-layout > .nav, .eco-pricing-layout > .tab-content { width: 100% !important; margin: 0 !important; }
  footer > .container > .row > div { width: 50%; margin-bottom: 24px; }
  footer { padding-inline: 16px; }
  .bottom-menu { position: fixed !important; left: 0; right: 0; width: 100%; height: auto !important; min-height: 62px; padding: 4px 0 calc(4px + env(safe-area-inset-bottom, 0px)); z-index: 1010; }
  .bottom-menu > div { align-items: stretch; }
  .bottom-menu .nav-link { flex: 1 1 0; min-width: 0; padding: 6px 4px; font-size: 14px; line-height: 1.25; }
  .bottom-menu .nav-link i { font-size: 18px; margin-bottom: 4px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .bottomtoolbar { display: none !important; }
  .call-buton { display: none; }
}
@media (max-width: 767.98px) {
  .container, .container-fluid { --bs-gutter-x: 1.5rem; }
  .row > .col-md-10 { padding-left: calc(var(--bs-gutter-x, 1.5rem) * .5) !important; padding-right: calc(var(--bs-gutter-x, 1.5rem) * .5) !important; }
  .about-banner { padding-block: 24px !important; }
  .about-style-three h2, .bene h3, .prcheading { font-size: clamp(25px, 6vw, 32px) !important; }
  .experience .year .h2 { font-size: clamp(80px, 20vw, 150px); }
  .about-style-three .btn, .about__bg-two .btn, .service1 .btn { margin-top: 8px; max-width: 100%; white-space: normal; }
  .service-section > center { padding-inline: 16px; }
  .service1 .box1, .service1 .box2 { padding: 24px !important; margin-top: 16px !important; }
  .service1 > .row > div { margin-top: 16px !important; }
  .process-section .prcimg, .prcimg2 { width: clamp(150px, 43vw, 230px); }
  .cta .myctaform { padding: 24px !important; border-radius: 12px; }
  .cta > .row > div { padding-inline: 12px; }
  .testimonial-carousel .item .content { padding: 22px; margin: 8px; width: calc(100% - 16px); }
  .testimonial-carousel .item .provider h5 { padding-left: 0; }
  .testimonial-carousel .item .provider h5::after { display: none; }
  .testimonials-area .testimonial-carousel.owl-carousel .owl-dots { position: static; text-align: center; margin: 12px 0; }
  .blogpage img { height: auto !important; aspect-ratio: 16 / 10; object-fit: cover; }
  .blogpage .card-body, .blog-area .info { padding: 18px; }
  .postdt { margin-top: 20px !important; }
  .nav-pills .nav-link, .accordion-button { font-size: 17px; overflow-wrap: anywhere; }
  .tab-set-1 .tab-pane .row > div, .tab-set-2 .tab-pane .row > div { width: 100%; }
  .tab-set-1, .tab-set-2 { padding: 12px !important; }
  .wpcf7 input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]), .wpcf7 select, .wpcf7 textarea { width: 100%; font-size: 16px; }
  .wpcf7 .wpcf7-recaptcha iframe { width: 304px; max-width: none; }
  .wpcf7 .wpcf7-recaptcha { max-width: 100%; overflow: visible; }
  .wpcf7 .wpcf7-recaptcha > div { transform: scale(var(--eco-recaptcha-scale, 1)); transform-origin: left top; }
  footer > .container > .row > div { width: 100%; }
  footer .custom-logo { width: 180px; max-width: 100%; }
  footer .ftbox { overflow-wrap: anywhere; }
  .modal-body .row > .col-4 { width: 50%; }
  .modal-body .row > .col-4 p { overflow-wrap: anywhere; }
  .project-area .gallery-items .pf-item { width: 50% !important; }
}
@media (max-width: 575.98px) {
  .eco-about-first,
  .eco-about-secondary {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }
  .eco-about-first .about-style-three h2 {
    font-size: clamp(26px, 7vw, 32px) !important;
    line-height: 1.2;
  }
  .eco-about-first .about-style-three p {
    font-size: 16px;
    line-height: 1.6;
  }
  .eco-about-first .about-style-three .btn {
    width: 100%;
    margin: 8px 0 0 !important;
    white-space: normal;
  }
  .eco-about-first .about-style-three > a {
    display: block;
  }
}
@media (max-width: 374.98px) {
  .modal-body { padding: 12px; }
  .cta .myctaform { padding: 16px !important; }
  .project-area .gallery-items .pf-item { width: 100% !important; }
}
@media (prefers-reduced-motion: reduce) {
  .eco-mobile-nav .menuItem, .eco-mobile-nav .menuToggle > label span { transition: none; }
}

/* About page: align the section image gallery with the section heading on desktop. */
@media (min-width: 992px) {
  .about__bg-two > .container > .row {
    align-items: flex-start !important;
  }
  .about__bg-two > .container > .row > [class*="col-"] {
    align-self: flex-start !important;
  }
}
