/* ============================================
   MOSQUE & STUDENT RESIDENCE — Main Styles
   Modern Minimal Design (VIKZ-inspired)
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    --teal-900: #0c2d38;
    --teal-800: #164e63;
    --teal-700: #1d6a84;
    --teal-100: #e0f2fe;
    --teal-50:  #f0f9ff;
    --dark:     #1f2937;
    --dark-2:   #111827;
    --white:    #ffffff;
    --gray-50:  #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --text:     #171717;
    --text-muted: #6b7280;
    --border:   #e5e7eb;

    /* Legacy aliases so inline styles in PHP still resolve */
    --green-900: #111827;
    --green-800: #1f2937;
    --green-700: var(--teal-800);
    --green-600: var(--teal-700);
    --green-500: var(--teal-700);
    --green-100: var(--teal-100);
    --green-50:  var(--teal-50);
    --gold-700:  var(--teal-800);
    --gold-500:  var(--teal-800);
    --gold-400:  var(--teal-700);
    --gold-200:  var(--teal-100);
    --gold-100:  var(--teal-50);
    --gold-50:   var(--gray-50);
    --cream:     var(--white);
    --cream-dark:var(--gray-100);

    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body:    'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-w: 1120px;
    --header-h: 72px;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
    --transition: 0.2s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--teal-800); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-700); }
img { max-width: 100%; height: auto; }

/* ---- Top Accent Bar ---- */
.pattern-bar {
    height: 4px;
    background: var(--teal-800);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}
.site-header.scrolled {
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.header-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-img { height: 44px; width: auto; border-radius: 8px; }
.logo-icon { font-size: 32px; }
.logo-text { display: flex; flex-direction: column; }
.logo-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}
.logo-tagline {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.2px;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}
.nav-link {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 8px;
    transition: color var(--transition), background var(--transition);
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 14px; right: 14px;
    height: 2px;
    background: var(--teal-800);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.25s ease;
    transform-origin: left;
}
.nav-link:hover {
    color: var(--text);
    background: var(--gray-100);
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active {
    color: var(--text);
    font-weight: 600;
    background: var(--gray-100);
}
.nav-link.active::after { transform: scaleX(1); }

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.lang-switch:hover {
    border-color: var(--text-muted);
    color: var(--text);
}
.lang-label { font-size: 12px; }

.btn-donate {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: var(--dark);
    color: var(--white) !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: all var(--transition);
}
.btn-donate:hover {
    background: var(--dark-2);
}
.donate-icon { font-size: 15px; }

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    display: block;
    background: var(--white);
    border-top: 1px solid transparent;
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease, border-color 0.3s ease;
}
.mobile-menu.open {
    max-height: 600px;
    padding: 16px 24px 24px;
    border-top-color: var(--border);
}
.mobile-nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav-link {
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    border-radius: 8px;
    transition: all var(--transition);
}
.mobile-nav-link:hover, .mobile-nav-link.active {
    background: var(--gray-100);
    color: var(--text);
}
.mobile-menu-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.mobile-lang {
    font-size: 14px;
    color: var(--text-muted);
}

/* ============================================
   HERO / SLIDER
   ============================================ */
.hero-section {
    position: relative;
    overflow: hidden;
    background: var(--dark-2);
}
.hero-slider {
    position: relative;
    min-height: 560px;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; position: relative; }
.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.hero-slide-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(17,24,39,0.85) 0%, rgba(17,24,39,0.55) 60%, rgba(17,24,39,0.3) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 120px 24px;
    color: var(--white);
}
.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 5.5vw, 60px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.hero-content p {
    font-size: clamp(16px, 2vw, 20px);
    opacity: 0.8;
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 36px;
    font-weight: 400;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--white);
    color: var(--dark) !important;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    transition: all var(--transition);
}
.hero-cta:hover {
    background: var(--gray-100);
}

/* Slider dots */
.hero-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.hero-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}
.hero-dot.active {
    background: var(--white);
    width: 24px;
    border-radius: 4px;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 88px 24px;
}
.section-container {
    max-width: var(--max-w);
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.section-header p {
    color: var(--text-muted);
    font-size: 17px;
    max-width: 560px;
    margin: 0 auto;
}
.section-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 14px;
}
.section-ornament::before,
.section-ornament::after {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--border);
}
.section-ornament span {
    color: var(--teal-800);
    font-size: 16px;
}

