/*
Theme Name: Betheme Child
Theme URI: https://themes.muffingroup.com/betheme
Author: Muffin group
Author URI: https://muffingroup.com
Description: Child Theme for Betheme
Template: betheme
Version: 2.0.1
*/

/* =====================================================================
   CEM Solutions Group — landing page body (front page, ID 6).
   Built with NATIVE WPBakery elements; this file styles that markup.
   Header & footer come from the theme (not styled here).
   Scope: (+ #Content to beat Betheme's ID-scoped rules).
   ===================================================================== */

:root {
  --cem-teal:        #0F766E;
  --cem-teal-dark:   #0a4f49;
  --cem-orange:      #F97316;
  --cem-orange-hover:#ea640c;
  --cem-teal-bright: #7fe3d6;
  --cem-teal-tint:   #e6f4f2;
  --cem-ink:         #1A1A1A;
  --cem-body:        #4a4a4a;
  --cem-card-text:   #555555;
  --cem-muted:       #666666;
  --cem-bg-alt:      #F7F7F7;
  --cem-border:      #ececec;
  --cem-divider:     #e6e6e6;
  --cem-font-head: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --cem-font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --cem-container: 1244px;
  --cem-pad: 24px;
}

html { scroll-behavior: smooth; }

/* header */

#Header .top_bar_left, .header-classic #Top_bar, .header-plain #Top_bar, .header-stack #Top_bar, .header-split #Top_bar, .header-shop #Top_bar, .header-shop-split #Top_bar, .header-fixed #Top_bar, .header-below #Top_bar, #Header_creative, #Top_bar #menu, .sticky-tb-color #Top_bar.is-sticky {
    background-color: #11766e;
}

#Top_bar #logo img {
    max-height: 30px!important;
}

.header-fixed #Top_bar {
    opacity: 1!important;
}

.header-fixed #Top_bar .menu > li > a {
    padding: 18px 0px!important;
}

#Top_bar #logo, .header-fixed #Top_bar #logo, .header-plain #Top_bar #logo, .header-transparent #Top_bar #logo {
    height: 44px;
    line-height: 44px;
}

body:not(.template-slider) #Header {
    min-height: 75px!important;
}

.btn-menu a span{
    /* display: inline-flex; */
    /* align-items: center; */
    /* gap: 9px; */
    background: rgb(249, 115, 22);
    color: rgb(255, 255, 255);
    font-family: "Source Sans 3", sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    padding: 6px 20px!important;
    border-width: medium;
    border-style: none;
    border-color: currentcolor;
    border-image: initial;
    border-radius: 9px;
    cursor: pointer;
    box-shadow: rgba(249, 115, 22, 0.32) 0px 4px 14px;
    transition: background 0.18s, transform 0.18s;
    margin-top:-5px;
}

#Top_bar .menu > li > a, #Top_bar #menu ul li.submenu .menu-toggle {
    color: #fff;
}

.btn-menu {
    margin-left: 14px!important;
}

#Top_bar .menu > li.current-menu-item > a, #Top_bar .menu > li.current_page_item > a, #Top_bar .menu > li.current-menu-parent > a, #Top_bar .menu > li.current-page-parent > a, #Top_bar .menu > li.current-menu-ancestor > a, #Top_bar .menu > li.current-page-ancestor > a, #Top_bar .menu > li.current_page_ancestor > a, #Top_bar .menu > li.hover > a {
    color: #ffb886;
}

@media only screen and (min-width: 960px) and (max-width: 1239px) {


body:not(.template-slider) #Header {
    min-height: 74px!important;
}

#Top_bar #logo, .header-fixed #Top_bar #logo, .header-plain #Top_bar #logo, .header-transparent #Top_bar #logo {
    height: 34px;
    line-height: 34px;
}

#Top_bar #logo img {
    max-height: 25px !important;
}

#Top_bar .menu > li > a span:not(.description) {
    padding: 0 18px;
}

.header-fixed #Top_bar .menu > li > a {
    padding: 18px 0px !important;
}

#Top_bar .container {
        max-width: 1440px;
    }
    
}


@media only screen and (max-width: 959px) {


body:not(.template-slider) #Header {
    min-height: 44px!important;
}

#Top_bar #logo, .header-fixed #Top_bar #logo, .header-plain #Top_bar #logo, .header-transparent #Top_bar #logo {
    height: 34px;
    line-height: 54px;
}

#Top_bar #logo img {
    max-height: 18px !important;
}

#Top_bar .menu > li > a span:not(.description) {
    padding: 0 8px;
}

.header-fixed #Top_bar .menu > li > a {
    padding: 15px 0px !important;
    padding-top: 28px!important;
}

#Top_bar .container {
        max-width: 1440px;
    }
    
}






@media only screen and (max-width: 767px) {


#Top_bar {
    background:#11766e!important;
}


