:root {
    --bg: #fcfbf6;
    --bg-soft: #f4efe1;
    --surface: rgba(255, 255, 255, 0.94);
    --surface-strong: #ffffff;
    --text: #183428;
    --muted: #547062;
    --line: rgba(24, 52, 40, 0.12);
    --primary: #1f7a4d;
    --primary-deep: #155938;
    --accent: #c79d43;
    --accent-soft: #efe1b3;
    --shadow: 0 18px 45px rgba(19, 54, 39, 0.12);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --container: min(1180px, calc(100% - 2rem));
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(199, 157, 67, 0.18), transparent 26%),
        radial-gradient(circle at top right, rgba(31, 122, 77, 0.14), transparent 22%),
        linear-gradient(180deg, #fffef9 0%, var(--bg) 42%, #f8f5ec 100%);
    line-height: 1.65;
}

body.nav-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

main {
    overflow: clip;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.section {
    padding: 5.5rem 0;
}

.section-soft {
    background: linear-gradient(180deg, rgba(244, 239, 225, 0.7), rgba(255, 255, 255, 0.4));
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(31, 122, 77, 0.1);
    color: var(--primary-deep);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 2.25rem;
}

.section-heading.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-heading h2,
.hero h1,
.page-hero h1,
.cta-banner h2 {
    margin: 1rem 0 0.85rem;
    line-height: 1.08;
}

h1,
h2,
h3 {
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.8rem);
}

h2 {
    font-size: clamp(2rem, 3.4vw, 3.15rem);
}

h3 {
    font-size: 1.25rem;
}

p {
    margin: 0;
    color: var(--muted);
}

.lead {
    font-size: 1.08rem;
    max-width: 62ch;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3.25rem;
    padding: 0.95rem 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 28px rgba(31, 122, 77, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(31, 122, 77, 0.26);
}

.button-sm {
    min-height: 2.8rem;
    padding: 0.8rem 1.1rem;
}

.button-secondary {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(31, 122, 77, 0.16);
    color: var(--primary-deep);
    box-shadow: none;
}

.button-outline {
    background: transparent;
    border-color: rgba(31, 122, 77, 0.24);
    color: var(--primary-deep);
    box-shadow: none;
}

.button-block {
    width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 1rem 0;
    background: rgba(252, 251, 246, 0.78);
    backdrop-filter: blur(16px);
    transition: box-shadow 0.3s ease, background 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
    padding: 0.8rem 0;
    box-shadow: 0 12px 28px rgba(24, 52, 40, 0.08);
    background: rgba(255, 255, 255, 0.88);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    flex-shrink: 0;
}

.brand-mark {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent), #f3d68e 58%, var(--primary));
    color: #fff;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.brand-copy strong {
    font-size: 1rem;
}

.brand-copy small {
    color: var(--muted);
    font-size: 0.8rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.site-nav > a:not(.button) {
    position: relative;
    color: var(--muted);
    font-weight: 700;
}

.site-nav > a.active,
.site-nav > a:not(.button):hover {
    color: var(--text);
}

.site-nav > a.active::after,
.site-nav > a:not(.button):hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.35rem;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 1.55rem;
    height: 2px;
    margin: 0.26rem 0;
    border-radius: 999px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero,
.page-hero {
    padding: 3.2rem 0 2rem;
}

.hero-grid,
.page-hero-grid,
.contact-layout,
.two-column,
.footer-grid {
    display: grid;
    gap: 1.5rem;
}

.hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
}

.page-hero-grid,
.contact-layout,
.two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.hero-copy p {
    max-width: 60ch;
}

.hero-copy .hero-actions {
    margin-top: 1.7rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(24, 52, 40, 0.08);
    color: var(--text);
    font-weight: 700;
}

.hero-panel,
.info-panel,
.content-card,
.card,
.pricing-card,
.review-card,
.contact-form,
.contact-methods,
.workflow-step,
.hadith-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.hero-panel {
    overflow: hidden;
    padding: 2rem;
    background:
        radial-gradient(circle at top right, rgba(199, 157, 67, 0.28), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 242, 229, 0.96));
}

.panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.panel-top span {
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.panel-top strong {
    font-size: 1rem;
}

.panel-divider {
    height: 1px;
    margin: 1.25rem 0;
    background: linear-gradient(90deg, rgba(31, 122, 77, 0.1), rgba(199, 157, 67, 0.4), transparent);
}

.panel-flow {
    display: grid;
    gap: 1rem;
}

.panel-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
    align-items: start;
}

.step-number {
    width: 2.3rem;
    height: 2.3rem;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(31, 122, 77, 0.11);
    color: var(--primary-deep);
    font-size: 0.85rem;
    font-weight: 800;
}

.panel-step h3,
.workflow-step h3,
.card h3,
.pricing-card h3,
.review-card h3,
.info-panel h2 {
    margin: 0 0 0.3rem;
}

.hero-note {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    background: rgba(31, 122, 77, 0.08);
    color: var(--primary-deep);
    font-weight: 700;
}

.shape-orb {
    position: absolute;
    inset: auto -3rem -3rem auto;
    width: 9rem;
    height: 9rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(199, 157, 67, 0.26), transparent 70%);
    pointer-events: none;
}

.hadith-card {
    padding: 2rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 242, 229, 0.95)),
        linear-gradient(90deg, rgba(31, 122, 77, 0.05), rgba(199, 157, 67, 0.08));
}

.hadith-arabic {
    font-family: "Noto Naskh Arabic", serif;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.8;
    color: var(--primary-deep);
    text-align: right;
    margin-bottom: 1rem;
}

.hadith-translation {
    display: grid;
    gap: 0.75rem;
}

.grid-3,
.why-grid,
.feature-grid,
.course-grid,
.pricing-grid,
.review-grid,
.workflow-grid {
    display: grid;
    gap: 1.35rem;
}

.why-grid,
.feature-grid,
.course-grid,
.review-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workflow-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.content-card,
.workflow-step,
.review-card,
.pricing-card,
.contact-form,
.contact-methods,
.info-panel {
    padding: 1.6rem;
}

.course-tag,
.popular-tag {
    display: inline-flex;
    margin-bottom: 0.8rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.course-tag {
    background: rgba(31, 122, 77, 0.1);
    color: var(--primary-deep);
}

.popular-tag {
    background: rgba(199, 157, 67, 0.15);
    color: #886213;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
}

.pricing-card.popular {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 242, 229, 0.95));
    transform: translateY(-0.3rem);
}

.price {
    font-size: 2.6rem;
    color: var(--text);
    font-weight: 800;
    line-height: 1;
}

.price-features,
.check-list,
.info-list,
.footer-links,
.price-notes,
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.price-features,
.check-list,
.info-list,
.footer-links,
.contact-list {
    display: grid;
    gap: 0.75rem;
}

.check-list li,
.price-features li,
.info-list li,
.contact-list li {
    position: relative;
    padding-left: 1.45rem;
    color: var(--muted);
}

.check-list li::before,
.price-features li::before,
.info-list li::before,
.contact-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--primary));
}

.detail-list,
.syllabus-list {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    color: var(--muted);
    display: grid;
    gap: 0.8rem;
}

.detail-list {
    list-style: none;
    padding-left: 0;
}

.detail-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(24, 52, 40, 0.08);
}

.detail-list li span {
    color: var(--muted);
}

.review-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 247, 240, 0.96));
}

.stars {
    color: var(--accent);
    letter-spacing: 0.18em;
    font-size: 1.05rem;
    margin-bottom: 0.85rem;
}

.review-quote {
    margin-bottom: 1rem;
    color: var(--text);
}

.faq-list {
    display: grid;
    gap: 1rem;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.9);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
    border: 0;
    background: transparent;
    text-align: left;
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
}

.faq-symbol {
    color: var(--accent);
    font-size: 1.35rem;
    line-height: 1;
}

