/*
 * Humza Quran Academy
 * Main UI Stylesheet
 * Version: 1.0.0
 */

/* =========================================================
   1. ROOT & GLOBAL SETTINGS
========================================================= */

:root {
    --humza-primary: #0b5d4b;
    --humza-primary-dark: #064638;
    --humza-primary-light: #eaf5f1;

    --humza-gold: #c9a227;
    --humza-gold-light: #e3c75f;
    --humza-gold-soft: #faf5df;

    --humza-white: #ffffff;
    --humza-off-white: #fafaf7;
    --humza-light: #f4f6f3;

    --humza-text: #1d2925;
    --humza-text-light: #68736f;
    --humza-heading: #10241e;

    --humza-border: #e7e9e6;
    --humza-border-dark: #d8ddd9;

    --humza-shadow: 0 15px 45px rgba(15, 35, 29, 0.08);
    --humza-shadow-hover: 0 22px 55px rgba(15, 35, 29, 0.13);

    --humza-radius-sm: 8px;
    --humza-radius: 18px;
    --humza-radius-lg: 28px;

    --humza-container: 1200px;
    --humza-section-space: 100px;

    --humza-transition: all 0.3s ease;
}


/* =========================================================
   2. RESET
========================================================= */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    padding: 0;

    background: var(--humza-white);
    color: var(--humza-text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    font-size: 16px;
    line-height: 1.7;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

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

button {
    cursor: pointer;
}

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

p {
    margin-top: 0;
    margin-bottom: 18px;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}


/* =========================================================
   3. ACCESSIBILITY
========================================================= */

.screen-reader-text {
    position: absolute !important;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);

    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    position: fixed !important;

    top: 15px;
    left: 15px;

    z-index: 999999;

    width: auto;
    height: auto;

    padding: 12px 18px;
    margin: 0;

    overflow: visible;
    clip: auto;

    white-space: normal;

    background: var(--humza-white);
    color: var(--humza-heading);

    border: 2px solid var(--humza-primary);
    border-radius: var(--humza-radius-sm);

    box-shadow: var(--humza-shadow);
}


/* =========================================================
   4. CONTAINER & LAYOUT
========================================================= */

.humza-container {
    width: min(
        calc(100% - 40px),
        var(--humza-container)
    );

    margin-left: auto;
    margin-right: auto;
}

.humza-section {
    position: relative;
    padding-top: var(--humza-section-space);
    padding-bottom: var(--humza-section-space);
}

.humza-section--light {
    background: var(--humza-off-white);
}

.humza-section--green {
    background: var(--humza-primary);
    color: var(--humza-white);
}

.humza-section--gold {
    background: var(--humza-gold-soft);
}


/* =========================================================
   5. SECTION HEADING
========================================================= */

.humza-section-heading {
    max-width: 760px;
    margin: 0 auto 55px;
    text-align: center;
}

.humza-section-heading__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 14px;

    color: var(--humza-gold);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.humza-section-heading__eyebrow::before,
.humza-section-heading__eyebrow::after {
    content: "";

    width: 28px;
    height: 1px;

    background: var(--humza-gold);
}

.humza-section-heading h2 {
    margin: 0 0 18px;

    color: var(--humza-heading);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.humza-section--green
.humza-section-heading h2 {
    color: var(--humza-white);
}

.humza-section-heading p {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;

    color: var(--humza-text-light);

    font-size: 16px;
}

.humza-section--green
.humza-section-heading p {
    color: rgba(255, 255, 255, 0.78);
}


/* =========================================================
   6. BUTTON SYSTEM
========================================================= */

.humza-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 50px;
    padding: 13px 25px;

    border: 1px solid transparent;
    border-radius: 50px;

    font-size: 14px;
    font-weight: 700;

    line-height: 1;
    white-space: nowrap;

    transition: var(--humza-transition);
}

.humza-btn:hover {
    transform: translateY(-2px);
}

.humza-btn:focus-visible {
    outline: 3px solid rgba(201, 162, 39, 0.35);
    outline-offset: 3px;
}


/* Primary */

.humza-btn--primary {
    background: var(--humza-primary);
    color: var(--humza-white);

    box-shadow: 0 8px 22px rgba(11, 93, 75, 0.18);
}

