/* ============================================================
   Temerach SACCO — Design System
   Palette: Sky Blue / Pastel Blue / Navy
   ============================================================ */

:root {
    --brand: #0284c7;
    --brand-light: #0ea5e9;
    --brand-dark: #0369a1;
    --pastel: #e0f2fe;
    --pastel-deep: #bae6fd;
    --sky-bg: #f0f9ff;
    --gold: #0ea5e9;
    --gold-light: #38bdf8;
    --charcoal: #0f172a;
    --offwhite: #f0f9ff;
    --card-bg: #ffffff;
    --text: #0f172a;
    --text-muted: #475569;
    --border: #bae6fd;
    --danger: #dc2626;
    --success: #059669;
    --warning: #d97706;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow: 0 4px 14px -4px rgba(14, 165, 233, 0.12);
    --shadow-lg: 0 10px 25px -5px rgba(14, 165, 233, 0.15);
    --header-h: 72px;
}

html {
    scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 40%, #f8fafc 100%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--brand); }
img { max-width: 100%; height: auto; }

/* ============================================================
   HEADER — glass sticky
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(186, 230, 253, 0.6);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 24px -8px rgba(2, 132, 199, 0.18);
}

.site-header .nav-wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--header-h);
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
    flex-shrink: 1;
}
.site-logo-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}
.logo-badge {
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    flex-shrink: 0;
}
.site-logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.25;
    min-width: 0;
}
.site-logo .name-en {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--charcoal);
}
.site-logo .name-am {
    font-size: 0.7rem;
    color: var(--text-muted);
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.main-nav .nav-link {
    color: var(--charcoal);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}
.main-nav .nav-link:hover {
    background: var(--pastel);
    color: var(--brand-dark);
}
.btn-nav-cta {
    margin-left: 4px;
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 45%, #D4AF37 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 11px 18px !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    text-decoration: none;
    box-shadow: 0 6px 18px -4px rgba(2, 132, 199, 0.35), 0 4px 12px -4px rgba(212, 175, 55, 0.35);
}
.btn-nav-cta:hover {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 40%, #C5A028 100%) !important;
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    min-height: 44px;
    border-radius: 999px;
    border: 1.5px solid var(--pastel-deep);
    background: #fff;
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.lang-toggle:hover {
    background: var(--pastel);
    border-color: var(--brand-light);
    color: var(--brand);
}
.lang-toggle .lang-icon {
    font-size: 0.95rem;
    line-height: 1;
}
.lang-toggle-mobile { display: none; }


.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid var(--pastel-deep);
    border-radius: 12px;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2.5px;
    background: var(--brand-dark);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: linear-gradient(145deg, #0369a1 0%, #0284c7 45%, #0ea5e9 100%);
    color: #fff;
    padding: 72px 20px 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(186,230,253,0.2) 0%, transparent 35%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
}
.hero .tagline {
    display: inline-block;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.28);
    color: #e0f2fe;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 18px;
}
.hero h1 {
    font-size: clamp(1.75rem, 4.2vw, 2.75rem);
    margin: 0 0 14px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.hero .subtitle-text {
    font-size: 1.05rem;
    color: #e0f2fe;
    max-width: 620px;
    margin: 0 auto 28px;
}
.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.stats-bar {
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.stat-block {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: var(--radius-lg);
    padding: 18px 12px;
    backdrop-filter: blur(6px);
}
.stat-block .stat-num {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: #fff;
}
.stat-block .stat-label {
    font-size: 0.82rem;
    color: #bae6fd;
    margin-top: 4px;
}

/* ============================================================
   SECTIONS & CARDS
   ============================================================ */
.section {
    max-width: 1160px;
    margin: 0 auto;
    padding: 72px 20px;
}
.section-soft {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    max-width: none;
    padding-left: max(20px, calc((100% - 1160px) / 2 + 20px));
    padding-right: max(20px, calc((100% - 1160px) / 2 + 20px));
}
.section-heading {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 44px;
}
.section-heading .eyebrow {
    color: var(--brand);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
.section-heading h2 {
    font-size: clamp(1.45rem, 3vw, 2rem);
    color: var(--charcoal);
    margin: 8px 0 10px;
}
.section-heading p { color: var(--text-muted); margin: 0; }

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 36px;
    align-items: start;
}
.about-copy h3 {
    color: var(--brand-dark);
    margin: 0 0 10px;
}
.about-copy h3:not(:first-child) { margin-top: 22px; }
.about-copy p { color: var(--text-muted); }

.founding-card {
    background: #fff;
    border: 1px solid var(--pastel-deep);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    margin: 0;
}
.founding-card dt {
    font-weight: 700;
    color: var(--brand-dark);
    font-size: 0.82rem;
    margin-top: 14px;
}
.founding-card dt:first-child { margin-top: 0; }
.founding-card dd { margin: 2px 0 0; color: var(--text-muted); }

/* Feature / service cards */
.card-grid {
    display: grid;
    gap: 22px;
}
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.feature-card {
    background: #fff;
    border: 1px solid rgba(186, 230, 253, 0.8);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-light);
}
.feature-card h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
    color: var(--charcoal);
}
.feature-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.94rem;
}
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pastel) 0%, var(--pastel-deep) 100%);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-weight: 800;
    font-size: 0.95rem;
}
.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.feature-icon.small {
    width: 48px;
    height: 48px;
    font-size: 0.85rem;
}
.feature-card.compact { padding: 22px 18px; }

