/* ==========================================================
   FAMILYNET DESIGN SYSTEM
   Master user.css v1.0
   For www, partners, BC, and future regional sites
   ========================================================== */


/* ==========================================================
   1. VARIABLES
   ========================================================== */

:root {
    --fn-blue: #224faa;
    --fn-blue-dark: #1d2c3d;
    --fn-blue-light: #f4f9fe;

    --fn-green: #2d7d46;
    --fn-green-light: #f2f8f4;

    --fn-heading: #0d333f;
    --fn-text: #333333;
    --fn-muted: #666666;
    --fn-border: #d9e6f5;

    --fn-white: #ffffff;

    --fn-radius-sm: 8px;
    --fn-radius-md: 12px;
    --fn-radius-lg: 20px;

    --fn-width: 1000px;
}


/* ==========================================================
   2. GLOBAL TYPOGRAPHY
   ========================================================== */

body {
    background: #fafbfc;
    color: var(--fn-text);
}

h1,
h2,
h3,
h4 {
    color: var(--fn-heading);
    font-weight: 500;
}

h1 {
    margin-bottom: 18px;
}

h2 {
    margin-bottom: 16px;
}

h3 {
    margin-bottom: 12px;
}

p {
    line-height: 1.65;
}

a {
    color: var(--fn-blue);
}

a:hover {
    color: var(--fn-green);
}


/* ==========================================================
   3. UTILITY CLASSES
   ========================================================== */

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

.fn-muted {
    color: var(--fn-muted);
}

.fn-small {
    font-size: .92rem;
}

.fn-spacer {
    height: 30px;
}

.fn-external {
    margin-left: 4px;
    font-size: .8em;
    vertical-align: text-top;
}


/* ==========================================================
   4. GENERAL LAYOUT
   ========================================================== */

.fn-page {
    max-width: var(--fn-width);
    margin: 0 auto;
}

.fn-section {
    margin-bottom: 35px;
}


/* ==========================================================
   5. HEADER / MENU
   ========================================================== */

header,
.container-header,
.container-nav,
.navbar,
.header {
    background: #ffffff !important;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
}

