/* ==========================================================
   COMFORTED LIVING
   UNIVERSAL CASSIOPEIA USER.CSS
   Joomla 6
   ========================================================== */


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

:root {
    --cl-navy: #182a57;
    --cl-navy-light: #293d76;
    --cl-green: #2f675f;
    --cl-green-dark: #214d47;
    --cl-ink: #17202a;
    --cl-text: #303b42;
    --cl-muted: #68747a;
    --cl-soft: #f4f6f5;
    --cl-soft-green: #eef4f1;
    --cl-border: #dce3df;
    --cl-white: #ffffff;

    --cl-width: 1320px;
    --cl-reading: 920px;

    --cassiopeia-color-primary: #182a57;
    --cassiopeia-color-link: #2f675f;
    --cassiopeia-color-hover: #214d47;
}


/* ==========================================================
   2. BASE
   ========================================================== */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #ffffff;
    color: var(--cl-text);
    font-size: 18px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}

body,
input,
button,
textarea,
select {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}

p {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

strong,
b {
    color: var(--cl-ink);
    font-weight: 700;
}


/* ==========================================================
   3. MAIN PAGE WIDTH
   ========================================================== */

.site-grid {
    grid-template-columns:
        [full-start] minmax(0, 1fr)
        [main-start] minmax(0, var(--cl-width))
        [main-end] minmax(0, 1fr)
        [full-end];
}

.container-component,
.container-below-top,
.container-top-a,
.container-top-b,
.container-bottom-a,
.container-bottom-b {
    width: 100%;
}

main {
    min-width: 0;
}

.com-content-article,
.blog,
.blog-featured,
.category-list,
.contact,
.registration,
.login {
    width: 100%;
}


/* ==========================================================
   4. HEADER
   ========================================================== */

.container-header {
    background: linear-gradient(
        120deg,
        var(--cl-navy) 0%,
        #333c79 100%
    );
    box-shadow: none;
    position: relative;
    z-index: 100;
}

.container-header .container-nav,
.container-header .container-search {
    max-width: var(--cl-width);
}

.container-header .navbar-brand {
    padding-top: 22px;
    padding-bottom: 16px;
}

.container-header .navbar-brand img {
    max-width: 290px;
    height: auto;
}


/* ==========================================================
   5. MAIN NAVIGATION
   ========================================================== */

.container-header .mod-menu {
    gap: 5px;
    align-items: center;
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span {
    color: #ffffff;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.2;
    padding: 15px 14px;
    text-decoration: none;
    border-radius: 6px 6px 0 0;
    transition:
        background .2s ease,
        color .2s ease;
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > a:focus,
.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.current > a {
    background: rgba(255,255,255,.12);
    color: #ffffff;
    text-decoration: none;
}


/* ==========================================================
   6. BREADCRUMBS
   ========================================================== */

.breadcrumb {
    max-width: var(--cl-width);
    margin: 18px auto 12px;
    padding: 13px 18px;
    background: var(--cl-soft);
    border-radius: 5px;
    font-size: 15px;
}

.breadcrumb a {
    color: var(--cl-green-dark);
    font-weight: 600;
}


/* ==========================================================
   7. MAIN CONTENT AREA
   ========================================================== */

.container-component {
    padding-top: 16px;
    padding-bottom: 70px;
}

.com-content-article {
    font-size: 18px;
    line-height: 1.75;
}


/* ==========================================================
   8. TYPOGRAPHY
   ========================================================== */

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4 {
    color: var(--cl-ink);
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

h1,
.h1 {
    font-size: clamp(2.55rem, 4.5vw, 4.4rem);
    margin-top: 0;
    margin-bottom: 22px;
    max-width: 1050px;
}

h2,
.h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-top: 54px;
    margin-bottom: 20px;
}

h3,
.h3 {
    font-size: clamp(1.45rem, 2vw, 2rem);
    margin-top: 36px;
    margin-bottom: 14px;
}

h4,
.h4 {
    font-size: 1.25rem;
    margin-top: 28px;
    margin-bottom: 12px;
}

.page-header h1,
.article-info-term + dd {
    color: var(--cl-ink);
}


/* ==========================================================
   9. ARTICLE INTRO / LEAD TEXT
   ========================================================== */

.com-content-article > p:first-of-type {
    font-size: 1.18rem;
    line-height: 1.7;
    color: #455159;
    max-width: 1050px;
}

.lead {
    font-size: clamp(1.15rem, 1.7vw, 1.35rem);
    line-height: 1.65;
    color: #455159;
    max-width: 980px;
}


/* ==========================================================
   10. NORMAL LINKS
   ========================================================== */

main a:not(.btn) {
    color: var(--cl-green-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

main a:not(.btn):hover {
    color: var(--cl-navy);
    text-decoration-thickness: 2px;
}


/* ==========================================================
   11. LISTS
   ========================================================== */

.com-content-article ul,
.com-content-article ol {
    margin: 1.25rem 0 1.75rem;
    padding-left: 1.5rem;
}

.com-content-article li {
    margin-bottom: .65rem;
    padding-left: .25rem;
}

.com-content-article li::marker {
    color: var(--cl-green);
    font-weight: 700;
}


/* ==========================================================
   12. BUTTONS
   ========================================================== */

.btn,
a.btn,
button.btn {
    display: inline-block;
    padding: 13px 23px;
    border-radius: 7px;
    border: 0;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

.btn-primary {
    background: var(--cl-navy);
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--cl-navy-light);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(24,42,87,.18);
}


/* ==========================================================
   13. BLOCKQUOTES / IMPORTANT INFORMATION
   ========================================================== */

blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    background: var(--cl-soft-green);
    border-left: 5px solid var(--cl-green);
    border-radius: 0 9px 9px 0;
    color: var(--cl-text);
    font-size: 1.08rem;
}

blockquote p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   14. TABLES
   ========================================================== */

table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 16px;
}

table th {
    padding: 15px 17px;
    background: var(--cl-navy);
    color: #ffffff;
    text-align: left;
    font-weight: 700;
}

table td {
    padding: 15px 17px;
    border-bottom: 1px solid var(--cl-border);
}

table tr:nth-child(even) td {
    background: var(--cl-soft);
}


/* ==========================================================
   15. IMAGES
   ========================================================== */

.com-content-article img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

figure {
    margin: 32px 0;
}

figcaption {
    margin-top: 8px;
    color: var(--cl-muted);
    font-size: 14px;
}


/* ==========================================================
   16. GENERIC CARDS
   Useful for existing and future articles
   ========================================================== */

.cl-card,
.service-card,
.info-card,
.guide-card {
    background: #ffffff;
    border: 1px solid var(--cl-border);
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 8px 28px rgba(20,35,30,.055);
}

.cl-card h2,
.cl-card h3,
.service-card h2,
.service-card h3,
.info-card h2,
.info-card h3,
.guide-card h2,
.guide-card h3 {
    margin-top: 0;
}


/* ==========================================================
   17. GENERIC GRID SUPPORT
   ========================================================== */

.cl-grid,
.cards-grid,
.guide-grid,
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 24px;
    margin: 30px 0;
}


/* ==========================================================
   18. ARTICLE SECTIONS
   ========================================================== */

.com-content-article section {
    margin-bottom: 48px;
}

.com-content-article hr {
    margin: 52px 0;
    border: 0;
    border-top: 1px solid var(--cl-border);
}


/* ==========================================================
   19. ARTICLE DETAILS / META
   ========================================================== */

.article-info {
    margin-bottom: 25px;
    color: var(--cl-muted);
    font-size: 14px;
}

.article-info a {
    color: var(--cl-muted);
}


/* ==========================================================
   20. SIDEBARS / MODULES
   ========================================================== */

.card {
    border: 1px solid var(--cl-border);
    border-radius: 12px;
    box-shadow: none;
}

.card-header {
    background: var(--cl-soft);
    color: var(--cl-ink);
    font-weight: 700;
}


/* ==========================================================
   21. FOOTER
   ========================================================== */

.container-footer {
    margin-top: 60px;
    padding-top: 42px;
    padding-bottom: 42px;
    background: var(--cl-navy);
    color: rgba(255,255,255,.88);
}

.container-footer a {
    color: #ffffff;
}


/* ==========================================================
   22. HOMEPAGE — MAKE THE DEFAULT ARTICLE LOOK DELIBERATE
   ========================================================== */

body.itemid-101 .com-content-article > p,
body.itemid-101 .com-content-article > h1,
body.itemid-101 .com-content-article > h2,
body.itemid-101 .com-content-article > h3 {
    max-width: 1100px;
}

body.itemid-101 .com-content-article h1 {
    margin-bottom: 18px;
}

body.itemid-101 .com-content-article h2 {
    margin-top: 48px;
}


/* ==========================================================
   23. ACCESSIBILITY / FOCUS
   ========================================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(47,103,95,.45);
    outline-offset: 3px;
}


/* ==========================================================
   24. TABLET
   ========================================================== */

@media (max-width: 1100px) {

    body {
        font-size: 17px;
    }

    .cl-grid,
    .cards-grid,
    .guide-grid,
    .service-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .container-header .mod-menu > li > a,
    .container-header .mod-menu > li > span {
        padding-left: 9px;
        padding-right: 9px;
        font-size: 15px;
    }
}


/* ==========================================================
   25. MOBILE
   ========================================================== */

@media (max-width: 768px) {

    body {
        font-size: 16.5px;
        line-height: 1.68;
    }

    h1,
    .h1 {
        font-size: 2.35rem;
    }

    h2,
    .h2 {
        font-size: 1.85rem;
        margin-top: 40px;
    }

    h3,
    .h3 {
        font-size: 1.4rem;
    }

    .container-component {
        padding-left: 4px;
        padding-right: 4px;
        padding-bottom: 45px;
    }

    .container-header .navbar-brand {
        padding-top: 14px;
        padding-bottom: 10px;
    }

    .container-header .navbar-brand img {
        max-width: 230px;
    }

    .cl-grid,
    .cards-grid,
    .guide-grid,
    .service-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .cl-card,
    .service-card,
    .info-card,
    .guide-card {
        padding: 22px;
    }

    table {
        font-size: 14px;
    }

    table th,
    table td {
        padding: 12px;
    }

    .breadcrumb {
        margin-top: 10px;
        font-size: 14px;
    }
}


/* ==========================================================
   26. VERY SMALL SCREENS
   ========================================================== */

@media (max-width: 480px) {

    h1,
    .h1 {
        font-size: 2.05rem;
    }

    h2,
    .h2 {
        font-size: 1.65rem;
    }

    .lead,
    .com-content-article > p:first-of-type {
        font-size: 1.08rem;
    }
}