/* ================================================================
   MARY LO - CUSTOM CSS
   Canvas theme overrides | Consolidated November 2026
   ================================================================ */

/* ================================================================
   1. GENERAL TYPOGRAPHY
   ================================================================ */

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


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

/* ================================================================
   2. HEADER, LOGO AND DESKTOP NAVIGATION LAYOUT
   ================================================================ */

@media (min-width: 992px) {
    #header #logo {
        width: 200px;
        flex: 0 0 200px;
        margin-right: 15px;
    }

    #header #logo img {
        width: 200px;
        height: auto;
    }

    #header .primary-menu .menu-container {
        flex-wrap: nowrap;
    }

    #header .primary-menu .cnvs-menu-link {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Remove Canvas subtitle-navigation separators */
    #header .primary-menu.sub-title
    .menu-container > .cnvs-menu-item > .cnvs-menu-link::before,
    #header .primary-menu.sub-title
    .menu-container > .cnvs-menu-item > .cnvs-menu-link::after {
        content: none !important;
        display: none !important;
    }
}

/* ================================================================
   3. HEADER COLOURS, NAVIGATION AND STICKY HEADER
   ================================================================ */

/* Keep the normal and sticky header burgundy */
#header #header-wrap,
#header.sticky-header #header-wrap {
    background: #71314F !important;
}

/* Keep the white logo visible in sticky mode */
#header.sticky-header #logo,
#header.sticky-header #logo img {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Main navigation headings */
#header .primary-menu .menu-container > .cnvs-menu-item > .cnvs-menu-link {
    color: #FFFFFF !important;
}

/* Navigation subtitles */
#header .primary-menu .cnvs-menu-link span {
    color: #D9A9BE !important;
}

/* Main navigation hover and active backgrounds */
.primary-menu .menu-container > .cnvs-menu-item:hover,
.primary-menu .menu-container > .cnvs-menu-item.current {
    background-color: #863C5F;
}

/* Main navigation hover and active text */
#header .primary-menu .menu-container > .cnvs-menu-item:hover > .cnvs-menu-link,
#header .primary-menu .menu-container > .cnvs-menu-item.current > .cnvs-menu-link {
    color: #FFFFFF !important;
}

/* Hover and active subtitles */
#header .primary-menu .menu-container > .cnvs-menu-item:hover > .cnvs-menu-link span,
#header .primary-menu .menu-container > .cnvs-menu-item.current > .cnvs-menu-link span {
    color: #FFFFFF !important;
}

/* Dropdown backgrounds */
.primary-menu .sub-menu-container {
    background-color: #371022;
    border-top-color: #A65D7D;
}

/* Dropdown links */
.primary-menu .sub-menu-container .cnvs-menu-link {
    color: #FFFFFF;
}

/* Dropdown hover */
.primary-menu .sub-menu-container .cnvs-menu-item:hover > .cnvs-menu-link {
    color: #D9A9BE;
    background-color: #512039;
}

/* Dropdown arrow/theme colour on hover */
.primary-menu .sub-menu-container .cnvs-menu-link:hover {
    --cnvs-themecolor: #D9A9BE;
}

/* ================================================================
   4. HOMEPAGE PAGE TITLE AND TYPOGRAPHY
   ================================================================ */

.page-title.page-title-pattern {
    background-image: linear-gradient(
        to bottom,
        #863C5F 0%,
        #371022 100%
    );
    background-repeat: no-repeat;
    background-attachment: scroll;
    height: auto;
    min-height: 0;
    padding-top: 165px;
    padding-bottom: 75px;
}

/* Centre title content in the Canvas flex layout */
.page-title-row {
    justify-content: center !important;
}

.page-title-content {
    width: 100%;
    max-width: 100%;
    flex: 0 1 100%;
    text-align: center !important;
}

.page-title-content h1 {
    line-height: 1.15;
    font-weight: 500;
    margin-bottom: 20px;
    text-align: center;
}

