/* ============================================================
   EQUAL Study — Shared Stylesheet
   All pages link to this file. No per-page <style> blocks.
   Paths for background-image are relative to this CSS file.
   ============================================================ */

/* --- Variables ------------------------------------------------------- */
:root {
    --primary-blue:       #1A5BA6;
    --primary-blue-dark:  #144888;
    --primary-blue-light: rgba(26, 91, 166, 0.08);
    --accent-orange:      #F5A118;
    --accent-orange-dark: #d98e0e;
    --text-dark:          #1e1e1e;
    --text-grey:          #555555;
    --bg-light:           #f8f9fa;
    --bg-white:           #ffffff;
}

/* --- Reset & Base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    margin: 0;
}

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

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

/* --- Skip Link ------------------------------------------------------- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-blue);
    color: #fff;
    padding: 8px 16px;
    z-index: 9999;
    transition: top 0.2s;
    text-decoration: none;
    font-weight: 600;
}
.skip-link:focus { top: 0; color: #fff; }

/* --- Eyebrow Header -------------------------------------------------- */
.eyebrow-header {
    background-color: var(--primary-blue);
    color: #fff;
    padding: 7px 0;
    font-size: 14px;
}
.eyebrow-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
}
.eyebrow-header a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}
.eyebrow-header a:hover { text-decoration: underline; }

/* --- Primary Header -------------------------------------------------- */
.header-inner {
    position: sticky;
    top: 0;
    z-index: 1000;
}
.primary-header {
    background-color: var(--bg-white);
    padding: 10px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.header-logo img { height: 64px; }

/* --- Navigation ------------------------------------------------------ */
.navbar { background-color: transparent; box-shadow: none; padding: 0; }
.navbar-nav { gap: 8px; }
.navbar-nav .nav-link {
    color: var(--text-grey);
    font-weight: 400;
    font-size: 20px;
    padding: 9px 36px !important;
    border-radius: 50px;
    transition: background-color 0.2s, color 0.2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active-page {
    color: #fff;
    background-color: var(--primary-blue);
    text-decoration: none;
}
.navbar-toggler { border: none; padding: 0; }

/* --- CTA Button in Nav ---------------------------------------------- */
.btn-cta {
    background-color: var(--accent-orange);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 20px;
    padding: 9px 24px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
    white-space: nowrap;
}
.btn-cta:hover { background-color: var(--accent-orange-dark); color: #fff; text-decoration: none; }
.btn-cta-white {
    background-color: #fff;
    color: var(--primary-blue);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 32px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s, color 0.2s;
}
.btn-cta-white:hover { background-color: var(--accent-orange); color: #fff; }
.btn-cta-outline-white {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50px;
    font-weight: 700;
    font-size: 20px;
    padding: 7px 24px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s, color 0.2s;
}
.btn-cta-outline-white:hover { background-color: #fff; color: var(--primary-blue); }

/* --- Hero ------------------------------------------------------------ */
.hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 100px 0;
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
}
.hero-section .container,
.hero-section .container-fluid { position: relative; z-index: 1; }
.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 2rem;
    max-width: 640px;
    line-height: 1.5;
}

/* Page-specific hero backgrounds (paths relative to this CSS file) */
.hero-home    { background-image: url('../../images/EQUAL_Hero_HOME_0.jpg'); }
.hero-faq     { background-image: url('../../images/EQUAL_Hero_FAQ_0.jpg'); }
.hero-privacy { background-image: url('../../images/EQUAL_Hero_PRIVACY.jpg'); }
.hero-teams   { background-image: url('../../images/EQUAL_Hero_TEAMS_0.jpg'); }
.hero-contact { background-image: url('../../images/EQUAL_Hero_FAQ_0.jpg'); }

/* --- Section Utilities ---------------------------------------------- */
.section-padding    { padding: 80px 0; }
.section-padding-sm { padding: 60px 0; }
.bg-light-grey { background-color: var(--bg-light); }
.bg-primary-blue  { background-color: var(--primary-blue); color: #fff; }

.section-title {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1.25rem;
}
.section-title-white {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1.25rem;
}
.section-lead {
    font-size: 1.1rem;
    color: var(--text-grey);
    margin-bottom: 2.5rem;
}

/* --- Eligibility Groups --------------------------------------------- */
.eligibility-group {
    background-color: var(--bg-white);
    border-left: 5px solid var(--primary-blue);
    border-radius: 0 8px 8px 0;
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.eligibility-group h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 12px;
    font-size: 1.1rem;
}
.eligibility-group ul  { padding-left: 20px; margin: 0; }
.eligibility-group li  { margin-bottom: 6px; }
.eligibility-sublist   { margin-top: 8px !important; font-size: 0.95rem; }

/* --- Benefit Cards -------------------------------------------------- */
.benefit-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 36px 28px;
    text-align: center;
    height: 100%;
}
.benefit-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--primary-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 26px;
    color: var(--primary-blue);
}
.benefit-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* --- Steps (What is Involved) --------------------------------------- */
.step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
}
.step-num {
    min-width: 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--accent-orange);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.step-content h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 6px;
    font-size: 1.05rem;
}

