/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --red:        #e63946;
    --red-dark:   #c1121f;
    --red-light:  #ff4d5a;
    --dark:       #1a1a2e;
    --darker:     #0f0f1a;
    --gray:       #6c757d;
    --light:      #f8f9fa;
    --white:      #ffffff;
    --shadow:     0 8px 32px rgba(0,0,0,.10);
    --shadow-lg:  0 20px 60px rgba(0,0,0,.15);
    --radius:     14px;
    --transition: .3s cubic-bezier(.4,0,.2,1);
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.65;
    overflow-x: hidden;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 30px; border-radius: 50px;
    font-weight: 600; font-size: .95rem;
    transition: var(--transition); cursor: pointer; border: 2px solid transparent;
}
.btn-primary {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff; box-shadow: 0 4px 20px rgba(230,57,70,.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(230,57,70,.45); }
.btn-outline {
    border-color: #fff; color: #fff;
}
.btn-outline:hover { background: #fff; color: var(--red); }
.btn-urgent {
    background: linear-gradient(135deg, #ff6b35, var(--red));
    color: #fff; box-shadow: 0 4px 20px rgba(255,107,53,.4);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%,100% { box-shadow: 0 4px 20px rgba(255,107,53,.4); }
    50%      { box-shadow: 0 4px 35px rgba(255,107,53,.7); }
}
.btn-full { width: 100%; justify-content: center; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 16px 0; z-index: 1000;
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,.08);
    padding: 10px 0;
}
.nav-wrapper { display: flex; align-items: center; justify-content: space-between; }
.logo {
    font-size: 1.4rem; font-weight: 800;
    color: var(--red); display: flex; align-items: center; gap: 8px;
}
.logo i { font-size: 1.6rem; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
    font-size: .92rem; font-weight: 500; color: var(--dark);
    transition: var(--transition); position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--red);
    transition: var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.btn-nav {
    background: var(--red); color: #fff !important;
    padding: 10px 22px; border-radius: 50px;
    font-weight: 600;
}
.btn-nav:hover { background: var(--red-dark); }
.btn-nav::after { display: none !important; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.hamburger span {
    width: 26px; height: 3px; background: var(--dark);
    border-radius: 3px; transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 70% 30%, rgba(230,57,70,.15) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(230,57,70,.10) 0%, transparent 50%),
        linear-gradient(160deg, #fff 0%, #fff5f5 40%, #ffe8ea 100%);
}
.hero-overlay {
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23e63946' fill-opacity='0.03'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1.1fr .9fr;
    gap: 60px; align-items: center;
    padding: 120px 0 80px;
}
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(230,57,70,.1); color: var(--red);
    padding: 6px 16px; border-radius: 50px;
    font-size: .82rem; font-weight: 600;
    margin-bottom: 20px;
}
.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem; line-height: 1.1;
    margin-bottom: 20px;
}
.highlight { color: var(--red); }
.hero-sub {
    font-size: 1.1rem; color: var(--gray);
    max-width: 520px; margin-bottom: 32px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

/* Hero Stats */
.hero-stats { display: flex; gap: 40px; }
.stat { text-align: center; }
.stat-num {
    display: block; font-size: 2rem; font-weight: 800;
    color: var(--red); font-family: 'Inter', sans-serif;
}
.stat-label { font-size: .85rem; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; }

/* Donation Card (Hero visual) */
.hero-visual { display: flex; justify-content: center; }
.donation-card {
    background: #fff; border-radius: 20px;
    padding: 36px; width: 100%; max-width: 380px;
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
    transition: var(--transition);
}
.donation-card:hover { transform: rotate(0deg) scale(1.02); }
.card-icon {
    width: 60px; height: 60px; border-radius: 16px;
    background: linear-gradient(135deg, var(--red), var(--red-light));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff; margin-bottom: 20px;
}
.donation-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.card-date { color: var(--red); font-weight: 600; font-size: .95rem; }
.card-loc { color: var(--gray); font-size: .88rem; margin-bottom: 20px; }
.card-progress { margin-bottom: 20px; }
.progress-bar {
    height: 8px; background: #eee; border-radius: 50px;
    overflow: hidden; margin-bottom: 6px;
}
.progress-fill {
    height: 100%; border-radius: 50px;
    background: linear-gradient(90deg, var(--red), var(--red-light));
    transition: width 1.5s ease;
}
.card-progress span { font-size: .78rem; color: var(--gray); }
.card-btn {
    display: block; text-align: center;
    background: var(--dark); color: #fff;
    padding: 12px; border-radius: 10px;
    font-weight: 600; font-size: .9rem;
    transition: var(--transition);
}
.card-btn:hover { background: var(--red); }

/* ===== SECTIONS COMMON ===== */
section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
    display: inline-block;
    background: rgba(230,57,70,.1); color: var(--red);
    padding: 4px 14px; border-radius: 50px;
    font-size: .78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 12px;
}
.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem; margin-bottom: 12px;
}
.section-header p { color: var(--gray); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ===== HOW IT WORKS ===== */
.how-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.how-card {
    background: #fff; border-radius: var(--radius);
    padding: 40px 32px; text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative; overflow: hidden;
}
.how-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--red), var(--red-light));
    transform: scaleX(0); transition: var(--transition);
}
.how-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.how-card:hover::before { transform: scaleX(1); }
.step-num {
    font-size: 3.5rem; font-weight: 800;
    color: rgba(230,57,70,.08); position: absolute;
    top: 10px; right: 20px;
}
.how-icon {
    width: 70px; height: 70px; border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--red-light));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: #fff;
    margin: 0 auto 20px;
}
.how-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.how-card p { color: var(--gray); font-size: .95rem; }

