/* ==========================================================================
   QuickCare Design System & Clinical Tokens
   ========================================================================== */
:root {
    --brand: #009b9e;              /* Bright Medical Teal */
    --brand-dark: #042F2E;         /* Deep Spruce */
    --brand-hover: #0F766E;
    --brand-light: #CCFBF1;

    --navy: #0b1e36;               /* Deep Brand Navy */
    --slate: #334155;              /* Body Text */
    --muted: #64748B;              /* Meta & Subtitles */
    --border: #E2E8F0;             /* Crisp Slate 200 Border */
    --light-bg: #F8FAFC;           /* Card & Module Background */

    --blue: #0284C7;               /* SDG 3.8 Medical Blue */
    --purple: #7E22CE;             /* SDG 10.2 Inclusion Violet */
    --cyan: #0891B2;               /* WHO Standards Cyan */
    --green: #059669;              /* Live Queue Active State */
    --emergency: #E11D48;          /* Emergency Preemption Red */

    --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    color: var(--slate);
    background-color: #FFFFFF;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   Navigation Bar & Brand Identity
   ========================================================================== */
.navbar {
    height: 74px;
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Brand Link Container */
.logo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    text-decoration: none !important;
    height: 44px !important;
}

/* Constrains sticker to crisp navbar mark */
.brand-logo-img {
    height: 40px !important;
    width: 40px !important;
    object-fit: contain !important;
    display: block !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

/* Two-Tone Brand Typography */
.brand-text {
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
}

/* Deep Navy pulled directly from the hands */
.brand-text .brand-quick,
.brand-quick {
    color: #0e2f57 !important;
}

/* Bright medical teal pulled directly from the stopwatch */
.brand-text .brand-care,
.brand-care {
    color:#009b9e !important;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    margin-right: 1.75rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--brand);
}

/* ==========================================================================
   Buttons & Micro-Badges
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1.3rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--navy);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: #1E293B;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #FFFFFF;
    color: var(--navy);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--light-bg);
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background-color: var(--brand-light);
    color: var(--brand);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

/* ==========================================================================
   Clinical Status Pill & Micro-Interactions
   ========================================================================== */
.clinical-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 1rem 0.4rem 0.85rem;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
    margin-bottom: 1.5rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.clinical-status-pill:hover {
    border-color: var(--brand);
    box-shadow: 0 4px 16px -2px rgba(13, 148, 136, 0.15);
    transform: translateY(-1px);
}

.pill-ping {
    position: relative;
    width: 10px;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ping-core {
    width: 8px;
    height: 8px;
    background-color: #10B981;
    border-radius: 50%;
    z-index: 2;
}

.ping-wave {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #10B981;
    border-radius: 50%;
    animation: live-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0.75;
}

@keyframes live-ping {
    75%, 100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

.pill-title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--navy);
}

.pill-separator {
    width: 1px;
    height: 12px;
    background-color: #CBD5E1;
}

.pill-meta {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.pill-arrow {
    stroke: var(--muted);
    transition: transform 0.2s ease, stroke 0.2s ease;
}

.clinical-status-pill:hover .pill-arrow {
    transform: translateX(3px);
    stroke: var(--brand);
}

.clinical-status-pill:hover .pill-title {
    color: var(--brand);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.ussd-badge {
    background: #FFFFFF;
    border: 2px solid var(--navy);
    padding: 0.5rem 1.1rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.ussd-label {
    font-size: 0.68rem;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ussd-code {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 0.5px;
}

/* ==========================================================================
   RESPONSIVE HERO & USSD FLOW WORKFLOW
   ========================================================================== */
html, body {
    overflow-x: hidden;
    width: 100%;
}

.hero {
    position: relative;
    background-color: #FAFAFB;
    background-image: 
        radial-gradient(at 15% 15%, rgba(0, 155, 158, 0.08) 0px, transparent 45%),
        radial-gradient(at 85% 20%, rgba(11, 30, 54, 0.06) 0px, transparent 45%),
        radial-gradient(#CBD5E1 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 28px 28px;
    width: 100%;
    padding: 4rem 1.5rem;
    box-sizing: border-box;
    border-bottom: 1px solid #E2E8F0;
    overflow: hidden;
}

/* Fluid, centered container */
.hero-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 1240px !important;
    margin: 0 auto !important;
    gap: 2rem !important;
    box-sizing: border-box !important;
}

/* Left Column Content */
.hero-content {
    flex: 1 1 420px !important;
    max-width: 500px !important;
    min-width: 0 !important;
}

.hero-content h1 {
    font-size: clamp(2rem, 3.2vw, 2.75rem) !important;
    line-height: 1.18 !important;
    white-space: normal !important;
    margin: 1rem 0 !important;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.04em;
}

.hero-content p {
    font-size: 1.05rem !important;
    line-height: 1.65 !important;
    color: var(--muted) !important;
    margin-bottom: 1.75rem !important;
}

/* Right Column: Visual Flow Cluster */
.hero-flow-row {
    flex: 1.2 1 auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 1rem !important;
    min-width: 0 !important;
}

/* Main Dialer Handset */
.flow-main-card {
    flex: 1 1 340px !important;
    max-width: 400px !important;
    min-width: 240px !important;
    border-radius: 1.25rem !important;
    overflow: hidden !important;
    box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.14) !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
}

.flow-main-img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover !important;
}

/* Directional Arrow */
.flow-arrow-divider {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    flex-shrink: 0 !important;
}

.flow-arrow-line {
    position: relative !important;
    width: 18px !important;
    height: 2px !important;
    background: #009b9e !important;
}

.flow-arrow-line::after {
    content: '' !important;
    position: absolute !important;
    right: -2px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 0 !important;
    height: 0 !important;
    border-top: 5px solid transparent !important;
    border-bottom: 5px solid transparent !important;
    border-left: 6px solid #009b9e !important;
}

/* 3 Stacked Workflow Cards */
.flow-stack-cards {
    flex: 0 0 190px !important;
    width: 190px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
}

.stack-card-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.85rem !important;
    padding: 0.45rem 0.65rem !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04) !important;
}

.stack-card-img-wrap {
    width: 42px !important;
    flex-shrink: 0 !important;
}

.stack-card-img-wrap img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
}

.stack-card-tag {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    white-space: nowrap !important;
}

.tag-alert {
    color: #dc2626 !important;
}

/* ==========================================================================
   SDG Radar Console Section
   ========================================================================== */
.sdg-showcase {
    padding: 6rem 0;
    background-color: #EEF2F6;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
}

.sdg-header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 3.5rem;
}