#Top_bar a.responsive-menu-toggle i {
    font-size: 36px;
    color: #fff!important;
}

#Top_bar {
    border-bottom: solid 0px!important;
    box-shadow: 0px 0px 15px #0000005e;
}

#Side_slide {
    background:#11766e!important;
}


#Side_slide #menu ul li {
    margin-right: 0px!important;
    font-size: 20px!important;
    border-top: solid 0px!important;
}

#Side_slide #menu ul li a{
    margin-right: 0px!important;
    padding:15px 20px;
    font-size: 20px!important;
    color:#fff!important;
}

#Side_slide, #Side_slide #menu ul li.submenu .menu-toggle, #Side_slide .search-wrapper input.field, #Side_slide a:not(.button) {
    color: #fff!important;
}




}



/* END - header */


div#top {
    height: 92vh;
}

div#top:before {content:'';opacity:0.15;width:400px;height:405px;display:block;position:absolute;background-image: url('/wp-content/themes/betheme-child/assets/hero.svg')!important;background-size:cover;}

/* ---- base typography for the page body (beats Betheme element rules) ---- */
#Content { font-family: var(--cem-font-body); color: var(--cem-ink); }
#Content :is(p, li, a, span, div) { font-family: var(--cem-font-body); }
#Content :is(h1, h2, h3, h4, .cem-monogram, .cem-about-name) { font-family: var(--cem-font-head); }

/* reset paragraph margins inside WPBakery text blocks (we control spacing) */
#Content .wpb_text_column p { margin: 0; }
#Content .wpb_text_column p + p { margin-top: 1em; }

/* ---- section shells (rows are stretched full-width by WPBakery JS) ---- */
.cem-section { scroll-margin-top: 100px; }
.cem-section--light { background: var(--cem-bg-alt); }
.cem-section--white { background: #fff; }

/* single-column sections: constrain content to the 1160 container */
.cem-wrap > .vc_column-inner {
  max-width: var(--cem-container); margin: 0 auto; width: 100%;
  padding: clamp(64px, 9vw, 112px) var(--cem-pad);
}

/* ---- eyebrow / section heads ---- */
#Content .cem-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--cem-teal); margin: 0 0 14px; }
#Content .cem-eyebrow--bright { letter-spacing: 1.8px; color: var(--cem-teal-bright); }
#Content .cem-section-title { font-weight: 700; font-size: clamp(28px, 4vw, 42px); line-height: 1.15; color: var(--cem-ink); margin: 0 0 18px; max-width: 640px; text-wrap: balance; }
#Content .cem-section-intro { font-size: 18px; line-height: 1.7; color: var(--cem-body); max-width: 620px; margin: 0 0 52px; }
#Content .cem-section-intro p { line-height: 1.7; }

/* ---- buttons (native vc_btn; we restyle the <a>) ---- */
#Content .cem-btn { margin: 0; }
#Content .cem-btn .vc_btn3,
#Content .cem-btn .vc_btn3:hover,
#Content .cem-btn .vc_btn3:focus {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cem-orange); color: #fff; border: none;
  font-family: var(--cem-font-body); font-weight: 600; line-height: 1;
  text-decoration: none; transition: background .18s ease, transform .18s ease;
}
#Content .cem-btn .vc_btn3:hover { background: var(--cem-orange-hover); transform: translateY(-1px); }
#Content .cem-btn--lg .vc_btn3 { font-size: 18px; padding: 18px 32px; border-radius: 10px; box-shadow: 0 8px 22px rgba(249,115,22,0.34); }
#Content .cem-btn--lg .vc_btn3::after {
  content: ""; display: inline-block; width: 19px; height: 19px; margin-left: 11px; vertical-align: middle;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ===== HERO ===== */
.cem-hero { background: var(--cem-teal); }
/* remove WPBakery/Betheme row padding so the photo bleeds to the edge and the
   text aligns to the 1160 container (overrides an unavoidable theme row rule) */
