/********** Template CSS **********/
:root {
    --primary: #011EB4;     /* ACAPS royal blue (MAIN) */
    --secondary: #00158A;   /* darker blue for hover/contrast */
    --dark: #011EB4;        /* unify dark/navy areas */
    --light: #F6F7F8;
    --bs-primary-rgb: 1, 30, 180;
}

/* Make sure utility classes follow */
.bg-primary { background-color: #011EB4 !important; }
.text-primary { color: #011EB4 !important; }
.border-primary { border-color: #011EB4 !important; }

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Button (ACAPS – FINAL) ***/
.btn {
    transition: all .3s ease;
    outline: none !important;
    box-shadow: none !important;
}

/* =========================
   PRIMARY BUTTON
   ========================= */
.btn.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:active,
.btn.btn-primary:focus-visible {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(1, 30, 180, 0.35) !important; /* ACAPS blue focus */
}

/* =========================
   OUTLINE PRIMARY
   ========================= */
.btn.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    background-color: transparent;
}

.btn.btn-outline-primary:hover,
.btn.btn-outline-primary:focus,
.btn.btn-outline-primary:active,
.btn.btn-outline-primary:focus-visible {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(1, 30, 180, 0.35) !important;
}

/* =========================
   SECONDARY BUTTON
   ========================= */
.btn.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: #ffffff;
}

.btn.btn-secondary:hover,
.btn.btn-secondary:focus,
.btn.btn-secondary:active,
.btn.btn-secondary:focus-visible {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(1, 30, 180, 0.35) !important;
}

/* =========================
   REMOVE BOOTSTRAP ORANGE RING (GLOBAL)
   ========================= */
.btn:focus,
.btn:active,
.btn:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 0.2rem rgba(1, 30, 180, 0.35) !important;
}

/* =========================
   SQUARE BUTTONS
   ========================= */
.btn-square { width: 38px; height: 38px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square { width: 48px; height: 48px; }

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}



/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar {
    background-color: #ffffff !important; /* pure white */
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.navbar .navbar-brand img {
    max-height: 40px;   /* was 60px */
}
@media (max-width: 991.98px) {
    .navbar .navbar-brand img {
        max-height: 32px;  /* was 45px */
    }
}

/* NAV LINK FONT + COLOR */
.navbar .navbar-nav .nav-link {
    margin-left: 25px;
    padding: 12px 0;
    font-size: 1.1rem;     /* bigger */
    font-weight: 600;      /* thicker */
    color: #3a3d42;        /* darker text */
    outline: none;
}

/* HOVER + ACTIVE */
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

/* DROPDOWN ICON */
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

/*** MOBILE ***/
@media (max-width: 991.98px) {
    .navbar .navbar-brand img {
        max-height: 45px;
    }

    .navbar .navbar-nav {
        margin-top: 15px;
        margin-bottom: 10px;
        background-color: #fff; /* prevent grey on mobile */
        padding: 10px 0;
    }

    .navbar .nav-link {
        margin-left: 0;
        font-size: 1.05rem;
        padding: 10px 15px;
    }

    .navbar .nav-item .dropdown-menu {
        padding-left: 30px;
    }
}

/*** DESKTOP ***/
@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        right: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
     background: rgba(1, 30, 180, 0.85);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--dark);
    border: 12px solid var(--dark);
    border-radius: 3rem;
}
#header-carousel .carousel-item {
    height: 55vh;          /* half-ish screen height */
    min-height: 360px;     /* prevent too small */
    max-height: 520px;     /* prevent too tall on big monitors */
}

#header-carousel .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;     /* keep cover crop */
}
@media (max-width: 768px) {
      #header-carousel .carousel-item {
        height: 40vh;
        min-height: 260px;
        max-height: 360px;
    }

    
     /* override your existing absolute rules cleanly */
    #header-carousel .carousel-item img {
        position: static;
    }
}

.page-header {
    background: linear-gradient(
        rgba(1, 30, 180, 0.85),
        rgba(1, 30, 180, 0.85)
    ), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item a,
.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item a:hover,
.page-header .breadcrumb-item.active {
    color: var(--primary);
}


/*** Facts ***/
.facts {
	position: relative;
}

.facts * {
	position: relative;
	z-index: 1;
}

.facts::after {
	position: absolute;
	content: "";
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
    background: rgba(1, 30, 180, 0.85);
}


/*** Quote ***/
@media (min-width: 992px) {
    .container.quote {
        max-width: 100% !important;
    }

    .container.quote .quote-text {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }

    .container.quote .quote-form {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .container.quote .quote-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }

    .container.quote .quote-form  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .container.quote .quote-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }

    .container.quote .quote-form  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}

.container.quote .quote-text,
.container.quote .quote-form {
	position: relative;
}