/* ===== BLOOD TYPES ===== */
.blood-types { background: #fff; }
.bt-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.bt-card {
    background: var(--light); border-radius: var(--radius);
    padding: 32px 24px; text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
}
.bt-card:hover { border-color: var(--red); transform: translateY(-5px); box-shadow: var(--shadow); }
.bt-card.universal {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
}
.bt-card.universal .bt-percent { color: rgba(255,255,255,.8); }
.bt-circle {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--red); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; font-weight: 800;
    margin: 0 auto 16px;
    box-shadow: 0 4px 15px rgba(230,57,70,.3);
}
.bt-card p { font-size: .85rem; color: var(--gray); margin-bottom: 6px; }
.bt-card.universal p { color: rgba(255,255,255,.9); }
.bt-percent {
    display: block; margin-top: 12px;
    font-size: .75rem; color: var(--gray);
    text-transform: uppercase; letter-spacing: 1px;
}

/* ===== CENTERS ===== */
.search-bar {
    display: flex; align-items: center;
    background: #fff; border-radius: 50px;
    padding: 6px 6px 6px 20px;
    max-width: 600px; margin: 0 auto 48px;
    box-shadow: var(--shadow);
    border: 2px solid #eee;
}
.search-bar i { color: var(--gray); margin-right: 10px; }
.search-bar input {
    flex: 1; border: none; outline: none;
    font-size: 1rem; padding: 10px 0;
    background: transparent;
}
.btn-search {
    background: var(--red); color: #fff;
    border: none; padding: 10px 24px;
    border-radius: 50px; font-weight: 600;
    cursor: pointer; transition: var(--transition);
}
.btn-search:hover { background: var(--red-dark); }

