/* =====================================================================
   MCash Software — Policy Portal Theme
   ---------------------------------------------------------------------
   Brand colours are defined as CSS custom properties below so they can
   be swapped for MCash's exact brand hex codes in one place. The values
   used here are a placeholder fintech palette (deep teal + navy + gold
   accent) — update them to match the official MCash brand guidelines.
   ===================================================================== */

:root {
    /* --- Core brand palette: official Mcash Uganda brand colours --- */
    --mcash-primary:        #F7941E; /* rgb(247, 148, 30) — primary brand orange */
    --mcash-primary-dark:   #C67618; /* darker shade for hover/active states */
    --mcash-primary-light:  #FAB462; /* lighter tint for icon backgrounds etc. */
    --mcash-secondary:      #3D505A; /* rgb(61, 80, 90) — secondary slate/navy */
    --mcash-accent:         #F7941E; /* reuses primary for CTAs/highlights */
    --mcash-accent-dark:    #C67618;

    /* --- Neutrals --- */
    --mcash-bg:             #F8F7F6;
    --mcash-surface:        #FFFFFF;
    --mcash-border:         #E4E2E0;
    --mcash-text:           #262322;
    --mcash-text-muted:     #6B6560;
    --mcash-text-on-dark:   #F2F4F5;

    --mcash-radius:         10px;
    --mcash-shadow:         0 2px 10px rgba(61, 80, 90, 0.1);
    --mcash-shadow-lg:      0 8px 28px rgba(61, 80, 90, 0.16);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--mcash-bg);
    color: var(--mcash-text);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--mcash-primary); text-decoration: none; }
a:hover { color: var(--mcash-primary-dark); text-decoration: underline; }

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Header / Navigation --- */
.site-header {
    background: var(--mcash-secondary);
    color: var(--mcash-text-on-dark);
    box-shadow: var(--mcash-shadow);
}

.site-header .nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}

.brand .mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--mcash-primary);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
}

.brand small {
    display: block;
    font-weight: 400;
    font-size: 0.7rem;
    color: var(--mcash-primary-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.site-nav a {
    color: var(--mcash-text-on-dark);
    margin-left: 24px;
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.88;
}

.site-nav a:hover {
    color: #fff;
    opacity: 1;
    text-decoration: none;
    border-bottom: 2px solid var(--mcash-accent);
}

/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, var(--mcash-primary) 0%, var(--mcash-primary-dark) 100%);
    color: #fff;
    padding: 64px 0 72px;
}

.hero h1 {
    font-size: 2.3rem;
    margin: 0 0 12px;
    color: #fff;
}

.hero p {
    max-width: 640px;
    font-size: 1.05rem;
    color: var(--mcash-text-on-dark);
    opacity: 0.9;
    margin: 0;
}

/* --- Main content --- */
.page-content {
    padding: 48px 0 72px;
}

/* --- Policy cards grid (landing page) --- */
.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.policy-card {
    background: var(--mcash-surface);
    border: 1px solid var(--mcash-border);
    border-radius: var(--mcash-radius);
    box-shadow: var(--mcash-shadow);
    padding: 28px 24px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.policy-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mcash-shadow-lg);
}

.policy-card .icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: rgba(247, 148, 30, 0.12);
    color: var(--mcash-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.policy-card h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    color: var(--mcash-secondary);
}

.policy-card p {
    color: var(--mcash-text-muted);
    font-size: 0.92rem;
    margin: 0 0 18px;
}

.btn {
    display: inline-block;
    background: var(--mcash-primary);
    color: #fff;
    padding: 9px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--mcash-primary-dark);
    color: #fff;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--mcash-primary-light);
    color: var(--mcash-primary);
}

.btn-outline:hover {
    background: var(--mcash-primary);
    color: #fff;
}

.section-intro {
    max-width: 720px;
    margin: 0 auto 8px;
    text-align: center;
}

.section-intro h2 {
    color: var(--mcash-secondary);
    margin-bottom: 8px;
}

.section-intro p {
    color: var(--mcash-text-muted);
}

/* --- Policy document page --- */
.policy-doc {
    background: var(--mcash-surface);
    border: 1px solid var(--mcash-border);
    border-radius: var(--mcash-radius);
    box-shadow: var(--mcash-shadow);
    padding: 40px 48px;
}

.policy-doc .doc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 0.85rem;
    color: var(--mcash-text-muted);
    border-bottom: 1px solid var(--mcash-border);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.policy-doc .doc-meta span strong { color: var(--mcash-secondary); }

.policy-doc h1 {
    color: var(--mcash-secondary);
    margin-top: 0;
}

.policy-doc h2 {
    color: var(--mcash-primary-dark);
    font-size: 1.2rem;
    margin-top: 32px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--mcash-border);
}

.policy-doc h3 {
    color: var(--mcash-secondary);
    font-size: 1.02rem;
    margin-top: 22px;
}

.policy-doc ol, .policy-doc ul {
    padding-left: 22px;
}

.policy-doc li { margin-bottom: 6px; }

.policy-doc table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 0.92rem;
}

.policy-doc table th,
.policy-doc table td {
    border: 1px solid var(--mcash-border);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.policy-doc table th {
    background: var(--mcash-secondary);
    color: var(--mcash-text-on-dark);
    font-weight: 600;
}

.policy-doc table tr:nth-child(even) td {
    background: var(--mcash-bg);
}

.badge {
    display: inline-block;
    background: rgba(247, 148, 30, 0.15);
    color: var(--mcash-accent-dark);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
}

.hero .badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 20px;
    color: var(--mcash-text-muted);
}

.breadcrumb a { color: var(--mcash-primary); }

/* --- Footer --- */
.site-footer {
    background: var(--mcash-secondary);
    color: var(--mcash-text-on-dark);
    padding: 32px 0;
    margin-top: 48px;
    font-size: 0.85rem;
}

.site-footer .footer-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    opacity: 0.85;
}

.site-footer a { color: var(--mcash-text-on-dark); opacity: 0.8; }
.site-footer a:hover { opacity: 1; }

@media (max-width: 640px) {
    .policy-doc { padding: 28px 22px; }
    .hero h1 { font-size: 1.8rem; }
    .site-nav a { margin-left: 14px; font-size: 0.85rem; }
}
