/* ============================================
   EMERGENCY PREPAREDNESS WEBSITE
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
}

:root {
    --primary-red: #DC2626;
    --primary-red-dark: #B91C1C;
    --primary-blue: #1E3A8A;
    --primary-blue-dark: #1E3A5F;
    --white: #ffffff;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-900: #111827;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title,
.section-subtitle,
.resource-card,
.team-card,
.involvement-card,
.partner-card,
.mission-layout {
    animation: fadeInUp 0.6s ease-out both;
}

/* Stagger animations */
.resource-card:nth-child(1) { animation-delay: 0.1s; }
.resource-card:nth-child(2) { animation-delay: 0.2s; }
.involvement-card:nth-child(1) { animation-delay: 0.1s; }
.involvement-card:nth-child(2) { animation-delay: 0.2s; }
.involvement-card:nth-child(3) { animation-delay: 0.3s; }
.partner-card:nth-child(1) { animation-delay: 0.1s; }
.partner-card:nth-child(2) { animation-delay: 0.2s; }
.partner-card:nth-child(3) { animation-delay: 0.3s; }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-red);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-logo {
    height: 38px;
}

.brand-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-blue);
}

.nav-checkbox {
    display: none;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-hamburger span {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    transition: 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 0.5rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-red);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-red);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    padding: 1rem 2.5rem;
    border-radius: 2rem;
    font-size: 1.05rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    min-height: 3.5rem;
    min-width: 580px;
}

.rotating-fact {
    position: absolute;
    opacity: 0;
    transform: translateY(20px);
    animation: rotateFacts 40s infinite;
    padding: 0 1rem;
}

.rotating-fact:nth-child(1) { animation-delay: 0s; }
.rotating-fact:nth-child(2) { animation-delay: 4s; }
.rotating-fact:nth-child(3) { animation-delay: 8s; }
.rotating-fact:nth-child(4) { animation-delay: 12s; }
.rotating-fact:nth-child(5) { animation-delay: 16s; }
.rotating-fact:nth-child(6) { animation-delay: 20s; }
.rotating-fact:nth-child(7) { animation-delay: 24s; }
.rotating-fact:nth-child(8) { animation-delay: 28s; }
.rotating-fact:nth-child(9) { animation-delay: 32s; }
.rotating-fact:nth-child(10) { animation-delay: 36s; }

@keyframes rotateFacts {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    1% {
        opacity: 1;
        transform: translateY(0);
    }
    9% {
        opacity: 1;
        transform: translateY(0);
    }
    10% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-headline {
    font-size: 2.25rem;
    font-weight: 700;
    color: #fde047;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    font-weight: 400;
}

.language-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.lang-btn {
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
}

.lang-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: var(--white);
    color: var(--primary-blue);
    border-color: var(--white);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    font-size: 1rem;
    opacity: 0.9;
}

.hero-feature {
    display: inline;
}

/* ============================================
   BUTTONS - All buttons: blue default, red on hover
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s;
    border: 2px solid var(--primary-blue);
    cursor: pointer;
    background: var(--primary-blue);
    color: var(--white);
}

.btn:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

.btn-primary,
.btn-download,
.btn-view,
.btn-outline {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.btn-primary:hover,
.btn-download:hover,
.btn-view:hover,
.btn-outline:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 4.5rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    text-align: center;
    margin-bottom: 2.5rem;
}

/* ============================================
   RESOURCES SECTION
   ============================================ */
.resources-section {
    background: var(--gray-50);
}

.language-section-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-red);
    display: inline-block;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.resource-card {
    background: var(--white);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.resource-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
    color: var(--white);
}

.resource-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.language-badge {
    background: rgba(255,255,255,0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.pdf-preview {
    height: 350px;
    background: var(--gray-100);
}

.pdf-preview embed {
    width: 100%;
    height: 100%;
    border: none;
}

.resource-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--gray-50);
}

.resource-actions .btn {
    flex: 1;
    padding: 0.65rem;
    font-size: 0.85rem;
}

/* ============================================
   MISSION SECTION
   ============================================ */
.mission-section {
    background: var(--white);
}

.mission-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.mission-logo {
    flex-shrink: 0;
}

.mission-logo img {
    width: 180px;
    height: auto;
    opacity: 0.9;
}

.mission-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.mission-highlight {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.mission-content p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--gray-700);
    margin-bottom: 1rem;
}

.mission-content .btn {
    margin-top: 0.5rem;
}

/* ============================================
   PARTNERS SECTION
   ============================================ */
.partners-section {
    background: var(--gray-50);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.partner-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: 0.75rem;
    text-align: center;
    border-top: 4px solid var(--primary-blue);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-top-color: var(--primary-red);
}

.partner-placeholder {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    color: var(--gray-600);
    padding: 1.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.partner-card h3 {
    font-size: 1.1rem;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.partner-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 1.25rem;
    line-height: 1.5;
    flex-grow: 1;
}

.partner-card .btn {
    margin-top: auto;
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
    color: var(--white);
}

.team-section .section-title {
    color: var(--white);
}

.team-grid {
    max-width: 450px;
    margin: 0 auto;
}

.team-card {
    background: var(--white);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.team-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-blue);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: 0.75rem;
}

.team-bio {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.65;
}

/* ============================================
   GET INVOLVED SECTION
   ============================================ */
.get-involved-section {
    background: var(--white);
}

.involvement-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.involvement-card {
    background: var(--gray-50);
    padding: 1.75rem;
    border-radius: 0.75rem;
    text-align: center;
    border-top: 4px solid var(--primary-blue);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.involvement-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-top-color: var(--primary-red);
}

.involvement-card h3 {
    font-size: 1.1rem;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.involvement-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.involvement-card .btn {
    margin-top: auto;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--gray-900);
    color: var(--gray-200);
    padding: 2.5rem 0 1.25rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.footer-section p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--gray-200);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: var(--gray-200);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 1.25rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-600);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .resources-grid,
    .involvement-options,
    .partners-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .mission-layout {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .mission-logo img {
        width: 140px;
    }
}

@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform 0.3s;
    }

    .nav-checkbox:checked ~ .nav-menu {
        transform: translateY(0);
    }

    .nav-checkbox:checked ~ .nav-hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-checkbox:checked ~ .nav-hamburger span:nth-child(2) {
        opacity: 0;
    }

    .nav-checkbox:checked ~ .nav-hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-section {
        padding: 3rem 0;
    }

    .hero-tag {
        min-width: auto;
        width: 90%;
        max-width: 400px;
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }

    .rotating-fact {
        font-size: 0.85rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-headline {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .language-buttons {
        flex-direction: column;
        align-items: center;
    }

    .lang-btn {
        width: 100%;
        max-width: 280px;
    }

    .hero-features {
        flex-direction: column;
        gap: 0.75rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.65rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.65rem;
    }

    .hero-headline {
        font-size: 1.25rem;
    }

    .resource-actions {
        flex-direction: column;
    }

    .resource-actions .btn {
        width: 100%;
    }
}
