html {
    scroll-behavior: smooth;
}

/* Override Bootstrap primary colour to brand blue */
:root {
    --bs-primary: #00b4ff;
    --bs-primary-rgb: 0, 180, 255;
    --bs-btn-bg: #00b4ff;
    --bs-btn-border-color: #00b4ff;
    --bs-btn-hover-bg: #009fd9;
    --bs-btn-hover-border-color: #009fd9;
}

/* Each section fills the full viewport height */
.scroll-section {
    min-height: 100vh;
    scroll-snap-align: start;
}

/* Enable scroll snapping on the body */
body {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
}

/* ── Main Logo ──────────────────────────────────────── */
.main-logo {
    max-width: 60%;
    max-height: 60vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ── What We Do ─────────────────────────────────────── */
.wwd-title-bar {
    width: 60px;
    height: 4px;
    background-color: #ff0000;
    border-radius: 2px;
}

.wwd-icon {
    font-size: 2.2rem;
}

.wwd-card {
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .wwd-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09) !important;
    }

/* ── Contact Widget ─────────────────────────────────── */
.contact-widget {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 280px;
    border-radius: 12px;
    overflow: hidden;
    z-index: 1050;
    background: #fff;
    border: 1px solid #dee2e6;
}

.contact-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #00638c;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
}

.contact-chevron {
    font-size: 0.7rem;
    transition: transform 0.25s ease;
}

.contact-widget.collapsed .contact-chevron {
    transform: rotate(180deg);
}

.contact-widget-body {
    padding: 14px;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 400px;
    opacity: 1;
    overflow: hidden;
}

.contact-widget.collapsed .contact-widget-body {
    max-height: 0;
    opacity: 0;
    padding: 0 14px;
}

/* ── Contact Widget Send Button ─────────────────────── */
#contact-form .btn-primary {
    background-color: #00638c;
    border-color: #00638c;
}

    #contact-form .btn-primary:hover,
    #contact-form .btn-primary:focus,
    #contact-form .btn-primary:active {
        background-color: #cc0000;
        border-color: #cc0000;
    }

/* ── Home Navigation Menu ───────────────────────────── */
.home-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.home-nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 4px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

    .home-nav-link:hover {
        color: #ffffff;
        border-bottom-color: #ffffff;
        opacity: 0.8;
    }

.home-nav-divider {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.7rem;
    user-select: none;
}

/* ── Location text ──────────────────────────────────── */
.location-text {
    font-size: 0.85rem;
    text-align: center;
    padding: 0 1rem;
}

/* ── Intro & location & nav – scale up for larger screens ── */
@media (min-width: 576px) {
    .home-nav-link,
    .home-nav-divider    { font-size: 0.8rem; }
    .home-nav            { gap: 0.75rem; }
    .location-text       { font-size: 1rem; }
}

@media (min-width: 768px) {
    .home-nav-link,
    .home-nav-divider    { font-size: 0.9rem; }
    .home-nav            { gap: 1rem; }
    .location-text       { font-size: 1.1rem; }
}

@media (min-width: 992px) {
    .home-nav-link,
    .home-nav-divider    { font-size: 1rem; }
    .home-nav            { gap: 1.25rem; }
    .location-text       { font-size: 1.25rem; }
}

/* ── Intro text ─────────────────────────────────────── */
.intro-text {
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    padding: 0 1rem;
}

@media (min-width: 576px) { .intro-text { font-size: 1.4rem;  } }
@media (min-width: 768px) { .intro-text { font-size: 1.75rem; } }
@media (min-width: 992px) { .intro-text { font-size: 2rem;    } }

/* ── Hide contact widget on small screens ───────────── */
@media (max-width: 575.98px) {
    .contact-widget {
        display: none !important;
    }
}