/* =========================================================================
   Sang Limite — website theme
   Palette & typeface mirror the mobile app (Ubuntu, #FF0052 / #94002F).
   ========================================================================= */

:root {
    --primary: #FF0052;      /* app --primaryColor */
    --primary-dark: #D60045;
    --blood: #94002F;        /* app --bloodColor   */
    --blood-deep: #5E001E;
    --ink: #14141A;
    --ink-soft: #4A4A55;
    --grey: #7A7A85;
    --light-grey: #DDDDDD;
    --hairline: #ECECF0;
    --bg: #F5F5F5;           /* app --backgroundColor */
    --surface: #FFFFFF;
    --surface-2: #FBF6F7;
    --white: #FFFFFF;

    --radius: 18px;
    --radius-lg: 28px;
    --radius-pill: 999px;
    --shadow-sm: 0 2px 8px rgba(20, 20, 26, .06);
    --shadow: 0 12px 30px rgba(20, 20, 26, .08);
    --shadow-primary: 0 14px 30px rgba(255, 0, 82, .28);

    --container: 1160px;
    --gutter: clamp(20px, 5vw, 48px);
    --font: 'Ubuntu', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    font-weight: 400;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); letter-spacing: -.015em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

h1:focus, h1:focus-visible { outline: none; }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 108px); }
.section--tint { background: var(--surface); }
.section-head { max-width: 680px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head p { margin-top: 14px; font-size: 1.075rem; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .8rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
    color: var(--primary); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--primary); border-radius: 2px; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--font); font-size: 1rem; font-weight: 500; line-height: 1;
    padding: 15px 28px; border: 0; border-radius: var(--radius-pill);
    cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--primary); color: var(--white); box-shadow: var(--shadow-primary); }
.btn--primary:hover { transform: translateY(-2px); background: var(--primary-dark); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--light-grey); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn--light { background: rgba(255,255,255,.14); color: var(--white); border: 1.5px solid rgba(255,255,255,.35); }
.btn--light:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.btn--block { width: 100%; }

.badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: var(--radius-pill);
    font-size: .82rem; font-weight: 500;
    background: rgba(255,0,82,.08); color: var(--primary);
}
.badge--soon { background: rgba(255,255,255,.16); color: #fff; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(245,245,245,.82);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--hairline); background: rgba(255,255,255,.86); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
    padding: 9px 15px; border-radius: var(--radius-pill);
    font-size: .95rem; color: var(--ink-soft); font-weight: 400;
    transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--ink); background: rgba(20,20,26,.05); }
.nav-links a.active { color: var(--primary); font-weight: 500; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

/* mobile nav */
.mobile-menu {
    display: none; flex-direction: column; gap: 4px;
    padding: 8px var(--gutter) 20px;
    background: var(--surface); border-bottom: 1px solid var(--hairline);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 13px 8px; border-radius: 12px; color: var(--ink-soft); font-size: 1.05rem; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--primary); background: var(--surface-2); }
.mobile-menu .btn { margin-top: 10px; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.28rem; color: var(--ink); letter-spacing: -.01em; }
.logo .drop { width: 30px; height: 30px; }
.logo span b { color: var(--primary); }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(1100px 520px at 78% -12%, rgba(255,0,82,.18), transparent 60%),
        linear-gradient(160deg, #fff 0%, var(--bg) 46%, #fdeef2 100%);
}
.hero-grid {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px);
    align-items: center; padding-block: clamp(52px, 8vw, 104px);
}
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { color: var(--primary); }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); max-width: 40ch; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-trust { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: var(--grey); font-size: .9rem; }
.hero-trust .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--light-grey); }

/* hero art */
.hero-art { position: relative; display: grid; place-items: center; min-height: 340px; }
.hero-drop {
    width: min(360px, 80%); filter: drop-shadow(0 30px 50px rgba(148,0,47,.35));
    animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero-chip {
    position: absolute; background: var(--surface); border-radius: 16px;
    box-shadow: var(--shadow); padding: 12px 16px; display: flex; align-items: center; gap: 12px;
    font-size: .9rem; font-weight: 500;
}
.hero-chip .bt {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(255,0,82,.1); color: var(--blood); font-weight: 700; font-size: .95rem;
}
.hero-chip small { display: block; color: var(--grey); font-weight: 400; font-size: .78rem; }
.hero-chip.c1 { top: 12%; left: -6%; animation: floaty 6s ease-in-out .6s infinite; }
.hero-chip.c2 { bottom: 14%; right: -4%; animation: floaty 6s ease-in-out 1.2s infinite; }

/* =========================================================================
   Stats
   ========================================================================= */
.stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
    margin-top: -1px;
}
.stat { text-align: center; padding: 8px; }
.stat .num { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; color: var(--primary); line-height: 1; letter-spacing: -.02em; }
.stat .lbl { margin-top: 10px; font-size: .92rem; color: var(--ink-soft); }

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

