﻿@font-face {
    font-family: OpenSans-Light;
    src: url("fonts/OpenSans-Light.ttf") format('truetype');
}

@font-face {
    font-family: OpenSans-Regular;
    src: url("fonts/OpenSans-Regular.ttf") format("truetype");
}

@font-face {
    font-family: OpenSans-Medium;
    src: url("fonts/OpenSans-Medium.ttf") format("truetype");
}

@font-face {
    font-family: OpenSans-SemiBold;
    src: url("fonts/OpenSans-SemiBold.ttf") format("truetype");
}

h1, h2, h3, h4, h5, span, a, i, p {
    margin-bottom: unset;
    margin-top: unset;
}

body {
    font-family: OpenSans-Regular;
    font-size: 16px;
}

h1, h2 {
    font-family: OpenSans-SemiBold !important;
    line-height: 1.2;
    letter-spacing: 1px;
}

h6 {
    font-size: 20px;
}

span, button, a {
    font-size: 18px !important;
}

a {
    font-family: OpenSans-SemiBold !important;
    text-decoration-thickness: 1px;
    color: #0a98ac;
}

.textLight {
    font-family: OpenSans-Light !important;
    letter-spacing: 0px;
}

.whoWeAreBackground {
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: #C6C6C6 !important;
    border: #C6C6C6 !important;
    position: relative;
    background: linear-gradient(90deg, rgba(31,51,119,1) 0%, rgba(22,62,193,1) 100%);
    z-index: 1;
}

    .btn-primary::before {
        border-radius: 5px;
        position: absolute;
        content: '';
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: linear-gradient(90deg, rgba(22,62,193,1) 0%, rgba(52,94,235,1) 100%);
        z-index: -1;
        transition: opacity 0.5s linear;
        opacity: 0;
    }

    .btn-primary:hover::before {
        opacity: 1;
    }

.block-gradient {
    background: linear-gradient(90deg, rgba(10,152,172,1) 0%, rgba(44,180,199,1) 40%, rgba(44,180,199,1) 60%, rgba(10,152,172,1) 100%);
}

.responsive-image {
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 6 / 4;
}

