/*-- -------------------------- -->
<---           Hero             -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #hero-1619 {
    padding: var(--sectionPadding);
    /* 200px - 300px - leaving extra space for the navigation */
    padding-top: clamp(12.5rem, 31.95vw, 18.75rem);
    position: relative;
    z-index: 1;
  }
  #hero-1619 .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* 60px - 180px */
    gap: clamp(3.75rem, 13vw, 11.25rem);
  }
  #hero-1619 .cs-content {
    /* set text align to left if content needs to be left aligned */
    text-align: left;
    width: 100%;
    max-width: 48.75rem;
    display: flex;
    flex-direction: column;
    /* centers content horizontally, set to flex-start to left align */
    align-items: flex-start;
  }
  #hero-1619 .cs-topper {
    /* 13px - 16px */
    font-size: clamp(0.8125rem, 1.5vw, 1rem);
    line-height: 1.2em;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    color: var(--platinum);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    position: relative;
  }
  #hero-1619 .cs-chevron {
    --chevronColor: var(--platinum);
    width: 3rem;
    height: auto;
  }
  #hero-1619 .cs-title {
    /* 39px - 61px */
    font-size: clamp(2.4375rem, 6.4vw, 3.8125rem);
    font-weight: 700;
    line-height: 1.2em;
    text-align: inherit;
    max-width: 100%;
    margin: 0 0 2.5rem 0;
    color: #fff;
    position: relative;
  }
  #hero-1619 .cs-text {
    /* 16px - 20px */
    font-size: clamp(1rem, 1.95vw, 1.25rem);
    line-height: 1.5em;
    text-align: inherit;
    width: 100%;
    /* 464px - 622px */
    max-width: clamp(29rem, 60vw, 38.785rem);
    margin: 0 0 2.5rem 0;
    color: #fff;
  }
	#hero-1619 .cs-text a {
		color: #fffbef;
		text-decoration: none;
	}
	#hero-1619 .cs-text a:hover {
		text-decoration: underline;
	}
  #hero-1619 .cs-button-solid {
    font-size: 1rem;
    /* 46px - 56px */
    line-height: clamp(2.875rem, 5.5vw, 3.5rem);
    text-decoration: none;
    font-weight: 700;
    margin: 0;
    color: #fff;
    padding: 0 1.5rem;
    background-color: var(--primary);
    display: inline-block;
    position: relative;
    z-index: 1;
  }
  #hero-1619 .cs-button-solid:before {
    content: '';
    position: absolute;
    display: block;
    height: 100%;
    width: 0%;
    background: #000;
    opacity: 1;
    top: 0;
    left: 0;
    z-index: -1;
    transition: width .3s;
  }
  #hero-1619 .cs-button-solid:hover:before {
    width: 100%;
  }
  #hero-1619 .cs-card-group {
    margin: 0;
    padding: 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    /* 16px - 20px */
    gap: clamp(1rem, 2.3vw, 1.25rem);
  }
  #hero-1619 .cs-item {
    width: 100%;
    text-align: left;
    list-style: none;
    margin: 0;
    /* 24px - 32px */
    padding: clamp(1.5rem, 3vw, 2rem);
    background-color: #fff;
    box-shadow: 0px 12px 80px 0px rgba(26, 26, 26, 0.08);
    /* prevents padding from affecting height and width */
    box-sizing: border-box;
    grid-column: span 12;
    grid-row: span 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    z-index: 1;
  }
  #hero-1619 .cs-icon {
    width: 3rem;
    height: auto;
    margin: 0 0 1.5rem 0;
  }
  #hero-1619 .cs-h3 {
    /* 20px - 25px */
    font-size: clamp(1.25rem, 2.5vw, 1.5625rem);
    line-height: 1.2em;
    font-weight: bold;
    text-align: inherit;
    margin: 0 0 1rem 0;
    color: var(--headerColor);
  }
  #hero-1619 .cs-item-text {
    /* 14px - 16px */
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    line-height: 1.5em;
    max-width: 28.125rem;
    margin: 0;
    padding: 0;
    color: var(--bodyTextColor);
  }
  #hero-1619 .cs-background {
    width: 100%;
    height: 55%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -2;
  }
  #hero-1619 .cs-background:before {
    /* Overlay */
    content: '';
    width: 100%;
    height: 100%;
    background: #111926;
    opacity: .8;
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    z-index: 1;
    /* prevents the cursor from interacting with it */
    pointer-events: none;
  }
  #hero-1619 .cs-background img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    /* makes the top of the image start at the top of the parent */
    object-position: top;
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #hero-1619 {
    padding-bottom: 0;
  }
  #hero-1619 .cs-container {
    align-items: flex-start;
  }
  #hero-1619 .cs-content {
    text-align: left;
    margin-left: 0;
    align-items: flex-start;
  }
  #hero-1619 .cs-item {
    grid-column: span 6;
  }
  #hero-1619 .cs-background {
    height: 87%;
  }
  #hero-1619 .cs-background:before {
    background: linear-gradient(90deg, #111926 21.41%, rgba(17, 25, 38, 0.72) 34.98%, rgba(17, 25, 38, 0) 62.53%);
    opacity: 1;
  }
}
/* Large Desktop - 1300px */
@media only screen and (min-width: 81.25rem) {
  #hero-1619 .cs-item {
    grid-column: span 3;
  }
}
/* Large Desktop Parallax Effect - 100px */
@media only screen and (min-width: 100rem) {
  #hero-1619 .cs-background {
    background: url("/wp-content/uploads/2025/10/boston-electrolysis-waiting-room.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* creates the parallax effect */
    background-attachment: fixed;
  }
  #hero-1619 .cs-background img {
    display: none;
  }
}
                                
