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

body {
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    background: #f7f5f2;
    line-height: 1.6;
}

/* ── Hero ──
   Drop media/building.jpg in the media folder to activate the photo.
   The dark overlay is always applied so text stays readable. */
.hero {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.52)),
        url('media/Home for hope (1).opt.jpg');
    background-color: #2a3f52;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 110px 24px 130px;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.address-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 16px;
    margin-bottom: 28px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
    line-height: 1.12;
}

.hero-sub {
    font-size: 1.05rem;
    opacity: 0.85;
    line-height: 1.8;
    font-weight: 300;
}

/* ── Orgs section ── */
.orgs {
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 24px 80px;
}

/* ── Cards grid ── */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .cards { grid-template-columns: 1fr; }
}

/* ── Card ── */
.card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* ── Card logo bar (above the image) ── */
.card-logo-bar {
    background: #f0ede8;
    border-bottom: 1px solid #e4e0da;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 28px;
    height: 110px;
}

.card-logo-bar picture {
    display: contents;
}

.org-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ── Card image strip (below the logo bar) ── */
.card-image {
    height: 110px;
    border-bottom: 1px solid #ebe9e5;
}

/* ── Card body ── */
.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-body h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111;
}

.card-body p {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background: #1d3557;
    color: white;
    padding: 10px 18px;
    border-radius: 7px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: background 0.18s ease;
    text-align: center;
    letter-spacing: 0.01em;
}

.card:hover .btn {
    background: #3d5a80;
}

/* ── GNF page ── */
.gnf-page {
    background: #f7f5f2;
}

.gnf-back-bar {
    background: #f0ede8;
    border-bottom: 1px solid #e0dcd5;
    padding: 12px 40px;
}

.gnf-back {
    font-size: 0.82rem;
    font-weight: 600;
    color: #3d5a80;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.gnf-back:hover {
    text-decoration: underline;
}

.gnf-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 45px);
}

.gnf-copy {
    padding: 64px 56px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 640px;
}

.gnf-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
    margin-bottom: 36px;
}

.gnf-heading {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.15;
    letter-spacing: -0.3px;
    margin-bottom: 24px;
}

.gnf-lead {
    font-size: 1.05rem;
    font-weight: 500;
    color: #2a2a2a;
    line-height: 1.75;
    margin-bottom: 20px;
}

.gnf-body {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.85;
    margin-bottom: 20px;
}

.gnf-detail-block {
    margin: 28px 0;
    padding: 20px 24px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #9d5984;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.gnf-detail-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9d5984;
    margin-bottom: 4px;
}

.gnf-detail-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.gnf-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.gnf-secondary-link {
    font-size: 0.88rem;
    color: #3d5a80;
    text-decoration: none;
    font-weight: 500;
}

.gnf-secondary-link:hover {
    text-decoration: underline;
}

.gnf-photo {
    background-size: cover;
    background-position: 50% 100%;
    min-height: 500px;
}

@media (max-width: 768px) {
    .gnf-split {
        grid-template-columns: 1fr;
    }

    .gnf-photo {
        min-height: 280px;
        order: -1;
    }

    .gnf-copy {
        padding: 40px 24px 56px;
        max-width: 100%;
    }
}

/* ── Footer ── */
footer {
    background: #1d3557;
    padding: 56px 24px;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-sub {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 24px;
}

.footer-meta {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-meta a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-meta a:hover {
    color: #ffffff;
    text-decoration: underline;
}
