/*
 Theme Name:   Cloe Brooks Child Theme
 Theme URI:    http://cloe-brooks.themerex.net
 Description:  Cloe Brooks Child Theme
 Author:       ThemeREX
 Author URI:   http://themerex.net
 Template:     cloe-brooks
 Version:      1.0
 Tags:         flexible-header, custom-background, custom-colors, custom-header, custom-menu, featured-image-header, featured-images, full-width-template, microformats, post-formats, theme-options, threaded-comments, translation-ready
 Text Domain:  cloe-brooks
*/

html {
    font-size: 16px;
}

.text-white {
	color: #FFFFFF;
}

/* Top bar  */
.al-top-bar.sc_layouts_row.sc_layouts_row_type_narrow, 
[class*="scheme_"].al-top-bar.sc_layouts_row.sc_layouts_row_type_narrow {
    --theme-color-alter_text: #ffffff;
    --theme-color-alter_hover: #e2e2e2;
}

/* Footer */
.footer_wrap [class*="scheme_"].sc_layouts_row.sc_layouts_row_type_compact .sc_layouts_item a:not(.sc_button):not([class*="button"]) ,
.footer_wrap .sc_layouts_row_type_compact .sc_layouts_item, 
.footer_wrap [class*="scheme_"].sc_layouts_row_type_compact .sc_layouts_item{
    --theme-color-text: #ffffff;
}

/* Blockquotes */
blockquote {
  position: relative;
  overflow: hidden;
  border: none;
  font-size: 1.1em;
  line-height: 1.55;
  font-style: italic;
  font-weight: 300;
}

blockquote:not(.has-text-align-right):not(.has-text-align-center) {
  text-align: left;
}

blockquote,
blockquote[class*="wp-block-quote"][class*="is-"],
.wp-block-quote:not(.is-large):not(.is-style-large),
.wp-block-quote.is-large:not(.is-style-plain),
.wp-block-quote.is-style-large:not(.is-style-plain),
.wp-block-freeform.block-library-rich-text__tinymce blockquote {
  padding: 1.4em 1.6em;
  -webkit-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}

blockquote[class*="wp-block-quote"][class*="is-style-large"],
blockquote[class*="wp-block-quote"][class*="is-large"] {
  margin: 0 0 2em 0;
}

.wp-block-pullquote.is-style-solid-color > blockquote,
.wp-block-column blockquote {
  margin: 0 !important;
  max-width: none !important;
}

.blog_mode_post blockquote,
.blog_mode_page blockquote {
  margin: 1.2em 0;
}

.blog_mode_post .comments_list blockquote,
.blog_mode_page .comments_list blockquote {
  margin: 1.5em 0;
}

blockquote:after,
q:before, q:after {
  content: "";
}

blockquote, q {
  quotes: "" "";
}

blockquote p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  font-weight: 300;
}

.wp-block-pullquote.is-style-solid-color blockquote p {
  line-height: 1.5;
}

blockquote.has-text-align-right > .wp-block-quote__citation,
blockquote.has-text-align-right > cite,
blockquote.has-text-align-center > .wp-block-quote__citation,
blockquote.has-text-align-center > cite {
  display: inline-block;
}

.wp-block-quote.is-style-large > cite {
  padding-left: 0;
}
.wp-block-quote.is-style-large > cite:before {
  display: none;
}

/* Citation */
blockquote > cite, blockquote > p > cite,
blockquote > .wp-block-pullquote__citation,
.wp-block-quote .wp-block-quote__citation {
  display: block;
  font-size: 0.95em;
  line-height: 1.4;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  margin-top: 0.7em;
  margin-bottom: 0;
  padding-left: 36px;
  position: relative;
  text-transform: none;
}
/* Citation line */
blockquote > cite:before, blockquote > p > cite:before,
blockquote > .wp-block-pullquote__citation:before,
.wp-block-quote .wp-block-quote__citation:before {
  background-color: currentColor;
  content: "";
  display: block;
  height: 2px;
  left: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
}

blockquote .block-library-pullquote__content {
  margin-bottom: 1.2em;
}

.wp-block-quote.is-large .wp-block-quote__citation {
  text-align: right;
  font-size: inherit;
}

.wp-block-pullquote {
  padding: 0;
  border-width: 0;
}

