/* Sydney West Islamic Centre - public site theme
   Deep emerald + antique gold on warm cream, with an eight-point-star (Rub el Hizb)
   geometric pattern used as a subtle texture on dark sections. */

:root {
    --iw-green: #146b52;
    --iw-green-dark: #0f4c3a;
    --iw-green-deep: #0a3328;
    --iw-gold: #c8a24a;
    --iw-gold-dark: #a8842f;
    --iw-gold-soft: #f3e7c6;
    --iw-cream: #fbf8f1;
    --iw-sand: #f3ecdc;
    --iw-ink: #1d2a26;
    --iw-muted: #5f6d68;
    --iw-radius: 14px;
    --iw-shadow: 0 6px 24px rgba(15, 76, 58, 0.08);
    --iw-shadow-lg: 0 14px 40px rgba(15, 76, 58, 0.14);
    --iw-font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --iw-font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --iw-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23c8a24a' stroke-width='1'%3E%3Crect x='24' y='24' width='40' height='40'/%3E%3Crect x='24' y='24' width='40' height='40' transform='rotate(45 44 44)'/%3E%3Ccircle cx='44' cy='44' r='9'/%3E%3Cpath d='M0 0l12 12M88 0L76 12M0 88l12-12M88 88L76 76'/%3E%3C/g%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: var(--iw-font-body);
    color: var(--iw-ink);
    background-color: #fff;
    line-height: 1.7;
}

h1, h2, h3, .display-font {
    font-family: var(--iw-font-head);
    font-weight: 700;
    letter-spacing: -0.01em;
}

h4, h5, h6 { font-weight: 600; }

a { color: var(--iw-green); }
a:hover { color: var(--iw-green-dark); }

.text-muted { color: var(--iw-muted) !important; }
.text-gold { color: var(--iw-gold) !important; }
.text-iw-green { color: var(--iw-green-dark) !important; }


/* ---------- Top bar + navbar ---------- */

.topbar {
    background: var(--iw-green-deep);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    padding: 0.4rem 0;
}
.topbar a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.topbar a:hover { color: var(--iw-gold); }
.topbar .bi { color: var(--iw-gold); }

.navbar-iw {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: normal;
}
.brand-mark {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--iw-green-dark);
    color: var(--iw-gold);
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    box-shadow: inset 0 0 0 2px var(--iw-gold);
}
.brand-text {
    font-family: var(--iw-font-head);
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.15;
    color: var(--iw-green-dark);
}
.brand-text .tagline {
    display: block;
    font-family: var(--iw-font-body);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--iw-gold-dark);
    letter-spacing: 0.03em;
}

.navbar-iw .nav-link {
    color: var(--iw-ink);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}
.navbar-iw .nav-link:hover,
.navbar-iw .nav-link.active { color: var(--iw-green); }
@media (min-width: 992px) {
    .navbar-iw .nav-link.active::after {
        content: "";
        position: absolute;
        left: 0.5rem;
        right: 0.5rem;
        bottom: 0.1rem;
        height: 2px;
        background: var(--iw-gold);
        border-radius: 2px;
    }
}

/* ---------- Buttons ---------- */

.btn { border-radius: 999px; font-weight: 600; padding: 0.6rem 1.4rem; }
.btn-sm { padding: 0.4rem 1rem; }
.btn-lg { padding: 0.8rem 1.9rem; }

.btn-iw-primary {
    background-color: var(--iw-green);
    border-color: var(--iw-green);
    color: #fff;
}
.btn-iw-primary:hover, .btn-iw-primary:focus {
    background-color: var(--iw-green-dark);
    border-color: var(--iw-green-dark);
    color: #fff;
}

.btn-iw-gold {
    background-color: var(--iw-gold);
    border-color: var(--iw-gold);
    color: var(--iw-green-deep);
}
.btn-iw-gold:hover, .btn-iw-gold:focus {
    background-color: var(--iw-gold-dark);
    border-color: var(--iw-gold-dark);
    color: #fff;
}