/* --- Mission Banner ------------------------------------------------- */
.mission-banner {
    background-color: var(--primary-blue);
    color: #fff;
    padding: 70px 0;
}
.mission-banner blockquote {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.5;
    border-left: 5px solid var(--accent-orange);
    padding-left: 24px;
    margin: 0;
}

/* --- CTA Banner ---------------------------------------------------- */
.cta-banner {
    background-color: var(--accent-orange);
    padding: 40px 0;
    text-align: center;
}
.cta-banner h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}
.cta-banner p { color: #fff; font-size: 1.1rem; margin-bottom: 2rem; }

/* --- Team Cards ----------------------------------------------------- */
.team-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    height: 100%;
}
.team-card img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--bg-light);
}
.team-card-body { text-align: left; }
.team-card h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 6px;
    font-size: 1rem;
}
.team-card p { font-size: 0.875rem; color: var(--text-grey); margin: 0; line-height: 1.6; }
.team-card-icon-placeholder {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 3px solid var(--bg-light);
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 3rem;
    color: var(--primary-blue);
    opacity: 0.4;
}

.team-group-header {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 1.4rem;
    border-bottom: 3px solid var(--accent-orange);
    padding-bottom: 8px;
    margin-bottom: 36px;
}

.community-partners-card {
    background-color: var(--primary-blue-light);
    border-left: 5px solid var(--accent-orange);
    border-radius: 0 8px 8px 0;
    padding: 28px 32px;
}

/* --- FAQ Accordion -------------------------------------------------- */
.faq-controls { margin-bottom: 20px; }
.btn-expand-all {
    background: none;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    padding: 7px 20px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}
.btn-expand-all:hover { background-color: var(--primary-blue); color: #fff; }

.faq-accordion .accordion-item {
    border: 1px solid #dee2e6;
    border-radius: 8px !important;
    overflow: hidden;
    margin-bottom: 8px;
}
.faq-accordion .accordion-button {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    background-color: #fff;
    border-radius: 0 !important;
}
.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--primary-blue);
    background-color: var(--primary-blue-light);
    box-shadow: none;
}
.faq-accordion .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(26, 91, 166, 0.2);
}
.faq-accordion .accordion-body {
    font-size: 0.975rem;
    line-height: 1.75;
    color: var(--text-grey);
}
.faq-accordion .accordion-body ul { padding-left: 20px; margin: 8px 0; }
.faq-accordion .accordion-body li { margin-bottom: 6px; }

/* --- Contact -------------------------------------------------------- */
.contact-card {
    background-color: var(--primary-blue);
    color: #fff;
    border-radius: 12px;
    padding: 48px 40px;
    text-align: center;
}
.contact-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 28px;
    font-size: 1.6rem;
}
.contact-card a {
    color: #fff;
    text-decoration: none;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}
.contact-card a:hover { text-decoration: underline; color: #fff; }
.contact-card .contact-icon { color: var(--accent-orange); font-size: 1.3rem; }

/* --- Privacy Page --------------------------------------------------- */
.privacy-point {
    border-left: 4px solid var(--accent-orange);
    padding: 16px 20px;
    background-color: var(--bg-light);
    border-radius: 0 6px 6px 0;
    margin-bottom: 16px;
}
.privacy-point p { margin: 0; font-size: 0.975rem; }

/* --- Bottom Contact Bar (shared across all pages) ------------------- */
.contact-bar {
    background-color: var(--bg-light);
    border-top: 1px solid #dee2e6;
    padding: 20px 0;
    font-size: 15px;
}
.contact-bar a { color: var(--primary-blue); font-weight: 500; }

/* --- Footer --------------------------------------------------------- */
footer {
    background-color: #000;
    color: #fff;
    padding: 1rem 0;
    font-size: 14px;
}
footer a { color: #fff; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* --- Responsive ----------------------------------------------------- */
@media (max-width: 991px) {
    .navbar-nav .nav-link { padding: 10px 14px; }
}

/* Hero mobile image (hidden on desktop) */
.hero-mobile-img { display: none; }

@media (max-width: 768px) {
    .hero-title    { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-title { font-size: 1.6rem; }
    .section-padding { padding: 60px 0; }
    .mission-banner blockquote { font-size: 1.2rem; }

    /* Hero: image on top, solid blue below */
    .hero-home,
    .hero-faq,
    .hero-privacy,
    .hero-teams,
    .hero-contact {
        background-image: none;
        background-color: var(--primary-blue);
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        min-height: unset;
    }
    .hero-mobile-img {
        display: block;
        width: 100%;
        height: 260px;
        object-fit: cover;
        object-position: right center;
    }
    .hero-home .container-fluid,
    .hero-faq .container-fluid,
    .hero-privacy .container-fluid,
    .hero-teams .container-fluid,
    .hero-contact .container-fluid {
        padding-top: 36px;
        padding-bottom: 40px;
    }
}