/* a11y helper for hidden captions */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Certificates grid overrides */
#hero-1619 .be-cert { 
  padding: clamp(0.75rem, 1.8vw, 1.25rem);
  display: flex; align-items: center; justify-content: center;
  background: #fff;
}

#hero-1619 .be-cert-fig {
  width: 100%;
  margin: 0;
}

#hero-1619 .be-cert-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
  border: 6px solid #f1f1f1;
  outline: 1px solid #ddd;
  /* maintain pleasant ratio if images vary */
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* tighten spacing on very small screens so the grid feels balanced */
@media (max-width: 31.25rem) {
  #hero-1619 .cs-card-group { gap: 0.75rem; }
}

/* put modal above the sticky header */
.be-modal { position: fixed; inset: 0; display: none; z-index: 10001; }
.be-modal.is-open { display: grid; place-items: center; }

/* backdrop */
.be-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(2px);
}

/* dialog */
.be-modal__dialog {
  width: min(94vw, 1100px);
  max-height: 92vh;               /* room for close + caption */
  display: flex; flex-direction: column;
  gap: .75rem;
  padding: .75rem .75rem .6rem;
  background: #0b0b0b;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  position: relative;
}

/* close button */
.be-modal__close {
  position: absolute; top: 6px; right: 10px;
  border: 0; background: transparent; color: #fff;
  font-size: 2rem; line-height: 1; cursor: pointer;
}
.be-modal__close:hover { color: var(--primary); }

/* figure and viewport */
.be-modal__figure { 
  margin: 0;
  display: grid; grid-template-rows: 1fr auto; gap: .5rem;
  min-height: 0; /* allow grid to shrink */
}

.be-modal__viewport {
  min-height: 0; /* critical so child can shrink */
  overflow: auto;               /* scroll if image is taller */
  display: flex; align-items: center; justify-content: center;
  background: #111;
  border-radius: 10px;
  outline: 1px solid #ddd;      /* thin outer line */
  padding: 0;                   /* frame only, no extra padding */
}

/* image scales without cropping */
#be-modal-img {
  max-width: 100%;
  height: auto;
  max-height: 80vh;  /* ensures we never exceed viewport height */
  display: block;
}

/* caption */
.be-modal__caption {
  color: #fff;
  font-weight: 600;
  letter-spacing: .005em;
  text-align: left;
  padding: .125rem .125rem 0;
}

/* hint for clickable thumbs */
.be-cert-img { cursor: zoom-in; }

/* prevent page scroll when open */
body.modal-open { overflow: hidden; }

/* small screens: slightly tighter edges */
@media (max-width: 420px) {
  .be-modal__dialog { width: 96vw; max-height: 90vh; }
  #be-modal-img { max-height: 78vh; }
}

/* small credential line under the H1 */
.be-subtitle{
  /* 16px → 20px fluid */
  font-size: clamp(1rem, 1.9vw, 1.25rem);
  line-height: 1.5;
  color: #fff;
  opacity: .92;
  margin: -1rem 0 2rem;  /* tucks it nearer the H1 */
  font-weight: 600;
  font-family: var(--font-sans); /* keep body/sans for contrast with serif H1 */
}

