/*
Theme Name: Flatsome Child
Description: Quranona Academy – Modern restyled Flatsome child theme
Author: UX Themes / Quranona Academy
Template: flatsome
Version: 4.0
*/

/* ══════════════════════════════════════════
   QURANONA ACADEMY — GLOBAL DESIGN SYSTEM
   All colour values come from CSS variables
   set by inc/colors.php via the Customizer.
   ══════════════════════════════════════════ */

/* ── Google Fonts fallback import ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Global Reset & Box Model ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-color);
    background-color: var(--bg-color, #faf9f7);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Links ── */
a {
    text-decoration: none !important;
    color: inherit;
    transition: color 0.2s ease;
}

/* ── Scholarly Headings ── */
h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

h4,
h5,
h6,
.nav-label,
label {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ── Fluid Type Scale ── */
h1 { font-size: clamp(2.2rem, 5vw,   4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2vw,   1.4rem); }

/* ── Text Selection ── */
::selection {
    background: var(--primary-color);
    color: #fff;
}

/* ── Utility Classes ── */
.text-primary   { color: var(--primary-color)   !important; }
.text-secondary { color: var(--secondary-color) !important; }
.bg-primary     { background-color: var(--primary-color)   !important; }
.bg-secondary   { background-color: var(--secondary-color) !important; }

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    margin: 1rem auto 2rem;
}

/* ── Scholarly Blockquote ── */
blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem 2rem;
    background: rgba(var(--primary-rgb), 0.04);
    border-radius: 0 1rem 1rem 0;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 2rem 0;
}

/* ══════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════ */

/* ── Tablet ── */
@media only screen and (max-width: 1024px) {
    .section,
    .row-section {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    h1 { font-size: clamp(2rem, 6vw, 3rem); }

    .quran-tutors-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ── Mobile ── */
@media only screen and (max-width: 640px) {
    body { font-size: 15px; }

    #header {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: #fff !important;
    }

    .quran-courses-grid,
    .quran-tutors-grid,
    .quran-groups-grid,
    .quran-news-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .quran-header-btn {
        padding: 8px 18px !important;
        font-size: 0.65rem !important;
        margin-left: 8px;
    }

    .section,
    .row-section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .button,
    .quran-btn,
    input[type="submit"] {
        padding: 12px 24px !important;
        font-size: 0.7rem !important;
    }

    blockquote {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
}