.faq-answer {
    padding: 0 1.4rem 1.35rem;
}

.cta-banner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
    align-items: center;
    padding: 2.1rem;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(199, 157, 67, 0.22), transparent 24%),
        linear-gradient(140deg, rgba(22, 89, 56, 0.98), rgba(31, 122, 77, 0.92));
    color: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 45px rgba(21, 89, 56, 0.25);
}

.cta-banner p,
.cta-banner .eyebrow {
    color: rgba(255, 255, 255, 0.88);
}

.cta-banner .eyebrow {
    background: rgba(255, 255, 255, 0.12);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: flex-end;
}

.cta-actions .button {
    box-shadow: none;
}

.cta-actions .button-secondary {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.contact-form form {
    display: grid;
    gap: 1rem;
}

.field {
    display: grid;
    gap: 0.45rem;
}

.field label {
    font-weight: 800;
    color: var(--text);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(24, 52, 40, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 2px solid rgba(31, 122, 77, 0.18);
    border-color: rgba(31, 122, 77, 0.35);
}

.notice {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(199, 157, 67, 0.12);
    color: #745316;
    font-weight: 700;
}

.contact-methods {
    display: grid;
    gap: 1.2rem;
}

.contact-list strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--text);
}

.pricing-notes {
    margin-top: 2rem;
    padding: 1.2rem 1.3rem;
    border-radius: var(--radius-md);
    background: rgba(199, 157, 67, 0.1);
    border: 1px solid rgba(199, 157, 67, 0.18);
}

.site-footer {
    padding: 4rem 0 1.6rem;
    background: #143526;
    color: rgba(255, 255, 255, 0.86);
}

.site-footer p,
.site-footer a,
.site-footer li {
    color: rgba(255, 255, 255, 0.74);
}

.site-footer h2,
.site-footer h3 {
    color: #fff;
    margin-top: 0;
}

.footer-grid {
    grid-template-columns: 1.2fr 0.8fr 0.8fr 0.9fr;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links li {
    padding-left: 0;
}

.footer-links li::before {
    display: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.2rem;
    font-size: 0.95rem;
}

.whatsapp-float {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 25;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    background: #1fa35b;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 16px 35px rgba(31, 163, 91, 0.28);
}

.whatsapp-icon {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1080px) {
    .hero-grid,
    .page-hero-grid,
    .cta-banner,
    .footer-grid,
    .pricing-grid,
    .workflow-grid,
    .why-grid,
    .feature-grid,
    .course-grid,
    .review-grid,
    .contact-layout,
    .two-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        gap: 2rem;
    }
}

@media (max-width: 820px) {
    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
    }

    .site-nav {
        position: fixed;
        inset: 5rem 1rem auto;
        display: grid;
        gap: 1rem;
        padding: 1.25rem;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(24, 52, 40, 0.08);
        box-shadow: var(--shadow);
        transform: translateY(-0.5rem);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease, transform 0.22s ease;
    }

    .site-nav.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .hero,
    .page-hero {
        padding-top: 2rem;
    }

    .hero-grid,
    .page-hero-grid,
    .cta-banner,
    .pricing-grid,
    .why-grid,
    .feature-grid,
    .course-grid,
    .review-grid,
    .workflow-grid,
    .contact-layout,
    .two-column,
    .footer-grid,
    .footer-bottom {
        grid-template-columns: 1fr;
        display: grid;
    }

    .cta-actions {
        justify-content: flex-start;
    }

    .footer-bottom {
        gap: 0.5rem;
    }
}

@media (max-width: 560px) {
    .section {
        padding: 4rem 0;
    }

    .hero-panel,
    .info-panel,
    .content-card,
    .card,
    .pricing-card,
    .review-card,
    .contact-form,
    .contact-methods,
    .workflow-step,
    .hadith-card {
        padding: 1.3rem;
        border-radius: 22px;
    }

    .whatsapp-float span:last-child {
        display: none;
    }

    .detail-list li {
        flex-direction: column;
    }
}