.container.quote .quote-text *,
.container.quote .quote-form * {
	position: relative;
	z-index: 1;
}

.container.quote .quote-text::after,
.container.quote .quote-form::after {
	position: absolute;
	content: "";
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
}

.container.quote .quote-text::after {
    background: rgba(1, 30, 180, 0.85);
}

.container.quote .quote-form::after {
    background: rgba(255, 255, 255, .8);
}

.container.quote .quote-text .h-100,
.container.quote .quote-form .h-100 {
    padding: 6rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/*** Service ***/
.service-item .service-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item .service-icon img {
    max-width: 60px;
    max-height: 60px;
}


/*** Team ***/
.team-item .team-img::before,
.team-item .team-img::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(1, 10, 53, .8);
    transition: .5s;
}

.team-item .team-img::after {
    left: auto;
    right: 0;
}

.team-item:hover .team-img::before,
.team-item:hover .team-img::after {
    width: 50%;
}

/* ============================
   ACAPS – Product card layout
   Make all cards & images same size (perfect square)
   ============================ */

/* Make the whole card a flex column so heights match */
.card.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Product card image area – fixed height, not huge */
.card.product-card .product-image-wrap {
    position: relative;
    width: 100%;
    height: 200px;       /* adjust 180–240px as you like */
    overflow: hidden;
}

/* Image fills that fixed-height box */
.card.product-card .product-image-wrap .product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: static;    /* no absolute needed now */
}


/* Ensure body fills remaining space consistently */
.card.product-card .card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Keep titles roughly same height so cards align nicely */
.card.product-card .card-title {
    min-height: 3rem;        /* about 2 lines of text */
}



/* ACAPS – product card image normalisation */

.dropdown-menu.brands-menu {
    max-height: 300px;      /* you can change height */
    overflow-y: auto;
}

.nav-brand-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

/* Brands dropdown scrollable */
.dropdown-menu.brands-menu {
    max-height: 300px;
    overflow-y: auto;
}

/* Unified brand logo size */
.nav-brand-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.team-item .team-img .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
    z-index: 3;
    opacity: 0;
}

.team-item:hover .team-img .team-social {
    transition-delay: .3s;
    opacity: 1;
}


/*** Testimonial ***/
.animated.pulse {
    animation-duration: 1.5s;
}

.testimonial-left,
.testimonial-right {
    position: relative;
}

.testimonial-left img,
.testimonial-right img {
    position: absolute;
    border-radius: 70px;
}

.testimonial-left img:nth-child(1),
.testimonial-right img:nth-child(3) {
    width: 70px;
    height: 70px;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-left img:nth-child(2),
.testimonial-right img:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

.testimonial-left img:nth-child(3),
.testimonial-right img:nth-child(1) {
    width: 50px;
    height: 50px;
    bottom: 10%;
    right: 10%;
}

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
    border-radius: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--secondary);
}
.brand-strip-logo {
    max-height: 80px;   /* 2x your old 40px */
    width: auto;
    object-fit: contain;
}


/*** Footer ***/
.footer {
    color: #7F8499;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #7F8499;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #7F8499;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: #ffffff;
    letter-spacing: 1px;
    box-shadow: none;
}


.footer .btn.btn-square {
    color: #7F8499;
    border: 1px solid #7F8499;
}

.footer .btn.btn-square:hover {
    color: var(--light);
    border-color: var(--primary);
}

.footer .copyright {
    padding: 25px 0;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: #ffffff;
    text-decoration: underline;
}
.footer .copyright a:hover {
    color: #e6e9ff;
}
/* FORCE BIGGER NAV FONT */
nav.navbar .navbar-nav .nav-link {
    font-size: 1.3rem !important;   /* bigger */
    font-weight: 700 !important;    /* bold */
    color: #2c2e33 !important;      /* darker */
}
/* ============================
   ACAPS – Navbar cart icon + brands dropdown
   ============================ */

/* Cart icon size and colour */
.nav-cart-link {
    padding: 0;
    border: none;
    background: transparent;
}

.nav-cart-icon {
    font-size: 1.7rem;      /* nice big icon */
    color: #2c2e33;         /* match nav text */
}

/* Red badge on top-right of cart */
.nav-cart-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #dc3545;    /* Bootstrap danger */
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

/* Brands dropdown scrollable */
.dropdown-menu.brands-menu {
    max-height: 300px;
    overflow-y: auto;
}

/* Unified brand logo size */
.nav-brand-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

/* ACAPS – Footer brand blue */
.footer {
    background-color: #011EB4 !important;
}
.footer,
.footer span,
.footer p {
    color: #e6e9ff;
}

/* Breadcrumb ACAPS styling */
.breadcrumb-item a {
    color: #011EB4; /* ACAPS blue */
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #00158A; /* darker blue */
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d; /* muted grey */
}
