/* ============================================
   MASJEED — Public / Landing Page CSS
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #126c43;
    --primary-light: #d7f3e4;
    --primary-dark: #0a4f31;
    --primary-hover: #0d9e5f;
    --accent: #f59e0b;
    --accent-light: #fef3c7;
    --text: #1f2937;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --bg: #ffffff;
    --bg-alt: #f8fafb;
    --border: #e5e7eb;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.12);
    --transition: 0.2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ---- NAVBAR ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: box-shadow 0.3s;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.navbar-brand .brand-dot {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.navbar-nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color var(--transition);
}

.navbar-nav a:hover { color: var(--primary); }

.navbar-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

/* ---- AUTH PAGES (login, register) ---- */
.auth-page {
    min-height: 100vh;
    display: flex;
}

.auth-left {
    flex: 1;
    background: linear-gradient(135deg, #0a1f13 0%, #126c43 50%, #0d5c38 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    top: -200px;
    right: -200px;
}

.auth-left::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    bottom: -100px;
    left: -100px;
}

.auth-left-content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 420px;
}

.auth-left-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.auth-left-content p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    line-height: 1.7;
}

.auth-features {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.auth-feature .check {
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #a7f3d0;
    flex-shrink: 0;
}

.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: #fff;
}

.auth-form {
    width: 100%;
    max-width: 420px;
}

.auth-form .logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form .logo h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.auth-form .logo p {
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-size: 0.9rem;
}

.auth-form .form-group {
    margin-bottom: 1.15rem;
}

.auth-form .form-label {
    display: block;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}

.auth-form .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition);
}

.auth-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(18,108,67,0.1);
}

.auth-form .btn-auth {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.auth-form .btn-auth:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(18,108,67,0.35);
}

.auth-form .auth-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.auth-form .auth-link a {
    font-weight: 600;
}

.auth-form .divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-light);
    font-size: 0.8rem;
}

.auth-form .divider::before,
.auth-form .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-alert {
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

.auth-alert.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.auth-alert.error { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }

/* ---- HERO SECTION ---- */
.hero {
    padding: 8rem 0 5rem;
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text);
    letter-spacing: -1.5px;
    max-width: 780px;
    margin: 0 auto 1.25rem;
}

.hero h1 .highlight {
    color: var(--primary);
}

.hero .subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 0.9rem 2rem;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-hero-primary {
    background: var(--primary);
    color: #fff;
}

.btn-hero-primary:hover {
    background: var(--primary-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(18,108,67,0.3);
}

.btn-hero-secondary {
    background: #fff;
    color: var(--text);
    border-color: var(--border);
}

.btn-hero-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ---- STATS BAR ---- */
.stats-section {
    padding: 3rem 0;
    background: var(--primary-dark);
    color: #fff;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stats-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.stats-item p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* ---- FEATURES ---- */
.features-section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header .label {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: 99px;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.25s;
    background: #fff;
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ---- PRICING ---- */
.pricing-section {
    padding: 5rem 0;
    background: var(--bg-alt);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.price-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.25s;
    position: relative;
}

.price-card.popular {
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(18,108,67,0.15);
    transform: scale(1.05);
}

.price-card.popular .popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: 99px;
}

.price-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.price-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
    margin: 1rem 0 0.25rem;
}

.price-card .price .currency {
    font-size: 1rem;
    font-weight: 600;
}

.price-card .period {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.price-card .features-list {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
}

.price-card .features-list li {
    padding: 0.4rem 0;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
}

.price-card .features-list li .check {
    color: var(--primary);
    font-weight: 700;
}

.price-card .btn-price {
    display: block;
    width: 100%;
    padding: 0.8rem;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    text-align: center;
}

.price-card .btn-price:hover,
.price-card.popular .btn-price {
    background: var(--primary);
    color: #fff;
}

.price-card.popular .btn-price:hover {
    background: var(--primary-hover);
}

/* ---- TESTIMONIALS ---- */
.testimonials-section {
    padding: 5rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.testimonial-card .stars {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.testimonial-card .quote {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-card .author-avatar {
    width: 42px;
    height: 42px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.testimonial-card .author-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.testimonial-card .author-mosque {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ---- FAQ ---- */
.faq-section {
    padding: 5rem 0;
    background: var(--bg-alt);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.15rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    transition: background var(--transition);
}

.faq-question:hover { background: var(--bg-alt); }

.faq-question .arrow {
    transition: transform 0.2s;
    color: var(--text-muted);
}

.faq-item.open .faq-question .arrow {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.15rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    display: block;
}

/* ---- TRUSTED BY SECTION ---- */
.trusted-by {
    padding: 3.5rem 0;
    background: #fff;
    overflow: hidden;
}

.trusted-by-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto 2.25rem;
    padding: 0 1.5rem;
}

.trusted-by-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border));
}

.trusted-by-line:last-child {
    background: linear-gradient(90deg, var(--border), transparent);
}

.trusted-by-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--text-light);
    white-space: nowrap;
}

.trusted-marquee-wrap {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.trusted-marquee {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: marqueeScroll 35s linear infinite;
}

.trusted-marquee:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.trusted-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.25rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 100px;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: default;
}

.trusted-chip:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(18,108,67,0.12);
}

.trusted-chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    opacity: 0.7;
}

.trusted-chip-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
}

.trusted-chip-city {
    font-size: 0.78rem;
    color: var(--text-muted);
    padding-left: 0.5rem;
    border-left: 1px solid var(--border);
}

/* ---- CTA SECTION ---- */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0a1f13, #126c43);
    text-align: center;
    color: #fff;
}

.cta-section h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -1px;
}

.cta-section p {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- FOOTER ---- */
.footer {
    background: #0a1f13;
    color: rgba(255,255,255,0.7);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer h4 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer p, .footer a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.8;
}

.footer a:hover { color: #fff; }

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

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
    .price-card.popular { transform: none; }
    .testimonials-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .auth-left { display: none; }
    .auth-right { padding: 2rem 1.25rem; }
    .navbar-nav { display: none; }
    .navbar-toggle { display: block; }
    .hero h1 { font-size: 2.25rem; }
    .hero .subtitle { font-size: 1rem; }
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .features-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 1.75rem; }
    .footer-grid { grid-template-columns: 1fr; }
}
