:root {
    --green-900: #1f4d36;
    --green-700: #3f9a68;
    --green-500: #4caf7d;
    --green-100: #dff2e5;
    --gold: #d9a441;
    --gold-dark: #a87413;
    --ink: #12261b;
    --muted: #3f5448;
    --bg: #ffffff;
    --bg-alt: #f1f9f3;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(63, 154, 104, .15);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2 { font-family: 'Sora', 'Plus Jakarta Sans', sans-serif; letter-spacing: -.02em; line-height: 1.12; margin: 0; }
.container { width: min(1140px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 26px; border-radius: 999px; border: 2px solid transparent;
    font: 600 .95rem 'Plus Jakarta Sans', sans-serif; cursor: pointer;
    transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--green-900); }
.btn-gold:hover { background: #e6b556; box-shadow: 0 8px 20px rgba(217, 164, 65, .35); }
.btn-ghost { border-color: var(--green-700); color: var(--green-900); }
.btn-ghost:hover { background: rgba(63, 154, 104, .12); }
.hero .btn { text-shadow: none; }
.hero .btn-ghost { border-color: #14663f; border-width: 2px; background: rgba(255, 255, 255, .85); color: #0c2217; }
.hero .btn-ghost:hover { background: #fff; }
.btn-primary { background: var(--green-700); color: #fff; justify-content: center; width: 100%; }
.btn-primary:hover { background: #2f8556; }

/* Header */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    background: #fff; box-shadow: 0 2px 20px rgba(63, 154, 104, .18);
    transition: background .3s, box-shadow .3s;
}
.site-header.scrolled {
    background: #fff;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--green-900); font: 700 1.15rem 'Sora', sans-serif; }
.brand img { border-radius: 8px; }
.menu { display: flex; align-items: center; gap: 30px; }
.menu a:not(.btn) { color: var(--green-900); font-weight: 500; transition: color .2s; }
.menu a:not(.btn):hover { color: var(--green-700); }
.menu .btn { padding: 9px 20px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--green-900); font-size: 2rem; cursor: pointer; }

/* Hero */
.hero {
    position: relative; min-height: min(100vh, 820px); display: flex; align-items: center;
    color: #0c2217; overflow: hidden; background: var(--green-100);
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        url('../img/alameen.png') center / cover no-repeat;
    transform: scale(1.04);
}
.hero-content {
    position: relative; margin-top: 90px; margin-bottom: 90px; padding: 0; max-width: 860px;
    margin-left: max(20px, calc((100% - 1140px) / 2));
    text-shadow: 0 0 14px rgba(255, 255, 255, .95), 0 0 4px rgba(255, 255, 255, .9), 0 1px 2px rgba(255, 255, 255, .9);
}
.eyebrow {
    display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .14em;
    text-transform: uppercase; color: var(--gold-dark); margin-bottom: 14px;
}
.eyebrow.dark { color: var(--gold-dark); }
.hero h1 { font-weight: 800; font-size: clamp(2.6rem, 7vw, 5rem); margin-bottom: 20px; }
.hero h1 em { color: #14663f; font-style: normal; }
.hero p { font-size: 1.2rem; font-weight: 600; color: #0c2217; max-width: 520px; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Info strip */
.info-strip { margin-top: -56px; position: relative; z-index: 5; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card {
    display: flex; align-items: center; gap: 16px; padding: 22px 24px;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    transition: transform .2s;
}
.info-card:hover { transform: translateY(-4px); }
.info-card i {
    flex: none; width: 52px; height: 52px; display: grid; place-items: center;
    border-radius: 14px; background: var(--bg-alt); color: var(--green-700); font-size: 1.5rem;
}
.info-card small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.info-card strong { font-weight: 600; font-size: .95rem; line-height: 1.35; display: block; }

/* Sections */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 44px; }
.section h2 { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--green-900); }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }

/* Prayer iframe */
.iframe-wrapper { height: 80vh; min-height: 520px; max-height: 900px; }
.iframe-wrapper iframe { width: 100%; height: 100%; border: 0; display: block; }
.iframe-wrapper-mobile { display: none; }
.iframe-wrapper-mobile iframe { width: 100%; border: 0; display: block; }

/* About */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.about-text h2 { margin-bottom: 20px; }
.about-text p { color: var(--muted); }
.features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.features li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.features i { color: var(--green-500); font-size: 1.2rem; }
.about-img { position: relative; }
.about-img::before {
    content: ""; position: absolute; inset: 24px -20px -20px 24px; border-radius: var(--radius);
    background: linear-gradient(135deg, var(--green-700), var(--gold)); opacity: .25;
}
.about-img img { position: relative; border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* Form */
.form { padding: 32px; display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input, .form textarea {
    width: 100%; padding: 14px 16px; border: 1.5px solid #dfe5e1; border-radius: 12px;
    font: inherit; background: var(--bg-alt); transition: border-color .2s, background .2s;
}
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--green-500); background: #fff; }
.form textarea { resize: vertical; }

/* Footer */
.site-footer { background: var(--green-100); color: var(--ink); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; padding-bottom: 40px; }
.site-footer .brand { margin-bottom: 18px; }
.site-footer p { margin: 6px 0; }
.site-footer i { color: var(--green-700); margin-right: 8px; }
.site-footer h4 { color: var(--green-900); margin: 0 0 14px; font-size: 1rem; }
.site-footer .footer-grid a:not(.brand) { display: block; padding: 3px 0; transition: color .2s; }
.site-footer .footer-grid a:not(.brand):hover { color: var(--green-700); }
.copyright { border-top: 1px solid rgba(63, 154, 104, .25); padding: 22px 0; font-size: .9rem; }

.to-top {
    position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center; background: var(--gold); color: var(--green-900);
    box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(10px);
    transition: opacity .3s, transform .3s; z-index: 40;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* Responsive */
@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .menu {
        position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch;
        gap: 0; padding: 12px 20px 24px; background: #fff;
        display: none;
    }
    .menu.open { display: flex; }
    .menu a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--green-100); }
    .menu .btn { margin-top: 16px; justify-content: center; }
    .info-grid { grid-template-columns: 1fr; }
    .about { grid-template-columns: 1fr; gap: 48px; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 72px 0; }
}
@media (max-width: 600px) {
    .iframe-wrapper { display: none; }
    .iframe-wrapper-mobile { display: block; }
    .features, .form-row { grid-template-columns: 1fr; }
    
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

.hero .eyebrow { color: #7a4f00; font-weight: 700; }
.hero-content { max-width: 860px; }