.cem-hero { padding-left: 0 !important; padding-right: 0 !important; }
.cem-hero.vc_row-flex > .cem-hero-text,
.cem-hero.vc_row-flex > .cem-hero-media { display: flex; }
.cem-hero-text > .vc_column-inner {
  width: 100%; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(64px,9vw,112px) clamp(28px,3vw,56px) clamp(64px,9vw,112px)
           max(var(--cem-pad), calc((100vw - var(--cem-container)) / 2 + var(--cem-pad)));
}
#Content .cem-hero-title { color: #fff; font-weight: 700; font-size: clamp(32px, 4.6vw, 58px); line-height: 1.08; letter-spacing: -0.5px; margin: 0 0 26px; max-width: 600px; text-wrap: balance; }
#Content .cem-hero-lead { font-size: clamp(18px, 2.1vw, 21px); line-height: 1.6; color: rgba(255,255,255,0.9); margin: 0 0 38px; max-width: 560px; }
#Content .cem-hero-lead p { line-height: 1.6; }
#Content .cem-hero-sub { font-size: 15px; font-weight: 600; letter-spacing: 0.3px; color: rgba(255,255,255,0.78); margin: 40px 0 0; }
.cem-hero-text .cem-btn { align-self: flex-start; }
/* hero image fills the right column edge-to-edge */
.cem-hero-media > .vc_column-inner,
.cem-hero-media .wpb_wrapper,
.cem-hero-media .cem-hero-img,
.cem-hero-media .vc_figure,
.cem-hero-media .vc_single_image-wrapper { height: 100%; margin: 0; padding: 0; }
.cem-hero-media { min-height: clamp(380px, 52vh, 640px); }
.cem-hero-media .vc_figure { display: block; }
.cem-hero-media .vc_single_image-wrapper { display: block; border: none; }
.cem-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; border-radius: 0; }

/* ===== CARD GRID (Who We Serve + What We Do) ===== */
.cem-cards {display: flex;flex-wrap: wrap;justify-content: space-between;gap: 20px;}
.cem-cards > .cem-card {width: 22.5%;display: flex;float: none;}
.cem-card > .vc_column-inner { width: 100%; background: #fff; border: 1px solid var(--cem-border); border-radius: 14px; padding: 30px; }
/* icon tile rendered from the SVG assets */
.cem-card > .vc_column-inner::before {
  content: ""; display: block; width: 52px; height: 52px; border-radius: 12px;
  background-color: var(--cem-teal-tint); background-repeat: no-repeat; background-position: center; background-size: 26px 26px;
  margin-bottom: 20px;
}
.cem-card--heart    > .vc_column-inner::before { background-image: url(images/icons/heart.svg); }
.cem-card--pulse    > .vc_column-inner::before { background-image: url(images/icons/pulse.svg); }
.cem-card--bank     > .vc_column-inner::before { background-image: url(images/icons/bank.svg); }
.cem-card--building > .vc_column-inner::before { background-image: url(images/icons/building.svg); }
.cem-card--compass  > .vc_column-inner::before { background-image: url(images/icons/compass.svg); }
.cem-card--server   > .vc_column-inner::before { background-image: url(images/icons/server.svg); }
.cem-card--shield   > .vc_column-inner::before { background-image: url(images/icons/shield.svg); }
.cem-card--monitor  > .vc_column-inner::before { background-image: url(images/icons/monitor.svg); }
#Content .cem-card-title { font-weight: 700; font-size: 21px; color: var(--cem-ink); margin: 0 0 10px; line-height:26px;}
#Content .cem-card-text { font-size: 16px; line-height: 1.65; color: var(--cem-card-text); }
#Content .cem-card-text p { line-height: 1.65; }

#Content .cem-card-text {margin-bottom: 0px;}

/* services cards: smaller icon + title */
.cem-services .cem-card > .vc_column-inner::before { width: 48px; height: 48px; border-radius: 11px; background-size: 24px 24px; margin-bottom: 18px; }
#Content .cem-services .cem-card-title { font-size: 20px; }

/* ===== ABOUT ===== */
.cem-about-grid { display: flex; flex-wrap: wrap; align-items: flex-start; }
.cem-about-card { width: 33.33%; }
.cem-about-body { width: 66.66%; }
#Content .cem-monogram { width: 96px; height: 96px; border-radius: 18px; background: var(--cem-teal); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 38px; letter-spacing: 1px; margin: 0 0 24px; text-align: center; }
#Content .cem-about-name { font-weight: 700; font-size: 24px; color: var(--cem-ink); margin: 0 0 4px; }
#Content .cem-about-role { font-size: 16px; font-weight: 600; color: var(--cem-teal); margin: 0 0 22px; }
#Content .cem-about-bio { font-size: 16px; line-height: 1.6; color: var(--cem-muted); }
#Content .cem-about-bio::before { content: ""; display: block; width: 200px; max-width: 100%; height: 1px; background: var(--cem-divider); margin: 0 0 22px; }
#Content .cem-about-lead { font-family: var(--cem-font-head); font-size: clamp(20px, 2.3vw, 26px); line-height: 1.5; color: var(--cem-ink); margin: 0 0 26px; }
#Content .cem-about-para { font-size: 18px; line-height: 1.75; color: var(--cem-body); margin: 0 0 22px; }
#Content .cem-about-para:last-of-type { margin-bottom: 0; }

/* ===== CLOSING CTA ===== */
.cem-cta { background: linear-gradient(140deg, var(--cem-teal) 0%, var(--cem-teal-dark) 100%); }
.cem-cta-wrap > .vc_column-inner { max-width: 820px; margin: 0 auto; width: 100%; padding: clamp(72px,10vw,120px) var(--cem-pad); text-align: center; }
#Content .cem-cta-title { color: #fff; font-weight: 700; font-size: clamp(28px, 4.4vw, 46px); line-height: 1.2; margin: 0 0 34px; text-wrap: balance; }
.cem-cta-wrap .cem-btn { display: inline-block; }


.cem-card:hover {
    box-shadow: 0px 0px 25px #f9731561;
    margin-top:-10px;
    margin-bottom:10px;
}

.cem-card {
    border-radius:15px;
    cursor:pointer!important;
    transition:0.35s all!important;
}

.hide{display:none!important;}

/* ===== Responsive ===== */
@media (max-width: 959px) {

  /*
  .cem-cards > .cem-card { width: 50%; }
  */

.cem-cards > .cem-card {
    width: 100%;
    margin-left: 0px;
}

.cem-card > .vc_column-inner {
    width: 95%;
}

}

@media (max-width: 767px) {
  .cem-cards > .cem-card { width: 100%; }
  .cem-about-card,
  .cem-about-body { width: 100%; }
  .cem-hero-text > .vc_column-inner { padding-left: var(--cem-pad); padding-right: var(--cem-pad); }
}

div#contact:before {content:'';opacity:0.15;;width:350px;height:285px;display:block;position:absolute;background-image: url('/wp-content/themes/betheme-child/assets/footer.svg')!important;background-size:cover;bottom:0;left:0;}

/* Footer */

footer#Footer {
    background-color: rgb(10, 63, 58)!important;
}

