
/* =========================================
   HOPEWORKS NGO WEBSITE
   Main stylesheet: style.css
   ========================================= */

/* 1. Design system */
:root {
    --primary: #0757c9;
    --primary-dark: #0645a2;
    --primary-light: #eaf3ff;
    --secondary: #4c9df5;
    --green: #159b68;
    --text: #172b4d;
    --muted: #697b94;
    --heading: #102c57;
    --background: #ffffff;
    --surface: #f5f8fc;
    --border: #e1e8f1;
    --footer: #092348;
    --shadow: 0 12px 35px rgba(19, 52, 91, 0.09);
    --radius: 14px;
    --container: 1160px;
}

/* 2. Reset and global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: "DM Sans", sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    width: 100%;
    max-width: 100%;
    object-fit: cover;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button,
a,
input,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button,
input[type="submit"] {
    cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(7, 87, 201, 0.35);
    outline-offset: 3px;
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

section[id] {
    scroll-margin-top: 100px;
}

h1,
h2,
h3,
h4 {
    font-family: "Nunito Sans", sans-serif;
    color: var(--heading);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    font-weight: 900;
    letter-spacing: -2px;
}

h2 {
    font-size: clamp(2rem, 3.4vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -1px;
}

h3 {
    font-size: 1.3rem;
    font-weight: 800;
}

p {
    color: var(--muted);
}

::selection {
    background: var(--primary);
    color: #ffffff;
}

/* 3. Announcement bar */
.announcement-bar {
    background: var(--primary-dark);
    color: #ffffff;
    font-size: 12px;
}

.announcement-inner {
    min-height: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.announcement-inner p {
    color: #ffffff;
    font-size: 12px;
}

.announcement-inner a {
    color: #ffffff;
    font-weight: 700;
}

.announcement-inner a span {
    margin-left: 5px;
}

/* 4. Header and navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.navbar {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: var(--primary);
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
}

.brand-icon svg {
    width: 100%;
    height: 100%;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-copy strong {
    color: var(--heading);
    font-family: "Nunito Sans", sans-serif;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -0.8px;
}

.brand-copy small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 23px;
}

.nav-link {
    color: #52647e;
    font-size: 13px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.menu-toggle,
.menu-button {
    display: none;
}

/* 5. Buttons */
.button {
    min-height: 48px;
    padding: 12px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 5px 15px rgba(7, 87, 201, 0.15);
}

.button-primary:hover {
    color: #ffffff;
    background: var(--primary-dark);
}

.button-outline {
    color: var(--primary);
    background: #ffffff;
    border-color: #c9d9ed;
}

.button-outline:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.button-light {
    color: var(--primary-dark);
    background: #ffffff;
}

.button-light:hover {
    background: var(--primary-light);
}

.button-transparent {
    color: #ffffff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.65);
}

.button-transparent:hover {
    background: rgba(255, 255, 255, 0.12);
}

.nav-donate {
    min-height: 42px;
    padding: 10px 17px;
    white-space: nowrap;
}

/* 6. Hero section */
.hero {
    position: relative;
    overflow: hidden;
    padding: 85px 0 90px;
    background:
        radial-gradient(
            circle at 92% 8%,
            rgba(76, 157, 245, 0.12),
            transparent 29%
        ),
        linear-gradient(115deg, #f9fbff 0%, #edf5ff 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 0.95fr;
    align-items: center;
    gap: 75px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.3px;
}

.eyebrow-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(21, 155, 104, 0.1);
}

.hero h1 span {
    display: block;
    color: var(--primary);
}

.hero-description {
    max-width: 510px;
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 30px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 37px;
}

.avatar-stack {
    display: flex;
    align-items: center;
    padding-left: 3px;
}

.avatar-stack img {
    width: 36px;
    height: 36px;
    margin-left: -5px;
    border: 3px solid #ffffff;
    border-radius: 50%;
}

.hero-trust strong {
    display: block;
    color: var(--heading);
    font-size: 12px;
}

.hero-trust p {
    margin-top: 2px;
    font-size: 11px;
}

.hero-visual {
    position: relative;
    isolation: isolate;
    padding: 0 12px 15px 0;
}

.hero-image {
    position: relative;
    z-index: 1;
    height: 450px;
    border-radius: 150px 12px 12px 12px;
    box-shadow: var(--shadow);
    object-position: center;
}

.hero-visual::after {
    position: absolute;
    z-index: -1;
    right: -5px;
    bottom: -5px;
    width: 78%;
    height: 70%;
    content: "";
    border: 2px solid #8dbef9;
    border-radius: 12px;
}

.floating-card {
    position: absolute;
    z-index: 2;
    right: -22px;
    bottom: 40px;
    display: flex;
    align-items: center;
    gap: 13px;
    max-width: 255px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid rgba(225, 232, 241, 0.8);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.floating-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 9px;
    font-size: 29px;
}

.floating-card strong {
    color: var(--heading);
    font-size: 13px;
}

.floating-card p {
    margin-top: 4px;
    font-size: 11px;
}

.hero-decoration {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
}

.decoration-one {
    top: -25px;
    right: 30px;
    width: 80px;
    height: 80px;
    background: rgba(76, 157, 245, 0.15);
}

.decoration-two {
    left: -25px;
    bottom: 15px;
    width: 65px;
    height: 65px;
    border: 10px solid rgba(21, 155, 104, 0.12);
}

/* 7. Focus areas strip */
.focus-strip {
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    background: #ffffff;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.focus-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 7px 15px;
    border-right: 1px solid var(--border);
}

.focus-item:last-child {
    border-right: none;
}

.focus-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    font-size: 25px;
    font-weight: 800;
}