.section-tag {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--brand);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.sdg-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.sdg-header p {
    color: var(--muted);
    font-size: 1.05rem;
}

.sdg-console-card {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 24px;
    padding: 3.5rem 3rem;
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3.5rem;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05),
                0 20px 35px -8px rgba(15, 23, 42, 0.1);
}

.console-dial-wrapper {
    display: flex;
    justify-content: center;
}

.console-dial {
    width: 210px;
    height: 210px;
    border: 2px dashed #CBD5E1;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dial-center {
    width: 105px;
    height: 105px;
    background: var(--navy);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
}

.dial-sup {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #38BDF8;
}

.dial-val {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
}

.dial-node {
    position: absolute;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: var(--slate);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dial-node:hover {
    border-color: var(--navy);
}

.dial-node.active {
    background: var(--navy);
    color: #FFFFFF;
    border-color: var(--navy);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}

.n-1 { top: -12px; left: 50%; transform: translateX(-50%); }
.n-2 { bottom: 15px; left: 0; }
.n-3 { bottom: 15px; right: 0; }

.sdg-panel {
    display: none;
    animation: slideUp 0.3s ease forwards;
}

.sdg-panel.active {
    display: block;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-badge {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.badge-blue { background: #EFF6FF; color: var(--blue); }
.badge-purple { background: #FAF5FF; color: var(--purple); }
.badge-cyan { background: #ECFEFF; color: var(--cyan); }

.sdg-panel h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.sdg-panel p {
    color: var(--slate);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.panel-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--light-bg);
    border: 1px solid var(--border);
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

.panel-stat strong {
    color: var(--navy);
    font-size: 1rem;
}

.console-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.nav-arr {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #FFFFFF;
    color: var(--navy);
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-arr:hover {
    background: var(--light-bg);
    border-color: var(--brand);
    color: var(--brand);
}

.nav-indicators {
    display: flex;
    gap: 0.4rem;
}

.bar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #CBD5E1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bar-dot.active {
    background: var(--navy);
    width: 20px;
    border-radius: 999px;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
    padding: 6rem 0 7rem;
    background: #FFFFFF;
}

.section-heading {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-heading h2 {
    font-size: 2.15rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

.section-heading p {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 2.25rem 2rem;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.03),
                0 10px 20px -3px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.09),
                0 0 0 1px rgba(13, 148, 136, 0.25);
    border-color: var(--brand);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.icon-teal { background: var(--brand-light); color: var(--brand); }
.icon-blue { background: #E0F2FE; color: var(--blue); }
.icon-red  { background: #FFE4E6; color: var(--emergency); }

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.6rem;
}

.feature-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #0F172A;
    color: #94A3B8;
    padding: 3.5rem 0;
    border-top: 1px solid #1E293B;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    color: #94A3B8;
    margin: 0;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #CBD5E1;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #2DD4BF;
}

/* ==========================================================================
   Responsive Adaptations & Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
    .hero-container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2.5rem !important;
    }

    .hero-content {
        max-width: 650px !important;
        width: 100% !important;
    }

    .hero-flow-row {
        width: 100% !important;
        justify-content: center !important;
    }
}

@media (max-width: 992px) {
    .sdg-console-card {
        grid-template-columns: 1fr;
        padding: 2.5rem 1.75rem;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .footer-container {
        flex-direction: column;
        gap: 1.25rem;
        text-align: center;
    }

    .footer-links {
        gap: 1.25rem;
    }
}

@media (max-width: 640px) {
    .hero-flow-row {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }

    .flow-arrow-divider {
        transform: rotate(90deg) !important;
        margin: 0.25rem 0 !important;
    }

    .flow-main-card {
        width: 100% !important;
        max-width: 320px !important;
    }

    .flow-stack-cards {
        width: 100% !important;
        max-width: 280px !important;
    }
}