
/* ============================================
   MI HUBBUL QUR'AN
   GLOBAL STYLESHEET
   Modern Islamic Educational Website
============================================ */

/* GOOGLE FONTS */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');


/* ============================================
   ROOT VARIABLES
============================================ */


:root {

    /* BRAND MI HUBBUL QUR'AN */
    --primary: #009FAE;
    --primary-dark: #007F8E;
    --primary-light: #E4F5F6;

    /* AKSEN */
    --accent: #F5AD24;
    --accent-dark: #B7952D;

    /* BACKGROUND */
    --bg-white: #FFFFFF;
    --bg-light: #F3FAFA;

    /* TYPOGRAPHY */
    --text-dark: #07535D;
    --text-body: #47686D;
    --text-muted: #718C90;
    --text-white: #FFFFFF;

    /* BORDER */
    --border-color: #D9EAEC;

    /* FONT */
    --font-primary: 'Plus Jakarta Sans', sans-serif;

    /* LAYOUT */
    --container-width: 1200px;

    /* RADIUS */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;

    /* TRANSITION */
    --transition: all 0.3s ease;
}



/* ============================================
   CSS RESET
============================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    padding: 0;

    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.75;

    color: var(--text-dark);
    background-color: var(--bg-white);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

img,
svg {
    vertical-align: middle;
}


/* ============================================
   TYPOGRAPHY
============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);

    margin-top: 0;

    color: inherit;
    line-height: 1.35;
    letter-spacing: -0.035em;
}

h1 {
    font-weight: 700;
}

h2 {
    font-weight: 700;
}

h3 {
    font-weight: 600;
}

h4,
h5,
h6 {
    font-weight: 600;
}

p {
    line-height: 1.85;
}

strong,
b {
    font-weight: 700;
}


/* ============================================
   COMMON LAYOUT
============================================ */

.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}


/* ============================================
   ACCESSIBILITY
============================================ */

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}


/* ============================================
   RESPONSIVE GLOBAL
============================================ */

@media (max-width: 768px) {

    body {
        font-size: 13px;
    }

    .container {
        padding-left: 18px;
        padding-right: 18px;
    }

}


/* ============================================
   REDUCED MOTION
============================================ */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

}