.blue-icon {
    color: var(--primary);
    background: #eaf3ff;
}

.green-icon {
    color: #12865b;
    background: #e6f8ef;
}

.orange-icon {
    color: #d18a24;
    background: #fff5e3;
}

.purple-icon {
    color: #7755c5;
    background: #f1ebff;
}

.focus-item strong {
    display: block;
    color: var(--heading);
    font-size: 13px;
}

.focus-item small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

/* 8. Shared section styles */
.section {
    padding: 100px 0;
}

.section-label {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 42px;
}

.section-heading h2 {
    max-width: 650px;
}

.section-heading p {
    max-width: 580px;
    margin-top: 13px;
}

.section-heading > .button {
    flex-shrink: 0;
}

/* 9. About section */
.about-section {
    background: #ffffff;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1fr;
    align-items: center;
    gap: 90px;
}

.about-visual {
    position: relative;
    padding: 0 25px 25px 0;
}

.about-visual::before {
    position: absolute;
    z-index: 0;
    top: -18px;
    left: -18px;
    width: 100px;
    height: 100px;
    content: "";
    background-image: radial-gradient(#8dbef9 2px, transparent 2px);
    background-size: 13px 13px;
}

.about-visual > img {
    position: relative;
    z-index: 1;
    height: 460px;
    border-radius: 12px;
}

.about-note {
    position: absolute;
    z-index: 2;
    right: -10px;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 20px 22px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.note-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--green);
    background: #e7f8ef;
    border-radius: 10px;
    font-size: 25px;
}

.about-note strong {
    color: var(--heading);
    font-size: 13px;
}

.about-note p {
    margin-top: 3px;
    font-size: 11px;
}

.about-content h2 {
    margin-bottom: 22px;
}

.about-content > p {
    margin-top: 14px;
    line-height: 1.9;
}

.check-list {
    display: grid;
    gap: 13px;
    margin: 26px 0;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.check-item > span,
.donation-benefit > span {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--green);
    background: #e6f8ef;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 900;
}

.check-item p {
    color: var(--text);
    font-size: 13px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.text-link span {
    transition: transform 0.2s ease;
}

.text-link:hover span {
    transform: translateX(4px);
}

/* 10. Programs section */
.programs-section {
    background: var(--surface);
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.program-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.program-image {
    position: relative;
    overflow: hidden;
}

.program-image img {
    height: 205px;
    transition: transform 0.4s ease;
}

.program-card:hover .program-image img {
    transform: scale(1.04);
}

.program-number {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--primary);
    background: #ffffff;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 900;
}

.program-body {
    padding: 24px 20px 25px;
}

.program-tag,
.story-category {
    color: var(--primary);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.program-body h3 {
    margin: 12px 0;
    font-size: 19px;
}

.program-body p {
    min-height: 115px;
    margin-bottom: 19px;
    font-size: 12px;
    line-height: 1.9;
}

/* 11. Impact section */
.impact-section {
    padding: 80px 0 20px;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(76, 157, 245, 0.22),
            transparent 35%
        ),
        linear-gradient(120deg, #0757c9, #083a86);
}

.impact-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    align-items: center;
    gap: 35px;
}

.light-label {
    color: #b9d8ff;
}

.impact-intro h2 {
    max-width: 400px;
    color: #ffffff;
}

.impact-intro > p {
    max-width: 400px;
    margin: 17px 0 25px;
    color: #d9e7fc;
    font-size: 14px;
}

.impact-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 185px;
    padding: 20px 10px;
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 17px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border-radius: 13px;
    font-size: 28px;
}

