/* ===== Baher El-Ashmawy campaign — public site ===== */
:root {
    --red: #9E0F1B;
    --red-2: #C8102E;
    --ink: #141212;
    --paper: #FAF7F2;
    --paper-2: #F1EBE2;
    --gold: #C9A227;
    --muted: #6B6460;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(20, 18, 18, .08);
}

html { scroll-behavior: smooth; }
body {
    font-family: "Tajawal", system-ui, sans-serif;
    background: var(--paper);
    color: var(--ink);
    font-size: 17px;
    line-height: 1.8;
}
h1, h2, h3, h4, h5, .brand-text strong, .hero-name { font-family: "Cairo", "Tajawal", sans-serif; }
a { color: var(--red); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(250, 247, 242, .94); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(0,0,0,.06); }
.site-header .navbar { padding: .6rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-family: "Cairo"; font-weight: 900; font-size: 1.3rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.05rem; font-weight: 800; }
.brand-text small { color: var(--muted); font-size: .8rem; }
.nav-link { color: var(--ink) !important; font-weight: 500; padding: .4rem .75rem !important; border-radius: 8px; }
.nav-link:hover, .nav-link.active { color: var(--red) !important; background: rgba(158, 15, 27, .07); }
.navbar-toggler { border: 0; padding: .4rem; display: flex; flex-direction: column; gap: 5px; }
.navbar-toggler:focus { box-shadow: none; }
.toggler-bar { width: 24px; height: 2px; background: var(--ink); display: block; }

