/* ==========================================================================
   Digital Muslims North — Design System v1.0 (brand tokens)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,300;0,600;1,300&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --brand-dark: #1A5449;
    --brand-primary: #2A7D6C;
    --brand-light: #4BBFA3;
    --bg-light: #F4F1EB;
    --border-light: #E8E4DC;
    --bg-dark: #131916;
    --text-on-light: #5A554E;
    --text-on-light-muted: #8A8580;
    --text-on-dark: rgba(255, 255, 255, 0.7);
    --text-on-dark-muted: rgba(255, 255, 255, 0.5);
    --brand-gradient: linear-gradient(165deg, #1A5449 0%, #2A7D6C 50%, #4BBFA3 100%);
    --font-heading: 'Fraunces', Georgia, serif;
    --font-body: 'Outfit', "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Base --------------------------------------------------------------- */

body {
    background: var(--bg-light);
    color: var(--text-on-light);
    font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--brand-dark);
    font-weight: 600;
    letter-spacing: -0.3px;
    line-height: 1.15;
}

a {
    color: var(--brand-primary);
}

a:hover {
    color: var(--brand-dark);
}

.button,
.button-secondary {
    background: var(--brand-primary);
    color: #fff;
    border: none;
    border-radius: 26px;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    text-transform: none;
    letter-spacing: normal;
}

.button:hover,
.button-secondary:hover {
    background: var(--brand-dark);
    color: #fff;
}

#body {
    background: var(--bg-light);
    padding-top: 0;
}

/* Header & navigation -------------------------------------------------- */

#header {
    position: static;
    height: auto;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 20px 40px;
    border-bottom: 1px solid var(--border-light);
}

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

.logo img {
    height: 56px;
    width: auto;
}

.tagline {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.2;
    color: var(--brand-primary);
}

.nav-bar {
    display: flex;
    align-items: center;
}

.nav-bar ul.navigation {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-bar ul.navigation li {
    margin: 0;
}

.nav-bar a {
    font-family: var(--font-body);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    color: var(--brand-primary);
    transition: color 0.2s ease;
}

.nav-bar a:hover {
    color: var(--brand-dark);
}

.nav-bar ul.navigation li.active a {
    color: var(--brand-dark);
}

/* Home — hero ----------------------------------------------------------- */

.home-hero {
    background: var(--brand-gradient);
    color: #fff;
    text-align: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.home-hero-inner h1 {
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 3rem;
    letter-spacing: -0.5px;
    margin: 0;
}

.home-hero-tagline {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 300;
    font-size: 1.6rem;
    letter-spacing: normal;
    text-transform: none;
    color: var(--brand-light);
    margin: 0.5rem 0 1rem;
}

.home-hero-intro {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.55;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-on-dark);
}

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

.home-hero-cta .button,
.home-hero-cta .button-secondary {
    border-radius: 26px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
}

.home-hero-cta .button {
    background: var(--brand-primary);
    color: #fff;
    border: none;
}

.home-hero-cta .button:hover {
    background: var(--brand-dark);
    color: #fff;
}

.home-hero-cta .button-secondary {
    background: transparent;
    color: var(--brand-primary);
    border: 1px solid var(--brand-primary);
}

.home-hero-cta .button-secondary:hover {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
}

.home-hero-cta .fa {
    margin-right: 0.5rem;
}

/* Home — mission ---------------------------------------------------------- */

.home-mission {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-on-light);
}

.home-mission h2 {
    margin-top: 0;
}

/* Home — social ------------------------------------------------------------ */

.home-social {
    text-align: center;
}

.home-social .social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
}

.home-social .social-icons li {
    list-style: none;
}

.home-social .social-icons a {
    font-size: 2rem;
    color: var(--brand-primary);
    transition: color 0.2s ease;
}

.home-social .social-icons a:hover {
    color: var(--brand-dark);
}

/* Footer --------------------------------------------------------------- */

.footer {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding-bottom: 2rem;
}

.footer h3,
.footer h4 {
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.3px;
}

.footer .logo h3 a {
    color: #fff;
}

.footer .logo h3 a:hover {
    color: var(--brand-light);
}

.footer-tagline {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--brand-light);
    margin: 0.5rem 0 1rem;
}

.footer a {
    color: var(--brand-light);
}

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

.footer .social-icons {
    display: flex;
    gap: 1rem;
    padding: 0;
    margin: 1rem 0 0;
}

.footer .social-icons li {
    list-style: none;
}

.footer .social-icons a {
    font-size: 1.4rem;
}

.footer .quickmenu li {
    margin-bottom: 0.5rem;
}

.footer .footer-module:not(.large) {
    width: 30%;
}

.footer .footer-copyright {
    width: 100%;
    float: none;
    text-align: center;
    text-transform: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-on-dark-muted);
}

/* Page sections & forms ------------------------------------------------- */

.pb-form {
    max-width: 800px;
}

.pb-form .field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
}

.pb-form label {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: 0.4rem;
}

.pb-form input,
.pb-form select,
.pb-form textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #fff;
    color: var(--text-on-light);
}

.pb-form input:focus,
.pb-form select:focus,
.pb-form textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
}

.pb-form fieldset {
    border: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.pb-form legend {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--brand-dark);
    padding: 0;
    margin-bottom: 0.5rem;
}

.pb-form .radio {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: 1.5rem;
    font-weight: 400;
}

.pb-form hr {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 1.5rem 0;
}

.pb-form .form-message {
    margin-top: 1rem;
    font-weight: 600;
}

.pb-form .form-message.success {
    color: var(--brand-primary);
}

.pb-form .form-message.error {
    color: #c0392b;
}

/* Responsive ---------------------------------------------------------------- */

@media only all and (max-width: 47.938em) {
    #header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .nav-bar ul.navigation {
        justify-content: center;
        flex-wrap: wrap;
    }

    .home-hero {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .home-hero-inner h1 {
        font-size: 2rem;
    }

    .home-hero-tagline {
        font-size: 1.2rem;
    }

    .home-hero-cta {
        flex-direction: column;
        align-items: center;
    }
}