.container-header,
.container-header .container-nav,
.container-header .navbar {
    background: #ffffff !important;
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span,
.container-header .mod-menu .nav-link {
    color: var(--fn-heading) !important;
    font-weight: 600;
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu .nav-link:hover {
    color: var(--fn-blue) !important;
}

.container-header .mod-menu .active > a,
.container-header .mod-menu .active > .nav-link {
    color: var(--fn-green) !important;
}

.container-header .mod-menu ul {
    background: #ffffff;
}

.container-header .mod-menu ul a {
    color: var(--fn-heading);
}


/* ==========================================================
   6. MENU BRAND / FIRST MENU ITEM
   ========================================================== */

.mod-menu > li:first-child > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    text-align: center;
    line-height: 1.1;
}

.mod-menu > li:first-child img {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
}

.mod-menu > li:first-child > a::after {
    content: "FamilyNet";
    display: block;
    font-size: .9rem;
    font-weight: 400;
    color: #666666;
    margin-top: 2px;
}
.mod-menu > li:first-child {
    margin-right: 0px;
}

.mod-menu > li:first-child > a:hover::after {
    color: var(--fn-blue);
}

.metismenu .level-1:first-child > a,
.mod-menu .nav-item:first-child > a {
    text-align: center;
    padding-left: 12px;
    padding-right: 0px;
}

.mod-menu > li:not(:first-child) > a {
    display: flex;
    align-items: flex-end;
    height: 58px;
}
/* ==========================================================
   7. HERO SECTIONS
   ========================================================== */

.fn-hero {
    display: grid;
    grid-template-columns: 40% 58%;
    gap: 2%;
    align-items: center;
    margin-bottom: 35px;
}

.fn-hero img {
    max-width: 100%;
    border-radius: 15px;
}

.fn-hero h1 {
    color: var(--fn-heading);
}

.fn-lead {
    color: var(--fn-green);
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: 500;
}


/* ==========================================================
   8. TWO COLUMN LAYOUT
   ========================================================== */

.fn-two-column {
    display: grid;
    grid-template-columns: 49% 49%;
    gap: 2%;
    align-items: center;
}

.fn-two-column img {
    max-width: 100%;
    border-radius: 15px;
}


/* ==========================================================
   9. INFORMATION PANELS
   ========================================================== */

.fn-panel {
    padding: 25px 30px;
    margin-bottom: 30px;
    border-radius: var(--fn-radius-lg);
}

.fn-blue {
    background: var(--fn-blue-light);
}

.fn-green {
    background: var(--fn-green-light);
}

.fn-white-panel {
    background: var(--fn-white);
    border: 1px solid var(--fn-border);
}


/* ==========================================================
   10. BUTTONS
   ========================================================== */

.fn-button {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 6px;
    background: var(--fn-blue);
    color: var(--fn-white);
    text-decoration: none;
    font-weight: 600;
    transition: background .2s ease;
}

.fn-button:hover {
    background: var(--fn-green);
    color: var(--fn-white);
    text-decoration: none;
}

.fn-button-secondary {
    background: var(--fn-green);
}

.fn-button-secondary:hover {
    background: var(--fn-blue);
}


/* ==========================================================
   11. PRICING BOX
   ========================================================== */

.fn-pricing-box {
    padding: 20px;
    border-radius: var(--fn-radius-md);
    margin: 20px 0;
    border: 1px solid var(--fn-border);
    background: var(--fn-white);
}


/* ==========================================================
   12. ACCORDIONS
   ========================================================== */

.fn-accordion,
.fn-accordian {
    margin: 25px 0;
}

.fn-accordion-item {
    background: var(--fn-blue-light);
    border: 1px solid var(--fn-border);
    border-radius: var(--fn-radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
}

.fn-accordion-item summary {
    display: flex;
    align-items: center;
    cursor: pointer;
    list-style: none;
    padding: 10px 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--fn-blue);
}

.fn-accordion-item summary::-webkit-details-marker {
    display: none;
}

.fn-accordion-item summary::marker {
    content: "";
}

.fn-accordion-item summary::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 14px;
    border-right: 2px solid var(--fn-blue);
    border-bottom: 2px solid var(--fn-blue);
    transform: rotate(45deg);
    transition: transform .2s ease;
    flex-shrink: 0;
}

.fn-accordion-item[open] summary::before {
    transform: rotate(225deg);
}

.fn-accordion-content {
    padding: 0 20px 20px 44px;
    line-height: 1.7;
}

.fn-accordion-content p:first-child {
    margin-top: 0;
}

.fn-accordion-content ul {
    margin: 15px 0;
    padding-left: 22px;
}

.fn-accordion-content li {
    margin-bottom: 8px;
}


/* ==========================================================
   13. TABLES
   ========================================================== */

.fn-table-wrap {
    overflow-x: auto;
    margin: 20px 0;
}

.fn-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
}

.fn-table th,
.fn-table td {
    border: 1px solid var(--fn-border);
    padding: 10px 12px;
    text-align: left;
}

.fn-table th {
    background: var(--fn-blue-light);
    color: var(--fn-heading);
    font-weight: 700;
}

.fn-table tr:nth-child(even) td {
    background: #fafafa;
}


/* ==========================================================
   14. FOOTER
   ========================================================== */

.fn-footer {
    width: 100%;
    margin-top: 50px;
    padding: 45px 0 25px;
    background: #f3f4f6;
    color: var(--fn-text);
    border-top: 1px solid #dde2e8;
}

.fn-footer-inner {
    max-width: var(--fn-width);
    margin: 0 auto;
    padding: 0 20px;
}

.fn-footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 35px;
}

.fn-footer-brand {
    text-align: center;
}

.fn-footer-logo {
    width: 44px;
    height: auto;
    margin-bottom: 15px;
}

.fn-footer-title {
    color: var(--fn-heading);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 6px;
}