.humza-btn--primary:hover {
    background: var(--humza-primary-dark);
    color: var(--humza-white);

    box-shadow: 0 12px 28px rgba(11, 93, 75, 0.25);
}


/* Gold */

.humza-btn--gold {
    background: var(--humza-gold);
    color: var(--humza-white);

    box-shadow: 0 8px 22px rgba(201, 162, 39, 0.20);
}

.humza-btn--gold:hover {
    background: #b48f18;
    color: var(--humza-white);
}


/* Outline */

.humza-btn--outline {
    background: transparent;

    border-color: var(--humza-primary);
    color: var(--humza-primary);
}

.humza-btn--outline:hover {
    background: var(--humza-primary);
    color: var(--humza-white);
}


/* White */

.humza-btn--white {
    background: var(--humza-white);
    color: var(--humza-primary);

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.10);
}

.humza-btn--white:hover {
    background: var(--humza-gold);
    color: var(--humza-white);
}


/* =========================================================
   7. TEXT UTILITIES
========================================================= */

.humza-text-center {
    text-align: center;
}

.humza-text-left {
    text-align: left;
}

.humza-text-right {
    text-align: right;
}

.humza-text-primary {
    color: var(--humza-primary);
}

.humza-text-gold {
    color: var(--humza-gold);
}

.humza-text-muted {
    color: var(--humza-text-light);
}


/* =========================================================
   8. CARD BASE
========================================================= */

.humza-card {
    background: var(--humza-white);

    border: 1px solid var(--humza-border);
    border-radius: var(--humza-radius);

    box-shadow: var(--humza-shadow);

    transition: var(--humza-transition);
}

.humza-card:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 162, 39, 0.35);

    box-shadow: var(--humza-shadow-hover);
}


/* =========================================================
   9. BADGE
========================================================= */

.humza-badge {
    display: inline-flex;
    align-items: center;

    min-height: 30px;
    padding: 6px 12px;

    background: var(--humza-primary-light);
    color: var(--humza-primary);

    border-radius: 50px;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.5px;
}


/* =========================================================
   10. FORM BASE
========================================================= */

.humza-form-group {
    margin-bottom: 20px;
}

.humza-form-label {
    display: block;

    margin-bottom: 8px;

    color: var(--humza-heading);

    font-size: 14px;
    font-weight: 700;
}

.humza-form-control {
    width: 100%;

    min-height: 52px;
    padding: 13px 16px;

    background: var(--humza-white);
    color: var(--humza-text);

    border: 1px solid var(--humza-border-dark);
    border-radius: 10px;

    outline: none;

    transition: var(--humza-transition);
}

textarea.humza-form-control {
    min-height: 130px;
    resize: vertical;
}

.humza-form-control::placeholder {
    color: #9aa39f;
}

.humza-form-control:focus {
    border-color: var(--humza-primary);

    box-shadow:
        0 0 0 4px rgba(11, 93, 75, 0.08);
}


/* =========================================================
   11. DIVIDER
========================================================= */

.humza-divider {
    width: 100%;
    height: 1px;

    background: var(--humza-border);

    margin: 30px 0;
}


/* =========================================================
   12. DECORATIVE GOLD LINE
========================================================= */

.humza-gold-line {
    width: 60px;
    height: 3px;

    margin: 18px 0;

    background: var(--humza-gold);

    border-radius: 50px;
}


/* =========================================================
   13. WORDPRESS DEFAULT CONTENT
========================================================= */

.entry-content {
    color: var(--humza-text);
}

