:root {
    --ahr-blue: #073b66;
    --ahr-blue-2: #0b548c;
    --ahr-orange: #f47b20;
    --ahr-green: #2e9d63;
    --ahr-dark: #263238;
    --ahr-muted: #667085;
    --ahr-light: #f5f8fa;
    --ahr-white: #ffffff;
    --ahr-shadow: 0 18px 45px rgba(7, 59, 102, .14);
    --ahr-radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ahr-dark);
    line-height: 1.7;
    background: var(--ahr-white);
}

a { color: var(--ahr-blue); text-decoration: none; }
a:hover { color: var(--ahr-orange); }
img { max-width: 100%; }
.skip-link {
    position: absolute; left: -999px; top: 12px; z-index: 2000;
    background: var(--ahr-orange); color: #111; padding: .75rem 1rem; border-radius: 6px;
}
.skip-link:focus { left: 12px; }
.preloader {
    position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center;
    background: var(--ahr-white); transition: opacity .45s ease, visibility .45s ease;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.loader-mark { display: flex; gap: .4rem; }
.loader-mark span {
    width: 14px; height: 14px; border-radius: 999px; background: var(--ahr-orange);
    animation: pulse 1s infinite ease-in-out;
}
.loader-mark span:nth-child(2) { background: var(--ahr-blue); animation-delay: .15s; }
.loader-mark span:nth-child(3) { background: var(--ahr-green); animation-delay: .3s; }
@keyframes pulse { 0%, 80%, 100% { transform: scale(.65); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }

.main-nav {
    padding: .85rem 0; background: rgba(255,255,255,.94); backdrop-filter: blur(14px);
    box-shadow: 0 8px 28px rgba(7,59,102,.08);
}
.navbar-brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--ahr-blue); line-height: 1; }
.navbar-brand .brand-icon, .footer-brand i {
    width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center;
    background: var(--ahr-orange); color: #fff;
}
.navbar-brand small { display: block; color: var(--ahr-green); font-weight: 800; margin-top: 3px; }
.nav-link { color: var(--ahr-dark); font-weight: 700; margin: 0 .18rem; }
.nav-link.active, .nav-link:hover { color: var(--ahr-orange); }
.btn { border-radius: var(--ahr-radius); font-weight: 800; padding: .78rem 1.15rem; }
.btn-primary { background: var(--ahr-blue); border-color: var(--ahr-blue); }
.btn-primary:hover { background: var(--ahr-blue-2); border-color: var(--ahr-blue-2); }
.btn-secondary { background: var(--ahr-orange); border-color: var(--ahr-orange); color: #fff; }
.btn-secondary:hover { background: #d9640c; border-color: #d9640c; color: #fff; }
.btn-outline-light:hover { color: var(--ahr-blue); }
.fw-black { font-weight: 950; }
.text-primary { color: var(--ahr-blue) !important; }
.text-success { color: var(--ahr-green) !important; }
.text-warning { color: var(--ahr-orange) !important; }

main { overflow: hidden; }
section { padding: 6rem 0; }
.bg-soft { background: var(--ahr-light); }
.shadow-soft { box-shadow: var(--ahr-shadow); border-radius: var(--ahr-radius); overflow: hidden; }
.eyebrow {
    color: var(--ahr-orange); display: inline-flex; align-items: center; gap: .5rem;
    font-weight: 900; text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; margin-bottom: .75rem;
}
.eyebrow::before { content: ""; width: 32px; height: 3px; background: currentColor; border-radius: 999px; }
.section-heading { max-width: 760px; margin-bottom: 3rem; }
.section-heading h2, .cta-band h2 { color: var(--ahr-blue); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; font-weight: 900; margin: 0 0 1rem; }
.section-heading p { color: var(--ahr-muted); font-size: 1.08rem; margin: 0; }

.hero-carousel, .hero-slide { min-height: 720px; }
.hero-slide {
    display: flex; align-items: center; background-size: cover; background-position: center;
    color: #fff; position: relative; padding-top: 5rem;
}
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,59,102,.9), rgba(7,59,102,.45), rgba(7,59,102,.25)); }
.hero-slide .container { position: relative; z-index: 1; }
.hero-slide h1 { font-size: clamp(2.6rem, 6vw, 5.7rem); line-height: 1.02; font-weight: 950; max-width: 880px; margin-bottom: 1.25rem; }
.hero-slide p { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 720px; margin-bottom: 2rem; color: rgba(255,255,255,.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.carousel-indicators [data-bs-target] { width: 12px; height: 12px; border-radius: 999px; }

.inner-hero {
    min-height: 520px; background-size: cover; background-position: center; display: flex; align-items: center;
    color: #fff; padding-top: 8rem; padding-bottom: 5rem;
}
.inner-hero h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); font-weight: 950; line-height: 1.05; }
.inner-hero p { font-size: 1.18rem; max-width: 760px; color: rgba(255,255,255,.93); }