.card {
    background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
    padding: 30px; box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .98rem; }
.icon-badge {
    width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
    background: linear-gradient(150deg, rgba(255,0,82,.12), rgba(148,0,47,.12));
    color: var(--primary); margin-bottom: 20px;
}
.icon-badge svg { width: 26px; height: 26px; }

/* steps */
.step { position: relative; }
.step .step-num {
    width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
    background: var(--primary); color: #fff; font-weight: 700; font-size: 1.15rem; margin-bottom: 18px;
    box-shadow: var(--shadow-primary);
}

/* value list */
.value { display: flex; gap: 16px; align-items: flex-start; }
.value .tick {
    flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    background: rgba(255,0,82,.1); color: var(--primary);
}
.value h3 { font-size: 1.1rem; margin-bottom: 4px; }
.value p { font-size: .95rem; }

/* =========================================================================
   Blood-type compatibility
   ========================================================================= */
.bt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bt-card {
    background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
    padding: 22px; text-align: center; transition: transform .18s ease, box-shadow .18s ease;
}
.bt-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.bt-type {
    display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 14px;
    border-radius: 50%; font-size: 1.35rem; font-weight: 700; color: #fff;
    background: linear-gradient(150deg, var(--primary), var(--blood));
}
.bt-row { font-size: .84rem; color: var(--ink-soft); margin-top: 6px; }
.bt-row b { color: var(--ink); font-weight: 500; }
.bt-tag {
    display: inline-block; margin-top: 12px; padding: 4px 11px; border-radius: var(--radius-pill);
    font-size: .72rem; font-weight: 500; background: rgba(148,0,47,.1); color: var(--blood);
}

/* districts chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
    padding: 11px 20px; border-radius: var(--radius-pill); background: var(--surface);
    border: 1px solid var(--hairline); font-weight: 500; font-size: .95rem; color: var(--ink-soft);
    box-shadow: var(--shadow-sm);
}
.chip:hover { color: var(--primary); border-color: var(--primary); }

/* =========================================================================
   FAQ (native details/summary — works without JS)
   ========================================================================= */
.faq { max-width: 760px; margin-inline: auto; }
.faq details {
    background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px;
    padding: 4px 22px; margin-bottom: 12px; transition: box-shadow .2s ease;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
    cursor: pointer; list-style: none; padding: 18px 0; font-weight: 500; font-size: 1.05rem;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; font-size: 1.6rem; font-weight: 400; color: var(--primary);
    transition: transform .2s ease; line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; font-size: .98rem; }

/* =========================================================================
   Eligibility columns
   ========================================================================= */
.elig-list li { display: flex; gap: 13px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--hairline); font-size: 1rem; color: var(--ink-soft); }
.elig-list li:last-child { border-bottom: 0; }
.elig-list .mark { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .8rem; margin-top: 1px; }
.elig-yes .mark { background: #1DA95B; }
.elig-check .mark { background: var(--primary); }

/* =========================================================================
   CTA band
   ========================================================================= */
.cta-band {
    position: relative; overflow: hidden; border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary) 0%, var(--blood) 100%);
    color: #fff; padding: clamp(40px, 6vw, 68px); text-align: center;
}
.cta-band::before, .cta-band::after {
    content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08);
}
.cta-band::before { width: 320px; height: 320px; top: -140px; right: -80px; }
.cta-band::after { width: 240px; height: 240px; bottom: -130px; left: -60px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 28px; font-size: 1.08rem; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =========================================================================
   Contact
   ========================================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); }
.contact-item .icon-badge { margin-bottom: 0; }
.contact-item h3 { font-size: 1.05rem; }
.contact-item a, .contact-item span { color: var(--ink-soft); font-size: .98rem; }
.contact-item a:hover { color: var(--primary); }

/* =========================================================================
   Language switcher
   ========================================================================= */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: var(--radius-pill); background: rgba(20,20,26,.05); }
.lang-switch a { padding: 6px 12px; border-radius: var(--radius-pill); font-size: .85rem; font-weight: 500; color: var(--ink-soft); line-height: 1; }
.lang-switch a.active { background: var(--white); color: var(--primary); box-shadow: var(--shadow-sm); }
.lang-switch a:hover { color: var(--primary); }
.mobile-lang { margin-top: 8px; }
.mobile-lang .lang-switch { width: max-content; }

/* =========================================================================
   Forms
   ========================================================================= */
.center-cta { text-align: center; margin-top: 40px; }
.fine-print { text-align: center; max-width: 640px; margin: 32px auto 0; color: var(--grey); font-size: .95rem; }
.form-heading { margin-bottom: 20px; }