.has_content .the_content_wrapper {
    margin-bottom: 0px!important;
}

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55); 
}

.copyright a{
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55)!important; 
}

#Footer .footer_copy .one {
    padding-top: 15px;
    margin-bottom: 5px;
}

aside#block-3 {
    display: flex;
    justify-content: flex-end;
}

.footer-text {
    display: flex;
    gap: 20px;
    font-family:var(--cem-font-body)!important;
    letter-spacing:0.4px;
}

.footer-text span {
    color:rgba(255, 255, 255, 0.82);
}

.footer-text a {
    color: rgb(127, 227, 214)!important;
    text-decoration: none!important;
    font-weight: 600!important;
}

@media (max-width: 767px) {

aside#block-3 {
    display: flex;
    justify-content: center;
}

img.wp-image-11 {
    margin: auto;
    display: block;
}

}

/* END - Footer */



/* form */


input#gform_submit_button_1 {
    margin-top: 4px;
    background: rgb(249, 115, 22);
    color: rgb(255, 255, 255);
    font-family: "Source Sans 3", sans-serif;
    font-weight: 600;
    font-size: 17px;
    padding: 15px 26px;
    border-width: medium;
    border-style: none;
    border-color: currentcolor;
    border-image: initial;
    border-radius: 9px;
    cursor: pointer;
    box-shadow: rgba(249, 115, 22, 0.3) 0px 6px 18px;
    transition: background 0.18s;
}

.gform-theme--foundation .gfield .ginput_password.large, .gform-theme--foundation .gfield input.large, .gform-theme--foundation .gfield select.large,.gform-theme--foundation .gfield textarea.large {
    font-family: "Source Sans 3", sans-serif;
    font-size: 18px;
    font-weight: 400;
    padding: 13px 14px;
    border: 1px solid rgb(215, 215, 215);
    border-radius: 9px;
    color: rgb(26, 26, 26);
    width: 100%;
    min-height: 36px!important;
    height: 55px!important;
}

.gform-theme--foundation .gfield textarea.large {
    min-block-size: 11rem!important;
}

.gform-theme--foundation .gform_fields {
    row-gap: 22px;
}


/* END - form */

/* =====================================================================
   Contact modal (global) — opened by any ".open-contact-us-modal" link.
   Markup is rendered in the footer (functions.php) and holds a Gravity Form.
   ===================================================================== */
.cem-modal { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(13,30,28,0.55); }
.cem-modal.is-open { display: flex; }
.cem-modal-dialog { position: relative; width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto; background: #fff; border-radius: 18px; padding: clamp(28px,4vw,40px); box-shadow: 0 30px 70px rgba(0,0,0,0.35); }
.cem-modal-close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border: none; border-radius: 9px; background: #f2f2f2; color: #555; cursor: pointer; display: grid; place-items: center; }
.cem-modal-close:hover { background: #e7e7e7; }
.cem-modal-close svg { width: 18px; height: 18px; }
.cem-modal-title { font-family: var(--cem-font-head); font-weight: 700; font-size: 26px; line-height: 1.2; color: var(--cem-ink); margin: 0 0 8px; }
.cem-modal-desc { font-size: 16px; line-height: 1.6; color: var(--cem-muted); margin: 0 0 24px; }
.cem-modal-form { margin: 0; }
