﻿/*** CBWTF SmartCare wordmark styling ***/
.ep-footer .ftr_CBWTF {
    color: #003366;
    font-weight: bold;
    font-family: Arial;
}

.ep-footer .ftr_Smart {
    color: #FF5C00;
    font-weight: bold;
    font-family: Georgia;
}

.ep-footer .ftr_Care {
    color: #7DC607;
    font-weight: bold;
    font-family: Georgia;
}
/*** CBWTF SmartCare wordmark styling ***/

:root {
    --ep-accent: #0b5f6a; /* teal */
    --ep-accent-2: #eb586f; /* pink */
    --ep-text: #212529; /* primary dark text */
    --ep-muted: #6c757d; /* muted text */
    --ep-bg: #ffffff; /* footer background */
    --ep-border: #e9ecef;
    --ep-font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Base footer container (use class ep-footer on footer element) */
.ep-footer {
    background: #e5e5e5 !important;
    color: var(--ep-text) !important;
    border-top: 1px solid var(--ep-border) !important;
    font-family: var(--ep-font-family) !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    font-family: Arial, sans-serif !important;
    font-size: 13px !important;
}

    /* slight vertical padding to match your earlier look */
    .ep-footer .ep-inner {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

.ep-inner {
    margin: 0 auto;
    max-width: 1250px; /* instead of fixed width */
    width: 100%;
}

/* text small */
.ep-footer small {
    color: var(--ep-muted);
    font-size: .92rem !important;
}

    /* right-side group wrapper */
.ep-footer .ep-right {
    display: flex;
    gap: 1rem !important;
    align-items: center;
}

    /* SmartCare logo */
    .ep-footer .ep-logo {
        height: 40px;
        object-fit: contain;
        margin-right: 0.625rem; /* 10px */
        display: inline-block;
    }

    /* wordmark container */
    .ep-footer .ep-wordmark {
        line-height: 1;
        font-weight: 700;
        color: var(--ep-text);
    }

    /* small tagline under wordmark */
    .ep-footer .ep-wordmark-sub {
        color: var(--ep-muted);
        font-size: .82rem;
    }

    /* separator (vertical rule) */
    .ep-footer .ep-sep {
        height: 36px;
        width: 1px;
        background: rgba(0,0,0,0.06);
        margin: 0 .5rem;
        display: none;
    }

/* show separator on md+ */
@media(min-width: 768px) {
    .ep-footer .ep-sep {
        display: block;
    }
}

/* powered-by block */
.ep-footer .ep-powered {
    text-align: left;
}

    .ep-footer .ep-powered .company {
        font-weight: 600 !important;
        color: var(--ep-text) !important;
    }

/* layout tweaks for container row */
.ep-footer .ep-row {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    justify-content: space-between;
    align-items: center;
}

@media(min-width: 768px) {
    .ep-footer .ep-row {
        flex-direction: row;
        align-items: center;
    }

    .ep-footer .ep-left {
        text-align: left !important;
    }
}

/* link hover */
.ep-footer a {
    color: inherit;
    text-decoration: none !important;
}

    .ep-footer a:hover {
        text-decoration: none !important;
        cursor: pointer !important;
    }

/* reduce visual weight for small text blocks */
.ep-footer .ep-small {
    font-size: .86rem !important;
    color: var(--ep-muted) !important;
}

/* ensure image & wordmark align on smaller widths */
.ep-footer .ep-right .ep-item {
    display: flex;
    align-items: center;
    gap: .5rem !important;
}

/* keep footer compact */
.ep-footer .ep-ftr-container {
    max-width: 1200px;
}

/* optional utility to force readable small text on light backgrounds */
.ep-footer .text-secondary {
    color: var(--ep-muted) !important;
}

/* Accessibility: focus outline for links */
.ep-footer a:focus {
    outline: 2px solid rgba(11,95,106,.15);
    outline-offset: 2px;
    border-radius: 4px;
    padding: 2px;
}


/* Footer: ensure full brand wordmark visible on small screens */

/* By default keep desktop behavior unchanged */
.ep-footer .ep-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

/* Right side group default */
.ep-footer .ep-right {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: nowrap;
}

/* Remove truncation for wordmark by default (desktop) but let it manage with available space */
.ep-footer .ep-wordmark {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

/* Small screen behavior: stack right-side content so brand shows fully */
@media (max-width: 576px) {
    /* Stack left & right vertically for compact mobile layout */
    .ep-footer .ep-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        text-align: center;
    }

    /* Right block stacks vertically and centers everything */
    .ep-footer .ep-right {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        width: 100%;
    }

    /* Make logo slightly smaller but visible */
    .ep-footer .ep-logo {
        height: 40px; /* keeps it visible but compact */
        margin-right: 0; /* remove horizontal gap when stacked */
    }

    /* Allow full wrapping of the wordmark, never truncate */
    .ep-footer .ep-wordmark {
        white-space: normal; /* allow wrapping */
        overflow: visible;
        text-overflow: clip;
        max-width: 100%;
        display: block;
        font-size: 0.95rem; /* slightly smaller on tiny screens */
        line-height: 1.05;
        margin-top: 0; /* tighter spacing */
    }

    /* wordmark subtitle (tagline) centered */
    .ep-footer .ep-wordmark-sub, .ep-footer .ep-small {
        display: block;
        text-align: center;
        font-size: .82rem;
    }

    /* hide vertical separator on small devices */
    .ep-footer .ep-sep {
        display: none !important;
    }

    /* center left-side copyright area */
    .ep-footer .ep-left {
        text-align: center;
    }

    /* final safety: keep footer padding comfortable */
    .ep-footer {
        padding: .6rem .5rem;
    }
}

/* Optional: slightly reduce font size for very small phones */
@media (max-width: 420px) {
    .ep-footer .ep-wordmark {
        font-size: .92rem;
    }

    .ep-footer .ep-logo {
        height: 36px;
    }
}
