:root {
    --green: #0b5f48;
    --green-dark: #063a2d;
    --green-light: #e8f3ee;
    --gold: #c9971c;
    --gold-light: #f3d77a;
    --cream: #fbf8f1;
    --ink: #1c2b27;
    --bs-primary: var(--green);
    --bs-primary-rgb: 11, 95, 72;
    --bs-body-font-family: 'Poppins', system-ui, sans-serif;
    --bs-body-color: var(--ink);
    --bs-link-color: var(--green);
    --bs-link-hover-color: var(--green-dark);
    --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.12' stroke-width='1.2'%3E%3Cpath d='M40 4l9 22 22-9-9 22 22 9-22 9 9 22-22-9-9 22-9-22-22 9 9-22-22-9 22-9-9-22 22 9z'/%3E%3Ccircle cx='40' cy='40' r='9'/%3E%3C/g%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; }
body { background: var(--cream); overflow-x: hidden; }
h1, h2, h3, .brand-font { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; }
.h4, .h5, .h6, h4, h5, h6 { font-family: 'Poppins', sans-serif; font-weight: 600; }
.skip-link { position: absolute; z-index: 2000; background: #fff; padding: .5rem 1rem; }

.btn { border-radius: 50rem; font-weight: 500; padding-left: 1.4rem; padding-right: 1.4rem; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 .5rem 1rem rgba(11, 95, 72, .25); }
.btn-primary { --bs-btn-bg: var(--green); --bs-btn-border-color: var(--green); --bs-btn-hover-bg: var(--green-dark); --bs-btn-hover-border-color: var(--green-dark); --bs-btn-active-bg: var(--green-dark); }
.btn-outline-primary { --bs-btn-color: var(--green); --bs-btn-border-color: var(--green); --bs-btn-hover-bg: var(--green); --bs-btn-hover-border-color: var(--green); --bs-btn-active-bg: var(--green); }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #3a2a00; border: 0; }
.btn-gold:hover { color: #3a2a00; background: linear-gradient(135deg, #f8e290, #d9a622); }
.btn-light-outline { border: 2px solid rgba(255, 255, 255, .8); color: #fff; }
.btn-light-outline:hover { background: #fff; color: var(--green); }

/* Top bar + navbar */
.topbar { background: var(--green-dark); color: #d7e8e1; font-size: .85rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--gold-light); }
.topbar .bi { color: var(--gold-light); margin-right: .25rem; }
.site-header { background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); box-shadow: 0 2px 14px rgba(0, 0, 0, .06); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 6px 22px rgba(0, 0, 0, .12); }
.brand-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.35rem; color: var(--green); }
.brand-sub { letter-spacing: .22em; text-transform: uppercase; font-size: .65rem; color: var(--gold); font-weight: 600; }
.navbar .nav-link { color: var(--ink); font-weight: 500; position: relative; padding: .6rem .9rem; }
.navbar .nav-link::after { content: ''; position: absolute; left: .9rem; right: .9rem; bottom: .25rem; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .3s; }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
.navbar .nav-link.active, .navbar .nav-link:hover { color: var(--green); }
.dropdown-menu { border: 0; border-radius: .75rem; box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .15); padding: .5rem; }
.dropdown-item { border-radius: .5rem; }
.dropdown-item:hover, .dropdown-item.active { background: var(--green-light); color: var(--green); }
@media (min-width: 992px) { .dropdown:hover > .dropdown-menu { display: block; animation: fadeUp .25s; } }
.btn-donate { padding: .45rem 1.2rem; animation: pulse 2.4s infinite; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--green-dark); overflow: hidden; }
.hero .carousel-item { height: min(86vh, 720px); min-height: 520px; }
.hero .carousel-item > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .carousel-item.active > img { animation: kenburns 9s ease-out both; }
.hero .carousel-item::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(4, 40, 31, .92) 0%, rgba(6, 58, 45, .7) 45%, rgba(6, 58, 45, .2) 100%); pointer-events: none; }
.hero .carousel-item::after { content: ''; position: absolute; inset: 0; z-index: 1; background-image: var(--pattern); opacity: .7; pointer-events: none; }
.hero-caption { position: absolute; z-index: 3; inset: 0; display: flex; align-items: center; }
.hero-caption .arabic { font-family: 'Amiri', serif; font-size: clamp(1.6rem, 4vw, 2.6rem); color: var(--gold-light); display: block; margin-bottom: .5rem; }
.hero-caption h2 { font-size: clamp(2rem, 5.5vw, 3.9rem); line-height: 1.1; text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.hero-caption p { font-size: 1.1rem; max-width: 36rem; color: #e3f0ea; }
.hero .carousel-item.active .hero-slide-text > * { animation: fadeUp .8s both; }
.hero .carousel-item.active .hero-slide-text > *:nth-child(2) { animation-delay: .15s; }
.hero .carousel-item.active .hero-slide-text > *:nth-child(3) { animation-delay: .3s; }
.hero .carousel-item.active .hero-slide-text > *:nth-child(4) { animation-delay: .45s; }
.hero .carousel-indicators { z-index: 4; }
.hero .carousel-control-prev, .hero .carousel-control-next { z-index: 4; width: 6%; }
.hero-moon { position: absolute; z-index: 3; right: 6%; top: 12%; width: clamp(70px, 10vw, 140px); opacity: .9; animation: floaty 6s ease-in-out infinite; filter: drop-shadow(0 0 25px rgba(243, 215, 122, .5)); }
.hero-wave { position: absolute; z-index: 3; bottom: -1px; left: 0; width: 100%; height: 60px; display: block; }

/* Sections */
.section { padding: 5rem 0; position: relative; }
.section-alt { background: #fff; }
.section-green { background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; }
.section-green::before, .page-hero::before { content: ''; position: absolute; inset: 0; background-image: var(--pattern); pointer-events: none; }
.eyebrow { display: inline-block; color: var(--gold); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 600; margin-bottom: .6rem; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); color: var(--green); margin-bottom: 1.2rem; position: relative; }
.section-title::after { content: ''; display: block; width: 64px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); margin-top: .7rem; }
.text-center .section-title::after, .section-title.text-center::after { margin-left: auto; margin-right: auto; }
.section-green .section-title { color: #fff; }

.page-hero { position: relative; background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); color: #fff; padding: 3.5rem 0 3rem; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(243, 215, 122, .12); animation: spin 40s linear infinite; }
.page-title { font-size: clamp(1.9rem, 4.5vw, 3rem); margin: 0; animation: fadeUp .7s both; }
.breadcrumb { --bs-breadcrumb-divider-color: rgba(255, 255, 255, .6); --bs-breadcrumb-item-active-color: var(--gold-light); }
.breadcrumb a { color: #fff; text-decoration: none; }

/* Feature / quick-link cards */
.feature-card { background: #fff; border-radius: 1rem; padding: 2rem 1.6rem; height: 100%; border-bottom: 4px solid var(--gold); box-shadow: 0 .5rem 1.6rem rgba(11, 95, 72, .08); transition: transform .3s, box-shadow .3s; position: relative; overflow: hidden; }
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 1rem 2.4rem rgba(11, 95, 72, .18); }
.feature-card .icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 1rem; background: linear-gradient(135deg, var(--green), #11885f); color: var(--gold-light); font-size: 1.8rem; margin-bottom: 1rem; transition: transform .4s; }
.feature-card:hover .icon { transform: rotate(-8deg) scale(1.1); }
.feature-card h3 { font-size: 1.3rem; }
.feature-card h3 a { color: var(--green); text-decoration: none; }
.quick-link { display: block; text-align: center; background: #fff; border-radius: 1rem; padding: 1.4rem 1rem; text-decoration: none; color: var(--ink); height: 100%; box-shadow: 0 .3rem 1rem rgba(0, 0, 0, .06); transition: transform .3s, background .3s, color .3s; }
.quick-link i { font-size: 2rem; color: var(--gold); transition: color .3s; }
.quick-link:hover { transform: translateY(-6px); background: var(--green); color: #fff; }
.quick-link:hover i { color: var(--gold-light); }

.photo-frame { position: relative; padding: 0 0 18px 18px; }
.photo-frame::before { content: ''; position: absolute; left: 0; bottom: 0; right: 18px; top: 18px; border: 3px solid var(--gold); border-radius: 1.2rem; }
.photo-frame img { position: relative; width: 100%; border-radius: 1.2rem; box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, .2); aspect-ratio: 4 / 3; object-fit: cover; }
.check-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.check-list li { padding: .3rem 0; }
.check-list i { color: var(--green); margin-right: .4rem; }

/* Stats */
.stat { text-align: center; padding: 1.2rem .5rem; position: relative; }
.stat .num { font-family: 'Playfair Display', serif; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; color: var(--gold-light); line-height: 1; }
.stat .lbl { color: #d7e8e1; margin-top: .4rem; font-size: .95rem; }

/* Gallery */
.gallery-grid { columns: 3 260px; column-gap: 1rem; }
.gallery-grid a { display: block; position: relative; margin-bottom: 1rem; border-radius: .9rem; overflow: hidden; break-inside: avoid; cursor: zoom-in; background: var(--green-light); }
.gallery-grid img { width: 100%; display: block; transition: transform .6s; }
.gallery-grid a::after { content: '\F52A'; font-family: 'bootstrap-icons'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; color: #fff; background: rgba(6, 58, 45, .55); opacity: 0; transition: opacity .3s; }
.gallery-grid a:hover img { transform: scale(1.08); }
.gallery-grid a:hover::after { opacity: 1; }

/* Posts */
.post-card { position: relative; background: #fff; border-radius: 1rem; overflow: hidden; box-shadow: 0 .5rem 1.6rem rgba(0, 0, 0, .08); transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 1rem 2.4rem rgba(11, 95, 72, .18); }
.post-card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--green-light); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-card:hover .post-card-img img { transform: scale(1.08); }
.post-card-body { padding: 1.3rem; }
.post-card-body h3 a { color: var(--green); text-decoration: none; }
.post-card-body p { color: #5b6b66; font-size: .93rem; }
.post-date { font-size: .8rem; color: var(--gold); font-weight: 600; }
.entry-content { max-width: 52rem; margin: 0 auto; }
.entry-content img, .entry-content video { max-width: 100%; height: auto; border-radius: 1rem; margin: .6rem 0; box-shadow: 0 .5rem 1.6rem rgba(0, 0, 0, .12); cursor: zoom-in; }
.entry-content video { cursor: auto; width: 100%; }
.entry-content .wp-video { max-width: 100%; margin-bottom: 1rem; }

/* Donate / contact */
.bank-card { background: #fff; border-radius: 1.2rem; padding: 2rem; border-top: 5px solid var(--gold); box-shadow: 0 1rem 2.4rem rgba(11, 95, 72, .14); }
.bank-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; border-bottom: 1px dashed #d9e4df; }
.bank-row:last-child { border-bottom: 0; }
.bank-row small { color: #6c7d77; display: block; }
.bank-row strong { font-size: 1.05rem; }
.copy-btn { border: 0; background: var(--green-light); color: var(--green); border-radius: 50rem; padding: .3rem .8rem; font-size: .8rem; }
.copy-btn.copied { background: var(--green); color: #fff; }
.contact-card { background: #fff; border-radius: 1rem; padding: 1.5rem; height: 100%; box-shadow: 0 .5rem 1.6rem rgba(0, 0, 0, .07); text-align: center; transition: transform .3s; }
.contact-card:hover { transform: translateY(-6px); }
.contact-card i { width: 60px; height: 60px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--green-light); color: var(--green); font-size: 1.5rem; margin-bottom: .8rem; }
.contact-card a { color: var(--ink); text-decoration: none; }
.map-wrap { border-radius: 1.2rem; overflow: hidden; box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, .15); }
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--green-dark), var(--green)); color: #fff; border-radius: 1.5rem; padding: 3rem 2rem; }
.cta-band::before { content: ''; position: absolute; inset: 0; background-image: var(--pattern); }
.cta-band > * { position: relative; }

/* Footer */
.site-footer { background: var(--green-dark); color: #b9d3c9; position: relative; }
.site-footer a { color: #d7e8e1; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer li { padding: .2rem 0; }
.footer-bottom { background: #04281f; font-size: .85rem; }
.footer-bottom a { color: var(--gold-light); }

.whatsapp-fab, .to-top { position: fixed; right: 1.1rem; z-index: 1030; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 0; box-shadow: 0 .5rem 1.2rem rgba(0, 0, 0, .3); }
.whatsapp-fab { bottom: 1.1rem; background: #25d366; color: #fff; font-size: 1.7rem; animation: pulse 2.4s infinite; }
.whatsapp-fab:hover { color: #fff; transform: scale(1.1); }
.to-top { bottom: 5rem; background: var(--gold); color: #fff; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* Animations */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal].in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-16px) rotate(4deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(201, 151, 28, .5); } 70% { box-shadow: 0 0 0 14px rgba(201, 151, 28, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 151, 28, 0); } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    [data-reveal] { opacity: 1; transform: none; }
}
@media (max-width: 575.98px) { .section { padding: 3.5rem 0; } .hero-moon { display: none; } }
