/* ─────────────────────────────────────────────
   Global application styles — Nhà Ở Xã Hội
   ───────────────────────────────────────────── */

:root {
    --primary: #0d6e3f;
    --primary-dark: #094d2c;
    --primary-light: #e6f4ee;
    --primary-mid: #1a8a50;
    --accent: #f59e0b;
    --accent-light: #fef3c7;
    --text-dark: #1a2332;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --surface: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.04);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.1), 0 4px 16px rgba(0,0,0,.06);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 18px; }

body {
    font-family: 'Be Vietnam Pro', 'Segoe UI', system-ui, sans-serif;
    background: var(--surface);
    color: var(--text-dark);
    line-height: 1.65;
}

/* ── Navbar ── */
.navbar {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 0.6rem 0;
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.navbar-brand .brand-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-mid));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1rem;
}
.navbar-nav .nav-link {
    font-weight: 500;
    font-size: .925rem;
    color: var(--text-dark) !important;
    padding: .45rem .85rem !important;
    border-radius: 8px;
    transition: background .18s, color .18s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: var(--primary-light);
    color: var(--primary) !important;
}
.navbar-nav .nav-link-cta {
    background: var(--primary);
    color: #fff !important;
    padding: .45rem 1rem !important;
}
.navbar-nav .nav-link-cta:hover {
    background: var(--primary-dark) !important;
    color: #fff !important;
}

/* ── Buttons ── */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    border-radius: 10px;
    padding: .6rem 1.4rem;
    letter-spacing: .01em;
    transition: background .18s, transform .12s, box-shadow .18s;
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(13,110,63,.3);
}
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    border-radius: 10px;
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
}

/* ── Cards ── */
.card {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius);
    transition: box-shadow .2s, transform .2s, border-color .2s;
    background: var(--white);
}
.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: #c7e4d4;
}

/* ── Section headings ── */
.section-label {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: .3rem .85rem;
    border-radius: 50px;
    margin-bottom: .75rem;
}
.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: .5rem;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ── Legal badge ── */
.law-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #86efac;
    color: #15803d;
    padding: .35rem .75rem;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 600;
}

/* ── Footer ── */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
}
footer a { color: rgba(255,255,255,.8); text-decoration: none; }
footer a:hover { color: #fff; }

/* ── Utilities ── */
.text-primary-custom { color: var(--primary) !important; }
.bg-primary-custom   { background: var(--primary) !important; }
.bg-primary-light    { background: var(--primary-light) !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }
