/* =========================================================
   Drain Africa components
   File: wwwroot/css/drain-components.css
   ========================================================= */

.da-topbar {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(7, 23, 22, .08);
}

.da-nav {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.da-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: var(--da-ink) !important;
    font-weight: 950;
    letter-spacing: -.035em;
}

.da-brand img {
    width: 50px;
    height: 50px;
}

.da-brand-text small {
    display: block;
    margin-top: -.1rem;
    color: var(--da-muted);
    font-size: .72rem;
    letter-spacing: .01em;
    font-weight: 700;
}

.da-nav-links {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
}

.da-nav-links a {
    color: #28413d;
    font-weight: 800;
    border-radius: 999px;
    padding: .55rem .8rem;
}

.da-nav-links a:hover,
.da-nav-links a.active {
    background: rgba(20, 184, 122, .12);
    color: var(--da-green);
}

.da-pulse-rail {
    background: linear-gradient(90deg, var(--da-deep), #07523d 48%, #0b5a45);
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.12);
    overflow: hidden;
}

.da-pulse-inner {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: .85rem;
    white-space: nowrap;
}

.da-pulse-title {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .78rem;
}

.da-pulse-dot {
    width: .65rem;
    height: .65rem;
    background: var(--da-mint);
    border-radius: 999px;
    box-shadow: 0 0 0 .22rem rgba(20,184,122,.2), 0 0 1.4rem rgba(20,184,122,.8);
}

.da-pulse-items {
    display: flex;
    align-items: center;
    gap: .5rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.da-pulse-items::-webkit-scrollbar { display: none; }

.da-pulse-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #eafff5;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
    padding: .35rem .68rem;
    font-size: .78rem;
    font-weight: 800;
}

.da-alert-strip {
    border-radius: var(--da-radius);
    background: linear-gradient(135deg, rgba(247,181,0,.18), rgba(220,38,38,.08));
    border: 1px solid rgba(247,181,0,.38);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: .85rem;
}

.da-service-card {
    position: relative;
    overflow: hidden;
    padding: 1.35rem;
    min-height: 220px;
}

.da-service-card::after {
    content: "";
    position: absolute;
    right: -2rem;
    top: -2rem;
    width: 9rem;
    height: 9rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20,184,122,.2), transparent 68%);
}

.da-service-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgba(20,184,122,.12);
    color: var(--da-green);
    font-size: 1.45rem;
    margin-bottom: 1rem;
}

.da-service-card h3 {
    font-weight: 900;
    letter-spacing: -.025em;
    margin-bottom: .5rem;
}

.da-service-card p {
    color: var(--da-muted);
    line-height: 1.62;
}

