:root {
    --teal: #0d6e6e;
    --teal-dark: #0a5555;
    --sand: #f3efe6;
    --ink: #1a2424;
    --muted: #5c6b6b;
    --line: #d9e0e0;
    --white: #fff;
    --gold: #c4a35a;
    --shadow: 0 16px 40px rgba(13, 110, 110, .12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', sans-serif;
    color: var(--ink);
    background: var(--sand);
    line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1120px, 92%); margin: 0 auto; }

.topbar {
    background: var(--teal-dark);
    color: #e8f4f4;
    font-size: .88rem;
    padding: .45rem 0;
}
.topbar-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(243, 239, 230, .94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 72px;
}
.logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.25rem;
}
.mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--teal);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
}
nav { margin-left: auto; display: flex; gap: 1.2rem; }
nav a { font-weight: 600; color: var(--muted); font-size: .95rem; }
nav a:hover { color: var(--teal); }
.cta {
    background: var(--teal);
    color: #fff !important;
    padding: .55rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .9rem;
}
.burger {
    display: none;
    border: 0;
    background: transparent;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--ink);
}

.hero {
    position: relative;
    min-height: 78vh;
    display: grid;
    align-items: end;
    padding: 5rem 0 4rem;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(10, 40, 40, .78) 0%, rgba(13, 110, 110, .45) 55%, rgba(13, 110, 110, .2) 100%),
        url('https://images.unsplash.com/photo-1591604129939-f1efa4d9f7fa?auto=format&fit=crop&w=1600&q=80') center/cover;
}
.hero-content { position: relative; z-index: 1; color: #fff; max-width: 640px; }
.eyebrow {
    letter-spacing: .12em;
    font-size: .78rem;
    font-weight: 700;
    opacity: .9;
    margin-bottom: 1rem;
}
.hero h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}
.lead { font-size: 1.08rem; opacity: .92; margin-bottom: 1.6rem; max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .85rem 1.3rem;
    border-radius: 999px;
    font-weight: 700;
    border: 2px solid transparent;
    cursor: pointer;
    transition: .2s;
    font-family: inherit;
}
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--teal); }
.btn-light { background: #fff; color: var(--teal); }
.btn-full { width: 100%; }

.prayer {
    margin-top: -2.5rem;
    position: relative;
    z-index: 2;
    padding-bottom: 1rem;
}
.prayer-head {
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem 1.5rem .5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: var(--shadow);
}
.prayer-head span { color: var(--teal); font-weight: 700; font-size: .8rem; letter-spacing: .08em; }
.prayer-head h2 { font-family: 'Fraunces', serif; font-size: 1.6rem; }
.prayer-head p { color: var(--muted); max-width: 280px; font-size: .92rem; }
.prayer-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: .6rem;
    background: #fff;
    padding: 1rem 1.5rem 1.5rem;
    border-radius: 0 0 20px 20px;
    box-shadow: var(--shadow);
}
.prayer-item {
    text-align: center;
    padding: 1rem .5rem;
    border-radius: 14px;
    background: var(--sand);
    border: 1px solid transparent;
}
.prayer-item.active {
    background: var(--teal);
    color: #fff;
}
.prayer-item .name { font-size: .82rem; font-weight: 700; opacity: .8; margin-bottom: .25rem; }
.prayer-item .time { font-family: 'Fraunces', serif; font-size: 1.35rem; font-weight: 700; }

.section { padding: 4.5rem 0; }
.section-soft { background: #fff; }
.section-teal { background: var(--teal); color: #fff; }
.section-head { text-align: center; max-width: 560px; margin: 0 auto 2.2rem; }
.section-head span, .infaq-grid > div > span, .announce-grid > div > span, .contact > div > span {
    color: var(--teal);
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .08em;
}
.section-teal span { color: var(--gold); }
.section-head h2, .infaq-grid h2, .announce-grid h2, .contact h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    margin: .4rem 0 .5rem;
}
.section-head p { color: var(--muted); }

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}
.cards article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.5rem;
    transition: .2s;
}
.cards article:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(13, 110, 110, .1);
    color: var(--teal);
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.cards h3 { font-family: 'Fraunces', serif; margin-bottom: .45rem; }
.cards p { color: var(--muted); font-size: .95rem; margin-bottom: .8rem; }
.cards small { font-weight: 700; color: var(--teal); }

.announce { padding: 3rem 0; }
.announce-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 2rem;
    align-items: start;
}
.announce-list { list-style: none; display: grid; gap: .85rem; }
.announce-list li {
    background: #fff;
    border-left: 4px solid var(--teal);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    display: grid;
    gap: .2rem;
}
.announce-list span { color: var(--muted); font-size: .92rem; }

.infaq-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 2.5rem;
    align-items: start;
}
.infaq-grid > div > p { color: var(--muted); margin-bottom: 1.4rem; }
.bank { display: grid; gap: .85rem; }
.bank div {
    background: var(--sand);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    display: grid;
    gap: .15rem;
}
.bank span { font-size: .78rem; font-weight: 700; color: var(--teal); letter-spacing: .06em; }
.bank strong { font-size: 1.15rem; }
.bank em { color: var(--muted); font-style: normal; font-size: .9rem; }
form {
    background: var(--sand);
    border-radius: 20px;
    padding: 1.5rem;
    display: grid;
    gap: .75rem;
    border: 1px solid var(--line);
}
form h3 { font-family: 'Fraunces', serif; margin-bottom: .25rem; }
input, select, textarea {
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: .8rem 1rem;
    font: inherit;
    background: #fff;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--teal);
}

.gallery {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: .85rem;
}
.gallery img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 18px;
}
.gallery img:first-child { height: 100%; min-height: 260px; grid-row: span 1; }

.contact {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 2rem;
    align-items: center;
}
.contact ul { list-style: none; display: grid; gap: .75rem; margin-top: 1rem; }
.contact li { display: flex; gap: .7rem; align-items: flex-start; }
.contact i { margin-top: .2rem; color: var(--gold); }
.map-card {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}
.map-card i { font-size: 2rem; color: var(--gold); margin-bottom: .8rem; }
.map-card h3 { font-family: 'Fraunces', serif; font-size: 1.4rem; margin-bottom: .5rem; }
.map-card p { opacity: .9; margin-bottom: 1.2rem; }

.footer {
    background: var(--ink);
    color: #c9d4d4;
    padding: 1.4rem 0;
}
.foot {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.foot a { color: #9fd4d4; }

.wa {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.55rem;
    box-shadow: 0 10px 24px rgba(37, 211, 102, .35);
    z-index: 60;
}

@media (max-width: 900px) {
    .prayer-grid { grid-template-columns: repeat(3, 1fr); }
    .cards, .announce-grid, .infaq-grid, .contact, .gallery { grid-template-columns: 1fr; }
    .gallery img { height: 200px; }
    .cta { display: none; }
    .burger { display: block; margin-left: auto; }
    nav {
        display: none;
        position: absolute;
        left: 0; right: 0; top: 100%;
        background: var(--sand);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        padding: 1rem 4%;
        gap: .85rem;
    }
    nav.open { display: flex; }
}
