/* =============================================
   Murther Fire Protection — custom stylesheet
   Bootstrap 5 handles layout; this file adds
   brand identity, fonts, and hero headers.
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;700&display=swap');

/* ----- CSS variables ----- */
:root {
    --mfp-navy: #0b0b45;
    --mfp-red: #bc0000;
}

/* ----- Base typography ----- */
body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    color: #000;
    margin-bottom: 0;
}

/* ----- Navbar ----- */
.site-navbar {
    font-family: 'Roboto Condensed', sans-serif;
    background: transparent !important;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding: 1.25rem 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

    .site-navbar .navbar-brand img {
        height: 100px;
    }

    /* Mobile: solid background only when menu is open */
    .site-navbar.is-open {
        background: var(--mfp-navy) !important;
    }

    .site-navbar .nav-link {
        color: #fff !important;
        text-shadow: 0 0 5px #000;
        padding: 0.5rem 0.75rem;
        border-bottom: 3px solid transparent;
        transition: border-color 0.2s;
    }

        .site-navbar .nav-link:hover,
        .site-navbar .nav-link.active {
            border-bottom-color: var(--mfp-red);
        }

    /* Dropdown menu */
    .site-navbar .dropdown-menu {
        background-color: var(--mfp-navy);
        border: none;
        border-radius: 0;
        margin-top: 0;
    }

    .site-navbar .dropdown-item {
        color: #fff;
        font-family: 'Roboto Condensed', sans-serif;
        padding: 0.6rem 1.25rem;
    }

        .site-navbar .dropdown-item:hover {
            background-color: var(--mfp-red);
            color: #fff;
        }

/* ----- Site header (hero / page banner) ----- */
.site-header {
    position: relative;
    padding-top: 9rem; /* clears the absolutely-positioned navbar */
    background-color: var(--mfp-navy); /* fallback while images load */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

    /* Dark overlay — pointer-events: none so it never blocks content */
    .site-header::after {
        content: '';
        position: absolute;
        inset: 0;
        background-color: var(--mfp-navy);
        opacity: 0.55;
        z-index: 0;
        pointer-events: none;
    }

    /* Page header text sits above the overlay */
    .site-header > * {
        position: relative;
        z-index: 1;
    }

    /* Home hero — tall, full-screen feel */
    .site-header.home {
        background-image: url('../img/img-home-001.jpg');
        min-height: 80vh;
    }

    /* Inner page banners */
    .site-header.about,
    .site-header.contact {
        background-image: url('../img/img-title-001.jpg');
        min-height: 500px;
    }

    .site-header.passive,
    .site-header.structural {
        background-image: url('../img/img-title-002.jpg');
        min-height: 500px;
    }

    .site-header.casestudies {
        background-image: url('../img/img-title-003.jpg');
        min-height: 500px;
    }

    .site-header.firedoor {
        background-image: url('../img/img-title-firedoor.jpg');
        min-height: 500px;
    }

    .site-header.partition {
        background-image: url('../img/img-title-partition.jpg');
        min-height: 500px;
    }

/* Page header text area */
.page-header-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: inherit;
    padding: 4rem 0;
}

/* ----- Section headings ----- */
.section-heading {
    color: var(--mfp-navy);
    font-weight: 700;
}

.section-subheading {
    color: var(--mfp-red);
}

/* ----- Service / product cards ----- */
.service-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    height: 100%;
    background: #f8f8f8;
}

    .service-card .card-img-top {
        height: 220px;
        object-fit: cover;
    }

    .service-card .card-body h5 {
        font-size: 1.3rem;
        font-weight: 600;
        text-transform: uppercase;
    }

/* ----- Home services hover overlay ----- */
.product-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    cursor: pointer;
}

    .product-thumb img {
        width: 100%;
        height: 400px;
        object-fit: cover;
        transition: transform 0.35s ease;
        display: block;
    }

    .product-thumb:hover img {
        transform: scale(1.05);
    }

.product-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(to top, rgba(37,39,40,0.95) 0%, rgba(37,39,40,0.6) 40%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 1.5rem;
    text-decoration: none;
}

.product-thumb:hover .product-overlay {
    opacity: 1;
}

.product-overlay h5 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-overlay p {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* ----- Bullet lists with Material Symbols ----- */
.bullets {
    list-style: none;
    padding: 0;
}

    .bullets li {
        padding-bottom: 0.5rem;
        padding-left: 2rem;
        position: relative;
    }

        .bullets li::before {
            font-family: 'Material Symbols Outlined';
            content: "radio_button_checked";
            color: var(--mfp-red);
            font-size: 1.1rem;
            position: absolute;
            left: 0;
            top: 0.1rem;
        }

/* ----- Section spacing ----- */
.section-block {
    padding: 4rem 0;
}

/* ----- Clients bar ----- */
.clients-bar {
    background-color: #d5ebff;
    padding: 2.5rem 0;
}

    .clients-bar h2 {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 1.5rem;
    }

    .clients-bar img {
        height: 40px;
        object-fit: contain;
    }

/* ----- Footer ----- */
.footer-main {
    background-color: var(--mfp-navy);
    padding: 4rem 0 2rem;
    color: #fff;
}

    .footer-main a {
        color: #fff;
        text-decoration: none;
    }

    .footer-main .footer-logo img {
        width: 140px;
    }

    .footer-main .footer-contacts .material-symbols-outlined {
        color: var(--mfp-red);
        font-size: 1.8rem;
        vertical-align: middle;
        margin-right: 0.5rem;
    }

    .footer-main .footer-contacts li {
        margin-bottom: 1rem;
        list-style: none;
    }

    .footer-main .footer-sitemap li {
        list-style: none;
        line-height: 1.9rem;
    }

.footer-accreditations {
    background-color: var(--mfp-navy);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.15);
}

    .footer-accreditations img {
        height: 55px;
        margin: 0 1rem;
        object-fit: contain;
    }

