:root {
    --color-navy: #1a365d;
    --color-navy-dark: #0f2442;
    --color-navy-light: #2c5282;
    --color-slate: #64748b;
    --color-slate-light: #94a3b8;
    --color-slate-dark: #475569;
    --color-white: #ffffff;
    --color-off-white: #f8fafc;
    --color-gray-100: #f1f5f9;
    --color-gray-200: #e2e8f0;
    --color-accent: #3b82f6;
    --color-accent-dark: #2563eb;
    --font-heading: 'Merriweather', Georgia, serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-slate-dark);
    background-color: var(--color-white);
}

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

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-navy);
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-hope {
    color: var(--color-accent);
}

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

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-navy);
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-white);
    list-style: none;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.nav-link {
    display: block;
    padding: 0.75rem 0;
    color: var(--color-slate-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

.nav-btn {
    display: inline-block;
    margin-top: 0.5rem;
}

.donate-btn {
    background: var(--color-accent);
    color: var(--color-white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.donate-btn:hover {
    background: var(--color-accent-dark);
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-navy);
}

.btn-outline {
    background: transparent;
    color: var(--color-navy);
    border: 2px solid var(--color-navy);
}

.btn-outline:hover {
    background: var(--color-navy);
    color: var(--color-white);
}

.btn-full {
    width: 100%;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url('assets/impact_gallery/HOPE_Heals_Community_Coalition_Vigil.jpg') center center / cover no-repeat;
    padding: 6rem 0 3rem;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.85) 0%, rgba(30, 64, 110, 0.8) 50%, rgba(42, 82, 138, 0.75) 100%);
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--color-white);
    max-width: 800px;
    padding: 0 1.5rem;
}

.hero-acronym {
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.hero-acronym strong {
    color: var(--color-accent);
    font-size: 1.3em;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.impact-counter {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
    width: 100%;
    max-width: 800px;
}

.counter-item {
    text-align: center;
    color: var(--color-white);
}

.counter-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.counter-label {
    font-size: 0.875rem;
    opacity: 0.9;
    display: block;
    margin-top: 0.25rem;
}

.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--color-navy);
    margin-bottom: 1rem;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--color-accent);
    margin: 0 auto;
    border-radius: 2px;
}

.story {
    background: var(--color-off-white);
}

.story-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.story-main-image {
    max-width: 280px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.story-content {
    display: grid;
    gap: 3rem;
}

.story-text h3 {
    font-family: var(--font-heading);
    color: var(--color-navy);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.story-text p {
    margin-bottom: 1.5rem;
    color: var(--color-slate-dark);
}

.founder-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--color-white);
    border-radius: 12px;
    border-left: 4px solid var(--color-accent);
}

.founder-section h3 {
    font-family: var(--font-heading);
    color: var(--color-navy);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.founder-section p {
    margin-bottom: 0;
    color: var(--color-slate-dark);
}

.story-values {
    display: grid;
    gap: 1.5rem;
}

.value-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    width: 48px;
    height: 48px;
    background: var(--color-gray-100);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.value-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
}

.value-card h4 {
    font-family: var(--font-heading);
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--color-slate);
}

.coalition-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.coalition-intro h3 {
    font-family: var(--font-heading);
    color: var(--color-navy);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.coalition-pillars {
    display: grid;
    gap: 2rem;
}

.pillar {
    position: relative;
    padding: 1.5rem;
    background: var(--color-off-white);
    border-radius: 12px;
    border-left: 4px solid var(--color-accent);
}

.pillar-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gray-200);
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.pillar h4 {
    font-family: var(--font-heading);
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.pillar p {
    color: var(--color-slate);
    font-size: 0.95rem;
}

.impact {
    background: var(--color-off-white);
}

.impact-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--color-slate);
}

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