/* ---- Alternating backgrounds ---- */
.section-alt { background: var(--gray-50); }
.section-cream { background: var(--gray-100); }
.section-dark {
    background: var(--dark-2);
    color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.7); }

/* ============================================
   SERVICES GRID
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--teal-800);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 52px; height: 52px;
    background: var(--teal-50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}
.service-card:hover .service-icon {
    transform: scale(1.12) rotate(-4deg);
}
.service-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}
.service-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.75;
}

/* ============================================
   DONATION CTA SECTION
   ============================================ */
.cta-section {
    position: relative;
    padding: 96px 24px;
    background: var(--dark-2);
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(22,78,99,0.3) 0%, transparent 70%);
    border-radius: 50%;
}
.cta-content {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    z-index: 2;
}
.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 18px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.cta-content p {
    color: rgba(255,255,255,0.65);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 36px;
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 40px;
    background: var(--white);
    color: var(--dark) !important;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
    transition: all var(--transition);
}
.cta-btn:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

/* ============================================
   BUTTONS (general)
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--dark);
    color: var(--white) !important;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-primary:hover { background: var(--dark-2); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.97); }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: 1.5px solid var(--border);
    color: var(--text) !important;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-outline:hover { border-color: var(--text-muted); background: var(--gray-50); }

/* ============================================
   DONATE FORM (shared between donate + collector pages)
   ============================================ */
.donate-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
    border: 1px solid var(--border);
}
.donate-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}
.donate-section:last-of-type { border-bottom: none; padding-bottom: 0; }
.donate-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Amount buttons */
.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.amount-btn {
    padding: 14px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
}
.amount-btn:hover {
    border-color: var(--teal-800);
    background: var(--teal-50);
    color: var(--teal-800);
}
.amount-btn.selected {
    border-color: var(--teal-800);
    background: var(--teal-50);
    color: var(--teal-800);
    box-shadow: 0 0 0 3px rgba(22,78,99,0.1);
}

/* Custom amount */
.custom-amount-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.custom-amount-label {
    font-size: 14px;
    color: var(--text-muted);
    white-space: nowrap;
}
.custom-amount-input { flex: 1; position: relative; }
.custom-amount-input input {
    width: 100%;
    padding: 12px 60px 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    transition: all 0.2s;
}
.custom-amount-input input:focus {
    outline: none;
    border-color: var(--teal-800);
    box-shadow: 0 0 0 3px rgba(22,78,99,0.08);
}
.currency-badge {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gray-100);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

/* Type cards */
.type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.type-option input { display: none; }
.type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 8px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    background: var(--white);
}
.type-card:hover {
    border-color: var(--teal-800);
    background: var(--teal-50);
}
.type-option input:checked + .type-card {
    border-color: var(--teal-800);
    background: var(--teal-50);
    box-shadow: 0 0 0 3px rgba(22,78,99,0.1);
}
.type-icon { font-size: 24px; }
.type-label { font-size: 12px; font-weight: 600; color: var(--text); }

/* Donor form fields */
.donate-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.donate-card .form-group { margin-bottom: 16px; }
.donate-card .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.donate-card .form-group input,
.donate-card .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    transition: all 0.2s;
}
.donate-card .form-group input:focus,
.donate-card .form-group textarea:focus {
    outline: none;
    border-color: var(--teal-800);
    box-shadow: 0 0 0 3px rgba(22,78,99,0.08);
}
.donate-card .form-group textarea { resize: vertical; min-height: 80px; }