.entry-content a {
    color: var(--humza-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.entry-content a:hover {
    color: var(--humza-gold);
}

.entry-content img {
    border-radius: var(--humza-radius);
}

.entry-content blockquote {
    margin: 30px 0;
    padding: 25px 30px;

    background: var(--humza-off-white);

    border-left: 4px solid var(--humza-gold);
    border-radius: 0 var(--humza-radius-sm) var(--humza-radius-sm) 0;
}


/* =========================================================
   14. WORDPRESS ALIGNMENT
========================================================= */

.alignwide {
    width: min(
        calc(100% - 40px),
        1400px
    );

    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100%;
    max-width: none;

    margin-left: 0;
    margin-right: 0;
}


/* =========================================================
   15. WORDPRESS PAGINATION
========================================================= */

.navigation.pagination {
    margin-top: 50px;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 42px;
    height: 42px;
    padding: 0 12px;

    border: 1px solid var(--humza-border);
    border-radius: 50px;

    color: var(--humza-text);

    transition: var(--humza-transition);
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--humza-primary);
    border-color: var(--humza-primary);
    color: var(--humza-white);
}


/* =========================================================
   16. SELECTION
========================================================= */

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


/* =========================================================
   17. FOCUS
========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--humza-gold);
    outline-offset: 3px;
}


/* =========================================================
   18. HIDDEN UTILITY
========================================================= */

.humza-hidden {
    display: none !important;
}


/* =========================================================
   19. NO-JS FALLBACK
========================================================= */

.no-js .humza-mobile-toggle {
    display: none;
}


/* =========================================================
   20. BODY LOCK
========================================================= */

body.humza-menu-open {
    overflow: hidden;
}


/* =========================================================
   21. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================================
   HUMZA QURAN ACADEMY - PREMIUM LAYOUT OVERRIDES
   Full-width desktop + responsive header/navigation
========================================================= */

html, body { width: 100%; min-width: 0; }
body { overflow-x: hidden; }

#page, .site, .humza-site, .humza-main,
.humza-header, .humza-footer { width: 100%; max-width: none; }

.humza-container {
    width: 100%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(24px, 4vw, 64px);
    padding-right: clamp(24px, 4vw, 64px);
}

/* Header */
.humza-header { position: relative; }
.humza-header__container {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.humza-header__branding { flex: 0 0 auto; }
.humza-header__navigation { flex: 1 1 auto; display: flex; justify-content: center; }
.humza-header__actions { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; }
.humza-site-logo__link { display: inline-flex; align-items: center; }
.humza-site-logo__image { width: auto; max-width: 210px; max-height: 62px; object-fit: contain; }

.humza-primary-navigation { width: 100%; }
.humza-nav-menu { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.humza-nav-menu > li { position: relative; }
.humza-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 7px 9px;
    border-radius: 999px;
    color: var(--humza-heading);
    font-size: 12px;
    font-weight: 650;
    transition: var(--humza-transition);
}
.humza-nav-link:hover,
.humza-nav-menu .current-menu-item > .humza-nav-link {
    color: var(--humza-primary);
    background: var(--humza-primary-light);
}

.humza-header-cta,
.humza-button--primary { display: inline-flex; align-items: center; justify-content: center; }
.humza-menu-toggle { display: none; }
.humza-form-response { margin: 0 0 18px; padding: 11px 14px; border-radius: 8px; font-size: 14px; line-height: 1.5; }
.humza-form-response--success { color: #0b614e; background: #e8f6ef; border: 1px solid #a9dcc7; }
.humza-form-response--error { color: #9d2b2b; background: #fff0f0; border: 1px solid #edb8b8; }

/* Make every major section span the viewport while keeping readable inner content */
.humza-section,
.humza-hero,
.humza-courses,
.humza-teachers,
.humza-about,
.humza-reviews,
.humza-free-trial,
.humza-contact,
.humza-faq,
.humza-cta { width: 100%; }

/* Premium visual rhythm */
.humza-section-heading { padding-left: 10px; padding-right: 10px; }
.humza-card,
.humza-course-card,
.humza-teacher-card,
.humza-review-card { overflow: hidden; }

/* Full-width hero image and content balance */
.humza-hero { min-height: min(82vh, 820px); }
.humza-hero .humza-container { min-height: inherit; display: flex; align-items: center; }

/* Footer */
.humza-footer .humza-container { width: 100%; }

/* =========================================================
   TABLET / MOBILE
========================================================= */
@media (max-width: 991px) {
    .humza-header__container { min-height: 74px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
    .humza-header__navigation { display: flex; flex: 0 0 100%; order: 2; justify-content: center; }
    .humza-nav-menu { justify-content: center; }
}

@media (max-width: 575px) {
    .humza-container { padding-left: 16px; padding-right: 16px; }
    .humza-header__container { min-height: 66px; gap: 12px; }
    .humza-site-logo__image { max-width: 165px; max-height: 50px; }
    .humza-nav-link { min-height: 34px; padding: 5px 7px; font-size: 11px; }
    .humza-hero { min-height: 650px; }
}