.form-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.field label { font-size: .9rem; font-weight: 500; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea, .field select {
    font-family: var(--font); font-size: 1rem; color: var(--ink);
    padding: 12px 14px; border: 1.5px solid var(--light-grey); border-radius: 12px;
    background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,0,82,.12);
}
.field textarea { resize: vertical; min-height: 120px; }

.interest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.interest { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1.5px solid var(--light-grey); border-radius: 12px; cursor: pointer; font-size: .92rem; transition: border-color .15s ease, background .15s ease; }
.interest:hover { border-color: var(--primary); }
.interest.checked { border-color: var(--primary); background: rgba(255,0,82,.06); color: var(--primary); font-weight: 500; }
.interest input { width: 17px; height: 17px; accent-color: var(--primary); flex: 0 0 auto; }

.form-error { color: var(--blood); font-size: .92rem; margin-bottom: 14px; font-weight: 500; }
.form-success { text-align: center; padding: 20px 8px; }
.form-success-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(29,169,91,.14); color: #1DA95B; margin-bottom: 14px; }
.form-success-icon svg { width: 28px; height: 28px; }
.form-success p { color: var(--ink); font-size: 1.05rem; font-weight: 500; }

/* Get involved */
.involve-card { display: flex; flex-direction: column; }
.involve-list { margin: 14px 0 22px; }
.involve-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--ink-soft); font-size: .96rem; }
.involve-list li svg { width: 18px; height: 18px; color: var(--primary); flex: 0 0 auto; }

/* Contact layout */
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: start; }
.contact-details { display: flex; flex-direction: column; gap: 18px; }

.big-code { font-size: clamp(4rem,14vw,7rem); font-weight: 700; color: var(--primary); line-height: 1; letter-spacing: -.03em; }

/* =========================================================================
   Page hero (inner pages)
   ========================================================================= */
.page-hero { background: linear-gradient(160deg, #fff, #fdeef2); padding-block: clamp(52px, 7vw, 88px); text-align: center; }
.page-hero p { max-width: 620px; margin: 16px auto 0; font-size: 1.1rem; }

.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { margin-top: 44px; margin-bottom: 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 16px; font-size: 1.05rem; }
.prose ul.bullets { margin: 8px 0 20px; }
.prose ul.bullets li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--ink-soft); }
.prose ul.bullets li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--ink); color: #C9C9D2; padding-block: 56px 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .logo { color: #fff; margin-bottom: 16px; }
.site-footer .logo span { color: #fff; }
.footer-about { max-width: 34ch; font-size: .95rem; color: #9B9BA6; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; font-weight: 500; letter-spacing: .02em; }
.footer-col a { display: block; padding: 6px 0; color: #9B9BA6; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; transition: background .2s ease, transform .2s ease; }
.footer-social a:hover { background: var(--primary); transform: translateY(-2px); }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .875rem; color: #7C7C86; }
.footer-bottom a:hover { color: #fff; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 940px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero .lead { margin-inline: auto; }
    .hero-cta, .hero-trust { justify-content: center; }
    .hero-art { order: -1; min-height: 260px; }
    .grid-3, .grid-4, .bt-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
    .contact-grid, .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .nav-links, .nav-actions .btn { display: none; }
    .nav-toggle { display: block; }
}
/* Never let the mobile menu leak onto desktop (e.g. if left open on resize). */
@media (min-width: 901px) {
    .mobile-menu, .mobile-menu.open { display: none !important; }
}
@media (max-width: 720px) {
    .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
}
@media (max-width: 520px) {
    .grid-3, .grid-4, .bt-grid, .grid-2, .contact-grid { grid-template-columns: 1fr; }
    .hero-chip { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .form-row, .interest-grid { grid-template-columns: 1fr; }
}

/* respects users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto !important; }
}

/* =========================================================================
   RTL / Arabic
   Most of the layout mirrors automatically from <html dir="rtl">; these are
   the few explicit tweaks (absolute-positioned art, the eyebrow rule, font).
   ========================================================================= */
[dir="rtl"] body { font-family: 'Cairo', 'Ubuntu', 'Segoe UI', Tahoma, sans-serif; }
[dir="rtl"] .eyebrow::before { margin-left: 0; }
[dir="rtl"] .hero-chip.c1 { left: auto; right: -6%; }
[dir="rtl"] .hero-chip.c2 { right: auto; left: -4%; }
[dir="rtl"] .cta-band::before { right: auto; left: -80px; }
[dir="rtl"] .cta-band::after { left: auto; right: -60px; }
[dir="rtl"] .faq summary { text-align: right; }
/* Arabic reads better a touch larger / more line-height */
[dir="rtl"] { --font: 'Cairo', 'Ubuntu', sans-serif; }
[dir="rtl"] p, [dir="rtl"] .lead { line-height: 1.8; }
