/*--------------------------------------------------------------
# Bond landing pages — responsive real photos (mobile + desktop)
--------------------------------------------------------------*/

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Content photos only — not logos/icons */
img.w-100,
.about-section img:not([src*="logo"]):not([src*="phone"]):not([src*="email"]):not([src*="address"]):not([src*="top-icon"]),
.services img:not([src*="logo"]):not([src*="phone"]):not([src*="email"]),
.before-after img,
.cotg-lp-about-image-wrap img,
.cotg-lp-svc-img img,
.cotg-perth-svc-img img,
.service-boxi > img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* SEO hero img stays hidden (background is CSS) */
.main_img .hero-seo-img {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    max-width: none !important;
    object-fit: none !important;
}

/* Hero — dark overlay + readable text (index pages only, not thank-you) */
.main_img:has(.hero-seo-img),
section.main_img:not([style]) {
    position: relative;
    background-image: linear-gradient(
        105deg,
        rgba(12, 10, 9, 0.9) 0%,
        rgba(12, 10, 9, 0.82) 42%,
        rgba(12, 10, 9, 0.58) 100%
    ), url(../images/mainbg.jpg) !important;
    background-size: cover !important;
    background-position: center center !important;
}

.main_img:has(.hero-seo-img)::after,
section.main_img:not([style])::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.08));
    pointer-events: none;
    z-index: 0;
}

.main_img > .container {
    position: relative;
    z-index: 1;
}

.main_img .main-heading {
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
}

.main_img .sub-heading,
.main_img .sub-heading li {
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65);
}

.main_img ul.sub-heading {
    background: rgba(0, 0, 0, 0.32);
    padding: 14px 16px 10px;
    border-radius: 12px;
    list-style: none;
}

.main_img ul.sub-heading li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
}

.main_img ul.sub-heading li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fe7c06;
}

.main_img .live-text.promotion,
.cotg-lp .cotg-lp-hero .live-text.promotion {
    background: rgba(255, 255, 255, 0.96);
    color: #231f20;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.main_img .live-text.promotion b,
.cotg-lp .cotg-lp-hero .live-text.promotion b {
    color: #fe7c06;
}

.main_img .live-text.promotion .promo-complimentary,
.cotg-lp .cotg-lp-hero .live-text.promotion .promo-complimentary {
    background: #fe7c06;
    border-color: #e56f05;
    color: #ffffff;
}

/* Extra darken on LP hero (works with cotg-lp-theme overlay) */
.cotg-lp .cotg-lp-hero::before {
    background: linear-gradient(
        105deg,
        rgba(12, 10, 9, 0.82) 0%,
        rgba(12, 10, 9, 0.65) 50%,
        rgba(12, 10, 9, 0.4) 100%
    ) !important;
    opacity: 1 !important;
}

/* About section */
.cotg-lp-about-image-wrap,
.cotg-perth-about-image-wrap {
    overflow: hidden;
    border-radius: 16px;
}

.cotg-lp-about-image-wrap img,
.cotg-perth-about-lead .col-lg-4 img,
.about-section .col-lg-4 img.w-100 {
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
}

@media (min-width: 768px) {
    .cotg-lp-about-image-wrap,
    .cotg-perth-about-image-wrap {
        max-height: 480px;
    }

    .cotg-lp-about-image-wrap img,
    .cotg-perth-about-lead .col-lg-4 img {
        height: 100%;
        min-height: 260px;
        max-height: 480px;
    }
}

/* Service cards — LP theme (Adelaide, Canberra, Melbourne, Perth) */
.cotg-lp-svc-img,
.cotg-perth-svc-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #fff7ed;
}

.cotg-lp-svc-img img,
.cotg-perth-svc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Service cards — legacy layout (Sydney, main bond hub) */
.service-boxi {
    overflow: hidden;
    border-radius: 8px;
}

.service-boxi > img.w-100,
.services .service-boxi > img.w-100 {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center;
    border-radius: 8px 8px 0 0;
}

/* Before & after gallery */
.before-after {
    margin-left: 0;
    margin-right: 0;
}

.before-after [class*="col-"] {
    margin-bottom: 12px;
}

.before-after img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
}

@media (min-width: 768px) {
    .before-after img {
        aspect-ratio: 4 / 3;
        max-height: 240px;
    }
}

/* Video */
.services video,
video {
    max-width: 100%;
    height: auto;
}

/* Small UI icons — fixed size */
img[src*="phone.webp"],
img[src*="email.webp"],
img[src*="address.webp"],
img[src*="top-icon.webp"] {
    width: auto;
    max-width: 48px;
    height: auto;
}

.footer-logo,
.navbar-brand img.logo,
.mobile-logo img {
    max-width: 120px;
    height: auto;
}

/* ---- Mobile ---- */
@media (max-width: 767px) {
    .main_img,
    .cotg-lp-hero.main_img {
        padding: 36px 0 48px !important;
        background-attachment: scroll !important;
    }

    .cotg-lp-hero .col-lg-6:first-child {
        padding-right: 12px !important;
        padding-left: 12px !important;
    }

    .main-heading {
        font-size: clamp(28px, 8vw, 44px) !important;
        line-height: 1.15 !important;
    }

    .sub-heading,
    .main_img .sub-heading {
        font-size: clamp(15px, 4.2vw, 18px) !important;
        line-height: 1.5 !important;
    }

    .services-heading {
        width: 100% !important;
        padding: 0 10px;
    }

    .cotg-lp-about-image-wrap img,
    .about-section img.w-100 {
        max-height: 340px;
    }

    .before-after .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .top-form {
        margin-top: 16px;
        margin-bottom: 40px;
    }

    section.services,
    section.about-section {
        padding-left: 0;
        padding-right: 0;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 480px) {
    .before-after .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