/* ---------- Buttons ---------- */
.btn { font-family: "Cairo"; font-weight: 700; border-radius: 10px; }
.btn-cta { background: var(--red); color: #fff; border: 0; }
.btn-cta:hover { background: var(--red-2); color: #fff; }
.btn-ghost { border: 2px solid rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--red); }
.btn-ghost-dark { border: 2px solid var(--ink); color: var(--ink); }
.btn-ghost-dark:hover { background: var(--ink); color: #fff; }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(255,255,255,.12), transparent 60%),
        linear-gradient(135deg, #6E0A13 0%, var(--red) 45%, #7A0C15 100%);
    color: #fff; padding: 4.5rem 0 5rem; position: relative; overflow: hidden;
}
.hero::after { content: ""; position: absolute; inset: auto -10% -60px -10%; height: 120px; background: var(--paper); transform: skewY(-2deg); }
.hero .container { position: relative; z-index: 1; }
.hero-kicker { display: inline-block; font-size: .95rem; background: rgba(0,0,0,.22); padding: .3rem .9rem; border-radius: 30px; margin-bottom: 1rem; }
.hero-kicker span { color: var(--gold); margin: 0 .35rem; }
.hero-name { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 900; line-height: 1.15; margin: 0; }
.hero-role { font-size: 1.2rem; opacity: .9; margin: .4rem 0 1.2rem; }
.hero-slogan { font-family: "Cairo"; font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.4; margin: 0; }
.hero-slogan em { font-style: normal; color: var(--gold); }
.hero-sub { font-size: 1.1rem; opacity: .9; max-width: 560px; margin-top: 1rem; }
.hero-portrait { position: relative; max-width: 420px; margin-inline: auto; }
.hero-portrait img, .portrait-placeholder { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 62% center; border-radius: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.35); border: 6px solid rgba(255,255,255,.15); }
.portrait-placeholder { background: linear-gradient(160deg, #2A0A0E, #120607); display: grid; place-items: center; align-content: center; gap: .5rem; text-align: center; color: rgba(255,255,255,.5); }
.portrait-placeholder span { font-family: "Cairo"; font-size: 7rem; font-weight: 900; color: var(--gold); line-height: 1; }
.portrait-placeholder small { font-size: .85rem; padding: 0 1rem; }
.portrait-tag { position: absolute; bottom: 18px; left: -10px; background: var(--gold); color: var(--ink); font-family: "Cairo"; font-weight: 800; padding: .35rem 1rem; border-radius: 8px; box-shadow: var(--shadow); }

.countdown { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.countdown > div:not(.cd-label) { background: rgba(0,0,0,.25); border-radius: 12px; padding: .5rem .9rem; text-align: center; min-width: 74px; }
.countdown b { display: block; font-family: "Cairo"; font-size: 1.6rem; line-height: 1.1; }
.countdown span { font-size: .8rem; opacity: .85; }
.cd-label { font-weight: 700; }

/* ---------- Stats ---------- */
.stats-strip { margin-top: -10px; position: relative; z-index: 2; }
.stats-strip .row { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 1.4rem .8rem; border-inline-start: 1px solid var(--paper-2); }
.stat b { display: block; font-family: "Cairo"; font-size: 2.2rem; font-weight: 900; color: var(--red); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .92rem; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--ink); color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head h2 { font-weight: 900; font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: .2rem 0 .5rem; }
.section-head p { color: var(--muted); margin: 0; }
.section-head.light p { color: rgba(255,255,255,.7); }
.eyebrow { display: inline-block; color: var(--red); font-family: "Cairo"; font-weight: 800; font-size: .9rem; letter-spacing: .02em; }
.section-dark .eyebrow, .page-head .eyebrow { color: var(--gold); }

.page-head { background: linear-gradient(135deg, #6E0A13, var(--red)); color: #fff; padding: 3.5rem 0 3rem; }
.page-head h1 { font-weight: 900; font-size: clamp(2rem, 5vw, 3rem); margin: .2rem 0 .4rem; }
.page-head p { opacity: .9; max-width: 720px; margin: 0; }

.big-quote { max-width: 900px; margin: 0 auto; text-align: center; position: relative; padding: 1rem 2rem; }
.big-quote::before { content: "”"; position: absolute; top: -2.2rem; right: 0; font-size: 7rem; color: var(--gold); font-family: Georgia, serif; line-height: 1; }
.big-quote p { font-family: "Cairo"; font-weight: 700; font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.8; margin: 0; }
.big-quote footer { margin-top: 1rem; color: var(--red); font-weight: 700; }
.big-quote.small { text-align: start; padding: 1.4rem 1.6rem; background: #fff; border-radius: var(--radius); border-inline-start: 5px solid var(--red); }
.big-quote.small::before { display: none; }
.big-quote.small p { font-size: 1.15rem; }

/* ---------- Achievements ---------- */
.ach-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 100%; display: flex; flex-direction: column; }
.ach-media { position: relative; aspect-ratio: 4/3; background: var(--paper-2); }
.ach-media > img { width: 100%; height: 100%; object-fit: cover; }
.ach-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: repeating-linear-gradient(45deg, #EFE7DC, #EFE7DC 12px, #F5EFE6 12px, #F5EFE6 24px); }
.ach-placeholder span { width: 70px; height: 70px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 2rem; font-weight: 900; }
.ach-done { position: absolute; top: 12px; right: 12px; background: #1E7B3A; color: #fff; font-weight: 700; font-size: .85rem; padding: .15rem .7rem; border-radius: 20px; }
.ach-body { padding: 1.2rem 1.3rem 1.4rem; }
.ach-body h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: .4rem; }
.ach-body p { color: var(--muted); font-size: .98rem; margin-bottom: .6rem; }
.ach-meta { display: flex; flex-wrap: wrap; gap: .8rem; font-size: .85rem; color: var(--muted); }

.compare { position: relative; width: 100%; height: 100%; overflow: hidden; }
.compare img { width: 100%; height: 100%; object-fit: cover; display: block; }
.compare-before { position: absolute; inset: 0; width: 50%; overflow: hidden; border-left: 3px solid #fff; }
.compare-before img { width: auto; height: 100%; max-width: none; }
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; direction: ltr; }
.compare .lbl { position: absolute; bottom: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: .8rem; padding: .1rem .6rem; border-radius: 6px; pointer-events: none; }
.compare .lbl-before { left: 10px; }
.compare .lbl-after { right: 10px; }

/* ---------- Program ---------- */
.prog-card { background: #fff; border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow); height: 100%; border-top: 4px solid #BDB4AA; }
.prog-card.st-progress { border-top-color: var(--gold); }
.prog-card.st-done { border-top-color: #1E7B3A; }
.prog-card h3 { font-size: 1.1rem; font-weight: 800; margin: .2rem 0 .4rem; }
.prog-card p { color: var(--muted); font-size: .95rem; }
.prog-cat { display: inline-block; font-size: .78rem; background: var(--paper-2); color: var(--muted); padding: .05rem .55rem; border-radius: 6px; }
.prog-status { white-space: nowrap; font-size: .8rem; font-weight: 700; padding: .15rem .6rem; border-radius: 20px; background: var(--paper-2); }
.st-progress .prog-status { background: #FBF0CF; color: #7A5C00; }
.st-done .prog-status { background: #DDF2E3; color: #1E7B3A; }
.prog-bar { height: 8px; background: var(--paper-2); border-radius: 8px; overflow: hidden; margin-top: .4rem; }
.prog-bar span { display: block; height: 100%; background: var(--red); border-radius: 8px; }
.st-done .prog-bar span { background: #1E7B3A; }
.prog-foot { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin-top: .4rem; }
.prog-summary { display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: 1.05rem; }
.prog-summary b { color: var(--red); font-family: "Cairo"; font-size: 1.4rem; }
.group-title { font-weight: 800; border-inline-start: 4px solid var(--red); padding-inline-start: .6rem; margin-bottom: 1rem; }
.empty-promise { text-align: center; background: #fff; border: 2px dashed #D9CFC2; border-radius: var(--radius); padding: 2.5rem 1.5rem; }

/* ---------- Videos ---------- */
.video-card h3 { font-size: 1.1rem; font-weight: 800; margin: .8rem 0 .2rem; }
.video-card p { font-size: .95rem; opacity: .75; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-frame.vertical { aspect-ratio: 9/16; max-width: 360px; margin-inline: auto; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card { text-align: center; }

/* ---------- Poll & CTA ---------- */
.poll-card, .cta-card { background: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.poll-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 1rem; }
.poll-option { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border: 1px solid var(--paper-2); border-radius: 10px; margin-bottom: .5rem; cursor: pointer; transition: .15s; }
.poll-option:hover { border-color: var(--red); background: #FFF8F7; }
.poll-option input { accent-color: var(--red); width: 18px; height: 18px; }
.poll-result { margin-bottom: .8rem; }
.cta-card h3 { font-size: 1.25rem; font-weight: 800; }
.cta-card p { color: var(--muted); }

/* ---------- List members ---------- */
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.list-member { background: #fff; border-radius: var(--radius); padding: 1.1rem .6rem; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.list-member strong { font-family: "Cairo"; font-size: 1rem; }
.list-member small { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.lm-avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--paper-2); display: grid; place-items: center; margin-bottom: .4rem; }
.lm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lm-avatar span { font-family: "Cairo"; font-weight: 900; font-size: 1.6rem; color: var(--red); }
.list-member.is-me { background: var(--red); color: #fff; transform: translateY(-4px); }
.list-member.is-me small { color: rgba(255,255,255,.8); }
.list-member.is-me .lm-avatar { background: rgba(255,255,255,.15); }
.list-member.is-me .lm-avatar span { color: var(--gold); }

/* ---------- Election ---------- */
.election-band { background: var(--ink); color: #fff; padding: 2rem 0; }
.election-band h3 { font-weight: 900; }
.info-tile { background: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); height: 100%; }
.info-tile .ico { font-size: 1.8rem; }
.info-tile h3 { font-size: 1.15rem; font-weight: 800; margin: .3rem 0; }
.info-tile p { margin-bottom: .3rem; font-weight: 700; }
.ballot-box { background: var(--red); color: #fff; border-radius: var(--radius); padding: 2rem; text-align: center; }
.ballot-box h2 { font-weight: 900; font-size: clamp(1.3rem, 3vw, 1.9rem); }

/* ---------- About ---------- */
.about-photo img, .about-photo .portrait-placeholder { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 20px; }
.facts { display: grid; gap: .6rem; margin-top: 1rem; }
.facts div { background: #fff; border-radius: 12px; padding: .8rem 1rem; display: flex; gap: .8rem; align-items: baseline; box-shadow: var(--shadow); }
.facts b { font-family: "Cairo"; color: var(--red); font-size: 1.25rem; white-space: nowrap; }
.about-text p { font-size: 1.12rem; }
.timeline { list-style: none; padding: 0; margin: 0; border-inline-start: 3px solid var(--paper-2); }
.timeline li { position: relative; padding: 0 1.4rem 1.2rem; }
.timeline li::before { content: ""; position: absolute; right: -9px; top: .55rem; width: 15px; height: 15px; border-radius: 50%; background: var(--red); border: 3px solid var(--paper); }
.timeline b { display: block; font-family: "Cairo"; }
.timeline span { color: var(--muted); }

/* ---------- Forms ---------- */
.campaign-form { background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.campaign-form .form-control, .campaign-form .form-select { border-radius: 10px; padding: .65rem .9rem; border-color: #DDD4C8; }
.campaign-form .form-control:focus, .campaign-form .form-select:focus { border-color: var(--red); box-shadow: 0 0 0 .2rem rgba(158, 15, 27, .12); }
.form-label { font-weight: 700; }
.form-check-input:checked { background-color: var(--red); border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-done { border-radius: var(--radius); }
.answered { background: #fff; border-radius: 12px; padding: 1rem 1.1rem; margin-bottom: .8rem; box-shadow: var(--shadow); }
.answered .q { margin: .4rem 0; }
.answered .a { margin: 0; color: #1E5B32; background: #EEF8F1; border-radius: 8px; padding: .5rem .7rem; font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: #0D0B0B; color: #fff; padding: 3rem 0; }
.footer-slogan { font-family: "Cairo"; font-weight: 900; font-size: 1.6rem; color: var(--gold); margin-bottom: .4rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: flex-end; }
.footer-links a { color: #fff; text-decoration: none; opacity: .85; }
.footer-links a:hover { opacity: 1; color: var(--gold); }
@media (max-width: 991px) { .footer-links { justify-content: flex-start; } }

.wa-float { position: fixed; bottom: 20px; left: 20px; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 25px rgba(0,0,0,.25); z-index: 1040; }
.wa-float:hover { color: #fff; transform: scale(1.05); }

@media (max-width: 767px) {
    .section { padding: 3rem 0; }
    .hero { padding: 2.5rem 0 4rem; }
    .stat { border-bottom: 1px solid var(--paper-2); }
    .hero-portrait { max-width: 260px; }
}

/* ---------- Gallery / program images / bios ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem; }
.g-item { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 3/2; background: var(--paper-2); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.g-item:hover img { transform: scale(1.04); }
.g-caption { font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.prog-img { width: calc(100% + 2.6rem); margin: -1.2rem -1.3rem 1rem; aspect-ratio: 16/10; object-fit: cover; object-position: center 62%; border-radius: var(--radius) var(--radius) 0 0; display: block; }
.lm-bio { font-size: .76rem; color: var(--muted); line-height: 1.5; margin: .35rem 0 0; }
.list-member.is-me .lm-bio { color: rgba(255,255,255,.85); }
.list-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
