/* ==================================================
   BUHULO MUSLIMS CHARITY — GENERAL WEBSITE SETTINGS
================================================== */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");


/* ==================================================
   ROOT VARIABLES
================================================== */

:root {
    --primary: #29aada;
    --secondary: #f43b38;
    --dark: #012f3c;
    --text: #3a4f5c;
    --muted: #6f7b82;
    --light: #f5f5f5;
    --white: #ffffff;
    --border: #e2e6e8;

    --container: 1140px;
    --section-space: 70px;
    --radius: 7px;
}


/* ==================================================
   RESET AND TYPOGRAPHY
================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--white);
    font: 400 16px/1.65 "Poppins", sans-serif;
}

img {
    display: block;
    max-width: 100%;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--dark);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.3rem);
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h3 {
    font-size: 1.25rem;
}


/* ==================================================
   REUSABLE LAYOUT
================================================== */

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: auto;
}

.section {
    padding: var(--section-space) 0;
}

.cream {
    background: var(--light);
}

.navy {
    color: var(--white);
    background: var(--dark);
}

.muted {
    color: var(--muted);
}

.space-top {
    margin-top: 24px;
}

.content-image {
    width: 100%;
    border-radius: var(--radius);
}

.grid {
    display: grid;
    gap: 24px;
}

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

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

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

.split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 50px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 32px;
}

.kicker {
    margin-bottom: 10px;
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kicker::before {
    content: "✦ ";
}


/* ==================================================
   BUTTONS
================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border: 0;
    border-radius: 4px;
    color: var(--white);
    background: var(--primary);
    font-weight: 600;
    cursor: pointer;
}

.btn:hover {
    opacity: 0.88;
}

.btn.red {
    background: var(--secondary);
}

.btn.blue {
    background: var(--primary);
}

.btn.dark{
    background-color: #012f3c;
}

.btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


/* ==================================================
   HEADER AND NAVIGATION
================================================== */

.topbar {
    display: none;
}

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.nav-wrap {
    display: flex;
    align-items: center;
    min-height: 76px;
    gap: 30px;
}

.logo img {
    width: 205px;
    max-height: 60px;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
    font-size: 0.92rem;
}

.nav a:hover,
.nav a.active {
    color: var(--secondary);
}

.menu {
    display: none;
    margin-left: auto;
    padding: 8px 12px;
    border: 0;
    border-radius: 4px;
    color: var(--white);
    background: var(--primary);
    font-size: 1.25rem;
}

/* ==================================================
   HERO SECTION
================================================== */

.hero {
    display: flex;
    gap: 25px;
    align-items: center;
    min-height: 768PX;
    padding-top: 70px;
    padding-bottom: 70px;
    color: var(--white);

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.781),
            rgba(0, 0, 0, 0.6)
        ),
        url("assets/Girl_taking_water_Water_well.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-copy {
    align-items: center;
    display: flex;
    width: 1140px;
}

.hero h1 {
    font-size: 50px;
    margin-bottom: 16px;
    color: var(--white);
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    max-width: 50%;
    color: #e4ecee;
}

.rating {
    display: none;
}

.hero img  {
    display: flex;
}


/* ==================================================
   CARDS
================================================== */

.approach-head {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: end;
    gap: 40px;
    margin-bottom: 30px;
}

.service-card,
.feature,
.appeal,
.contact-box,
.donate-box {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
}

.service-card {
    min-height: 260px;
    padding: 24px;
    border-top: 4px solid var(--primary);
}

.service-card:nth-child(2) {
    border-top-color: var(--secondary);
}

.service-card:nth-child(3) {
    border-top-color: var(--dark);
}

.service-card .icon {
    margin-bottom: 14px;
    font-size: 1.8rem;
}

.service-card p {
    color: var(--muted);
}

.service-card a {
    color: var(--primary);
    font-weight: 600;
}

.feature {
    padding: 24px;
}

.feature .num {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
}


/* ==================================================
   ABOUT SECTION
================================================== */

.photo-collage {
    display: grid;
    grid-template-columns: 1fr 0.75fr;
    gap: 14px;
}

.photo-collage img {
    width: 100%;
    height: 215px;
    border-radius: var(--radius);
    object-fit: cover;
}

.photo-collage img:first-child {
    grid-column: 1 / -1;
    height: 300px;
}

.metric {
    display: grid;
    place-items: center;
    padding: 25px;
    color: var(--white);
    background: var(--primary);
    border-radius: var(--radius);
    text-align: center;
}

.metric strong {
    font-size: 2.6rem;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill-list span {
    padding: 7px 11px;
    border-radius: 4px;
    background: var(--light);
    font-size: 0.78rem;
}


/* ==================================================
   APPEALS
================================================== */

.appeal {
    overflow: hidden;
}

.appeal img {
    width: 100%;
    aspect-ratio: 1.55 / 1;
    object-fit: cover;
}

.appeal-copy {
    padding: 20px;
}

.appeal-copy .price {
    color: var(--secondary);
    font-weight: 700;
}


/* ==================================================
   QUOTE SECTION
================================================== */

.quote {
    padding: 65px 0;
    color: var(--white);
    background: #29aada;
    text-align: center;
}

.quote blockquote {
    max-width: 850px;
    margin: 0 auto 20px;
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    font-weight: 600;
}


/* ==================================================
   PAGE HEADINGS
================================================== */

.page-hero {
    padding: 80px 0;
    color: var(--white);

    background:
        linear-gradient(
            90deg,
            rgba(1, 47, 60, 0.94),
            rgba(1, 47, 60, 0.55)
        ),
        url("assets/aau_1-1024x768.jpg") center / cover;
}

.page-hero h1 {
    margin-bottom: 0;
    color: var(--white);
}


/* ==================================================
   GALLERY
================================================== */

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

.gallery img {
    width: 100%;
    height: 260px;
    border-radius: var(--radius);
    object-fit: cover;
}

.gallery img:nth-child(4n + 1) {
    grid-column: span 4;
}


/* ==================================================
   CONTACT AND DONATION
================================================== */

.contact {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
}

.contact-list,
.form {
    display: grid;
    gap: 14px;
}

.contact-box {
    padding: 20px;
}

.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--white);
}

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