.fn-footer-sub {
    color: var(--fn-muted);
    font-size: .9rem;
    line-height: 1.6;
}

.fn-footer-heading {
    color: var(--fn-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.fn-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fn-footer-links li {
    margin-bottom: 12px;
}

.fn-footer-links a {
    color: var(--fn-text);
    text-decoration: none;
}

.fn-footer-links a:hover {
    color: var(--fn-blue);
}

.fn-footer-bottom {
    border-top: 1px solid #dde2e8;
    padding-top: 22px;
    text-align: center;
    color: var(--fn-muted);
    font-size: .95rem;
}


/* ==========================================================
   15. FAQ PAGE
   ========================================================== */

.fn-faq-page {
    max-width: var(--fn-width);
}

.fn-faq-section {
    margin-bottom: 35px;
}

.fn-faq-section h2 {
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--fn-border);
}


/* ==========================================================
   16. HOW FAMILYNET WORKS PAGE
   ========================================================== */

.fn-how-hero img {
    max-width: 400px;
    width: 100%;
}


/* ==========================================================
   17. ABOUT PAGE
   ========================================================== */

.fn-about-section {
    margin-bottom: 35px;
    padding-left: 25px;
}

.fn-founder-message {
    background: var(--fn-green-light);
    border-radius: var(--fn-radius-lg);
    padding: 30px;
    margin: 35px 0;
    border-left: 5px solid var(--fn-green);
}

.fn-founder-message h2 {
    margin-top: 0;
}

.fn-founder-signature {
    margin-top: 25px;
    color: var(--fn-heading);
}


/* ==========================================================
   18. LEGAL PAGES
   ========================================================== */

.fn-legal-page {
    max-width: var(--fn-width);
}

.fn-legal-content {
    background: var(--fn-white);
    border: 1px solid var(--fn-border);
    border-radius: var(--fn-radius-lg);
    padding: 30px;
    margin-bottom: 35px;
}

.fn-legal-content h2 {
    margin-top: 28px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--fn-border);
}

.fn-legal-content h2:first-child {
    margin-top: 0;
}


/* ==========================================================
   19. QUESTIONS / SMALL CTA SECTION
   ========================================================== */

.fn-questions {
    margin: 30px;
}


/* ==========================================================
   20. ERROR PAGE
   ========================================================== */

.fn-error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--fn-blue-light);
}

.fn-error-box {
    max-width: 720px;
    width: 100%;
    background: var(--fn-white);
    border: 1px solid var(--fn-border);
    border-radius: var(--fn-radius-lg);
    padding: 45px 35px;
    text-align: center;
}

.fn-error-logo {
    width: 90px;
    height: auto;
    margin-bottom: 20px;
}

.fn-error-debug {
    margin-top: 35px;
    text-align: left;
    font-size: .9rem;
    background: #f8f8f8;
    padding: 20px;
    border-radius: var(--fn-radius-md);
    overflow-x: auto;
}


/* ==========================================================
   21. SITE-SPECIFIC OVERRIDES
   Keep these minimal
   ========================================================== */

/* WWW SITE */

/* PARTNERS SITE */

/* BC / REGIONAL SITES */


/* ==========================================================
   22. RESPONSIVE
   ========================================================== */

@media (max-width: 800px) {

    .fn-page {
        padding: 0 12px;
    }

    .fn-hero,
    .fn-two-column {
        grid-template-columns: 1fr;
    }

    .fn-panel {
        padding: 20px;
    }

    .fn-accordion-content {
        padding: 0 18px 18px 18px;
    }

    .fn-footer-columns {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .fn-footer-column,
    .fn-footer-brand {
        text-align: center;
    }

    .mod-menu > li:first-child > a {
        flex-direction: row;
        justify-content: flex-start;
        min-width: auto;
        text-align: left;
    }

    .mod-menu > li:first-child img {
        width: 28px;
        height: 28px;
        margin: 0 8px 0 0;
    }

    .mod-menu > li:first-child > a::after {
        content: "FamilyNet";
        font-size: 1rem;
        margin-top: 0;
    }
}