/* ============================================================
   Masjid At Taqwa Mutiara Teluknaga - Main Stylesheet
   Color Palette: Islamic Green + Gold
   ============================================================ */

:root {
    --primary: #022c22;
    --primary-light: #047857;
    --primary-medium: #065f46;
    --gold: #CCA43B;
    --gold-light: #FCEabb;
    --gold-dark: #a8842e;
    --dark: #0F172A;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
}

/* ---- Global ---- */
body {
    font-family: 'Outfit', sans-serif;
    color: #374151;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

::selection {
    background: var(--gold);
    color: white;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

/* ---- Typography ---- */
.font-serif { font-family: 'Playfair Display', serif; }
.font-arabic { font-family: 'Amiri', serif; }
.text-gold { color: var(--gold) !important; }
.text-primary-custom { color: var(--primary) !important; }
.bg-primary-custom { background-color: var(--primary) !important; }
.bg-primary-light { background-color: var(--primary-light) !important; }
.bg-gold { background-color: var(--gold) !important; }
.bg-dark-custom { background-color: var(--dark) !important; }
.border-gold { border-color: var(--gold) !important; }

/* ---- Buttons ---- */
.btn-gold {
    background: var(--gold);
    color: var(--primary);
    border: none;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: all 0.3s;
}
.btn-gold:hover {
    background: var(--gold-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(204, 164, 59, 0.4);
}

.btn-primary-custom {
    background: var(--primary);
    color: white;
    border: none;
}
.btn-primary-custom:hover {
    background: var(--primary-light);
    color: white;
}

.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold);
    background: transparent;
}
.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--primary);
}

/* ---- Navbar ---- */
.navbar-attaqwa {
    background: rgba(2, 44, 34, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(204, 164, 59, 0.2);
    transition: all 0.3s;
}
.navbar-attaqwa .nav-link {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}
.navbar-attaqwa .nav-link:hover,
.navbar-attaqwa .nav-link.active {
    color: var(--gold);
}
.navbar-attaqwa .dropdown-menu {
    background: var(--primary);
    border: 1px solid rgba(204,164,59,0.2);
    border-radius: 12px;
    overflow: hidden;
}
.navbar-attaqwa .dropdown-item {
    color: rgba(255,255,255,0.8);
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}
.navbar-attaqwa .dropdown-item:hover {
    background: var(--primary-light);
    color: white;
}
.navbar-brand-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gold), #d4a843);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
}

/* ---- Hero ---- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--primary);
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: subtleZoom 20s infinite ease-in-out;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--primary), rgba(2,44,34,0.6), rgba(0,0,0,0.4));
}
.hero-content {
    position: relative;
    z-index: 10;
}
.hero-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.35rem 1rem;
    border-radius: 50px;
}
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(204,164,59,0.3);
}
.hero-subtitle {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0.1em;
}
@keyframes subtleZoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ---- Wave Divider ---- */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 20;
}
.wave-divider svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

/* ---- Section Headers ---- */
.section-label {
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.2em;
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-label::before {
    content: '';
    width: 32px;
    height: 2px;
    background: var(--gold);
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* ---- Cards ---- */
.card-attaqwa {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s;
}
.card-attaqwa:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.card-attaqwa .card-img-top {
    height: 220px;
    object-fit: cover;
}

.card-layanan {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    transition: all 0.4s;
}
.card-layanan:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 30px rgba(204,164,59,0.15);
}
.card-layanan .icon-box {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    color: var(--gold);
    font-size: 1.5rem;
}

/* ---- Islamic Pattern Overlay ---- */
.islamic-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23CCA43B' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ---- Footer ---- */
.footer-attaqwa {
    background: var(--dark);
    color: #9ca3af;
}
.footer-attaqwa a {
    color: #9ca3af;
}
.footer-attaqwa a:hover {
    color: var(--gold);
}
.footer-title {
    color: white;
    font-weight: 700;
    margin-bottom: 1.2rem;
}
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.footer-contact-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.footer-contact-item:hover .footer-contact-icon {
    background: var(--gold);
    color: var(--primary);
}

/* ---- Scroll Reveal ---- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Donation Progress ---- */
.donation-progress {
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    overflow: hidden;
}
.donation-progress-bar {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--gold));
    transition: width 1s ease;
}

/* ---- Q&A ---- */
.qa-card {
    border-left: 4px solid var(--gold);
    border-radius: 0 12px 12px 0;
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.qa-status {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
}
.qa-status.answered { background: #d1fae5; color: #065f46; }
.qa-status.waiting { background: #fef3c7; color: #92400e; }

/* ---- Pagination ---- */
.pagination .page-link {
    border: none;
    color: var(--primary);
    border-radius: 8px;
    margin: 0 2px;
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    color: white;
}
.pagination .page-link:hover {
    background: var(--gold-light);
    color: var(--primary);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 1.8rem; }
}