.gallery-grid.gallery-10 {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-grid.gallery-8 {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--color-white);
    padding: 2rem 1rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.gallery-item-logo {
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.gallery-item-logo img {
    object-fit: contain;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-gray-100) 0%, var(--color-gray-200) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.gallery-placeholder:hover {
    background: linear-gradient(135deg, var(--color-gray-200) 0%, var(--color-gray-100) 100%);
}

.gallery-placeholder svg {
    width: 40px;
    height: 40px;
    color: var(--color-slate-light);
}

.gallery-placeholder span {
    font-size: 0.875rem;
    color: var(--color-slate);
    font-weight: 500;
}

.involved-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.involved-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.involved-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: var(--color-gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-accent);
}

.involved-card h3 {
    font-family: var(--font-heading);
    color: var(--color-navy);
    margin-bottom: 0.75rem;
}

.involved-card p {
    color: var(--color-slate);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.pledge-section {
    background: var(--color-navy);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
}

.pledge-content {
    display: grid;
    gap: 2.5rem;
}

.pledge-info {
    color: var(--color-white);
}

.pledge-info h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.pledge-info p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

.qr-placeholder {
    text-align: center;
}

.qr-code {
    width: 200px;
    height: 200px;
    background: var(--color-white);
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    padding: 1rem;
}

.qr-code svg {
    width: 100%;
    height: 100%;
    color: var(--color-navy);
}

.qr-placeholder p {
    font-size: 0.875rem;
    opacity: 0.8;
}

.pledge-form {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-gray-200);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.amount-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.amount-btn {
    padding: 0.75rem;
    border: 2px solid var(--color-gray-200);
    border-radius: 8px;
    background: var(--color-white);
    font-weight: 600;
    color: var(--color-navy);
    cursor: pointer;
    transition: var(--transition);
}

.amount-btn:hover,
.amount-btn.active {
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: var(--color-white);
}

.form-row {
    display: grid;
    gap: 1rem;
}

.contact {
    background: var(--color-off-white);
}

.contact-content {
    display: grid;
    gap: 3rem;
}

.contact-info h3 {
    font-family: var(--font-heading);
    color: var(--color-navy);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--color-slate);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-slate-dark);
}

.contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.contact-form {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.footer {
    background: var(--color-navy-dark);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-brand p {
    opacity: 0.8;
    font-size: 0.95rem;
    max-width: 300px;
    margin-bottom: 0.5rem;
}

.hope-definition {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.hope-definition strong {
    color: var(--color-accent);
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 1rem;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color-navy);
    color: var(--color-white);
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 2000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.thank-you-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 1rem;
}

.thank-you-modal.show {
    opacity: 1;
    visibility: visible;
}

.thank-you-content {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    transform: scale(0.9);
    transition: var(--transition);
}

.thank-you-modal.show .thank-you-content {
    transform: scale(1);
}

.thank-you-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-accent), #e57373);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.thank-you-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--color-white);
}

.thank-you-content h3 {
    font-family: var(--font-heading);
    color: var(--color-navy);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.thank-you-content p {
    color: var(--color-slate-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }

    .impact-counter {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-grid.gallery-10 {
        grid-template-columns: repeat(5, 1fr);
    }

    .gallery-grid.gallery-8 {
        grid-template-columns: repeat(4, 1fr);
    }

    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        display: flex;
        align-items: center;
        gap: 1.5rem;
        background: transparent;
        padding: 0;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        padding: 0.5rem 0;
    }

    .nav-btn {
        margin-top: 0;
    }

    .story-values {
        grid-template-columns: repeat(3, 1fr);
    }

    .coalition-pillars {
        grid-template-columns: repeat(2, 1fr);
    }

    .involved-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pledge-content {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .contact-content {
        grid-template-columns: 1fr 1.5fr;
        align-items: start;
    }

    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .section {
        padding: 6rem 0;
    }

    .gallery-grid.gallery-10 {
        grid-template-columns: repeat(5, 1fr);
    }

    .gallery-grid.gallery-8 {
        grid-template-columns: repeat(4, 1fr);
    }

    .story-main-image {
        max-width: 320px;
    }

    .story-content {
        grid-template-columns: 1.2fr 1fr;
        align-items: start;
    }

    .pledge-section {
        padding: 3rem;
    }

    .pledge-form {
        padding: 2.5rem;
    }
}
