/* ================================================================
   Bunyoro Finance Bank — System Maintenance
   Stylesheet: css/style.css
   Version: 1.0
   ================================================================ */

/* ── Custom Properties ─────────────────────────────────────────── */
:root {
    --brand-red:    #c0392b;
    --brand-dark:   #96281b;
    --brand-muted:  rgba(192, 57, 43, 0.12);
    --gray-page:    #dfe3e8;
    --gray-surface: #f2f4f7;
    --gray-line:    #c8cdd4;
    --white:        #ffffff;
    --ink-primary:  #1c2331;
    --ink-body:     #3d4451;
    --ink-muted:    #6b7280;
    --font-main:    'Inter', 'Segoe UI', Arial, sans-serif;
    --radius-card:  6px;
    --radius-sm:    4px;
    --shadow-card:  0 1px 4px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.07);
    --transition:   0.22s ease;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Base ──────────────────────────────────────────────────────── */
html, body {
    height: 100%;
    font-family: var(--font-main);
    font-size: 14px;
    line-height: 1.6;
    background-color: var(--gray-page);
    color: var(--ink-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
}

/* Allow scroll on small/short viewports */
@media (max-height: 600px), (max-width: 620px) {
    html, body { overflow: auto; }
}

/* ── Page Shell ────────────────────────────────────────────────── */
.shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
}

/* ── Main Card ─────────────────────────────────────────────────── */
.card {
    width: 100%;
    max-width: 800px;
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    border-top: 4px solid var(--brand-red);
    overflow: hidden;
}

/* ── Top Bar ───────────────────────────────────────────────────── */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px 14px;
    border-bottom: 1px solid var(--gray-line);
    background: var(--white);
    flex-wrap: wrap;
    gap: 10px;
}

.logo-wrap img {
    height: 34px;
    width: auto;
    display: block;
}

/* Status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--brand-muted);
    border: 1px solid rgba(192,57,43,0.22);
    color: var(--brand-red);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 3px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-red);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(192,57,43,0.35); }
    50%       { opacity: 0.75; box-shadow: 0 0 0 4px rgba(192,57,43,0); }
}

/* ── Two-Column Body ───────────────────────────────────────────── */
.body {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.col-left {
    padding: 26px 28px;
    border-right: 1px solid var(--gray-line);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.col-right {
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: var(--gray-surface);
}

/* ── Heading ───────────────────────────────────────────────────── */
.hero-heading {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--ink-primary);
}

.hero-heading .accent { color: var(--brand-red); }

.hero-desc {
    font-size: 13px;
    line-height: 1.75;
    color: var(--ink-muted);
    padding-left: 12px;
    border-left: 3px solid var(--gray-line);
}

/* ── Countdown ─────────────────────────────────────────────────── */
.countdown-wrap {}

.countdown-label {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 10px;
}

.countdown-row {
    display: flex;
    gap: 8px;
}

.count-block {
    flex: 1;
    text-align: center;
    background: var(--gray-surface);
    border: 1px solid var(--gray-line);
    border-radius: var(--radius-sm);
    padding: 10px 4px 8px;
}

.count-num {
    display: block;
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 800;
    color: var(--brand-red);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    transition: transform 0.15s ease;
}

.count-block.flip .count-num {
    transform: scale(1.14);
}

.count-unit {
    display: block;
    font-size: 8.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-top: 5px;
    font-weight: 600;
}

/* ── Progress ──────────────────────────────────────────────────── */
.progress-wrap {}

.progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 10.5px;
    color: var(--ink-muted);
    font-weight: 500;
    margin-bottom: 7px;
}

.progress-track {
    height: 4px;
    background: var(--gray-line);
    border-radius: 100px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--brand-red);
    border-radius: 100px;
    transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Right Column: Info Blocks ─────────────────────────────────── */
.info-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-primary);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-line);
}

.info-section-icon {
    font-size: 14px;
    line-height: 1;
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.info-list li {
    font-size: 12.5px;
    color: var(--ink-body);
    padding-left: 14px;
    position: relative;
    line-height: 1.55;
}

.info-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--brand-red);
}

.info-list li strong {
    color: var(--ink-primary);
    font-weight: 600;
}

/* ── Bottom Bar ────────────────────────────────────────────────── */
.bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 28px;
    border-top: 1px solid var(--gray-line);
    background: #eaecef;
    flex-wrap: wrap;
    gap: 10px;
}

.security-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 470px;
}

.security-note .lock-icon {
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--ink-muted);
}

.security-note p {
    font-size: 11px;
    color: var(--ink-muted);
    line-height: 1.55;
}

.security-note strong {
    color: #7b2316;
    font-weight: 700;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-red);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition), box-shadow var(--transition);
    box-shadow: 0 1px 4px rgba(192,57,43,0.3);
}

.contact-btn:hover,
.contact-btn:focus {
    background: var(--brand-dark);
    box-shadow: 0 2px 8px rgba(192,57,43,0.35);
    outline: none;
}

.contact-btn:focus-visible {
    outline: 2px solid var(--brand-red);
    outline-offset: 3px;
}

/* ── Footer ────────────────────────────────────────────────────── */
.page-footer {
    font-size: 10.5px;
    color: #8a8f9a;
    text-align: center;
    margin-top: 12px;
    letter-spacing: 0.01em;
}

/* ── Responsive: Mobile ────────────────────────────────────────── */
@media (max-width: 620px) {
    .shell {
        justify-content: flex-start;
        padding-top: 20px;
    }
    .top-bar {
        padding: 14px 18px 12px;
    }
    .body {
        grid-template-columns: 1fr;
    }
    .col-left {
        border-right: none;
        border-bottom: 1px solid var(--gray-line);
        padding: 20px 18px;
    }
    .col-right {
        padding: 20px 18px;
    }
    .bottom-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 18px;
    }
    .contact-btn {
        width: 100%;
        justify-content: center;
    }
}
