/* Global color system */
:root {
    --blood-red: #b31217;
    --blood-red-dark: #6b0f12;
    --blood-red-light: #ff5c5c;
    --blood-red-soft: #ffe5e5;
    --charcoal: #1f2933;
    --text-muted: #5b6574;
    --surface: #ffffff;
    --surface-alt: #f5f7fb;
    --border: #e2e8f0;
    --shadow-md: 0 20px 45px rgba(179, 18, 23, 0.12);
    --shadow-sm: 0 10px 25px rgba(31, 41, 51, 0.08);
    --radius-lg: 24px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Noto Sans Bengali', sans-serif;
    margin: 0;
    color: var(--charcoal);
    background: var(--surface-alt);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--blood-red-light);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1200px, 94%);
    margin: 0 auto;
}

/* Header & navigation */
.site-header {
    background: linear-gradient(135deg, var(--blood-red-dark), var(--blood-red));
    color: var(--surface);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--surface);
    font-weight: 600;
}

.brand__icon {
    width: 42px;
    height: 42px;
    border-radius: 50% 50% 50% 0;
    background: var(--blood-red-light);
    transform: rotate(-45deg);
    display: inline-block;
}

.brand__text span {
    display: block;
    font-size: 1rem;
}

.brand__text small {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.nav-toggle__bar {
    width: 26px;
    height: 3px;
    background: var(--surface);
    border-radius: 2px;
}

.site-nav {
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    font-weight: 500;
    border-radius: 999px;
    color: var(--text-muted);
    transition: background 0.3s ease, color 0.3s ease;
}

.nav-links a i {
    color: var(--blood-red);
}

.nav-links a.active,
.nav-links a:hover {
    background: var(--blood-red-soft);
    color: var(--blood-red-dark);
}

.nav-profile .avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--blood-red-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.nav-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-weight: 600;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Hero & banners */
.hero {
    background: linear-gradient(120deg, rgba(179, 18, 23, 0.95), rgba(107, 15, 18, 0.95));
    color: var(--surface);
    padding: 60px 0;
    margin-top: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.hero p {
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
}

.emergency-banner {
    background: linear-gradient(135deg, var(--blood-red-light), var(--blood-red));
    color: var(--surface);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Stats */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 18px;
    border-radius: var(--radius-md);
    text-align: center;
}

.stat-card strong {
    font-size: 2rem;
    display: block;
}

.stat-card span {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* Cards & grids */
.grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card__image {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--blood-red-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    align-self: center;
}

.card__meta p {
    margin: 6px 0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag {
    align-self: flex-start;
    padding: 6px 14px;
    background: var(--blood-red-soft);
    color: var(--blood-red);
    border-radius: 999px;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blood-red), var(--blood-red-dark));
    color: var(--surface);
    box-shadow: var(--shadow-sm);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--charcoal);
}

.btn:hover {
    transform: translateY(-2px);
}

/* Forms */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.form-group label {
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--blood-red-light);
}

.registration-section {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin: 40px auto;
    max-width: 640px;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--blood-red-dark), var(--blood-red));
    color: var(--surface);
    margin-top: 60px;
    padding: 50px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

.footer-block h3 {
    margin-bottom: 18px;
    font-size: 1.15rem;
}

.footer-meta,
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-meta li,
.footer-links li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a {
    color: inherit;
}

.footer-icons span,
.social-icons a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.15);
}

.footer-hotline {
    margin-top: 14px;
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    margin-top: 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.blood-drop {
    width: 14px;
    height: 14px;
    border-radius: 50% 50% 50% 0;
    background: var(--blood-red-light);
    display: inline-block;
    transform: rotate(-45deg);
}

.heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite both;
}

@keyframes heartbeat {
    0% { transform: rotate(-45deg) scale(1); }
    25% { transform: rotate(-45deg) scale(0.9); }
    50% { transform: rotate(-45deg) scale(1); }
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: sticky;
        top: 70px;
    }

    .nav-links {
        flex-direction: column;
        padding: 16px;
        display: none;
    }

    .site-nav.is-open .nav-links,
    .nav-links.is-open {
        display: flex;
    }

    [data-nav].is-open .nav-links {
        display: flex;
    }
}
