/*
 Theme Name:   Divi Child
 Theme URI:    https://example.com
 Description:  Child theme for Divi
 Author:       Activate Health
 Author URI:   https://activatehealth.com
 Template:     Divi
 Version:      1.0.0
*/

/* Import parent theme styles */
/*@import url("../Divi/style.css");*/

/* === Custom styles go below === */

/*--------Custom Fonts****************************/
/* -------- Custom BrandonText Fonts -------- */
/* Hide slider text until Divi JS initializes */
#homepage-slider-brandon .et_pb_slide .et_pb_slide_description {
  visibility: hidden;
}

/* Once slider JS has run, Divi adds .et_pb_slider_active to the active slide */
#homepage-slider-brandon .et_pb_slide.et-pb-active-slide .et_pb_slide_description {
  visibility: visible;
}

/* Hide all slide backgrounds until Divi marks them active */
#homepage-slider-brandon .et_pb_slide {
  visibility: hidden;
}

#homepage-slider-brandon .et_pb_slide.et-pb-active-slide {
  visibility: visible;
}

/* Freeze slider height so the background doesn't jump on init */
#homepage-slider-brandon,
#homepage-slider-brandon .et_pb_slides,
#homepage-slider-brandon .et_pb_slide {
  height: 880px !important;   /* fixed height instead of min-height */
}

#homepage-slider-brandon .et_pb_slides {
  overflow: hidden;           /* hide any off-canvas slide bits */
}

/* If parallax/transform is toggled on anywhere, neutralize it */
#homepage-slider-brandon .et_parallax_bg {
  transform: none !important;
  background-attachment: scroll !important;
}

/*
@font-face {
  font-family: "BrandonText";
  src: url("fonts/brandon/BrandonText-Regular.woff2") format("woff2"),
       url("fonts/brandon/BrandonText-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "BrandonText";
  src: url("fonts/brandon/BrandonText-Bold.woff2") format("woff2"),
       url("fonts/brandon/BrandonText-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}
*/

/*** New Homepage Slider ***/
#homepage-slider-brandon .ld-slider-title-font,
#homepage-slider-brandon .ld-slider-body-font,
#homepage-slider-brandon .ld-slider-title-font * ,
#homepage-slider-brandon .ld-slider-body-font * {
  font-family:"BrandonText",Arial,sans-serif;
}

.ld-slider-title-font {
    font-family: "BrandonText", Arial, sans-serif;
    font-size: 4rem;
    line-height: 1.5;
    font-weight: 700;      /* Will call Bold if you uploaded it */
    font-style: normal;
    letter-spacing: 0.5px;
    text-transform: none;
    text-decoration: none;
}
.ld-slider-body-font {
    color: #000;
    font-family: "BrandonText", Arial, sans-serif;
    font-size: 4rem;
    line-height: 1.5;
    font-weight: 400;      /* Regular weight */
    font-style: normal;
    letter-spacing: 0.5px;
    text-transform: none;
    text-decoration: none;
}
/* Flex-center vertically, keep left-aligned */
#homepage-slider-brandon .et_pb_slide {
  min-height: 85vh; /* take up 90% of viewport height */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
}

/* Let the text box use full width, then inset with padding */
#homepage-slider-brandon .et_pb_slide .et_pb_slide_description {
  width: 100%;
  max-width: none !important;   /* remove caps that force early wrap */
  box-sizing: border-box;       /* include padding in the width */
  padding-left: 12%;            /* set your 10–15% here */
  padding-right: 1%;            /* add some right breathing room */
  margin: 0;
  text-align: left;
}

/* === Desktop (≥981px) === */
#homepage-slider-brandon .et_pb_slide .et_pb_slide_description h1,
#homepage-slider-brandon .et_pb_slide .et_pb_slide_description h2 {
  font-size: 4rem;   /* large headings */
  line-height: 1.5;
}

#homepage-slider-brandon .et_pb_slide .et_pb_slide_description p {
  font-size: 4rem; /* body text */
  line-height: 1.5;
}

/* === Tablet (768px – 980px) === */
@media (max-width: 980px) and (min-width: 768px) {
  #homepage-slider-brandon .et_pb_slide .et_pb_slide_description h1,
  #homepage-slider-brandon .et_pb_slide .et_pb_slide_description h2 {
    font-size: 4rem;
    line-height: 1.5;
  }

  #homepage-slider-brandon .et_pb_slide .et_pb_slide_description p {
    font-size: 4rem;
    line-height: 1.5;
  }
}

/* === Phone (≤767) === */
@media only screen and (max-width:767px){
  /* Titles */
  .ld-slider-title-font,
  .ld-slider-title-font h1,
  .ld-slider-title-font h2,
  .ld-slider-title-font .et_pb_slide_title {
    font-size: 3rem !important;
    line-height: 1.35 !important;
  }
  /* Body */
  .ld-slider-body-font,
  .ld-slider-body-font p,
  .ld-slider-body-font .et_pb_slide_content {
    font-size: 3rem !important;
    line-height: 1.35 !important;
  }
}