.footer-copyright {
    background-color: var(--mfp-navy);
    border-top: 1px solid rgba(255,255,255,0.3);
    padding: 1rem 0;
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    text-align: center;
}

/* ----- Testimonial cards ----- */
.testimonial-card {
    background: #eaf3ff;
    border: none;
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
}

/* ----- CaseStudy cards ----- */
.casestudy-card {
    background: #f8f8f8;
    border: none;
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
}

    .casestudy-card h4 {
        color: var(--mfp-navy);
        font-size: 1.4rem;
        font-weight: 700;
        text-transform: uppercase;
    }

    .casestudy-card img.client-logo {
        height: 36px;
        object-fit: contain;
        margin-bottom: 0.75rem;
    }

/* ----- Contact page icons ----- */
.contact-details .material-symbols-outlined {
    color: var(--mfp-red);
    font-size: 1.6rem;
    vertical-align: middle;
    margin-right: 0.4rem;
}

.contact-details li {
    list-style: none;
    margin-bottom: 0.75rem;
}

/* ----- Accreditation logos (About page inline) ----- */
.accreditation-logos img {
    height: 60px;
    object-fit: contain;
    margin: 0.75rem 1rem;
}

/* ----- Sponsor grid images ----- */
.sponsor-img {
    width: 100%;
    border-radius: 0.5rem;
    margin-top: 0.75rem;
}

/* ----- Account / auth pages ----- */
.site-header.account {
    background-image: url('../img/img-home-001.jpg');
    min-height: 280px;
}

.btn-mfp-red {
    background-color: var(--mfp-red);
    color: #fff;
    border: none;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

    .btn-mfp-red:hover,
    .btn-mfp-red:focus {
        background-color: #9a0000;
        color: #fff;
    }

.auth-card {
    border: none;
    border-top: 4px solid var(--mfp-navy);
    border-radius: 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

    .auth-card .card-header {
        background-color: var(--mfp-navy);
        color: #fff;
        font-family: 'Roboto Condensed', sans-serif;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-size: 1rem;
        padding: 0.85rem 1.5rem;
        border-radius: 0;
    }

/* ----- Sites / UK map page ----- */
.site-header.sites {
    background-image: url('../img/img-title-003.jpg');
    min-height: 500px;
}

.map-container {
    position: relative;
    /* Native SVG aspect ratio: 628.09w × 1051.48h */
    aspect-ratio: 628 / 1051;
    width: min(100%, 340px); /* ~570px tall at 340px wide */
    margin: 0 auto;
    user-select: none;
    overflow: visible; /* panels must escape the container */
}

.map-container > svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.map-container svg path {
    fill: #cdd6f0;
    stroke: #fff;
    stroke-width: 0.5;
    transition: fill 0.15s;
}

.map-container svg path:hover {
    fill: #a8bbde;
}

/* Pin anchor point — transform puts the tip of the icon at the lat/lng coordinate */
.map-pin {
    position: absolute;
    transform: translate(-50%, -100%);
    z-index: 10;
}

.map-pin-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: var(--mfp-red);
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
    cursor: pointer;
    padding: 0;
    transition: background 0.15s, transform 0.15s;
}

.map-pin-btn .material-symbols-outlined {
    transform: rotate(45deg);
    font-size: 1rem;
    color: #fff;
    font-variation-settings: 'FILL' 1;
}

.map-pin:hover .map-pin-btn,
.map-pin.is-active .map-pin-btn {
    background: var(--mfp-navy);
}

/* Info panel — hidden by default */
.map-pin-panel {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    width: 220px;
    background: #fff;
    border-top: 3px solid var(--mfp-red);
    border-radius: 0 0 0.4rem 0.4rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    padding: 0.75rem 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
    z-index: 20;
}

/* Open to the right of the pin by default */
.map-pin[data-side="right"] .map-pin-panel {
    left: 50%;
}

/* Open to the left when pin is near the right edge */
.map-pin[data-side="left"] .map-pin-panel {
    right: 50%;
}

/* Reveal on hover (desktop) or when JS adds .is-active (tap / mobile) */
.map-pin:hover .map-pin-panel,
.map-pin.is-active .map-pin-panel {
    opacity: 1;
    pointer-events: auto;
}

.map-pin-name {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    color: var(--mfp-navy);
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.map-pin-meta {
    font-size: 0.75rem;
    color: #444;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;
}

.map-pin-meta .material-symbols-outlined {
    font-size: 0.9rem;
    color: var(--mfp-red);
    flex-shrink: 0;
    margin-top: 1px;
    font-variation-settings: 'FILL' 1;
}

.map-pin-services {
    margin-top: 0.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.map-pin-badge {\n    background-color: var(--mfp-navy);\n    color: #fff;\n    font-size: 0.65rem;\n    font-family: 'Roboto Condensed', sans-serif;\n    letter-spacing: 0.03em;\n    border-radius: 0.2rem;\n    padding: 0.2rem 0.45rem;\n    font-weight: 400;\n}\n\n/* Count badge on clustered pins */\n.map-pin-count {\n    position: absolute;\n    top: -6px;\n    right: -6px;\n    transform: rotate(45deg);\n    background: var(--mfp-navy);\n    color: #fff;\n    font-size: 0.6rem;\n    font-family: 'Roboto Condensed', sans-serif;\n    font-weight: 700;\n    width: 1.1rem;\n    height: 1.1rem;\n    border-radius: 50%;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    line-height: 1;\n}\n\n/* Divider between sites inside a merged panel */\n.map-pin-divider {\n    border-color: rgba(11, 11, 69, 0.2);\n    margin: 0.5rem 0;\n}