/* Landing page — Somali National University Galmudug Branch · Students Voting Management System */
:root {
    --g900: #073d1b; --g800: #0b5d2a; --g700: #0f7a37; --g600: #14883c; --g500: #1e9e4a; --g100: #e3f4e8; --g50: #f3faf5;
    --ink: #0d2b1a; --muted: #4f6357; --line: #d6e8dc; --gold: #f2b52c; --white: #fff;
    --radius: 18px; --shadow: 0 14px 40px rgba(7, 61, 27, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: 'Inter', 'Segoe UI', sans-serif; color: var(--ink); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; margin: 0; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, 92%); margin: 0 auto; }
section { padding: 88px 0; }

.eyebrow-badge { display: inline-flex; align-items: center; gap: .5rem; background: var(--g100); color: var(--g800); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1rem; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; color: var(--g900); }
.section-lead { color: var(--muted); font-size: 1.05rem; margin: .8rem 0 0; }

.btn-primary, .btn-secondary, .btn-login-nav { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font-weight: 700; border-radius: 12px; padding: .85rem 1.4rem; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; cursor: pointer; border: 2px solid transparent; font-size: .98rem; }
.btn-primary { background: linear-gradient(135deg, var(--g600), var(--g800)); color: #fff; box-shadow: 0 10px 24px rgba(20, 136, 60, .32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(20, 136, 60, .4); }
.btn-secondary { background: #fff; color: var(--g800); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--g600); transform: translateY(-2px); }

/* ---------- nav ---------- */
.landing-nav { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.landing-nav-inner { width: min(1180px, 92%); margin: 0 auto; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: relative; }
.nav-brand { display: flex; align-items: center; gap: .7rem; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; color: var(--g900); line-height: 1.1; }
.nav-brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--g100); }
.nav-brand .sub { display: block; font-size: .7rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.nav-links { display: flex; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: .5rem .9rem; border-radius: 10px; font-weight: 600; font-size: .95rem; color: var(--muted); transition: all .15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--g800); background: var(--g100); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.btn-login-nav { background: var(--g700); color: #fff; padding: .6rem 1.15rem; border-radius: 10px; }
.btn-login-nav:hover { background: var(--g800); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; font-size: 1.3rem; color: var(--g800); cursor: pointer; }

/* ---------- hero ---------- */
#home { padding: 132px 0 70px; background: radial-gradient(900px 500px at 85% 0%, #d4f0dc 0%, transparent 60%), linear-gradient(180deg, var(--g50), #fff); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero-heading { font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 800; color: var(--g900); letter-spacing: -.02em; }
.hero-heading .accent { color: var(--g600); }
.hero-desc { color: var(--muted); font-size: 1.1rem; margin: 1.2rem 0 1.8rem; max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2rem; }
.hero-highlights { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; }
.hero-highlight { display: flex; align-items: center; gap: .75rem; }
.hh-icon { width: 46px; height: 46px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--g700); display: grid; place-items: center; font-size: 1.3rem; box-shadow: 0 6px 16px rgba(7, 61, 27, .08); }
.hero-highlight .num { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.25rem; color: var(--g900); line-height: 1; }
.hero-highlight .label { font-size: .82rem; color: var(--muted); }
.hero-visual { position: relative; }
.hero-photo { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff; aspect-ratio: 4 / 3.3; background: var(--g100); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; left: -22px; bottom: 28px; background: #fff; border-radius: 16px; padding: .9rem 1.1rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: .8rem; border: 1px solid var(--line); max-width: 300px; }
.hero-badge .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--g600); color: #fff; display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.hero-badge strong { display: block; font-size: .92rem; color: var(--g900); line-height: 1.2; }
.hero-badge span { font-size: .78rem; color: var(--muted); }
.status-pill { display: inline-block; padding: .12rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700; margin-left: .3rem; vertical-align: middle; }
.status-Active { background: #d3f0dc; color: #14883c; } .status-Scheduled { background: #fff3cd; color: #8a6d00; }
.status-Draft { background: #e9ecef; color: #495057; } .status-Closed { background: #fde2e2; color: #b42318; } .status-Cancelled { background: #e9ecef; color: #212529; }
.hero-chip { position: absolute; right: -14px; top: 24px; background: var(--gold); color: #3b2a00; font-weight: 800; font-size: .8rem; padding: .5rem .9rem; border-radius: 12px; box-shadow: var(--shadow); display: flex; gap: .4rem; align-items: center; }

/* ---------- stats ---------- */
.stats-band { background: linear-gradient(135deg, var(--g800), var(--g900)); color: #fff; padding: 34px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; text-align: center; }
.stat-item i { font-size: 1.5rem; color: #8fe0a8; }
.stat-item .num { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 2.1rem; line-height: 1.1; margin-top: .25rem; }
.stat-item .label { font-size: .85rem; opacity: .8; letter-spacing: .04em; }

/* ---------- about ---------- */
#about { background: #fff; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: center; }
.about-card { background: linear-gradient(160deg, var(--g50), var(--g100)); border: 1px solid var(--line); border-radius: 26px; padding: 2.2rem; text-align: center; box-shadow: var(--shadow); }
.about-card img.seal { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; border: 5px solid #fff; box-shadow: 0 8px 20px rgba(7, 61, 27, .15); }
.about-card .school { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--g900); }
.about-card .sub { color: var(--muted); font-size: .92rem; margin-top: .2rem; }
.about-card .motto { margin-top: 1.1rem; font-style: italic; color: var(--g700); font-weight: 600; }
.about-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.about-points li { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.about-points li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.about-points .ico { width: 46px; height: 46px; border-radius: 13px; background: var(--g100); color: var(--g700); display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.about-points strong { display: block; color: var(--g900); }
.about-points .desc { color: var(--muted); font-size: .94rem; }

/* ---------- services ---------- */
#services { background: var(--g50); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; position: relative; overflow: hidden; }
.service-card::after { content: ''; position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: linear-gradient(90deg, var(--g500), var(--gold)); transition: width .3s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #b9dcc4; }
.service-card:hover::after { width: 100%; }
.service-icon { width: 58px; height: 58px; border-radius: 16px; background: linear-gradient(135deg, var(--g100), #c9ebd4); color: var(--g700); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 1.1rem; }
.service-card h3 { font-size: 1.15rem; color: var(--g900); margin-bottom: .5rem; }
.service-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- election spotlight ---------- */
#election { background: linear-gradient(135deg, var(--g900), var(--g800)); color: #fff; padding: 72px 0; }
.election-box { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: center; }
.election-box h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
.election-box p { color: rgba(255, 255, 255, .8); margin: .8rem 0 0; }
.election-meta { display: flex; flex-wrap: wrap; gap: .7rem 1.6rem; margin-top: 1.2rem; font-size: .95rem; }
.election-meta span { display: flex; align-items: center; gap: .45rem; color: #d9f5e2; }
.positions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.position-tile { background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px; padding: 1.1rem 1.2rem; display: flex; align-items: center; gap: .9rem; }
.position-tile i { width: 44px; height: 44px; border-radius: 12px; background: var(--gold); color: #3b2a00; display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.position-tile strong { display: block; }
.position-tile span { font-size: .82rem; color: #cdeed8; }

/* ---------- activities ---------- */
#activities { background: #fff; }
.activity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.activity-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.activity-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.activity-visual { height: 130px; display: grid; place-items: center; font-size: 3rem; color: #fff; background: linear-gradient(135deg, var(--g600), var(--g800)); position: relative; }
.activity-visual::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .2), transparent 55%); }
.activity-body { padding: 1.3rem; }
.activity-body h3 { font-size: 1.05rem; color: var(--g900); margin-bottom: .45rem; }
.activity-body p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- how it works ---------- */
#how-it-works { background: var(--g50); }
.hiw-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; position: relative; }
.hiw-track::before { content: ''; position: absolute; left: 12%; right: 12%; top: 38px; height: 2px; background: repeating-linear-gradient(90deg, var(--g500) 0 8px, transparent 8px 16px); }
.hiw-step { text-align: center; position: relative; padding: 0 .6rem; }
.hiw-icon { width: 78px; height: 78px; border-radius: 50%; background: #fff; border: 3px solid var(--g500); color: var(--g700); font-size: 1.9rem; display: grid; place-items: center; margin: 0 auto 1rem; position: relative; z-index: 1; box-shadow: 0 8px 20px rgba(7, 61, 27, .12); }
.hiw-number { font-size: .72rem; font-weight: 800; letter-spacing: .14em; color: var(--g600); }
.hiw-step h3 { font-size: 1.1rem; margin: .25rem 0 .5rem; color: var(--g900); }
.hiw-step p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- contact ---------- */
#contact { background: #fff; }
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: stretch; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.2rem; }
.contact-info-item .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--g100); color: var(--g700); display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.contact-info-item h4 { font-size: 1rem; color: var(--g900); margin-bottom: .15rem; }
.contact-info-item a, .contact-info-item p { margin: 0; color: var(--muted); }
.login-panel { background: linear-gradient(160deg, var(--g800), var(--g900)); color: #fff; border-radius: 26px; padding: 2.3rem; box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: center; }
.login-panel h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.login-panel p { color: rgba(255, 255, 255, .8); margin: 0 0 1.4rem; }
.portal-list { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.portal-list li { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: .7rem .9rem; display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .92rem; }
.portal-list i { color: #8fe0a8; }
.login-panel .btn-primary { background: #fff; color: var(--g800); box-shadow: none; }

/* ---------- footer ---------- */
.landing-footer { background: var(--g900); color: #cfe9d8; padding-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255, 255, 255, .25); }
.footer-brand h4 { color: #fff; font-size: 1.1rem; }
.footer-brand .sub { margin: .1rem 0 .4rem; color: #8fe0a8; font-weight: 600; font-size: .85rem; }
.footer-brand p { margin: 0; font-size: .92rem; max-width: 420px; }
.footer-links h5 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.footer-links ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1rem; }
.footer-links a { color: #cfe9d8; font-size: .92rem; } .footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1.1rem 4%; text-align: center; font-size: .88rem; display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; justify-content: center; }
.footer-bottom strong { color: #fff; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 991.98px) {
    section { padding: 64px 0; }
    .hero-grid, .about-grid, .election-box, .contact-split { grid-template-columns: 1fr; }
    .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
    .hero-badge { left: 8px; }
    .hero-chip { right: 8px; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); row-gap: 1.6rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .activity-grid { grid-template-columns: repeat(2, 1fr); }
    .hiw-track { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
    .hiw-track::before { display: none; }
    .nav-toggle { display: inline-grid; place-items: center; }
    .nav-links { position: absolute; top: 72px; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: .6rem; flex-direction: column; box-shadow: var(--shadow); display: none; }
    #navInner.open .nav-links { display: flex; }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    #home { padding-top: 112px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid, .activity-grid, .hiw-track, .positions-grid, .portal-list { grid-template-columns: 1fr; }
    .nav-brand .sub { display: none; }
    .btn-primary, .btn-secondary { width: 100%; }
    .hero-badge { position: static; margin-top: -30px; margin-left: 12px; max-width: none; }
    .hero-chip { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } * { transition: none !important; } }
