/********** Template CSS **********/
:root {
    --primary: #10233F;
    --primary-dark: #0A1830;
    --secondary: #C89B3C;
    --secondary-dark: #A67F2E;
    --light: #F7F4EE;
    --dark: #1B1F27;
}

body {
    font-family: 'Inter', sans-serif;
    color: #4A4E57;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand, .fw-bold {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.01em;
}


/*** Brand Colour Overrides (applies new professional palette to all Bootstrap utility classes site-wide) ***/
.bg-primary { background-color: var(--primary) !important; }
.text-primary { color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }

.btn-primary,
.btn-check:active + .btn-primary,
.btn-check:checked + .btn-primary {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover,
.btn-check:focus + .btn-primary,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
    color: #fff;
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.bg-secondary { background-color: var(--secondary) !important; }
.text-secondary { color: var(--secondary) !important; }
.border-secondary { border-color: var(--secondary) !important; }

.btn-secondary {
    color: #fff;
    background-color: var(--secondary);
    border-color: var(--secondary);
}
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    color: #fff;
    background-color: var(--secondary-dark) !important;
    border-color: var(--secondary-dark) !important;
}

.bg-light { background-color: var(--light) !important; }
.text-light { color: var(--light) !important; }
.border-light { border-color: rgba(255, 255, 255, .15) !important; }

.btn-light {
    color: var(--primary);
    background-color: var(--light);
    border-color: var(--light);
}
.btn-light:hover,
.btn-light:focus {
    color: var(--primary);
    background-color: #fff !important;
    border-color: #fff !important;
}

.btn-outline-light {
    color: var(--light);
    border-color: rgba(255, 255, 255, .5);
}
.btn-outline-light:hover {
    color: var(--primary);
    background-color: var(--light) !important;
    border-color: var(--light) !important;
}

.bg-dark { background-color: var(--dark) !important; }
.text-dark { color: var(--dark) !important; }

/* Corporate, less "startup-template" corners */
.rounded-pill {
    border-radius: 6px !important;
}
.btn.rounded-pill {
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Signature brand device: diagonal corner motif echoing the
   certificate & catalogue artwork (gold-edged navy ribbon) */
.brand-corner {
    position: relative;
    overflow: hidden;
}
.brand-corner::before {
    content: "";
    position: absolute;
    top: -38px;
    left: -38px;
    width: 90px;
    height: 90px;
    background: var(--primary);
    transform: rotate(45deg);
    z-index: 0;
}
.brand-corner::after {
    content: "";
    position: absolute;
    top: -44px;
    left: -44px;
    width: 92px;
    height: 5px;
    background: var(--secondary);
    transform: rotate(45deg);
    z-index: 1;
}
.brand-corner > * {
    position: relative;
    z-index: 2;
}


/*** 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;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Heading ***/
h1,
h2,
h3,
.fw-bold {
    font-weight: 700 !important;
}

h4,
h5,
h6,
.fw-medium {
    font-weight: 500 !important;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.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;
    border-radius: 50px;
}


/*** Navbar ***/
.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-left: 25px;
    padding: 35px 0;
    color: var(--light) !important;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--dark) !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--secondary) !important;
}

.navbar-light .navbar-brand h1 {
    color: #FFFFFF;
}

.navbar-light .navbar-brand img {
    max-height: 60px;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-brand img {
    max-height: 45px;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-light {
        position: relative;
        background: #FFFFFF;
    }

    .navbar-light .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid #DDDDDD;
    }

    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
        margin-left: 0;
        color: var(--dark) !important;
    }

    .navbar-light .navbar-brand h1 {
        color: var(--primary);
    }

    .navbar-light .navbar-brand img {
        max-height: 45px;
    }
}

@media (min-width: 992px) {
    .navbar-light {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(256, 256, 256, .1);
        z-index: 999;
    }
    
    .sticky-top.navbar-light {
        position: fixed;
        background: #FFFFFF;
    }

    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--secondary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .sticky-top.navbar-light .navbar-brand h1 {
        color: var(--primary);
    }
}


/*** Hero Header ***/
.hero-header {
    background-image:
        linear-gradient(120deg, rgba(10, 24, 48, .96) 0%, rgba(16, 35, 63, .9) 60%, rgba(16, 35, 63, .8) 100%),
        url(../img/bg-dot.png),
        url(../img/bg-dot.png),
        url(../img/bg-round.png),
        url(../img/bg-tree.png),
        url(../img/bg-bottom-hero.png);
    background-position:
        left top,
        10px 10px,
        bottom 190px right 10px,
        left 55% top -1px,
        left 45% bottom -1px,
        center bottom -1px;
    background-repeat: no-repeat;
    border-bottom: 3px solid var(--secondary);
}


/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 45px;
    height: 4px;
    bottom: 0;
    left: 0;
    background: var(--dark);
}

.section-title::after {
    position: absolute;
    content: "";
    width: 4px;
    height: 4px;
    bottom: 0;
    left: 50px;
    background: var(--dark);
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -25px;
}

.section-title.text-center::after {
    left: 50%;
    margin-left: 25px;
}