/* Values */
.value-card {
    background: #fff;
    border: 1px solid rgba(186, 230, 253, 0.8);
    border-left: 4px solid var(--brand-light);
    border-radius: var(--radius-lg);
    padding: 24px 22px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--brand);
}
.value-num {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.value-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: var(--charcoal);
}
.value-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.cta-banner {
    margin-top: 40px;
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 28px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-lg);
}
.cta-banner h3 { margin: 0 0 6px; color: #fff; }
.cta-banner p { margin: 0; color: #e0f2fe; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 12px 22px;
    min-height: 48px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { background: var(--brand-light); transform: translateY(-1px); }
.btn-primary, .btn.gold {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 45%, #D4AF37 100%);
    color: #fff;
    box-shadow: 0 6px 18px -4px rgba(2, 132, 199, 0.35), 0 4px 12px -4px rgba(212, 175, 55, 0.35);
    border: none;
}
.btn-primary:hover, .btn.gold:hover {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 40%, #C5A028 100%);
    color: #fff;
    transform: translateY(-1px);
    filter: brightness(1.05);
}
.btn.secondary, .btn-outline {
    background: #fff;
    color: var(--brand);
    border: 1.5px solid var(--brand-light);
}
.btn.secondary:hover, .btn-outline:hover { background: var(--pastel); }
.btn-ghost {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover { background: rgba(255,255,255,0.22); }
.btn.danger { background: var(--danger); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ============================================================
   APP CHROME (forms, cards, dashboard pages)
   ============================================================ */
.topbar {
    background: var(--brand);
    color: #fff;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.topbar .brand { font-weight: 700; font-size: 1.1rem; }
.topbar nav a { color: #e0f2fe; text-decoration: none; margin-left: 16px; font-size: 0.95rem; }

.container { max-width: 720px; margin: 0 auto; padding: 24px 16px; width: 100%; flex: 1; }
.container.wide { max-width: 1080px; }

.card {
    background: var(--card-bg);
    border: 1px solid rgba(186, 230, 253, 0.7);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
}

h1, h2, h3 { color: var(--brand-dark); margin-top: 0; }
h1 { font-size: 1.55rem; }
h2 { font-size: 1.25rem; }
.subtitle { color: var(--text-muted); margin-top: -8px; margin-bottom: 20px; }

label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    margin-top: 16px;
    color: var(--text);
}
input[type=text], input[type=email], input[type=tel], input[type=password],
input[type=number], input[type=file], select, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--pastel-deep);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: var(--text);
    min-height: 48px;
}
input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--brand-light);
    outline-offset: 1px;
    border-color: var(--brand-light);
}
textarea { resize: vertical; min-height: 80px; }
.help-text { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
.field-row { display: flex; gap: 16px; flex-wrap: wrap; }
.field-row > div { flex: 1; min-width: 200px; }
.actions { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }

.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 0.92rem; }
.alert.success { background: #ecfdf5; color: var(--success); border: 1px solid #a7f3d0; }
.alert.error { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.alert.info { background: var(--pastel); color: var(--brand-dark); border: 1px solid var(--pastel-deep); }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.badge.pending { background: #fef3c7; color: var(--warning); }
.badge.under_review { background: #e0f2fe; color: #0369a1; }
.badge.approved { background: #d1fae5; color: var(--success); }
.badge.rejected { background: #fee2e2; color: var(--danger); }

.steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    list-style: none;
    padding: 0;
    gap: 6px;
}
.steps li {
    flex: 1;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    padding-bottom: 8px;
    border-bottom: 3px solid var(--pastel-deep);
}
.steps li.active { color: var(--brand); border-color: var(--brand); font-weight: 700; }
.steps li.done { color: var(--brand-light); border-color: var(--brand-light); }
.step-panel { display: none; }
.step-panel.active { display: block; }

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--pastel); }
th { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.4px; }
tr:hover td { background: #f0f9ff; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.rules-box {
    background: var(--pastel);
    border: 1px solid var(--pastel-deep);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    margin-bottom: 20px;
    white-space: pre-line;
    font-size: 0.94rem;
}
.status-check-box { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.status-check-box input { flex: 1; min-width: 180px; }

.site-footer { text-align: center; padding: 18px; color: var(--text-muted); font-size: 0.82rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.public-footer {
    background: #0c4a6e;
    color: #bae6fd;
    padding: 50px 20px 26px;
    margin-top: auto;
}
.public-footer .footer-grid {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 34px;
}
.public-footer h4 { color: #fff; font-size: 0.95rem; margin: 0 0 14px; }
.public-footer p, .public-footer a { color: #bae6fd; font-size: 0.9rem; text-decoration: none; }
.public-footer a:hover { color: #fff; }
.public-footer ul { list-style: none; padding: 0; margin: 0; }
.public-footer li { margin-bottom: 10px; }
.footer-bottom {
    max-width: 1160px;
    margin: 34px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 0.82rem;
    color: #7dd3fc;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* ============================================================
   ADMIN (kept functional, sky-blue accents)
   ============================================================ */
.admin-shell { display: flex; min-height: 100vh; background: var(--sky-bg); }
.admin-sidebar {
    width: 230px;
    background: #0c4a6e;
    color: #bae6fd;
    padding: 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.admin-sidebar .brand {
    padding: 20px;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.98rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-sidebar nav { padding: 10px 0; flex: 1; }
.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: #bae6fd;
    text-decoration: none;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}
.admin-sidebar a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.admin-sidebar a.active {
    background: rgba(14, 165, 233, 0.2);
    color: #e0f2fe;
    border-left-color: #38bdf8;
    font-weight: 600;
}
.admin-sidebar .sidebar-icon { width: 18px; text-align: center; flex-shrink: 0; }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
    background: #fff;
    border-bottom: 1px solid var(--pastel-deep);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.admin-search {
    flex: 1;
    max-width: 360px;
    display: flex;
    align-items: center;
    background: var(--sky-bg);
    border: 1px solid var(--pastel-deep);
    border-radius: 999px;
    padding: 8px 16px;
    gap: 8px;
}
.admin-search input { border: none; background: transparent; padding: 0; font-size: 0.9rem; outline: none; width: 100%; min-height: auto; }
.admin-topbar-right { display: flex; align-items: center; gap: 18px; }
.icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sky-bg);
    border: 1px solid var(--pastel-deep);
    color: var(--charcoal);
    text-decoration: none;
    cursor: pointer;
}
.icon-btn .dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 9px;
    height: 9px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid #fff;
}
.admin-profile { display: flex; align-items: center; gap: 10px; }
.admin-profile .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.admin-profile .name { font-size: 0.88rem; font-weight: 600; }
.admin-profile .role { font-size: 0.75rem; color: var(--text-muted); }
.admin-content { padding: 24px; flex: 1; }

.alerts-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 46px;
    width: 300px;
    background: #fff;
    border: 1px solid var(--pastel-deep);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    overflow: hidden;
}
.alerts-dropdown.show { display: block; }
.alerts-dropdown-header { padding: 12px 16px; font-weight: 700; font-size: 0.85rem; border-bottom: 1px solid var(--pastel); }
.alerts-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--pastel);
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
}
.alerts-item:hover { background: var(--sky-bg); }
.alerts-time { font-size: 0.75rem; color: var(--text-muted); }
.alerts-empty { padding: 16px; font-size: 0.85rem; color: var(--text-muted); }

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}
.summary-card {
    background: #fff;
    border: 1px solid var(--pastel-deep);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.summary-card .icon-tag {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 6px;
    background: var(--brand);
}
.summary-card .num { font-size: 1.6rem; font-weight: 800; color: var(--charcoal); }
.summary-card .label { font-size: 0.82rem; color: var(--text-muted); }

/* Legacy service-card / value-chip aliases */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card { background: #fff; border: 1px solid var(--pastel-deep); border-radius: var(--radius-lg); padding: 26px 22px; box-shadow: var(--shadow); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card .icon { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--brand-light)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; margin-bottom: 14px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value-chip { background: #fff; border: 1px solid var(--pastel-deep); border-left: 4px solid var(--brand-light); border-radius: var(--radius); padding: 16px 18px; font-weight: 700; color: var(--charcoal); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        left: 12px;
        right: 12px;
        top: calc(var(--header-h) + 4px);
        flex-direction: column;
        align-items: stretch;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(12px);
        border: 1px solid var(--pastel-deep);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
        padding: 12px;
        gap: 4px;
        z-index: 120;
    }
    body.nav-open .main-nav { display: flex; }
    .main-nav .nav-link {
        padding: 14px 16px;
        font-size: 1rem;
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    .btn-nav-cta {
        margin: 8px 0 4px;
        text-align: center;
        width: 100%;
        min-height: 48px;
    }
    .lang-toggle-mobile {
        display: flex !important;
        align-items: center;
        font-weight: 700;
        color: var(--brand-dark) !important;
    }
    /* Keep compact language button visible next to hamburger on mobile */
    .nav-right .lang-toggle {
        padding: 8px 12px;
        min-height: 44px;
        font-size: 0.82rem;
    }
    .nav-right .lang-toggle .lang-icon { display: none; }
    .site-header .nav-wrap { position: relative; flex-wrap: nowrap; }
    .site-logo .name-am { max-width: 160px; font-size: 0.62rem; }

    .hero { padding: 48px 16px 40px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .stats-bar { grid-template-columns: 1fr; }

    .section { padding: 48px 16px; }
    .about-grid { grid-template-columns: 1fr; }
    .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
    .services-grid, .values-grid { grid-template-columns: 1fr; }

    .cta-banner { flex-direction: column; align-items: stretch; text-align: center; }
    .cta-actions { justify-content: center; }
    .cta-actions .btn { flex: 1; min-width: 140px; }

    .public-footer .footer-grid { grid-template-columns: 1fr; gap: 24px; }

    .container { padding: 16px 12px; }
    .card { padding: 16px; }
    .field-row { flex-direction: column; }
    .field-row > div { min-width: 0; width: 100%; }
    .btn, button.btn { min-height: 48px; }
    input[type=text], input[type=email], input[type=tel], input[type=password],
    input[type=number], input[type=file], select, textarea { font-size: 16px; min-height: 48px; }
    .status-check-box { flex-direction: column; align-items: stretch; }
    .status-check-box input { min-width: 0; width: 100%; }
    .steps li { font-size: 0.7rem; }

    .admin-shell { flex-direction: column; }
    .admin-sidebar { width: 100%; }
    .admin-sidebar nav { display: flex; overflow-x: auto; padding: 6px 10px; gap: 4px; }
    .admin-sidebar a { padding: 10px 14px; white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; }
    .admin-sidebar a.active { border-left: none; border-bottom-color: #38bdf8; }
    .admin-search { max-width: none; order: 3; width: 100%; }
}

@media (max-width: 480px) {
    .site-logo-img, .logo-badge { width: 40px; height: 40px; }
    .site-logo .name-en { font-size: 0.9rem; }
    .site-logo .name-am { display: none; }
    .summary-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .feature-card, .value-card, .service-card { transition: none; }
}

/* Selected file name list (apply form step 4) */
.file-list {
    list-style: none;
    margin: 10px 0 18px;
    padding: 12px 14px;
    background: var(--sky-bg, #f0f9ff);
    border: 1px dashed var(--pastel-deep, #bae6fd);
    border-radius: 10px;
    min-height: 44px;
}
.file-list-empty {
    color: var(--text-muted, #64748b);
    font-size: 0.9rem;
    margin: 0;
}
.file-list-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(186, 230, 253, 0.6);
    font-size: 0.92rem;
    color: var(--charcoal, #0f172a);
}
.file-list-item:last-child { border-bottom: none; }
.file-list-index { font-weight: 700; color: var(--brand, #0284c7); min-width: 1.5rem; }
.file-list-name { font-weight: 600; word-break: break-all; }
.file-list-size { color: var(--text-muted, #64748b); font-size: 0.85rem; }