.btn-iw-outline {
    border: 2px solid var(--iw-green);
    color: var(--iw-green);
    background: transparent;
}
.btn-iw-outline:hover { background: var(--iw-green); color: #fff; }

/* ---------- Pattern / dark sections ---------- */

.bg-pattern-dark {
    background-color: var(--iw-green-dark);
    background-image: var(--iw-pattern), linear-gradient(135deg, var(--iw-green-deep), var(--iw-green));
    background-size: 88px 88px, cover;
    color: #fff;
}
.bg-pattern-dark .text-muted { color: rgba(255, 255, 255, 0.75) !important; }

.bg-iw-cream { background-color: var(--iw-cream); }
.bg-iw-sand { background-color: var(--iw-sand); }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    color: #fff;
    padding: 7rem 0 8.5rem;
    overflow: hidden;
    background-color: var(--iw-green-dark);
    background-image: var(--iw-pattern), radial-gradient(ellipse at top, var(--iw-green) 0%, var(--iw-green-deep) 75%);
    background-size: 88px 88px, cover;
}
.hero.has-image {
    background-size: cover;
    background-position: center;
}
.hero::after {
    /* soft arch glow behind the headline */
    content: "";
    position: absolute;
    left: 50%;
    top: 10%;
    width: 760px;
    height: 760px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 162, 74, 0.18) 0%, transparent 65%);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
    font-size: clamp(2.2rem, 5.2vw, 3.8rem);
    line-height: 1.12;
    margin-bottom: 1.25rem;
}
.hero .lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.88);
}
.hero .eyebrow {
    display: inline-block;
    border: 1px solid rgba(200, 162, 74, 0.6);
    color: var(--iw-gold-soft);
    border-radius: 999px;
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

/* Scalloped arch edge at the bottom of hero/page headers */
.arch-divider {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 40px;
    background: #fff;
    -webkit-mask: radial-gradient(circle at 50% 0, transparent 26px, #000 27px) 0 0 / 60px 40px repeat-x;
            mask: radial-gradient(circle at 50% 0, transparent 26px, #000 27px) 0 0 / 60px 40px repeat-x;
    z-index: 1;
}

/* ---------- Pillars strip (overlaps hero) ---------- */

.pillars { margin-top: -4.5rem; position: relative; z-index: 2; }
.pillar {
    background: #fff;
    border-radius: var(--iw-radius);
    box-shadow: var(--iw-shadow-lg);
    padding: 1.6rem 1.4rem;
    height: 100%;
    border-bottom: 3px solid var(--iw-gold);
}
.pillar .bi { font-size: 1.8rem; color: var(--iw-gold-dark); }
.pillar h6 { margin: 0.6rem 0 0.25rem; color: var(--iw-green-dark); font-size: 1.02rem; }
.pillar p { font-size: 0.86rem; color: var(--iw-muted); margin: 0; line-height: 1.5; }

/* ---------- Section titles ---------- */

.section { padding: 5.5rem 0; }

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--iw-gold-dark);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}
.section-eyebrow::before,
.text-center > .section-eyebrow::after {
    content: "";
    width: 9px;
    height: 9px;
    background: var(--iw-gold);
    transform: rotate(45deg);
}
.bg-pattern-dark .section-eyebrow { color: var(--iw-gold); }

.section-title {
    color: var(--iw-green-dark);
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    margin-bottom: 0.75rem;
}
.bg-pattern-dark .section-title { color: #fff; }

.section-title .gold-underline { display: none; }

.section-lead { color: var(--iw-muted); max-width: 680px; }
.text-center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Cards ---------- */

.iw-card {
    background: #fff;
    border: 1px solid rgba(15, 76, 58, 0.07);
    border-radius: var(--iw-radius);
    box-shadow: var(--iw-shadow);
    padding: 2rem;
    height: 100%;
}

.mv-card {
    position: relative;
    background: #fff;
    border-radius: var(--iw-radius);
    box-shadow: var(--iw-shadow);
    padding: 2rem 2rem 2rem 2.2rem;
    border-left: 4px solid var(--iw-gold);
    height: 100%;
}
.mv-card h4 { color: var(--iw-green-dark); font-family: var(--iw-font-head); }
.mv-card .bi { color: var(--iw-gold-dark); font-size: 1.6rem; }

.card-activity {
    background: #fff;
    border: 1px solid rgba(15, 76, 58, 0.07);
    border-radius: var(--iw-radius);
    box-shadow: var(--iw-shadow);
    transition: transform .25s ease, box-shadow .25s ease;
    height: 100%;
    overflow: hidden;
}
.card-activity:hover { transform: translateY(-5px); box-shadow: var(--iw-shadow-lg); }
.card-activity .card-img { height: 190px; object-fit: cover; border-radius: 0; }
.card-activity .card-body { padding: 1.8rem; }

.icon-wrap {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    background: var(--iw-gold-soft);
    color: var(--iw-green-dark);
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    transform: rotate(45deg);
    margin: 0.4rem 0 1.4rem 0.4rem;
}
.icon-wrap .bi { transform: rotate(-45deg); }
.icon-wrap.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* ---------- Centre Project ---------- */

.project-visual {
    border-radius: var(--iw-radius);
    overflow: hidden;
    box-shadow: var(--iw-shadow-lg);
    min-height: 320px;
    height: 100%;
    background-color: var(--iw-green-dark);
    background-image: var(--iw-pattern), linear-gradient(160deg, var(--iw-green), var(--iw-green-deep));
    background-size: 88px 88px, cover;
    display: grid;
    place-items: center;
    color: var(--iw-gold);
}
.project-visual img { width: 100%; height: 100%; object-fit: cover; }
.project-visual .placeholder-mark { text-align: center; }
.project-visual .placeholder-mark .bi { font-size: 4.5rem; }

.fact {
    background: #fff;
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    border: 1px solid rgba(15, 76, 58, 0.08);
    height: 100%;
}
.fact .fact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--iw-muted);
}
.fact .fact-value {
    font-family: var(--iw-font-head);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--iw-green-dark);
}