.impact-stat strong {
    color: #ffffff;
    font-family: "Nunito Sans", sans-serif;
    font-size: 29px;
    font-weight: 900;
}

.impact-stat p {
    margin-top: 5px;
    color: #d9e7fc;
    font-size: 12px;
}

.impact-disclaimer {
    width: min(var(--container), calc(100% - 48px));
    margin: 22px auto 0;
    color: #d9e7fc;
    font-size: 10px;
    text-align: center;
}

/* 12. Stories section */
.stories-section {
    background: #ffffff;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.story-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: box-shadow 0.25s ease;
}

.story-card:hover {
    box-shadow: var(--shadow);
}

.story-card > img {
    height: 245px;
    transition: transform 0.4s ease;
}

.story-card:hover > img {
    transform: scale(1.025);
}

.story-content {
    padding: 24px;
}

.story-content h3 {
    margin: 12px 0;
    font-size: 20px;
}

.story-content p {
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.9;
}

/* 13. Volunteer section */
.volunteer-section {
    padding: 70px 0;
    background:
        radial-gradient(
            circle at 90% 0,
            rgba(76, 157, 245, 0.2),
            transparent 30%
        ),
        linear-gradient(115deg, #0a3778, #0757c9);
}

.volunteer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.volunteer-inner > div:first-child {
    max-width: 690px;
}

.volunteer-inner h2 {
    color: #ffffff;
}

.volunteer-inner p {
    margin-top: 15px;
    color: #dbe9ff;
}

.volunteer-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    min-width: 215px;
}

/* 14. Donation section */
.donation-section {
    background: var(--surface);
}

.donation-grid {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    align-items: center;
    gap: 85px;
}

.donation-content h2 {
    max-width: 500px;
}

.donation-content > p {
    margin: 20px 0 28px;
    line-height: 1.9;
}

.donation-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.donation-benefit p {
    color: var(--text);
    font-size: 13px;
}

.donation-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.donation-card-heading {
    padding: 27px 30px;
    color: #ffffff;
    background: var(--primary);
}

.donation-card-heading h3 {
    color: #ffffff;
}

.donation-card-heading p {
    margin-top: 6px;
    color: #e2edff;
    font-size: 12px;
}

.donation-form {
    display: flex;
    flex-direction: column;
    padding: 28px 30px 25px;
}

.donation-form > label,
.form-group label {
    margin-bottom: 7px;
    color: var(--heading);
    font-size: 12px;
    font-weight: 800;
}

.donation-form > input,
.form-group input,
.form-group textarea,
.newsletter-form input {
    width: 100%;
    min-width: 0;
    padding: 13px 14px;
    color: var(--text);
    background: #ffffff;
    border: 1px solid #dce5f0;
    border-radius: 7px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.donation-form > input,
.form-group input {
    min-height: 46px;
}

.donation-form > input:focus,
.form-group input:focus,
.form-group textarea:focus,
.newsletter-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(7, 87, 201, 0.08);
}

.donation-form > input {
    margin-bottom: 17px;
}

.donation-form input::placeholder,
.form-group input::placeholder,
.form-group textarea::placeholder,
.newsletter-form input::placeholder {
    color: #9aa9bb;
    font-size: 12px;
}

.amount-fieldset {
    min-width: 0;
    margin: 0 0 19px;
    border: 0;
}

.amount-fieldset legend {
    margin-bottom: 10px;
    color: var(--heading);
    font-size: 12px;
    font-weight: 800;
}

.amount-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.amount-option {
    position: relative;
    min-width: 0;
}

.amount-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.amount-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 8px 5px;
    color: var(--primary);
    background: #ffffff;
    border: 1px solid #d5e2f3;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.amount-option input:checked + span {
    color: #ffffff;
    background: var(--primary);
    border-color: var(--primary);
}

.amount-option input:focus-visible + span {
    outline: 3px solid rgba(7, 87, 201, 0.3);
    outline-offset: 3px;
}

.donation-submit {
    width: 100%;
    margin-top: 3px;
}

.form-note {
    margin-top: 12px;
    font-size: 10px;
    line-height: 1.6;
}

/* 15. Newsletter */
.newsletter-section {
    padding: 55px 0;
    background: #edf5ff;
}

.newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px;
}

.newsletter-inner h2 {
    font-size: 25px;
}

.newsletter-inner > div > p {
    margin-top: 8px;
    font-size: 13px;
}

.newsletter-form {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: min(100%, 470px);
}

.newsletter-form input {
    flex: 1;
    min-width: 0;
}

/* 16. Contact section */
.contact-section {
    background: #ffffff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 65px;
}

.contact-information {
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.contact-information h3,
.contact-form-wrapper h3 {
    margin-bottom: 13px;
}

.contact-information > p {
    font-size: 13px;
    line-height: 1.9;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 27px;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    color: var(--primary);
    background: #e5efff;
    border-radius: 9px;
    font-size: 21px;
}

.contact-item strong {
    display: block;
    color: var(--heading);
    font-size: 13px;
}

.contact-item p {
    margin-top: 4px;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.contact-socials {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.contact-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--primary);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 900;
    transition: color 0.2s ease, background 0.2s ease;
}

.contact-socials a:hover {
    color: #ffffff;
    background: var(--primary);
}

.contact-form-wrapper {
    padding: 15px 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 19px;
    margin-top: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.contact-form > .button {
    align-self: flex-start;
}

/* 17. Footer */
.site-footer {
    padding-top: 65px;
    color: #ffffff;
    background: var(--footer);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer-logo .brand-copy strong {
    color: #ffffff;
}

.footer-logo .brand-copy small {
    color: #b5c9e6;
}

.footer-brand > p {
    max-width: 330px;
    margin-top: 20px;
    color: #b9c9df;
    font-size: 13px;
    line-height: 1.9;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-column h4 {
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 14px;
}

.footer-column a {
    color: #b9c9df;
    font-size: 12px;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
    padding-bottom: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom p {
    color: #a9bdd7;
    font-size: 11px;
}

/* 18. Accessibility utilities */
.visually-hidden {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 19. Tablet and small desktop */
@media (max-width: 1050px) {
    .main-nav {
        gap: 14px;
    }

    .nav-link {
        font-size: 12px;
    }

    .hero-grid {
        gap: 45px;
    }

    .hero-image {
        height: 390px;
    }

    .about-grid {
        gap: 55px;
    }

    .program-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .program-body p {
        min-height: auto;
    }

    .impact-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .impact-intro {
        grid-column: 1 / -1;
        text-align: center;
    }

    .impact-intro h2,
    .impact-intro > p {
        max-width: 650px;
        margin-right: auto;
        margin-left: auto;
    }

    .donation-grid {
        gap: 45px;
    }

    .contact-grid {
        gap: 35px;
    }

    .footer-grid {
        gap: 30px;
    }
}

/* 20. Mobile navigation and layout */
@media (max-width: 780px) {
    .container {
        width: min(100% - 36px, var(--container));
    }

    .section {
        padding: 72px 0;
    }

    .navbar {
        min-height: 74px;
        gap: 12px;
    }

    .brand-icon {
        width: 37px;
        height: 37px;
    }

    .brand-copy strong {
        font-size: 20px;
    }

    .brand-copy small {
        font-size: 8px;
    }

    .menu-toggle {
        position: absolute;
        width: 1px;
        height: 1px;
        opacity: 0;
        pointer-events: none;
    }

    .menu-button {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 10px;
        margin-left: auto;
        cursor: pointer;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: #ffffff;
    }

    .menu-button span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--heading);
        border-radius: 3px;
        transition: transform 0.2s ease;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        padding: 12px 18px 20px;
        background: #ffffff;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 20px rgba(15, 43, 82, 0.08);
    }

    .main-nav .nav-link {
        padding: 13px 8px;
        border-bottom: 1px solid #edf1f7;
        font-size: 14px;
    }

    .main-nav .nav-donate {
        margin-top: 13px;
    }

    .menu-toggle:checked ~ .main-nav {
        display: flex;
    }

    .menu-toggle:checked + .menu-button span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle:checked + .menu-button span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked + .menu-button span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .menu-toggle:focus-visible + .menu-button {
        outline: 3px solid rgba(7, 87, 201, 0.35);
        outline-offset: 3px;
    }

    .hero {
        padding: 65px 0 70px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .hero-content {
        max-width: 650px;
    }

    h1 {
        font-size: clamp(2.5rem, 9vw, 3.8rem);
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-visual {
        width: min(100%, 540px);
        margin-inline: auto;
    }

    .hero-image {
        height: 390px;
        border-top-left-radius: 100px;
    }

    .floating-card {
        right: -4px;
        bottom: 25px;
    }

    .focus-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 20px;
    }

    .focus-item {
        justify-content: flex-start;
        padding: 7px 12px;
    }

    .focus-item:nth-child(2) {
        border-right: none;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .about-visual {
        width: min(100%, 540px);
    }

    .about-visual > img {
        height: 390px;
    }

    .about-content {
        max-width: 650px;
    }

    .impact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .impact-intro {
        grid-column: 1 / -1;
        padding-bottom: 20px;
    }

    .impact-stat {
        min-height: 160px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 10px;
    }

    .stories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .story-card:last-child {
        grid-column: 1 / -1;
    }

    .story-card > img {
        height: 220px;
    }

    .volunteer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 30px;
    }

    .volunteer-actions {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
    }

    .donation-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .donation-content {
        max-width: 650px;
    }

    .donation-card {
        width: min(100%, 540px);
        margin-inline: auto;
    }

    .newsletter-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 25px;
    }

    .newsletter-form {
        width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-information {
        padding: 26px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* 21. Small mobile phones */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .container {
        width: calc(100% - 30px);
    }

    .announcement-inner {
        min-height: 42px;
        gap: 8px;
    }

    .announcement-inner p,
    .announcement-inner a {
        font-size: 10px;
    }

    .navbar {
        min-height: 68px;
    }

    .brand {
        gap: 7px;
    }

    .brand-icon {
        width: 33px;
        height: 33px;
    }

    .brand-copy strong {
        font-size: 18px;
    }

    .brand-copy small {
        font-size: 7px;
    }

    .hero {
        padding: 50px 0 60px;
    }

    .eyebrow {
        font-size: 9px;
        letter-spacing: 1px;
    }

    h1 {
        font-size: 2.55rem;
        letter-spacing: -1.5px;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-image {
        height: 300px;
        border-top-left-radius: 75px;
    }

    .floating-card {
        right: -2px;
        bottom: 15px;
        max-width: 225px;
        padding: 12px;
    }

    .floating-icon {
        width: 38px;
        height: 38px;
        font-size: 24px;
    }

    .focus-strip {
        padding: 20px 0;
    }

    .focus-grid {
        column-gap: 5px;
        row-gap: 17px;
    }

    .focus-item {
        gap: 9px;
        padding: 5px 2px;
    }

    .focus-icon {
        width: 39px;
        height: 39px;
        font-size: 20px;
    }

    .focus-item strong {
        font-size: 11px;
    }

    .focus-item small {
        font-size: 9px;
    }

    .section {
        padding: 60px 0;
    }

    .about-visual > img {
        height: 300px;
    }

    .about-note {
        right: -3px;
        padding: 13px;
    }

    .program-grid,
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .story-card:last-child {
        grid-column: auto;
    }

    .program-image img,
    .story-card > img {
        height: 235px;
    }

    .program-body {
        padding: 22px 18px;
    }

    .program-body h3 {
        font-size: 19px;
    }

    .program-body p {
        min-height: auto;
    }

    .impact-section {
        padding: 60px 0 20px;
    }

    .impact-grid {
        gap: 12px;
    }

    .impact-stat {
        min-height: 145px;
        padding: 12px 5px;
    }

    .stat-icon {
        width: 43px;
        height: 43px;
        margin-bottom: 10px;
        font-size: 22px;
    }

    .impact-stat strong {
        font-size: 23px;
    }

    .impact-stat p {
        font-size: 10px;
    }

    .impact-disclaimer {
        width: calc(100% - 30px);
        font-size: 9px;
    }

    .volunteer-section {
        padding: 55px 0;
    }

    .volunteer-actions {
        flex-direction: column;
    }

    .volunteer-actions .button {
        width: 100%;
    }

    .donation-card-heading,
    .donation-form {
        padding-right: 20px;
        padding-left: 20px;
    }

    .amount-options {
        gap: 5px;
    }

    .amount-option span {
        font-size: 10px;
    }

    .newsletter-form {
        align-items: stretch;
        flex-direction: column;
    }

    .newsletter-form .button {
        width: 100%;
    }

    .contact-information {
        padding: 21px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 19px;
    }

    .contact-form > .button {
        width: 100%;
    }

    .footer-grid {
        gap: 30px 18px;
    }

    .footer-column h4 {
        font-size: 12px;
    }

    .footer-column a {
        font-size: 11px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

/* 22. Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}