/* =========================================================
   Nour Public Site — Main Styles (Design System)
   ========================================================= */

:root {
    --primary: #24308F;
    --primary-hover: #2330B3;
    --primary-deep: #11186B;
    --primary-soft: #EEF2FF;
    --text-main: #1F2937;
    --text-secondary: #3B4863;
    --text-muted: #5B6780;
    --text-label: #98A2B3;
    --bg-page: #F8FAFC;
    --bg-card: #FFFFFF;
    --border: #E5E7EB;
    --border-soft: #EDF1F5;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #0EA5E9;
    --radius: 0.75rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { width: 100%; overflow-x: hidden; }

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-main);
    background: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 1rem;
}

/* ---- Navigation ---- */
.public-nav {
    background: rgba(17, 24, 107, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 8px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-brand { display: flex; align-items: center; }

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    font-size: 1.35rem;
}

.brand-link:hover { opacity: 0.9; color: #fff; }

.brand-icon {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.brand-icon svg { width: 24px; height: 24px; color: #FBBF24; }

.brand-logo {
    width: 40px; height: 40px;
    object-fit: contain;
    border-radius: 8px;
}

.brand-text { font-size: 1.35rem; font-weight: 800; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px; height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
    margin: 0; padding: 0;
}

.nav-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.4rem 0.85rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-link:hover { background: rgba(255,255,255,0.12); color: #fff; }
.nav-link.active { background: rgba(255,255,255,0.18); color: #fff; }

/* ---- Main Content ---- */
.public-main {
    min-height: calc(100vh - 64px);
    background: #fff;
}

/* ---- Footer ---- */
.public-footer {
    background: var(--primary-deep);
    color: rgba(255,255,255,0.7);
    padding: 1.25rem 0;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-copyright .bi {
    color: #34d399;
    margin-inline-start: 0.35rem;
}

.footer-copyright {
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
    color: rgba(255,255,255,0.6);
}

/* ---- Utilities ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.section-subtitle {
    font-size: 1.05rem;
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 500;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .nav-container { padding: 0 1rem; }
    .nav-toggle { display: flex; }

    .nav-menu {
        position: absolute;
        top: 100%; right: 0; left: 0;
        background: var(--primary-deep);
        flex-direction: column;
        padding: 0.75rem;
        gap: 0.25rem;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
        transform: translateY(-110%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        width: 100%;
        text-align: right;
        padding: 0.6rem 1rem;
    }

    .container { padding: 0 1rem; }
    .section-title { font-size: 1.6rem; }
}