.facility-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.facility-list li {
    background: var(--iw-gold-soft);
    color: var(--iw-green-deep);
    border-radius: 999px;
    padding: 0.35rem 0.95rem;
    font-size: 0.86rem;
    font-weight: 500;
}

.progress-iw { height: 14px; border-radius: 999px; background: rgba(15, 76, 58, 0.1); }
.progress-iw .progress-bar { background: linear-gradient(90deg, var(--iw-green), var(--iw-gold)); border-radius: 999px; }

/* ---------- Events ---------- */

.card-event {
    background: #fff;
    border: 1px solid rgba(15, 76, 58, 0.07);
    border-radius: var(--iw-radius);
    box-shadow: var(--iw-shadow);
    overflow: hidden;
    height: 100%;
}
.card-event .card-img { height: 180px; object-fit: cover; border-radius: 0; }
.card-event .card-body { padding: 1.6rem; display: flex; gap: 1.1rem; }

.event-date-badge {
    flex: 0 0 auto;
    background: var(--iw-green-dark);
    color: #fff;
    border-radius: 12px;
    padding: 0.6rem 0.8rem;
    text-align: center;
    min-width: 66px;
    align-self: flex-start;
    border-bottom: 3px solid var(--iw-gold);
}
.event-date-badge .day { display: block; font-family: var(--iw-font-head); font-size: 1.6rem; font-weight: 700; line-height: 1; }
.event-date-badge .month { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--iw-gold-soft); }

/* ---------- Gallery ---------- */

.gallery-thumb {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--iw-shadow);
    transition: transform .25s ease;
}
.gallery-thumb:hover { transform: scale(1.03); }

/* ---------- Governance ---------- */

.legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(200, 162, 74, 0.45);
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    font-size: 0.9rem;
    color: #fff;
}
.legal-badge .bi { color: var(--iw-gold); }

.gov-point { display: flex; gap: 1rem; align-items: flex-start; }
.gov-point .bi {
    flex: 0 0 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(200, 162, 74, 0.16);
    color: var(--iw-gold);
    font-size: 1.2rem;
}

/* ---------- Donate ---------- */