.section-title h6::before,
.section-title h6::after {
    position: absolute;
    content: "";
    width: 10px;
    height: 10px;
    top: 2px;
    left: 0;
    background: rgba(200, 155, 60, .55);
}

.section-title h6::after {
    top: 5px;
    left: 3px;
}


/*** Service ***/
.service-item {
    position: relative;
    min-height: 350px;
    height: 100%;
    padding: 30px 25px;
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .5s;
}

.service-item:hover {
    background: var(--primary);
}

.service-item .service-icon {
    margin: 0 auto 20px auto;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    background: url(../img/icon-shape-primary.png) center center no-repeat;
    transition: .5s;
}

.service-item:hover .service-icon {
    color: var(--primary);
    background: url(../img/icon-shape-white.png);
}

.service-item h5,
.service-item p {
    transition: .5s;
}

.service-item:hover h5,
.service-item:hover p {
    color: var(--light);
}

.service-item a.btn {
    position: relative;
    display: flex;
    color: var(--primary);
    transition: .5s;
    z-index: 1;
}

.service-item:hover a.btn {
    color: var(--primary);
}

.service-item a.btn::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 35px;
    top: 0;
    left: 0;
    border-radius: 35px;
    background: #DDDDDD;
    transition: .5s;
    z-index: -1;
}

.service-item:hover a.btn::before {
    width: 100%;
    background: var(--light);
}


/*** Testimonial ***/
.newsletter,
.testimonial {
    background:
        url(../img/bg-top.png),
        url(../img/bg-bottom.png);
    background-position:
        left top,
        right bottom;
    background-repeat: no-repeat;
}

.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item.center .testimonial-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--light) !important;
    border-color: var(--light);
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: #888888;
}

.testimonial-carousel .owl-item.center .testimonial-item i {
    color: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item h6 {
    color: var(--dark) !important;
}


/*** Team ***/
.team-item {
    position: relative;
    transition: .5s;
    z-index: 1;
}

.team-item::after {
    position: absolute;
    content: "";
    top: 3rem;
    right: 3rem;
    bottom: 0;
    left: 0;
    border-radius: 10px;
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .1);
    transition: .5s;
    z-index: -1;
}

.team-item:hover::after {
    background: var(--primary);
}

.team-item h5,
.team-item small {
    transition: .5s;
}

.team-item:hover h5,
.team-item:hover small {
    color: var(--light);
}


/*** Project Portfolio ***/
#portfolio-flters .btn {
    position: relative;
    display: inline-block;
    margin: 10px 4px 0 4px;
    transition: .5s;
}

#portfolio-flters .btn::after {
    position: absolute;
    content: "";
    right: -1px;
    bottom: -1px;
    border-left: 20px solid transparent;
    border-right: 0 solid transparent;
    border-bottom: 50px solid #FFFFFF;
}

#portfolio-flters .btn:hover,
#portfolio-flters .btn.active {
    color: var(--light);
    background: var(--primary);
}

.portfolio-overlay {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 30px;
    top: 0;
    left: 0;
    background: var(--primary);
    transition: .5s;
    z-index: 1;
    opacity: 0;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item .btn {
    position: absolute;
    width: 90px;
    height: 90px;
    top: 0px;
    right: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(../img/icon-shape-white.png) center center no-repeat;
    border: none;
    transition: .5s;
    opacity: 0;
    z-index: 2;
}

.portfolio-item:hover .btn {
    opacity: 1;
    transition-delay: .15s;
}



/*** Footer ***/
.footer {
    background: url(../img/footer.png) center center no-repeat;
    background-size: contain;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid rgba(256, 256, 256, .1);
    border-radius: 40px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 14px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}



/*** Responsive safeguards ***/
img { max-width: 100%; height: auto; }

.hero-header h1 {
    font-size: calc(1.6rem + 1.5vw);
}

@media (max-width: 767.98px) {
    .hero-header { text-align: center; }
    .hero-header .btn { margin-bottom: 10px; }
    .team-item::after { right: 1.5rem; }
    .display-6, h1 { word-break: break-word; }
}

@media (max-width: 575.98px) {
    .service-item { padding: 25px 18px; }
    .section-title h2 { font-size: 1.5rem; }
}


/*** Certifications / Downloads Page ***/
.doc-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: .4s;
}

.doc-card:hover {
    box-shadow: 0 10px 45px rgba(16, 35, 63, .18);
    transform: translateY(-4px);
}

.doc-card .doc-thumb-wrap {
    position: relative;
    background: var(--light);
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(16, 35, 63, .08);
}

.doc-card .doc-thumb-wrap img {
    max-height: 340px;
    width: auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
    border: 6px solid #fff;
}

.doc-card .doc-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--secondary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 4px;
}

.doc-card .doc-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.doc-card .doc-body .doc-meta {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

.doc-card .doc-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pdf-modal .modal-dialog {
    max-width: 900px;
}

.pdf-modal .modal-body {
    padding: 0;
    height: 80vh;
}

.pdf-modal iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.cert-strip img {
    height: 90px;
    width: auto;
    object-fit: contain;
    filter: grayscale(15%);
    transition: .3s;
}
.cert-strip img:hover { filter: grayscale(0); }