.wp-block-pullquote[class*="align"] blockquote {
  margin-left: 0;
  margin-right: 0;
}

section > blockquote:not(.has-background):not(.is-style-plain),
div:not(.has-background) > blockquote:not(.has-background):not(.is-style-plain),
figure:not(.has-background) > blockquote:not(.has-background):not(.is-style-plain) {
  background-color: var(--theme-color-alter_bg_color);
}

.wp-block-quote .wp-block-quote__citation {
  color: var(--theme-color-alter_dark) !important;
}

section > blockquote:not(.has-text-color):not(.is-style-plain),
section > blockquote:not(.has-text-color):not(.is-style-plain) p,
div:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain),
div:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain) p,
figure:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain),
figure:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain) p {
  color: var(--theme-color-alter_dark) !important;
}
section > blockquote:not(.has-text-color):not(.is-style-plain) a,
div:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain) a,
figure:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain) a {
  color: var(--theme-color-text_link);
}
section > blockquote:not(.has-text-color):not(.is-style-plain) a:hover,
div:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain) a:hover,
figure:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain) a:hover {
  color: var(--theme-color-text_hover);
}
section > blockquote:not(.has-text-color):not(.is-style-plain) dt,
section > blockquote:not(.has-text-color):not(.is-style-plain) b,
section > blockquote:not(.has-text-color):not(.is-style-plain) strong,
section > blockquote:not(.has-text-color):not(.is-style-plain) i,
section > blockquote:not(.has-text-color):not(.is-style-plain) em,
section > blockquote:not(.has-text-color):not(.is-style-plain) mark,
section > blockquote:not(.has-text-color):not(.is-style-plain) ins,
div:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain) dt,
div:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain) b,
div:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain) strong,
div:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain) i,
div:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain) em,
div:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain) mark,
div:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain) ins,
figure:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain) dt,
figure:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain) b,
figure:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain) strong,
figure:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain) i,
figure:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain) em,
figure:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain) mark,
figure:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain) ins {
  color: var(--theme-color-alter_dark);
}
section > blockquote:not(.has-text-color):not(.is-style-plain) s,
section > blockquote:not(.has-text-color):not(.is-style-plain) strike,
section > blockquote:not(.has-text-color):not(.is-style-plain) del,
div:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain) s,
div:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain) strike,
div:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain) del,
figure:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain) s,
figure:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain) strike,
figure:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain) del {
  color: var(--theme-color-alter_light);
}
section > blockquote:not(.has-text-color):not(.is-style-plain) code,
div:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain) code,
figure:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain) code {
  color: var(--theme-color-text_dark);
  background-color: var(--theme-color-bg_color);
  border-color: var(--theme-color-bd_color);
}
section > blockquote:not(.has-text-color):not(.is-style-plain):not([class*="trx_addons_"]) > cite:before, section > blockquote:not(.has-text-color):not(.is-style-plain):not([class*="trx_addons_"]) > p > cite:before, section > blockquote:not(.has-text-color):not(.is-style-plain):not([class*="trx_addons_"]) > .wp-block-pullquote__citation:before, section > blockquote:not(.has-text-color):not(.is-style-plain):not([class*="trx_addons_"]) .wp-block-quote__citation:before,
div:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain):not([class*="trx_addons_"]) > cite:before,
div:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain):not([class*="trx_addons_"]) > p > cite:before,
div:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain):not([class*="trx_addons_"]) > .wp-block-pullquote__citation:before,
div:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain):not([class*="trx_addons_"]) .wp-block-quote__citation:before,
figure:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain):not([class*="trx_addons_"]) > cite:before,
figure:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain):not([class*="trx_addons_"]) > p > cite:before,
figure:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain):not([class*="trx_addons_"]) > .wp-block-pullquote__citation:before,
figure:not(.has-text-color) > blockquote:not(.has-text-color):not(.is-style-plain):not([class*="trx_addons_"]) .wp-block-quote__citation:before {
  background-color: var(--theme-color-alter_link);
}

[class*="type-cpt_"] [class*="_page_content"] blockquote {
  margin-left: 0;
  margin-right: 0;
}