.whoWeAreBackgroundChild:before {
    background-image: url('../system/img/Logo_only_dark.png');
    background-size: 100%;
    background-position-x: 20vw;
    background-position-y: 0;
    background-repeat: repeat-y;
    opacity: 0.2;
    content: '';
    z-index: -1;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

/******** new stuff ************/
body {
    font-family: Arial, sans-serif;
}

.text-primary-local {
    color: #646464;
}

.header-rectangle2 {
    background-color: #0898ab9a;
    width: 100%;
    left: 0px;
    position: absolute;
    bottom: 0px;
    height: 28vh;
}

.nav-item a {
    font-size: 1.4rem !important;
}

/* Keep "Get in Touch" always primary */
.nav-link.get-in-touch {
    color: #0898ab9a;
    text-decoration: none !important;
}

    .nav-link.get-in-touch:hover,
    .nav-link.get-in-touch:visited,
    .nav-link.get-in-touch:focus,
    .nav-link.get-in-touch:active {
        color: #0898ab9a;
    }

.navbar-logo {
    max-height: 6rem;
    height: auto;
    width: auto;
}

    .navbar-logo img {
        max-height: 10rem;
        position: absolute;
        left: 0;
        top: 0;
    }

.dropdown-header-custom {
    text-align: center;
    margin: 10px 15px;
    padding: 10px 30px;
    min-width: 300px;
    background-color: #0898ab9a;
    color: #ffffff;
    font-size: 20px;
}

.dbs-blue {
    color: #0898ab9a;
}

/* Hero Section */
.hero {
    background: url('hero-placeholder.jpg') center center / cover no-repeat;
    min-height: 400px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.fade-in {
    opacity: 0;
    transform: scale(0.8);
    transform-origin: center center;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    .fade-in.visible {
        opacity: 1;
        transform: scale(1);
    }

.img-thumbnail {
    border: none;
}

/* Icons */
.service-icon {
    font-size: 40px;
    color: #007b8f;
}

.service-icon-img {
    width: 50%;
    margin: 0 auto;
}

.service-icon img {
    max-width: 100%;
    height: auto;
}

.block-grey {
    background-color: #f5f5f5;
}

.btn-gold {
    border-radius: 14px;
    font-family: Arial;
    color: #ffffff;
    font-size: 20px;
    background: #aa9808;
    padding: 10px 20px;
    text-decoration: none;
}

    .btn-gold:hover {
        background: #205056;
        text-decoration: none;
        color: white;
    }

.image-overlay-wrapper {
    position: relative;
    height: 0;
    top: -40px;
}

.overlay-image {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 100%;
    height: auto;
    z-index: 10;
    pointer-events: none;
}

.transition {
    transition: transform 0.5s ease;
}

.bg-light-subtle {
    background-color: #F0F0F0;
}

/* Responsive widths */
.team-member {
    flex: 0 0 100%;
}

@media (min-width: 768px) {
    .team-member {
        flex: 0 0 50%;
    }
}

@media (min-width:1042px) {
    .team-member {
        flex: 0 0 33.333%;
    }
}

@media (min-width: 1200px) {
    .team-member {
        flex: 0 0 25%;
    }
}



/* Footer */
.footer {
    background-color: #007b8f;
    padding: 40px 0;
}

    .footer a {
        text-decoration: none;
    }

        .footer a:hover {
            text-decoration: underline;
        }

.footer-list li a {
    font-size: 15px !important;
}

/* Responsive tweaks */
@media (max-width: 576px) {
    .service-icon img {
        max-width: 80%;
    }

    .carousel-control-prev {
        top: 53px !important;
        left: 30px !important;
    }

    .carousel-control-next {
        top: 53px !important;
        right: 30px !important;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .navbar-collapse {
        background-color: #fff;
        padding: 1rem;
    }

    .service-icon {
        font-size: 30px;
    }

    .navbar-logo img {
        max-height: 6rem;
    }
}

@media (min-width: 1200px) {
    h1, .h1 {
        font-size: 3.5rem;
    }

        h1 i {
            font-size: 2.5rem;
        }

    .carousel-control-next {
        padding-right: 5%;
    }

    .carousel-control-prev {
        padding-left: 5%;
    }
}

/* old responsive */
@media(max-width: 700px) {
    .whoWeAreBackgroundChild:before {
        background-position-x: 10%;
        background-position-y: 15%;
    }
}

/* custom section */
nav.navbar-home {
    margin-bottom: 0;
    position: relative;
    z-index: 5;
}

.navbar-brand-home img {
    position: absolute;
    bottom: -20px;
    left: 0;
    max-width: 300px;
    width: 100%;
    z-index: 10;
    top: -20px;
}

.hero-carousel-home {
    position: relative;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-brand-home img {
        bottom: -15px;
        max-width: 220px;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand-home img {
        bottom: -10px;
        max-width: 180px;
    }
}

/* Dropdown nav */
.dropdown-submenu {
    position: relative;
}

/* Desktop submenu */
@media (min-width: 992px) {
    .dropdown-submenu > .dropdown-menu {
        display: none;
        position: absolute;
        top: 0;
        left: 100%;
        margin-left: 0;
    }

    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }
}

/* Mobile submenu */
@media (max-width: 991px) {
    
    /* Collapsed menu container */
    #navbarNavDropdown {
        width: 100%;
        max-width: 100%;
        background-color: #fff;
        text-align: right;
    }

        /* Navbar items: stack vertically, right-aligned */
        #navbarNavDropdown .navbar-nav {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            width: 100%;
        }

        #navbarNavDropdown .nav-item {
            width: 100%;
        }

    /* Submenu stacking */
    .dropdown-submenu > .dropdown-menu {
        position: relative;
        display: none;
        max-height: 0;
        overflow: hidden;
        padding-left: 0.5rem;
        text-align: right;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .dropdown-submenu.show > .dropdown-menu {
        display: block !important;
        max-height: 1000px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    /* Submenu items */
    .dropdown-submenu > .dropdown-menu .dropdown-item {
        padding-left: 1.5rem;
        padding-right: 1rem;
    }

    /* Toggle arrow */
    .dropdown-submenu > a::after {
        content: " ▸";
        float: right;
        margin-left: 0;
    }

    .dropdown-item {
        text-align:end;
    }

    .dropdown-menu a.dropdown-item {
        white-space: normal; /* allow wrapping */
        word-break: break-word; /* break long words if needed */
    }

}


/* Carousel styling */
.carousel-img-fluid {
    width: 100%;
    min-width: 250px;
    max-width: 250px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
}

/* 14-01-26 reformated carousel - Added styling tweaks to carousel for small screen layout */
/* Base carousel controls - dynamic sizing */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 10%; /* clickable area */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0898ab9a;
    text-align: center;
    opacity: 1;
    padding: 0 1rem; /* inset from edges */
}

/* Icons scale relative to carousel height */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: contain;
    width: 10%; /* 10% of carousel height */
    height: auto;
    max-width: 60px; /* prevent overly large icons on huge screens */
    min-width: 30px; /* ensure tap area on small screens */
}

/* Nudge arrows slightly inward for visual spacing */
.carousel-control-prev-icon {
    transform: translateX(-20%);
}

.carousel-control-next-icon {
    transform: translateX(20%);
}

/* Medium devices (iPad Pro portrait ~1024px) */
@media (max-width: 1366px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 12%;
        padding: 0 1.5rem;
    }
}

/* Small devices (phones/tablets) */
@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 15%;
        padding: 0 2rem;
    }
}

/* Hover/focus */
.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