/* Submit button */
.donate-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 18px 24px;
    background: var(--dark);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
    margin-top: 8px;
}
.donate-submit:hover { background: var(--dark-2); transform: translateY(-1px); }
.donate-submit:active { transform: scale(0.99); }
.donate-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.donate-submit-icon { font-size: 18px; flex-shrink: 0; }
.donate-submit-text { flex: 1; text-align: left; }
.donate-submit-amount {
    background: rgba(255,255,255,0.12);
    padding: 4px 14px;
    border-radius: 8px;
    font-size: 16px;
    flex-shrink: 0;
}
.donate-secure-note {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-muted);
}
.donate-tax-note {
    text-align: center;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

@media (max-width: 600px) {
    .donate-card { padding: 24px 18px; }
    .amount-grid { grid-template-columns: repeat(3, 1fr); }
    .type-grid { grid-template-columns: repeat(2, 1fr); }
    .donate-form-grid { grid-template-columns: 1fr; }
    .donate-submit { flex-wrap: wrap; justify-content: center; }
    .donate-submit-text { text-align: center; }
}

/* ============================================
   CONTENT PAGES
   ============================================ */
.page-hero {
    background: var(--dark-2);
    padding: 56px 24px;
    text-align: center;
}
.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}

.page-content {
    max-width: 800px;
    margin: 40px auto 60px;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
    border: 1px solid var(--border);
}
.page-content h2 { font-family: var(--font-display); color: var(--text); margin: 28px 0 12px; font-size: 22px; font-weight: 700; }
.page-content h3 { color: var(--teal-800); margin: 20px 0 10px; font-size: 18px; font-weight: 600; }
.page-content p { margin-bottom: 16px; line-height: 1.8; color: var(--text); }
.page-content ul, .page-content ol { margin: 12px 0 16px 24px; }
.page-content li { margin-bottom: 6px; line-height: 1.7; }
.page-content img { border-radius: 8px; margin: 16px 0; }