/* Services Page
------------------------------------------------------------ */
.erm-service-section .erm-service-img-left {
    float: left;
    width: 250px;
    height: 400px;
    margin-right: 30px;
    
    shape-outside: polygon(0 0, 100% 0, 70% 100%, 0% 100%);
    clip-path: polygon(0 0, 100% 0, 70% 100%, 0% 100%);
    object-fit: fill;
}

.erm-service-img-right {
    float: right;
    width: 250px;
    height: 400px;
    margin-left: 30px;
    margin-bottom: 20px;
    shape-outside: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
    
    shape-margin: 20px;
    object-fit: fill;
}

.erm-service-section .erm-service-image-text ol,
.erm-service-section .erm-service-image-text ul{
    list-style-position: inside;
}

/* About Page
------------------------------------------------------------ */
.page .erm-about-img-right {
    float: right !important;
    width: 180px;         
    height: 270px;        
    object-fit: cover;    
    object-position: top; 
    margin-left: 30px !important;
    margin-bottom: 15px !important;    
    border-radius: 40% 60% 40% 60% / 60% 40% 60% 40%;
    shape-outside: inset(0% 0% 0% 0% round 40% 60% 40% 60% / 60% 40% 60% 40%);
    shape-margin: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    border: 4px solid #fff;
    object-fit: cover;
}

@media (max-width: 767px) {
    .page .erm-about-img-right {
        float: none !important;
        display: block;
        margin: 0 auto 25px auto !important;
        shape-outside: none;
        width: 200px;
    }
}

/* Help phone lines Page
------------------------------------------------------------ */
ul.al-help-phones-list {
    list-style: none;
    padding-left: 2.5em;
    margin: 0;
}

.al-help-phones-list li {
    position: relative;
    margin-bottom: 0.95em;
    line-height: 1.4;
}

.al-help-phones-list li::before {
    content: '\e836';
    font-family: "fontello";
    position: absolute;
    left: -2.5em;
    top: 0em;
    width: 1.8em;
    height: 1.8em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    line-height: 1;
    color: var(--theme-color-text_dark);
    background-color: var(--theme-color-alter_bg_hover);
    border-radius: 50%;
}

/* sticky image */
/* Make the column sticky */
.al-sticky-image-column {
    position: sticky;
    top: 50px;
    align-self: flex-start;
}

/* Ensure parent containers don't break sticky */
.al-sticky-image-column,
.al-sticky-image-column > .elementor-widget-wrap {
    overflow: visible;
}

@media (max-width: 767px) {
    .al-sticky-image-column {
        position: static;
    }
}


/* Consent Pages
------------------------------------------------------------ */
body.page-template-page-consent .page_content_wrap {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

body.page-template-page-consent .al-consent-print-area h1 {
	font-size: var(--theme-font-h3_font-size, 2.33em);
}

@media print {
    @page {
        size: A4;
        margin: 2cm;
    }

    /* Hide everything by default */
    body.page-template-page-consent * {
        visibility: hidden;
    }

    /* Remove UI elements completely */
    body.page-template-page-consent header,
    body.page-template-page-consent .menu_mobile_overlay,
    body.page-template-page-consent .menu_mobile,
    body.page-template-page-consent footer,
    #al-consent-print,
    #al-consent-download {
        display: none !important;
    }

    /* Ensure full-width content */
    body.page-template-page-consent .content_wrap {
        width: 100%;
    }
    
    body.page-template-page-consent .page_content_wrap {
        padding-top: 0;
        padding-bottom: 0;
    }

    /* Show only consent area */
    body.page-template-page-consent .al-consent-print-area,
    body.page-template-page-consent .al-consent-print-area * {
        visibility: visible;
    }

    /* Position consent content properly */
    body.page-template-page-consent .al-consent-print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }

    /* Typography for print */
    body.page-template-page-consent .al-consent-print-area h1 {
        font-size: 14pt;
        line-height: 1.5;
        font-family: "Times New Roman", Times, "Liberation Serif", serif;
        color: #000;
        font-weight: 700;
        margin-bottom: 12pt;
    }

    body.page-template-page-consent .al-consent-print-area p {
        font-size: 12pt;
        line-height: 1.4;
        margin: 0 0 12pt 0;
        font-family: "Times New Roman", Times, "Liberation Serif", serif;
        color: #000;
    }
}
