/*** ASD Theme Overrides — professional navy palette with a restrained rust accent (from img/logo.jpeg) ***/
:root {
    --bs-primary: #15385c;
    --bs-primary-dark: #0d2438;
    --bs-secondary: #7a4321;
}

/* Template default body text (#757575) reads too light/washed out */
body {
    color: #333333;
}

/* Bootstrap utility classes hardcoded to old tan/brown/navy/indigo template colors */
.text-primary { color: #15385c !important; }
.bg-primary { background-color: #15385c !important; }
.border-primary { border-color: #15385c !important; }
.btn-primary { color: #fff; background-color: #15385c; border-color: #15385c; }
.btn-primary:hover { background-color: #0d2438; border-color: #0d2438; }
.btn-outline-primary { color: #15385c; border-color: #15385c; }
.btn-outline-primary:hover { background-color: #15385c; color: #fff; }
.text-secondary { color: #7a4321 !important; }
.bg-secondary { background-color: #7a4321 !important; }

/* style.css hardcoded accent colors */
.btn.btn-primary { box-shadow: inset 0 0 0 0 #15385c; }
.btn.btn-primary:hover { color: #15385c !important; }
.section-title { color: #15385c; }
.about .container .section-about-title { color: #7a4321; }
.packages .packages-carousel .owl-nav .owl-prev,
.packages .packages-carousel .owl-nav .owl-next { border: 1px solid #15385c; }
.packages .packages-carousel .owl-nav .owl-prev:hover,
.packages .packages-carousel .owl-nav .owl-next:hover { background: #15385c; }
.navbar-light .navbar-nav .nav-link::before {
    background: #15385c;
}
.bg-breadcrumb {
    background: #15385c;
    padding: 80px 0 30px 0;
}
.bg-breadcrumb h3 {
    color: #fff !important;
}
.bg-breadcrumb .breadcrumb-item.active {
    color: #fff !important;
}
.bg-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8) !important;
}
.bg-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/*** Brand mark ***/
.navbar-brand img {
    height: 62px;
    width: auto;
    object-fit: contain;
}
.navbar-brand img.logo1 {
    width: 220px;
    height: auto;
}

/*** Hero header height ***/
.carousel-header .carousel-inner .carousel-item {
    min-height: 75vh;
}
.carousel-header .carousel-inner .carousel-item img {
    object-position: center 35%;
}
.carousel-header .carousel-inner .carousel-item .carousel-caption {
    background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .45));
    /* Anchor from the top instead of centering: centered captions were
       taller than the shortened hero box and overflowed upward, getting
       clipped behind the navbar. */
    align-items: flex-start;
    padding-top: 90px;
}
.carousel-header .carousel-inner .carousel-item .carousel-caption h1 {
    font-size: 2.75rem;
    line-height: 1.2;
}
.carousel-header .carousel-inner .carousel-item .carousel-caption p {
    font-size: 1.05rem;
}
@media (max-width: 768px) {
    .carousel-header {
        height: 560px !important;
    }
    .carousel-header .carousel-inner .carousel-item img,
    .carousel-header .carousel-inner .carousel-item .carousel-caption {
        height: 560px;
        margin-top: 0;
    }
    .carousel-header .carousel-inner .carousel-item .carousel-caption {
        padding-top: 40px;
    }
}
.navbar-brand .brand-text-name {
    font-family: 'Jost', sans-serif;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1;
    color: var(--bs-primary);
    text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
}
.navbar-brand .brand-text-tagline {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: var(--bs-secondary);
    margin-top: 2px;
    position: relative;
    padding-top: 6px;
}
.navbar-brand .brand-text-tagline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 34px;
    height: 2px;
    background: var(--bs-secondary);
}
.navbar-brand:hover .brand-text-name {
    color: var(--bs-primary-dark);
}
@media (max-width: 575.98px) {
    .navbar-brand .brand-text-name {
        font-size: 24px;
    }
    .navbar-brand .brand-text-tagline {
        display: none;
    }
}

/*** Shared header utilities ***/
.nowrap {
    white-space: nowrap;
}

.whats-app {
    width: 50px;
    height: 50px;
    background-color: #25D366;
    color: #FFF;
    text-align: center;
    font-size: 30px;
    margin-left: 10px;
    border-radius: 50%;
    transition: transform .3s ease, box-shadow .3s ease;
}
.whats-app:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.35);
    color: #fff;
}

/*** Modern card polish: hover lift + soft shadow ***/
.modern-card {
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    box-shadow: 0 4px 14px rgba(20, 20, 30, 0.06);
}
.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 34px rgba(21, 56, 92, 0.2);
    border-color: #15385c !important;
}
.modern-card i {
    transition: transform .35s ease;
}
.modern-card:hover i {
    transform: scale(1.12);
}

/*** Services page: consistent image box size ***/
.service-photo {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
}
@media (max-width: 991.98px) {
    .service-photo {
        height: 280px;
    }
}

/*** Services page brand badge ***/
.services-logo-badge {
    width: 96px;
    height: 96px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 14px;
    box-shadow: 0 10px 26px rgba(21, 56, 92, 0.22);
    margin-bottom: 18px;
}

/*** Gallery hover overlay aligned to navy brand color ***/
.gallery .gallery-item:hover .gallery-content {
    background: rgba(21, 56, 92, 0.82);
}

/*** Service brochure posters — framed card style, full image shown uncropped ***/
.brochures .brochure-item {
    background: #fff;
    border: 1px solid rgba(21, 56, 92, 0.08);
    border-radius: 16px;
    padding: 10px 10px 0;
    box-shadow: 0 10px 26px rgba(21, 56, 92, 0.12);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.brochures .brochure-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 40px rgba(21, 56, 92, 0.25);
    border-color: #15385c;
}
.brochures .brochure-frame {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border-top: 4px solid #7a4321;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
}
.brochures .brochure-item img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: 0 auto;
    transition: transform .5s ease;
}
@media (max-width: 767.98px) {
    .brochures .brochure-frame {
        height: 340px;
    }
}
.brochures .brochure-item:hover img {
    transform: scale(1.06);
}
.brochures .brochure-item .brochure-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(21, 56, 92, 0.75);
    opacity: 0;
    transition: 0.4s;
}
.brochures .brochure-item:hover .brochure-overlay {
    opacity: 1;
}
.brochures .brochure-caption {
    text-align: center;
    padding: 14px 8px 18px;
}
.brochures .brochure-caption h6 {
    margin: 0;
    color: #15385c;
    font-weight: 600;
    letter-spacing: .3px;
}

/*** Brochure pyramid layout: apex (Company) -> Plumbing tier -> Fire Protection tier ***/
.brochure-pyramid .brochure-tier {
    margin-top: 0;
}
.brochures .brochure-item--apex {
    border-color: rgba(122, 67, 33, 0.25);
    box-shadow: 0 16px 34px rgba(21, 56, 92, 0.2);
    position: relative;
}
.brochures .brochure-item--apex .brochure-frame {
    border-top-color: #15385c;
}
.brochures .brochure-item--apex:hover {
    box-shadow: 0 26px 46px rgba(21, 56, 92, 0.3);
}
.brochures .brochure-item--apex .brochure-caption h6 {
    font-size: 1.1rem;
}
.brochures .brochure-tier-badge {
    position: absolute;
    top: -14px;
    left: -14px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #7a4321;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(122, 67, 33, 0.4);
    z-index: 2;
}

/*** Section heading accent underline ***/
.section-title {
    font-weight: 600;
}

/*** Footer icon color ***/
.footer .footer-item a i {
    color: #e08a3e;
    width: 18px;
    text-align: center;
}
.footer .footer-item a:hover i {
    color: #fff;
}
.footer .footer-item .btn-square.btn-primary {
    transition: transform .3s ease, background-color .3s ease;
}
.footer .footer-item .btn-square.btn-primary:hover {
    transform: translateY(-3px);
    filter: brightness(1.08);
}

/*** Buttons / small modern touches ***/
.btn-hover-bg {
    transition: 0.35s;
}
.btn-hover-bg:hover {
    filter: brightness(1.08);
}

/*** Mobile responsive corrections (applies to Home, About, Services, Contact) ***/
@media (max-width: 767.98px) {
    /* Navbar brand: full-size logo1 (220px) overruns a phone-width navbar */
    .navbar-brand img.logo1 {
        width: 110px;
    }
    .navbar-brand img {
        height: 42px;
    }
    .whats-app {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    /* Hero carousel text: desktop display sizes overflow small screens */
    .carousel-header .carousel-caption h1 {
        font-size: 1.7rem;
        line-height: 1.25;
    }
    .carousel-header .carousel-caption p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem !important;
    }
    .carousel-header .carousel-caption .btn {
        padding: 0.6rem 1.5rem !important;
    }

    /* Inner-page hero (About/Services/Contact) */
    .bg-breadcrumb {
        padding: 60px 0 25px 0;
    }
    .bg-breadcrumb h1 {
        font-size: 2rem;
    }

    /* Brochure pyramid: tighter gutters and smaller badge on phones */
    .brochures .brochure-item {
        padding: 8px 8px 0;
    }
    .brochures .brochure-tier-badge {
        width: 32px;
        height: 32px;
        font-size: 12px;
        top: -10px;
        left: -10px;
    }
    .brochures .brochure-item--apex .brochure-caption h6 {
        font-size: 1rem;
    }

    .services-logo-badge {
        width: 76px;
        height: 76px;
        padding: 10px;
    }
}