/* ============================================
   GALLERY
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: var(--white);
    font-size: 13px;
    transform: translateY(100%);
    transition: transform var(--transition);
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* Gallery filter */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.gallery-filter {
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--white);
    cursor: pointer;
    transition: all var(--transition);
}
.gallery-filter:hover, .gallery-filter.active {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-form .form-group { margin-bottom: 18px; }
.contact-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    transition: all var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--teal-800);
    box-shadow: 0 0 0 3px rgba(22,78,99,0.08);
}
.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
}
.contact-info-item {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}
.contact-info-icon {
    width: 44px; height: 44px;
    background: var(--gray-100);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.contact-info-text h4 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.contact-info-text p { font-size: 14px; color: var(--text-muted); }
.contact-info-text a { color: var(--teal-800); }

.contact-map {
    margin-top: 24px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.contact-map iframe {
    width: 100%; height: 250px; border: none;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: var(--dark-2); color: rgba(255,255,255,0.6); }

.footer-divider {
    color: var(--dark-2);
    margin-top: -1px;
    line-height: 0;
}
.footer-divider svg {
    display: block;
    width: 100%;
    height: 40px;
}

.footer-main { padding: 64px 24px 48px; }
.footer-container {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.footer-logo-icon { font-size: 26px; }
.footer-logo-name {
    font-family: var(--font-display);
    font-size: 17px;
    color: var(--white);
    font-weight: 700;
}
.footer-about { font-size: 14px; line-height: 1.75; margin-bottom: 20px; }

.footer-contact-info { display: flex; flex-direction: column; gap: 8px; }
.footer-info-item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.footer-info-item a { color: rgba(255,255,255,0.6); }
.footer-info-item a:hover { color: var(--white); }
.fi-icon { font-size: 14px; width: 18px; }

.footer-heading {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    transition: all var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-support-text { font-size: 14px; line-height: 1.75; margin-bottom: 20px; }
.footer-donate-btn {
    display: inline-flex;
    padding: 10px 22px;
    background: var(--white);
    color: var(--dark) !important;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    transition: all var(--transition);
}
.footer-donate-btn:hover { background: var(--gray-100); }

.footer-social { display: flex; gap: 8px; }
.social-link {
    width: 38px; height: 38px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    transition: all var(--transition);
}
.social-link:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.25);
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 24px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}

/* ============================================
   NAMAZ VAKİTLERİ / PRAYER TIMES
   ============================================ */
.prayer-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}
.prayer-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 20px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
}
.prayer-card:hover {
    border-color: var(--teal-800);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.prayer-active {
    background: var(--teal-800);
    border-color: var(--teal-800);
    box-shadow: 0 4px 20px rgba(22,78,99,0.25);
}
.prayer-active:hover {
    border-color: var(--teal-700);
    transform: translateY(-2px);
}
.prayer-icon {
    font-size: 22px;
    line-height: 1;
}
.prayer-name {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}
.prayer-active .prayer-name {
    color: rgba(255,255,255,0.75);
}
.prayer-time {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.prayer-active .prayer-time {
    color: var(--white);
}

@media (max-width: 900px) {
    .prayer-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 500px) {
    .prayer-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .prayer-card { padding: 16px 8px; }
    .prayer-time { font-size: 18px; }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 44px; height: 44px;
    background: var(--dark);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all var(--transition);
    z-index: 999;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover { background: var(--dark-2); }

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet landscape */
@media (max-width: 900px) {
    .main-nav { display: none; }
    .mobile-toggle { display: flex; }
    /* Hide membership link from header-actions on mobile (it's in mobile menu) */
    .header-actions .nav-link { display: none; }
    .footer-container { grid-template-columns: 1fr 1fr; gap: 36px; }
    .contact-grid { grid-template-columns: 1fr; }
    .hero-content { padding: 80px 24px; }
    .hero-slider { min-height: 420px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet portrait */
@media (max-width: 768px) {
    .section { padding: 64px 20px; }
    .section-header { margin-bottom: 36px; }
    .hero-slider { min-height: 360px; }
    .hero-content { padding: 80px 20px; }
    .cta-section { padding: 72px 20px; }
    .page-content { padding: 28px; }
    .section-container { padding: 0 20px; }
    .page-hero { padding: 40px 20px; }
    .donate-form-grid { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 600px) {
    :root { --header-h: 60px; }
    .header-container { padding: 0 16px; }
    .logo-tagline { display: none; }
    .lang-label { display: none; }
    .lang-switch { padding: 6px 8px; }
    .btn-donate { padding: 8px 14px; font-size: 13px; gap: 4px; }
    .footer-container { grid-template-columns: 1fr; gap: 28px; }
    .footer-main { padding: 48px 20px 36px; }
    .footer-donate-btn { display: block; text-align: center; }
    .section { padding: 48px 16px; }
    .section-header { margin-bottom: 28px; }
    .services-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .page-content { margin: 0 12px 40px; padding: 20px; }
    .page-hero { padding: 36px 16px; }
    .cta-section { padding: 48px 16px; }
    .cta-btn { padding: 13px 28px; font-size: 15px; }
    .hero-slider { min-height: 300px; }
    .hero-content { padding: 56px 16px; }
    .hero-content h1 { font-size: clamp(22px, 7vw, 32px); }
    .hero-content p { font-size: 14px; }
    .custom-amount-row { flex-direction: column; align-items: stretch; gap: 8px; }
    .custom-amount-label { font-size: 13px; }
}

/* Small mobile (iPhone SE etc.) */
@media (max-width: 380px) {
    .logo-name { font-size: 15px; }
    .logo-icon { font-size: 26px; }
    .btn-donate { display: none; }
    .hero-slider { min-height: 260px; }
    .service-card { padding: 22px 18px; }
    .amount-btn { font-size: 15px; padding: 12px 8px; }
    .donate-submit { gap: 6px; }
    .donate-submit-amount { font-size: 14px; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Scroll reveal */
.animate-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-in.visible:nth-child(2) { transition-delay: 0.08s; }
.animate-in.visible:nth-child(3) { transition-delay: 0.16s; }
.animate-in.visible:nth-child(4) { transition-delay: 0.24s; }
.animate-in.visible:nth-child(5) { transition-delay: 0.32s; }
.animate-in.visible:nth-child(6) { transition-delay: 0.40s; }

/* Hero entrance — triggered by body.loaded */
.hero-content h1,
.hero-content p,
.hero-cta {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
body.loaded .hero-content h1 {
    opacity: 1; transform: none;
    transition-delay: 0.1s;
}
body.loaded .hero-content p {
    opacity: 1; transform: none;
    transition-delay: 0.28s;
}
body.loaded .hero-cta {
    opacity: 1; transform: none;
    transition-delay: 0.46s;
}

/* Page hero title entrance */
.page-hero h1 {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
body.loaded .page-hero h1 {
    opacity: 1; transform: none;
    transition-delay: 0.1s;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
}
.lightbox-close {
    position: absolute;
    top: 20px; right: 20px;
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
