:root {
    --bg: #f5efe6;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-strong: #fffaf3;
    --primary: #1f6f5f;
    --primary-dark: #174f44;
    --accent: #e49b3f;
    --text: #24312d;
    --muted: #5d6a66;
    --border: rgba(31, 111, 95, 0.14);
    --shadow: 0 18px 45px rgba(24, 58, 50, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--text);
    background-color: #e7dfd2;
    background:
        linear-gradient(rgba(18, 55, 48, 0.58), rgba(18, 55, 48, 0.4)),
        url("https://images.unsplash.com/photo-1627764940620-90393d0e8c34?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D") center/cover fixed;
}

a {
    color: inherit;
    text-decoration: none;
}

.hero {
    min-height: 100vh;
    padding: 24px clamp(20px, 4vw, 56px) 64px;
    display: flex;
    flex-direction: column;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    background: rgba(20, 38, 34, 0.38);
    backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 420px;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff8ee;
}

.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.34);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 18px;
    color: #fff8ee;
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
}

.nav-links a {
    opacity: 0.9;
}

.nav-links a:hover {
    opacity: 1;
    color: #ffd39a;
}

.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 56px 0 24px;
}

.hero-copy {
    max-width: 760px;
    padding: clamp(24px, 4vw, 44px);
    border-radius: 30px;
    background: rgba(255, 250, 243, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    color: #fffef9;
}

.eyebrow,
.section-kicker {
    margin: 0 0 14px;
    font-family: Arial, sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffd39a;
}

.hero h1,
.section-heading h2,
.donation-section h2 {
    margin: 0;
    line-height: 1.08;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    max-width: 12ch;
}

.hero-text,
.section-text,
.card p,
.project-card p,
.donation-section p {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
}

.hero-text {
    max-width: 58ch;
    margin: 18px 0 0;
    color: rgba(255, 248, 238, 0.92);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    color: #2f220f;
}

.btn-primary:hover {
    background: #f0ab53;
}

.btn-secondary {
    background: transparent;
    color: #fff8ee;
    border: 1px solid rgba(255, 248, 238, 0.32);
}

.btn-secondary:hover {
    background: rgba(255, 248, 238, 0.12);
}

main {
    padding: 0 clamp(20px, 4vw, 56px) 64px;
}

.info-section,
.form-section,
.donation-section {
    margin: 0 auto 28px;
    padding: clamp(28px, 4vw, 42px);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.alt-section {
    background: var(--surface-strong);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.section-heading h2,
.donation-section h2 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    color: var(--primary-dark);
}

.section-text {
    margin-top: 14px;
    color: var(--muted);
}

.cards,
.project-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.project-card {
    padding: 22px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.72);
}

.card h3,
.project-card h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    color: var(--primary-dark);
}

.card p,
.project-card p {
    margin: 0;
    color: var(--muted);
}

.project-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: rgba(228, 155, 63, 0.18);
    color: var(--primary-dark);
    font-family: Arial, sans-serif;
    font-weight: 700;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(31, 111, 95, 0.22);
    border-radius: 16px;
    background: #fff;
    color: var(--text);
    font-family: Arial, sans-serif;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(228, 155, 63, 0.16);
}

textarea.form-control {
    resize: vertical;
    min-height: 110px;
}

.btn-submit {
    align-self: flex-start;
    min-width: 220px;
}

.form-feedback {
    min-height: 24px;
    margin: 0;
    font-family: Arial, sans-serif;
    font-weight: 700;
    color: var(--primary-dark);
}

.donation-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background:
        linear-gradient(135deg, rgba(31, 111, 95, 0.95), rgba(23, 79, 68, 0.95));
    color: #fff8ee;
}

.donation-section h2,
.donation-section .section-kicker {
    color: #fff8ee;
}

.footer {
    padding: 22px 20px 36px;
    text-align: center;
    color: #fff8ee;
    font-family: Arial, sans-serif;
}

@media (max-width: 960px) {
    .navbar,
    .donation-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .cards,
    .project-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .btn-submit {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .hero {
        padding-inline: 16px;
    }

    main {
        padding-inline: 16px;
    }

    .navbar {
        border-radius: 18px;
    }

    .brand {
        max-width: none;
    }

    .hero-copy,
    .info-section,
    .form-section,
    .donation-section {
        border-radius: 22px;
    }
}
