/*!
 * Start Bootstrap - Modern Business
 */

/* ================================
   GLOBAL STYLES
================================ */

html,
body {
    height: 100%;
}

body {
    padding-top: 50px;
    color: #2b2b2b;
    line-height: 1.6;
}

/* ================================
   TYPOGRAPHY
================================ */

h1, h2, h3, h4 {
    font-weight: 600;
}

.page-header {
    color: #0057B8;
    border-bottom: 2px solid #e9ecef;
    margin-top: 20px;
    margin-bottom: 25px;
    padding-bottom: 10px;
}

.intro-text p {
    font-size: 16px;
    margin-bottom: 15px;
}

/* ================================
   NAVBAR
================================ */

.navbar-inverse {
    background-color: #1f3a5f;
    border-color: #1f3a5f;
    border-bottom: 3px solid #4f6d8a;
}

.navbar-inverse .navbar-brand,
.navbar-inverse .navbar-nav > li > a {
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.navbar-inverse .navbar-nav > li > a:hover {
    color: #d9e2ec;
    background-color: #333333;
}

.disabled-link {
    pointer-events: none;
    cursor: default;
}

/* Active menu item = black */
.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus {
    background-color: #000000;
    color: #ffffff;
}

/* ================================
   CAROUSEL
================================ */

header.carousel {
    height: 70%;
    min-height: 400px;
}

header.carousel .item,
header.carousel .item.active,
header.carousel .carousel-inner {
    height: 100%;
}

header.carousel .fill {
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
}

header.carousel .item {
    position: relative;
}

header.carousel .item:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

header.carousel .carousel-caption {
    bottom: 80px;
    z-index: 2;
}

header.carousel h2 {
    color: #fff;
    font-size: 36px;
}

header.carousel p {
    color: #f1f1f1;
    font-size: 18px;
}

/* ================================
   IMAGE CONTROL
================================ */

.image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 10px;
    background-color: #f3f5f7;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================================
   MAP IMAGE  
================================ */

.map-container {
    width: 100%;
    height: 320px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    /* 🔥 THIS CONTROLS CENTERING */
    object-position: 55% 50%;
}

/* ================================
   WHAT3WORDS
================================ */

.w3w-link {
    display: inline-block;
    background-color: #f3f5f7;
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: 600;
    color: #e11d48;
    text-decoration: none;
}

.w3w-link:hover {
    background-color: #e6ebf0;
}

/* ================================
   SERVICES / CONTENT BLOCKS
================================ */

.what-we-do {
    margin-top: 10px;
    margin-bottom: 20px;
}

.what-we-do .service-block {
    margin-bottom: 30px;
}

.what-we-do h4 {
    color: #0057B8;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 8px;
}

.what-we-do h4:after {
    content: "";
    width: 50px;
    height: 2px;
    background-color: #0057B8;
    display: block;
    margin-top: 8px;
}

/* ================================
   BUTTONS
================================ */

.btn-primary {
    background-color: #0057B8;
    border-color: #0057B8;
}

.btn-primary:hover {
    background-color: #003f8a;
}

.btn-default {
    color: #0057B8;
}

.btn-default:hover {
    background-color: #f3f5f7;
}

/* ================================
   PANELS
================================ */

.panel-default > .panel-heading {
    background-color: #0057B8;
    color: #fff;
}

/* ================================
   CTA / WELL
================================ */

.well {
    background-color: #f1f4f8;
    border: 1px solid #d6dce2;
}

.well p {
    margin-bottom: 0;
}

/* ================================
   FOOTER
================================ */

footer {
    background-color: #f8f9fa;
    padding: 20px 0;
    border-top: 1px solid #d6dce2;
    margin-top: 20px;
}

footer p {
    margin: 0;
}

.footer-address {
    display: block;
    margin-top: 5px;
    line-height: 1.5;
}

/* Footer layout */
.footer-row {
    display: flex;
    align-items: center;
}

.footer-left {
    text-align: left;
}

.footer-right {
    text-align: right;
}

/* ================================
   RESPONSIVE
================================ */

@media(max-width:767px) {

    .image-container {
        height: 180px;
    }

    .map-container {
        height: 250px;
        margin-top: 20px;
    }

    header.carousel {
        height: 50%;
        min-height: 250px;
    }

    header.carousel h2 {
        font-size: 24px;
    }

    header.carousel p {
        font-size: 14px;
    }

    /* Mobile footer behaviour */
    .footer-row {
        display: block;
        text-align: center;
    }

    .footer-right {
        margin-top: 10px;
        text-align: center;
    }
}