.story-card, .value-card, .program-card, .service-card, .impact-card, .news-card, .team-card, .timeline-item, .testimonial {
    background: #fff; border: 1px solid rgba(7,59,102,.08); border-radius: var(--ahr-radius); box-shadow: 0 14px 35px rgba(7,59,102,.08);
}
.story-card { padding: 2rem; }
.story-image { border-radius: var(--ahr-radius); box-shadow: var(--ahr-shadow); min-height: 440px; object-fit: cover; width: 100%; }
.icon-badge {
    width: 52px; height: 52px; display: inline-grid; place-items: center; border-radius: 50%;
    background: rgba(244,123,32,.14); color: var(--ahr-orange); font-size: 1.55rem; margin-bottom: 1.1rem;
}
.value-card, .impact-card { padding: 1.7rem; height: 100%; }
.value-card h3, .program-card h3, .service-card h3, .impact-card h3, .news-card h3 { color: var(--ahr-blue); font-weight: 900; font-size: 1.25rem; }
.program-card, .service-card, .news-card { overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.program-card:hover, .service-card:hover, .news-card:hover { transform: translateY(-6px); box-shadow: var(--ahr-shadow); }
.program-card img, .service-card img, .news-card img { width: 100%; height: 220px; object-fit: cover; }
.service-card .p-4, .news-card .p-4 { min-height: 260px; }
.text-link { font-weight: 900; color: var(--ahr-blue); }

.impact-counters { margin-top: 1rem; }
.counter-card {
    padding: 1.5rem 1rem; text-align: center; border-radius: var(--ahr-radius);
    background: #fff; box-shadow: 0 12px 30px rgba(7,59,102,.09); height: 100%;
}
.counter-card strong { display: block; color: var(--ahr-blue); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.1; }
.counter-card span:last-child { color: var(--ahr-muted); font-weight: 800; font-size: .92rem; }

.cause-meter { height: 10px; border-radius: 999px; background: #dce8ef; overflow: hidden; }
.cause-meter span { display: block; height: 100%; background: linear-gradient(90deg,var(--ahr-green),var(--ahr-orange)); }
.video-panel {
    position: relative; min-height: 430px; border-radius: var(--ahr-radius); overflow: hidden; background-size: cover; background-position: center;
    display: grid; place-items: center; box-shadow: var(--ahr-shadow);
}
.video-panel::after { content: ""; position: absolute; inset: 0; background: rgba(7,59,102,.42); }
.play-button { position: relative; z-index: 1; width: 82px; height: 82px; border: 0; border-radius: 50%; background: #fff; color: var(--ahr-orange); font-size: 2.3rem; }
.testimonial { padding: 2rem; }
.testimonial blockquote { color: var(--ahr-dark); font-size: 1.03rem; margin-bottom: 1.5rem; }
.testimonial figcaption strong { display: block; color: var(--ahr-blue); }
.testimonial figcaption span { color: var(--ahr-muted); font-size: .95rem; }

.gallery-grid { columns: 1; column-gap: 1.25rem; }
.gallery-grid a { display: block; margin-bottom: 1.25rem; border-radius: var(--ahr-radius); overflow: hidden; box-shadow: 0 14px 35px rgba(7,59,102,.1); }
.gallery-grid img { width: 100%; transition: transform .35s ease; }
.gallery-grid a:hover img { transform: scale(1.04); }
@media (min-width: 768px) { .gallery-grid { columns: 2; } }
@media (min-width: 1200px) { .gallery-grid { columns: 4; } }

.donation-form, .contact-form {
    background: #fff; border-radius: var(--ahr-radius); box-shadow: var(--ahr-shadow); padding: clamp(1.25rem, 3vw, 2rem);
}
.form-label { font-weight: 800; color: var(--ahr-blue); }
.form-control, .form-select { border-radius: 6px; padding: .82rem .9rem; border-color: #cad7df; }
.form-control:focus, .form-select:focus { border-color: var(--ahr-orange); box-shadow: 0 0 0 .2rem rgba(244,123,32,.16); }
.required::after { content: " *"; color: #bf2a2a; }
.alert { border-radius: var(--ahr-radius); }

.map-placeholder {
    min-height: 360px; border-radius: var(--ahr-radius); background:
    linear-gradient(135deg, rgba(7,59,102,.88), rgba(46,157,99,.72)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.15) 0 12px, transparent 12px 24px);
    color: #fff; display: grid; place-items: center; text-align: center; padding: 2rem;
}
.timeline { position: relative; display: grid; gap: 1rem; }
.timeline-item { padding: 1.5rem; border-left: 5px solid var(--ahr-orange); }
.team-card { padding: 1.5rem; height: 100%; }
.team-card .avatar {
    width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(46,157,99,.14); color: var(--ahr-green); font-size: 2rem; margin-bottom: 1rem;
}
.cta-band { background: linear-gradient(135deg, var(--ahr-blue), #0d5d92); color: #fff; padding: 4.5rem 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.84); margin: 0; font-size: 1.08rem; }

.site-footer { background: #061f35; color: rgba(255,255,255,.78); padding: 4.5rem 0 1.5rem; }
.site-footer h2 { color: #fff; font-size: 1rem; font-weight: 900; margin-bottom: 1rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .65rem; color: #fff; font-weight: 950; font-size: 1.25rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: #fff; }
.social-links { display: flex; gap: .55rem; margin-top: 1.25rem; }
.social-links a {
    width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
    background: rgba(255,255,255,.1); color: #fff;
}
.contact-list li { display: flex; gap: .65rem; align-items: flex-start; }
.contact-list i { color: var(--ahr-orange); margin-top: .2rem; }
.newsletter .form-control { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: #fff; }
.newsletter .form-control::placeholder { color: rgba(255,255,255,.62); }
.site-footer hr { border-color: rgba(255,255,255,.14); margin: 2rem 0 1.2rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p, .image-credit { margin: 0; }
.footer-bottom span { margin: 0 .65rem; color: rgba(255,255,255,.35); }
.image-credit { color: rgba(255,255,255,.46); font-size: .82rem; margin-top: .85rem; }
.scroll-top {
    position: fixed; right: 1rem; bottom: 1rem; width: 46px; height: 46px; border: 0; border-radius: 50%;
    background: var(--ahr-orange); color: #fff; display: grid; place-items: center; opacity: 0; visibility: hidden;
    box-shadow: var(--ahr-shadow); z-index: 999; transition: .25s ease;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; }
.error-page { min-height: 80vh; display: grid; place-items: center; padding-top: 7rem; text-align: center; background: var(--ahr-light); }
.error-page h1 { font-size: clamp(5rem, 16vw, 10rem); color: var(--ahr-blue); font-weight: 950; line-height: 1; }

@media (max-width: 991.98px) {
    .navbar-collapse { background: #fff; border-radius: var(--ahr-radius); box-shadow: var(--ahr-shadow); padding: 1rem; margin-top: .8rem; }
    .hero-carousel, .hero-slide { min-height: 660px; }
    .story-image { min-height: 320px; }
}
@media (max-width: 575.98px) {
    section { padding: 4.25rem 0; }
    .hero-actions .btn { width: 100%; }
    .hero-slide { min-height: 680px; }
    .footer-bottom { display: block; }
}