.page-title-content span {
    display: block;
    margin-top: 1rem;
    color: var(--cnvs-contrast-600);
    font-size: var(--cnvs-page-title-subtitle-size);
    text-align: center;
}

@media (min-width: 992px) {
    .page-title-content h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 991px) {
    .page-title.page-title-pattern {
        padding-top: 115px;
        padding-bottom: 55px;
    }
}

/* ================================================================
   5. INNER / PRODUCT PAGE TITLES
   ================================================================ */

.page-title.marylo-inner-title {
    background: linear-gradient(
        180deg,
        #803A5C 0%,
        #371022 100%
    ) !important;
    padding: 45px 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

.marylo-inner-title .page-title-row {
    justify-content: center !important;
}

.marylo-inner-title .page-title-content {
    width: 100%;
    max-width: 100%;
    flex: 0 1 100%;
    text-align: center !important;
}

.marylo-inner-title .page-title-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 500;
    color: #FFFFFF;
    margin: 0 !important;
}

.marylo-inner-title .page-title-content span {
    display: block;
    margin-top: 10px;
    font-size: 1.15rem;
    color: #D9A9BE;
}

@media (max-width: 767px) {
    .page-title.marylo-inner-title {
        padding: 30px 0 !important;
    }

    .marylo-inner-title .page-title-content h1 {
        font-size: 1.8rem;
    }

    .marylo-inner-title .page-title-content span {
        font-size: 1rem;
    }
}

/* ================================================================
   6. RESPONSIVE IMAGE AND TEXT WRAPPING
   ================================================================ */

/* Default: float image left so subsequent paragraphs wrap around it */
.img-wrap {
    float: left;
    width: 300px;
    max-width: 45%;
    height: auto;
    margin: 0 25px 20px 0;
    display: block;
}

/* Alternative: float image right */
.img-wrap-right {
    float: right;
    margin: 0 0 20px 25px;
}

/* Optional image widths */
.img-wrap-small {
    width: 200px;
}

.img-wrap-medium {
    width: 300px;
}

.img-wrap-large {
    width: 450px;
}

/* ================================================================
   7. MOBILE IMAGE WRAPPING
   ================================================================ */

@media (max-width: 767px) {
    /* Stack images rather than float them beside narrow text */
    .img-wrap,
    .img-wrap-right,
    .img-wrap-small,
    .img-wrap-medium,
    .img-wrap-large {
        float: none !important;
        display: block;
        width: 90% !important;
        max-width: 100% !important;
        height: auto;
        margin: 20px auto 25px !important;
    }

    /* Portrait images are deliberately narrower */
    .img-wrap.portrait,
    .img-wrap-right.portrait,
    .img-wrap-small.portrait,
    .img-wrap-medium.portrait,
    .img-wrap-large.portrait {
        width: 70% !important;
        max-width: 300px !important;
    }

    /* Scale nested images to their wrappers */
    .img-wrap img,
    .img-wrap-right img,
    .img-wrap-small img,
    .img-wrap-medium img,
    .img-wrap-large img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}



/* ==========================================
   MARY LO - INTRO HEADING
   ========================================== */

.mary-intro-heading { 
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.4;
    color: #222;
    text-shadow: 1px 1px 1px #aaa;  
     text-align: center;
}     


  
/* ==========================================
   MARY LO - TOP BANNER IMAGE
   ========================================== */

.modern_img_frame.modern_banner_regular {
    width: 720px;
    height: 240px;
    background-position: 0px -1354px;
}   

.modern_img_frame.modern_banner_full, .modern_img_frame.modern_banner_regular, .modern_img_frame.modern_banner_small, .modern_img_frame.modern_square, .shadow_img_frame.shadow_banner_full, .shadow_img_frame.shadow_banner_regular, .shadow_img_frame.shadow_banner_small, .shadow_img_frame.modern_square {
    margin-bottom: 20px;
}


.modern_img_frame, .shadow_img_frame {
    background: url(images/_global/image-frame-sprite.png) 0px 0px no-repeat;
    margin-bottom: 6px;
    position: relative;
}   