.donate-tier {
    display: block;
    width: 100%;
    background: #fff;
    border: 2px solid rgba(200, 162, 74, 0.45);
    border-radius: var(--iw-radius);
    padding: 1.6rem 1rem;
    text-align: center;
    height: 100%;
    transition: all .2s ease;
    color: var(--iw-ink);
}
button.donate-tier { cursor: pointer; }
button.donate-tier:hover,
.donate-tier.selected {
    border-color: var(--iw-gold);
    background: var(--iw-gold-soft);
    transform: translateY(-3px);
    box-shadow: var(--iw-shadow);
}
.donate-tier .tier-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--iw-gold-dark);
    font-weight: 600;
}
.donate-tier .amount {
    font-family: var(--iw-font-head);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--iw-green-dark);
    line-height: 1.2;
}
.donate-tier .tier-cta { font-size: 0.8rem; color: var(--iw-muted); }

.pay-method { border-top: 4px solid var(--iw-green); }
.pay-method.card-method { border-top-color: var(--iw-gold); }
.pay-method h4 { color: var(--iw-green-dark); }

.bank-details { margin: 0; }
.bank-details dt { color: var(--iw-muted); font-weight: 500; font-size: 0.9rem; }
.bank-details dd { font-weight: 600; color: var(--iw-ink); font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; }

/* ---------- Subscribe ---------- */

.subscribe-box {
    border-radius: 22px;
    padding: 3.5rem 2rem;
    position: relative;
    overflow: hidden;
}
.subscribe-form .form-control {
    border-radius: 999px;
    padding: 0.75rem 1.3rem;
    border: none;
}

/* ---------- Contact strip ---------- */

.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item .bi {
    flex: 0 0 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--iw-gold-soft);
    color: var(--iw-green-dark);
    display: grid;
    place-items: center;
    font-size: 1.25rem;
}
.contact-item .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--iw-muted); }
.contact-item .value { font-weight: 600; color: var(--iw-ink); word-break: break-word; }

/* ---------- Forms ---------- */

.form-control, .form-select { border-radius: 10px; padding: 0.65rem 0.9rem; border-color: #dfe5e2; }
.form-control:focus, .form-select:focus { border-color: var(--iw-gold); box-shadow: 0 0 0 0.2rem rgba(200, 162, 74, 0.2); }
.form-label { font-weight: 500; font-size: 0.92rem; }

.modal-content { border-radius: 18px; border: none; overflow: hidden; }
.modal-header.bg-pattern-dark .btn-close { filter: invert(1); }

/* ---------- Page headers (inner pages) ---------- */

.page-header {
    position: relative;
    color: #fff;
    padding: 4.5rem 0 5rem;
    background-color: var(--iw-green-dark);
    background-image: var(--iw-pattern), linear-gradient(135deg, var(--iw-green-deep), var(--iw-green));
    background-size: 88px 88px, cover;
}
.page-header h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-header .lead { color: rgba(255, 255, 255, 0.85); }
.page-header .breadcrumb { justify-content: center; margin: 0.75rem 0 0; font-size: 0.88rem; }
.page-header .breadcrumb a { color: var(--iw-gold-soft); text-decoration: none; }
.page-header .breadcrumb-item.active,
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, 0.7); }

/* ---------- Flash toast ---------- */

.flash-toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: 440px;
    margin-left: auto;
    z-index: 1090;
    box-shadow: var(--iw-shadow-lg);
    border-radius: 12px;
}

/* ---------- Footer ---------- */

.footer-iw {
    background-color: var(--iw-green-deep);
    background-image: var(--iw-pattern);
    background-size: 88px 88px;
    color: rgba(255, 255, 255, 0.78);
    border-top: 4px solid var(--iw-gold);
}
.footer-iw a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.footer-iw a:hover { color: var(--iw-gold); }
.footer-iw h5 {
    color: var(--iw-gold);
    font-family: var(--iw-font-head);
    font-weight: 700;
    margin-bottom: 1.1rem;
}
.footer-iw .brand-text { color: #fff; }
.footer-iw .footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.82rem; }

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    margin-right: 0.4rem;
    transition: background .2s ease;
}
.social-icons a:hover { background: var(--iw-gold); color: var(--iw-green-deep); }

/* ---------- Small screens ---------- */

@media (max-width: 767.98px) {
    .section { padding: 4rem 0; }
    .hero { padding: 5rem 0 7rem; }
    .iw-card, .mv-card { padding: 1.5rem; }
    .brand-text { font-size: 1rem; }
}