.donate-box {
    max-width: 760px;
    margin: auto;
    padding: 34px;
}

.amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.amount {
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: 5px;
    text-align: center;
    font-weight: 700;
}

.amount:hover {
    color: var(--primary);
    border-color: var(--primary);
}


/* ==================================================
   OFFLINE BANK TRANSFER DONATION
================================================== */

.bmc-donation { color: var(--text); }
.bmc-skip { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 18px; background: var(--white); color: var(--dark); }
.bmc-skip:focus { top: 12px; }
.bmc-donation a:focus-visible { outline: 3px solid #147697; outline-offset: 5px; }
.bmc-section { padding: 60px 0; background: #f1f8fb; }
.bmc-heading { margin: 0 auto 28px; text-align: center; }
.bmc-eyebrow { margin: 0 0 10px; color: #16627b; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.bmc-heading h1 { margin: 0 0 12px; font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -.035em; }
.bmc-heading > p:last-child { margin: 0; font-size: .9rem; }
.bmc-bank-card { max-width: 640px; margin: auto; overflow: hidden; border: 1px solid #dce7eb; border-radius: 14px; background: var(--white); box-shadow: 0 12px 36px rgba(1,47,60,.04); }
.bmc-card-heading { padding: 26px 30px; border-bottom: 1px solid #dce7eb; }
.bmc-card-heading h2 { margin: 0 0 7px; font-size: 1.3rem; }
.bmc-card-heading p { margin: 0; font-size: .8rem; }
.bmc-details { margin: 0; padding: 12px 30px; }
.bmc-details > div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; padding: 15px 0; border-bottom: 1px solid #edf1f3; font-size: .85rem; }
.bmc-details > div:last-child { border-bottom: 0; }
.bmc-details dt { color: #566b75; }
.bmc-details dd { margin: 0; color: var(--dark); font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.bmc-account dd { color: #147697; font-size: 1.1rem; letter-spacing: .025em; }
.bmc-receipt { padding: 22px 30px 28px; background: #f8fbfc; border-top: 1px solid #dce7eb; text-align: center; }
.bmc-receipt p { margin: 0 0 16px; font-size: .82rem; }
.bmc-button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 48px; padding: 13px 22px; border-radius: 7px; color: var(--white); background: #c62d2b; font-size: .85rem; font-weight: 600; }
.bmc-button:hover { background: #a62220; }
@media (max-width: 620px) {
  .bmc-section { padding: 36px 0; }
  .bmc-card-heading, .bmc-receipt { padding: 22px; }
  .bmc-details { padding: 10px 22px; }
  .bmc-details > div { grid-template-columns: 1fr; gap: 5px; padding: 12px 0; }
  .bmc-button { width: 100%; }
}
@media print {
  [data-header], [data-footer], .bmc-receipt, .bmc-skip { display: none; }
  .bmc-section { padding: 0; background: var(--white); }
  .bmc-bank-card { box-shadow: none; break-inside: avoid; }
}


/* ==================================================
   FOOTER
================================================== */

.footer {
    padding-top: 55px;
    color: #d9e6e4;
    background: var(--dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 0.9fr;
    gap: 50px;
}

.footer img {
    width: 245px;
}

.footer h3 {
    color: var(--white);
}

.footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer li {
    margin-bottom: 8px;
}

.copyright {
    margin-top: 40px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.82rem;
}


/* ==================================================
   FLOATING CONTACT BUTTON
================================================== */

.floating {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    border-radius: 50%;
   
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.floating img {
    display: block;
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.floating:hover {
    transform: scale(1.08);
}

/* ==================================================
   TABLET RESPONSIVE SETTINGS
================================================== */

@media (max-width: 900px) {

    .menu {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 76px;
        right: 0;
        left: 0;

        flex-direction: column;
        align-items: stretch;

        padding: 22px;
        background: var(--white);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

    .nav.open {
        display: flex;
    }

    .split,
    .approach-head,
    .contact,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .gallery img:nth-child(4n + 1) {
        grid-column: auto;
    }
}


/* ==================================================
   MOBILE RESPONSIVE SETTINGS
================================================== */

@media (max-width: 500px) {

    :root {
        --section-space: 52px;
    }

    .container {
        width: min(var(--container), calc(100% - 28px));
    }

    .logo img {
        width: 185px;
    }

    .hero {
        min-height: 520px;

        background:
            linear-gradient(
                rgba(0, 4, 5, 0.82),
                rgba(0, 0, 0, 0.88)
            ),
            url("assets/Opharn_feedings.jpg") 60% center / cover;
    }

    .hero h1 {
        font-size: 2.65rem;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .gallery,
    .photo-collage {
        grid-template-columns: 1fr;
    }

    .photo-collage img:first-child {
        grid-column: auto;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .donate-box {
        padding: 22px;
    }
}