/* =========================================
   DONATE PAGE
   ========================================= */

html { scroll-behavior: smooth; }

/* ---- Hero image (fully visible, no overlay) ---- */
.dn-hero {
    margin-top: 170px; /* clears the desktop header */
    height: 520px;
    background-image: url('../img/_DSC1725.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ---- Headline band ---- */
.dn-band {
    background: var(--primary-color);
    color: #fff;
    padding: 44px 0 48px;
    border-bottom: 4px solid var(--accent-color);
}

.dn-band-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
}

.dn-crumbs {
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.dn-crumbs a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

.dn-crumbs a:hover { color: #fff; }

.dn-crumbs span {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.45);
}

.dn-band h1 {
    margin: 0 0 10px;
    font-size: 42px;
    line-height: 1.15;
    font-weight: 800;
    color: #fff;
}

.dn-band p {
    margin: 0;
    max-width: 620px;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.dn-btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--accent-color);
    border: 2px solid var(--accent-color);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.dn-btn:hover { background: #fff; border-color: #fff; color: var(--primary-color); }

.dn-link {
    display: inline-block;
    padding-bottom: 2px;
    border-bottom: 2px solid var(--accent-color);
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s ease;
}

.dn-link:hover { color: var(--accent-color); }

/* ---- Sections ---- */
.dn-section { padding: 72px 0; }

.dn-tint {
    background: #f7f3f0;
    border-top: 1px solid #e6ddd8;
    border-bottom: 1px solid #e6ddd8;
}

.dn-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 36px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--primary-color);
}

.dn-head-tight { margin-bottom: 28px; }

.dn-head h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
}

.dn-count {
    font-size: 13px;
    color: #777;
    white-space: nowrap;
}

/* ---- Impact tiers ---- */
.dn-tiers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.dn-tier {
    display: flex;
    flex-direction: column;
    padding: 28px 28px 26px;
    background: #fff;
    border: 1px solid #e6ddd8;
    border-top: 4px solid var(--primary-color);
    text-decoration: none;
    transition: border-color 0.2s ease;
}

.dn-tier:hover { border-top-color: var(--accent-color); }

.dn-tier > i {
    margin-bottom: 14px;
    font-size: 22px;
    color: var(--accent-color);
}

.dn-tier-amount {
    font-size: 44px;
    line-height: 1.1;
    font-weight: 800;
    color: var(--primary-color);
}

.dn-tier-text {
    flex-grow: 1;
    margin: 8px 0 20px;
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

.dn-tier-cta {
    align-self: flex-start;
    padding-bottom: 2px;
    border-bottom: 2px solid var(--accent-color);
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
}

/* ---- Give ---- */
.dn-give {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.dn-form-wrap {
    padding: 36px 36px 32px;
    background: #fff;
    border: 1px solid #e6ddd8;
}

.dn-group { margin-bottom: 28px; }

.dn-group-title {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8a7b77;
}

.dn-seg {
    display: inline-flex;
    border: 1px solid #cfc6c2;
}

.dn-seg-wide { display: flex; margin-bottom: 12px; }
.dn-seg-wide .dn-seg-btn { flex: 1; }

.dn-seg-btn {
    padding: 13px 24px;
    border: none;
    border-left: 1px solid #cfc6c2;
    background: #fff;
    color: #444;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.dn-seg-btn:first-child { border-left: none; }
.dn-seg-btn:hover { color: var(--accent-color); }
.dn-seg-btn.active { background: var(--primary-color); color: #fff; }

.dn-group > input,
.dn-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 0;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    color: #333;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.dn-group > input:focus,
.dn-field input:focus { border-color: var(--primary-color); }

.dn-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.dn-field { margin-bottom: 16px; }

.dn-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
}

.dn-summary {
    margin-bottom: 20px;
    padding: 16px 18px;
    background: #f7f3f0;
    border-left: 4px solid var(--accent-color);
    font-size: 15px;
    color: #444;
}

.dn-summary strong { font-size: 20px; color: var(--primary-color); }

.dn-submit {
    width: 100%;
    padding: 17px 24px;
    border: none;
    border-radius: 0;
    background: var(--accent-color);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dn-submit:hover { background: var(--primary-color); }

.dn-form-msg {
    margin: 14px 0 0;
    min-height: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.dn-form-msg.ok { color: #2e7d32; }
.dn-form-msg.error { color: #b3261e; }

.dn-note {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: #777;
}

.dn-note i { margin-right: 6px; color: var(--accent-color); }

/* Side panels */
.dn-panel {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #ddd3ce;
}

.dn-panel:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.dn-panel h3 {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.dn-panel p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

.dn-details { margin: 0; }

.dn-details > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-top: 1px solid #e6ddd8;
    font-size: 14px;
}

.dn-details dt { color: #777; }
.dn-details dd { margin: 0; font-weight: 700; color: var(--primary-color); text-align: right; }

.dn-momo {
    margin: 0 !important;
    font-size: 22px !important;
    font-weight: 800;
    color: var(--primary-color) !important;
}

/* ---- Why it matters ---- */
.dn-why {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
}

.dn-why h2 {
    margin: 0 0 14px;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--primary-color);
}

.dn-why p {
    margin: 0 0 14px;
    font-size: 16px;
    color: #444;
}

.dn-why ul {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    border-top: 1px solid #e6e6e6;
}

.dn-why li {
    padding: 13px 0;
    border-bottom: 1px solid #e6e6e6;
    font-size: 15px;
    color: #444;
}

.dn-why li i { margin-right: 12px; color: var(--accent-color); }

.dn-why .dn-small { margin: 0; font-size: 13px; color: #888; }

.dn-why-media { overflow: hidden; background: #e8e0dc; }

.dn-why-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* ---- FAQ ---- */
.dn-faq { border-top: 1px solid #ddd3ce; }
.dn-faq details { border-bottom: 1px solid #ddd3ce; }

.dn-faq summary {
    position: relative;
    padding: 20px 40px 20px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none;
}

.dn-faq summary::-webkit-details-marker { display: none; }

.dn-faq summary::after {
    content: '+';
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 400;
    color: var(--accent-color);
}

.dn-faq details[open] summary::after { content: '\2212'; }
.dn-faq summary:hover { color: var(--accent-color); }

.dn-faq details p {
    margin: 0;
    padding: 0 40px 22px 0;
    font-size: 15px;
    line-height: 1.75;
    color: #555;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .dn-hero {
        margin-top: 70px; /* mobile header is 70px tall */
        height: 400px;
    }
}

@media (max-width: 992px) {
    .dn-band-grid { grid-template-columns: 1fr; gap: 24px; }
    .dn-give { grid-template-columns: 1fr; gap: 40px; }
    .dn-why { grid-template-columns: 1fr; gap: 32px; }
    .dn-tiers { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
    .dn-hero { height: 260px; }

    .dn-band { padding: 32px 0 36px; }
    .dn-band h1 { font-size: 30px; }
    .dn-band p { font-size: 15px; }
    .dn-band .dn-btn { width: 100%; text-align: center; box-sizing: border-box; }

    .dn-section { padding: 48px 0; }
    .dn-head h2 { font-size: 22px; }
    .dn-why h2 { font-size: 24px; }

    .dn-form-wrap { padding: 24px 20px; }
    .dn-row { grid-template-columns: 1fr; gap: 0; }
    .dn-seg:not(.dn-seg-wide) { display: flex; }
    .dn-seg:not(.dn-seg-wide) .dn-seg-btn { flex: 1; }
    .dn-seg-btn { padding: 13px 12px; }
}