.center-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.center-card {
    background: #fff; border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex; flex-direction: column;
}
.center-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.center-img {
    height: 140px;
    background: linear-gradient(135deg, #ffe8ea, #fff);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: var(--red);
}
.center-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.center-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.center-body p { font-size: .88rem; color: var(--gray); margin-bottom: 4px; }
.center-body p i { color: var(--red); margin-right: 6px; }
.center-tags { display: flex; gap: 6px; margin: 14px 0; flex-wrap: wrap; }
.tag {
    padding: 3px 10px; border-radius: 50px;
    font-size: .72rem; font-weight: 700;
}
.tag-red   { background: rgba(230,57,70,.12); color: var(--red); }
.tag-blue  { background: rgba(0,119,204,.10); color: #0077cc; }
.tag-green { background: rgba(0,168,0,.10); color: #00a800; }
.center-link {
    margin-top: auto; font-size: .88rem;
    font-weight: 600; color: var(--red);
    transition: var(--transition);
}
.center-link:hover { gap: 10px; }
.center-link i { transition: var(--transition); }
.center-link:hover i { transform: translateX(4px); }

/* ===== URGENCY BANNER ===== */
.urgency {
    background: linear-gradient(135deg, var(--dark), #16213e);
    padding: 50px 0;
}
.urgency-inner {
    display: flex; align-items: center;
    justify-content: space-between;
    gap: 30px; flex-wrap: wrap;
}
.urgency-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(230,57,70,.2); color: var(--red-light);
    padding: 4px 14px; border-radius: 50px;
    font-size: .8rem; font-weight: 700;
    margin-bottom: 10px;
}
.urgency h2 { color: #fff; font-size: 1.8rem; margin-bottom: 8px; }
.urgency p { color: rgba(255,255,255,.7); max-width: 500px; }

/* ===== TESTIMONIALS ===== */
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.test-card {
    background: #fff; border-radius: var(--radius);
    padding: 32px; box-shadow: var(--shadow);
    transition: var(--transition);
}
.test-card:hover { transform: translateY(-5px); }
.stars { color: #f4b400; margin-bottom: 14px; font-size: 1.1rem; }
.test-card p { color: var(--gray); font-size: .95rem; margin-bottom: 20px; font-style: italic; }
.test-author { display: flex; align-items: center; gap: 12px; }
.avatar {
    width: 46px; height: 46px; border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--red-light));
    color: #fff; display: flex; align-items: center;
    justify-content: center; font-weight: 700; font-size: .9rem;
}
.test-author strong { display: block; font-size: .92rem; }
.test-author span { font-size: .8rem; color: var(--gray); }

/* ===== CTA / DONATE FORM ===== */
.cta-section {
    background: linear-gradient(135deg, #ffe8ea, #fff5f5);
    text-align: center;
}
.cta-inner h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem; margin-bottom: 10px;
}
.cta-inner > p { color: var(--gray); margin-bottom: 40px; font-size: 1.1rem; }
.donate-form {
    max-width: 700px; margin: 0 auto;
    background: #fff; border-radius: 20px;
    padding: 40px; box-shadow: var(--shadow-lg);
}
.form-row {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px; margin-bottom: 16px;
}
.donate-form input, .donate-form select {
    width: 100%; padding: 14px 16px;
    border: 2px solid #eee; border-radius: 10px;
    font-size: .95rem; outline: none;
    transition: var(--transition);
    background: var(--light);
}
.donate-form input:focus, .donate-form select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(230,57,70,.1);
}
.form-note {
    font-size: .8rem; color: var(--gray);
    margin-top: 16px;
}

/* ===== FAQ ===== */
.faq { background: #fff; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
    border: 1px solid #eee; border-radius: 12px;
    margin-bottom: 12px; overflow: hidden;
    transition: var(--transition);
}
.faq-item:hover { border-color: var(--red); }
.faq-q {
    width: 100%; padding: 20px 24px;
    background: none; border: none;
    font-size: 1rem; font-weight: 600;
    text-align: left; cursor: pointer;
    display: flex; align-items: center; gap: 12px;
    color: var(--dark);
}
.faq-q i {
    margin-left: auto; color: var(--red);
    transition: var(--transition);
}
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a {
    max-height: 0; overflow: hidden;
    transition: max-height .4s ease;
    padding: 0 24px;
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 24px 20px; }
.faq-a p { color: var(--gray); font-size: .93rem; }

/* ===== FOOTER ===== */
.footer {
    background: var(--darker); color: rgba(255,255,255,.7);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px; padding-bottom: 40px;
}
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: .9rem; margin-bottom: 18px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
    color: #fff; transition: var(--transition);
}
.footer-social a:hover { background: var(--red); transform: translateY(-3px); }
.footer-col h4 {
    color: #fff; font-size: .95rem;
    margin-bottom: 16px; text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-col a, .footer-col p {
    display: block; font-size: .88rem;
    margin-bottom: 10px; color: rgba(255,255,255,.6);
    transition: var(--transition);
}
.footer-col a:hover { color: var(--red-light); padding-left: 4px; }
.footer-col p i { color: var(--red-light); margin-right: 6px; }
.footer-bottom {
    text-align: center; padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: .82rem;
}

/* ===== BACK TO TOP ===== */
.back-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--red); color: #fff;
    border: none; font-size: 1rem;
    cursor: pointer; z-index: 999;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(230,57,70,.4);
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--red-dark); transform: translateY(-3px); }

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-sub, .hero-buttons { margin-left: auto; margin-right: auto; }
    .hero-visual { display: none; }
    .how-grid, .center-grid, .test-grid { grid-template-columns: repeat(2, 1fr); }
    .bt-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-links {
        position: fixed; top: 0; right: -100%;
        width: 70%; height: 100vh;
        background: #fff; flex-direction: column;
        padding: 80px 30px; gap: 20px;
        box-shadow: -5px 0 30px rgba(0,0,0,.1);
        transition: right .4s ease;
    }
    .nav-links.active { right: 0; }
    .hamburger { display: flex; }
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
    .hero-text h1 { font-size: 2.5rem; }
    .how-grid, .center-grid, .test-grid, .bt-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .urgency-inner { flex-direction: column; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 24px; }
    .stat-num { font-size: 1.5rem; }
}