/* Align bullet lists with main content */
#content .content-wrap ul {
    padding-left: 25px;
    margin-left: 0;
    list-style-position: outside;
}

#content .content-wrap ul li {
    padding-left: 0;
}

p, pre, ul, ol, dl, dd, blockquote, address, table, fieldset, form {
    margin-bottom: 20px;
}     

.mary-google-map {
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    margin: 25px 0;
}

.mary-google-map iframe {
    display: block;
    width: 100%;
    height: 400px;
}

@media (max-width: 767px) {
    .mary-google-map iframe {
        height: 300px;
    }
}  



/* -----------------------------------------
   MARY LO - HOMEPAGE INTRODUCTION
   Styling closer to original website
----------------------------------------- */

/* Centre content vertically */
.mary-home-panel {
    align-items: center;
}

/* Centre all introductory text */
.mary-home-copy {
    text-align: center;
    align-self: center;
}

/* Original-style heading */
.mary-home-copy h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.3;
    color: #222;
    text-shadow: 1px 1px 1px #aaa;
    text-align: center;
    margin-bottom: 18px;
    white-space: normal;
}

/* Centre paragraphs */
.mary-home-copy p {
    text-align: center;
}

/* Qualifications */
.mary-home-copy p.mary-home-qualifications,
.mary-home-copy p.mary-home-qualifications strong {
    font-size: 14px !important;
    font-weight: 600;
    line-height: 1.4;
    color: #222 !important;
}

.mary-home-copy p.mary-home-qualifications {
    margin-bottom: 25px;
}

/* Main introduction text */
.mary-home-copy p:not(.mary-home-qualifications):not(.mary-home-tagline) {
    color: #333;
}

/* Tagline */
.mary-home-copy p.mary-home-tagline {
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.4;
    color: #444 !important;
    margin-top: 25px;
    margin-bottom: 0;
}

/* Desktop adjustments */
@media (min-width: 992px) {
    .mary-home-copy p.mary-home-tagline {
        white-space: nowrap;
    }
}

/* Tablet and mobile adjustments */
@media (max-width: 991px) {
    .mary-home-copy p.mary-home-tagline {
        white-space: normal;
    }
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .mary-home-copy h1 {
        font-size: 24px;
    }

    .mary-home-copy p.mary-home-qualifications {
        margin-bottom: 20px;
    }

    .mary-home-copy p.mary-home-tagline {
        margin-top: 20px;
    }
}     



/* -----------------------------------------
   MARY LO - COMPACT MOBILE INTRODUCTION
   Mobile only - desktop remains unchanged
----------------------------------------- */

@media (max-width: 767px) {

    /* Reduce space around the introduction */
    .mary-home-hero {
        padding-top: 25px !important;
        padding-bottom: 25px !important;
    }

    /* Compact panel */
    .mary-home-panel {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 22px 15px;
    }

    /* Centre text */
    .mary-home-copy {
        width: 100%;
        text-align: center;
    }

    /* Smaller heading */
    .mary-home-copy h1 {
        font-size: 21px;
        line-height: 1.25;
        margin-bottom: 12px;
    }

   /* Qualifications - mobile */
.mary-home-copy p.mary-home-qualifications,
.mary-home-copy p.mary-home-qualifications strong {
    font-size: 10px !important;
    line-height: 1.35;
}

.mary-home-copy p.mary-home-qualifications {
    margin-bottom: 15px;
}

    /* Main introductory paragraph */
    .mary-home-copy p:not(.mary-home-qualifications):not(.mary-home-tagline) {
        font-size: 12px;
        line-height: 1.45;
        margin-bottom: 12px;
    }

    /* Tagline */
    .mary-home-copy p.mary-home-tagline {
        font-size: 12px !important;
        line-height: 1.35;
        margin-top: 12px;
        margin-bottom: 0;
        white-space: normal;
    }

    /* Smaller photograph */
    .mary-home-portrait {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .mary-home-portrait img {
        display: block;
        width: 100%;
        height: auto;
    }
}