.da-incident-map {
    min-height: 430px;
    border-radius: var(--da-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(7,23,22,.12);
    background:
        linear-gradient(90deg, rgba(7,23,22,.07) 1px, transparent 1px),
        linear-gradient(rgba(7,23,22,.07) 1px, transparent 1px),
        radial-gradient(circle at 30% 24%, rgba(220,38,38,.18), transparent 7rem),
        radial-gradient(circle at 70% 68%, rgba(247,181,0,.18), transparent 8rem),
        #e8f2ec;
    background-size: 40px 40px, 40px 40px, auto, auto, auto;
    position: relative;
}

.da-map-pin {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: var(--da-danger);
    border: 3px solid #fff;
    box-shadow: 0 10px 24px rgba(220,38,38,.35), 0 0 0 8px rgba(220,38,38,.12);
}

.da-map-pin.warning {
    background: var(--da-gold);
    box-shadow: 0 10px 24px rgba(247,181,0,.35), 0 0 0 8px rgba(247,181,0,.15);
}

.da-map-pin.ok {
    background: var(--da-mint);
    box-shadow: 0 10px 24px rgba(20,184,122,.32), 0 0 0 8px rgba(20,184,122,.13);
}

.da-map-card {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    right: 1rem;
    max-width: 430px;
}

.da-step-list {
    counter-reset: steps;
    display: grid;
    gap: .8rem;
}

.da-step {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: .85rem;
    align-items: start;
}

.da-step::before {
    counter-increment: steps;
    content: counter(steps);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    color: #fff;
    background: var(--da-green);
    box-shadow: 0 10px 20px rgba(11,90,69,.2);
}

.da-step h4 {
    font-size: 1rem;
    font-weight: 900;
    margin: 0 0 .15rem;
}

.da-step p {
    margin: 0;
    color: var(--da-muted);
    line-height: 1.55;
}

.da-kpi {
    padding: 1.1rem;
    border-radius: var(--da-radius);
    background: #fff;
    border: 1px solid rgba(7,23,22,.1);
}

.da-kpi strong {
    display: block;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1;
    letter-spacing: -.06em;
    color: var(--da-green);
    font-weight: 950;
}

.da-kpi span {
    display: block;
    margin-top: .35rem;
    color: var(--da-muted);
    font-weight: 800;
}

.da-footer {
    background: var(--da-ink);
    color: rgba(255,255,255,.78);
    padding: 2.4rem 0;
}

.da-footer a {
    color: #e9fff7;
}

@media (max-width: 860px) {
    .da-nav {
        align-items: flex-start;
        flex-direction: column;
        padding: .85rem 0;
    }

    .da-nav-links {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
}

.drain-body {
    background: #f5f7f4;
    color: #10231f;
}

.drain-full-width-page {
    width: 100%;
}

.drain-incident-strip {
    background: linear-gradient(90deg, #06241f 0%, #0b3b34 50%, #06241f 100%);
    color: #fff;
    border-bottom: 1px solid rgba(218, 168, 75, 0.35);
    font-size: .875rem;
}

.drain-incident-shell {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
}

.drain-incident-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex: 0 0 auto;
    min-width: 210px;
}

.drain-pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #26e58f;
    box-shadow: 0 0 0 rgba(38, 229, 143, .75);
    animation: drainPulse 1.6s infinite;
}

.drain-incident-title {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .75rem;
    color: #f2c15d;
}

.drain-incident-subtitle {
    font-size: .7rem;
    color: rgba(255,255,255,.75);
}

.drain-incident-feed {
    flex: 1 1 auto;
    overflow: hidden;
    white-space: nowrap;
}

.drain-incident-track {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    min-width: max-content;
}

.drain-incident-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .65rem;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.92);
}

    .drain-incident-pill strong {
        color: #f2c15d;
    }

.drain-incident-separator {
    color: rgba(255,255,255,.35);
}

.drain-incident-cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .45rem .85rem;
    border-radius: 999px;
    background: #f2c15d;
    color: #08231f;
    font-weight: 800;
    text-decoration: none;
}

    .drain-incident-cta:hover {
        background: #ffd36f;
        color: #08231f;
    }

@keyframes drainPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(38, 229, 143, .75);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(38, 229, 143, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(38, 229, 143, 0);
    }
}

@keyframes drainIncidentSlide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.drain-footer {
    background: #071d1a;
    color: rgba(255,255,255,.82);
    padding: 2rem 0 1rem;
}

.drain-footer-brand {
    color: #f2c15d;
    font-size: 1.15rem;
}

.drain-footer-link {
    display: block;
    color: rgba(255,255,255,.72);
    text-decoration: none;
    font-size: .875rem;
    margin-bottom: .4rem;
}

    .drain-footer-link:hover {
        color: #f2c15d;
    }

.drain-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.09);
    margin-top: 1.5rem;
    padding-top: 1rem;
}

.drain-navbar-solid {
    background: rgba(7, 29, 26, .96) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,.16);
}

.drain-navbar-hidden {
    transform: translateY(-100%);
}

@media (max-width: 768px) {
    .drain-incident-shell {
        flex-wrap: wrap;
        padding: .75rem 0;
    }

    .drain-incident-brand {
        min-width: 100%;
    }

    .drain-incident-cta {
        width: 100%;
    }
}


/* =========================================================
   Drain Africa Header / Dropdown Layering Fix
   Ensures Services dropdown appears above hero and pulse strip
   ========================================================= */

.drain-header {
    position: sticky;
    top: 0;
    z-index: 5000;
    overflow: visible;
}

.drain-navbar {
    position: relative;
    z-index: 5001;
    overflow: visible;
}

.drain-nav-container,
#drainNavMenu,
.drain-nav-links,
.drain-account-nav,
.navbar-collapse {
    overflow: visible !important;
}

/* Bootstrap dropdown should sit above all homepage strips/cards */
.drain-navbar .dropdown-menu,
.drain-dropdown-menu,
.drain-profile-menu {
    position: absolute;
    z-index: 6000;
}

/* Keep the response pulse underneath the nav/dropdowns */
.drain-incident-strip {
    position: relative;
    z-index: 1000;
}

/* Keep hero sections below nav/dropdowns */
.drain-hero-wrapper,
.drain-home-hero,
.drain-home-shell,
.drain-full-width-page {
    position: relative;
    z-index: 1;
}