
/* HCC Responsive Screen Guard v1.0.2 */

html,
body.hcc-rg-main {
  max-width: 100%;
  overflow-x: clip !important;
}

body.hcc-rg-main *,
body.hcc-rg-main *::before,
body.hcc-rg-main *::after {
  box-sizing: border-box;
}

body.hcc-rg-main img,
body.hcc-rg-main video,
body.hcc-rg-main iframe {
  max-width: 100%;
}

body.hcc-rg-main .elementor-container,
body.hcc-rg-main .elementor-row,
body.hcc-rg-main .elementor-column,
body.hcc-rg-main .elementor-widget-container,
body.hcc-rg-main [class*="__inner"],
body.hcc-rg-main [class*="__content"] {
  min-width: 0;
}

body.hcc-rg-main .hcc-hero,
body.hcc-rg-main .hcc-about-hero,
body.hcc-rg-main .hcc-services-hero,
body.hcc-rg-main .hcc-carer-hero,
body.hcc-rg-main .hcc-prof-hero,
body.hcc-rg-main .hcc-contact-hero {
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  overflow: hidden !important;
}

/* The JS adds this class to the ACTUAL white logo card container. */
body.hcc-rg-main .hcc-rg-logo-card {
  top: 0 !important;
  margin-top: 0 !important;
  transform: none !important;
}

/* Remove common Elementor/widget spacing that can create the visual gap. */
body.hcc-rg-main .hcc-rg-logo-card,
body.hcc-rg-main .hcc-rg-logo-card > .elementor-widget-container,
body.hcc-rg-main .hcc-rg-logo-card .elementor-widget-container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Large desktop */
@media (min-width: 1600px) {
  body.hcc-rg-main .hcc-hero { min-height: 760px !important; }

  body.hcc-rg-main .hcc-about-hero,
  body.hcc-rg-main .hcc-services-hero,
  body.hcc-rg-main .hcc-carer-hero,
  body.hcc-rg-main .hcc-prof-hero {
    min-height: 700px !important;
  }

  body.hcc-rg-contact .hcc-contact-hero {
    height: clamp(850px, 50.52vw, 970px) !important;
    min-height: 850px !important;
  }
}

/* 15-inch / laptop desktop */
@media (min-width: 1200px) and (max-width: 1599.98px) {
  body.hcc-rg-main .hcc-hero {
    height: clamp(700px, 48vw, 780px) !important;
    min-height: 700px !important;
  }

  body.hcc-rg-main .hcc-about-hero,
  body.hcc-rg-main .hcc-services-hero,
  body.hcc-rg-main .hcc-carer-hero,
  body.hcc-rg-main .hcc-prof-hero {
    height: clamp(650px, 45vw, 740px) !important;
    min-height: 650px !important;
  }

  body.hcc-rg-contact .hcc-contact-hero {
    height: clamp(790px, 52vw, 860px) !important;
    min-height: 790px !important;
  }

  body.hcc-rg-main .hcc-hero h1,
  body.hcc-rg-main .hcc-about-hero h1,
  body.hcc-rg-main .hcc-services-hero h1,
  body.hcc-rg-main .hcc-carer-hero h1,
  body.hcc-rg-main .hcc-prof-hero h1,
  body.hcc-rg-main .hcc-contact-hero h1 {
    font-size: clamp(50px, 4.1vw, 62px) !important;
    line-height: 1.12 !important;
  }

  body.hcc-rg-main .hcc-hero p,
  body.hcc-rg-main .hcc-about-hero p,
  body.hcc-rg-main .hcc-services-hero p,
  body.hcc-rg-main .hcc-carer-hero p,
  body.hcc-rg-main .hcc-prof-hero p,
  body.hcc-rg-main .hcc-contact-hero p {
    font-size: clamp(20px, 1.65vw, 26px) !important;
    line-height: 1.34 !important;
  }

  body.hcc-rg-contact .hcc-contact-hero__content,
  body.hcc-rg-contact .hcc-contact-hero [class*="hero__content"] {
    top: auto !important;
    bottom: clamp(52px, 4.5vw, 72px) !important;
    width: min(930px, 64vw) !important;
    max-width: 930px !important;
    padding-bottom: 0 !important;
    transform: none !important;
  }

  body.hcc-rg-contact .hcc-contact-hero h1 { color: #FFFFFF !important; }
  body.hcc-rg-contact .hcc-contact-hero h1 span { color: #F69174 !important; }

  body.hcc-rg-main .hcc-rg-logo-card {
    max-width: clamp(190px, 15.5vw, 245px) !important;
  }
}

/* Small laptop */
@media (min-width: 992px) and (max-width: 1199.98px) {
  body.hcc-rg-main .hcc-hero,
  body.hcc-rg-main .hcc-about-hero,
  body.hcc-rg-main .hcc-services-hero,
  body.hcc-rg-main .hcc-carer-hero,
  body.hcc-rg-main .hcc-prof-hero {
    height: 680px !important;
    min-height: 680px !important;
  }

  body.hcc-rg-contact .hcc-contact-hero {
    height: 790px !important;
    min-height: 790px !important;
  }

  body.hcc-rg-main .hcc-hero h1,
  body.hcc-rg-main .hcc-about-hero h1,
  body.hcc-rg-main .hcc-services-hero h1,
  body.hcc-rg-main .hcc-carer-hero h1,
  body.hcc-rg-main .hcc-prof-hero h1,
  body.hcc-rg-main .hcc-contact-hero h1 {
    font-size: 46px !important;
    line-height: 1.12 !important;
  }

  body.hcc-rg-main .hcc-hero p,
  body.hcc-rg-main .hcc-about-hero p,
  body.hcc-rg-main .hcc-services-hero p,
  body.hcc-rg-main .hcc-carer-hero p,
  body.hcc-rg-main .hcc-prof-hero p,
  body.hcc-rg-main .hcc-contact-hero p {
    font-size: 20px !important;
    line-height: 1.38 !important;
  }

  body.hcc-rg-contact .hcc-contact-hero__content,
  body.hcc-rg-contact .hcc-contact-hero [class*="hero__content"] {
    top: auto !important;
    bottom: 48px !important;
    width: min(820px, 74vw) !important;
    max-width: 820px !important;
    transform: none !important;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
  body.hcc-rg-main .hcc-hero,
  body.hcc-rg-main .hcc-about-hero,
  body.hcc-rg-main .hcc-services-hero,
  body.hcc-rg-main .hcc-carer-hero,
  body.hcc-rg-main .hcc-prof-hero,
  body.hcc-rg-main .hcc-contact-hero {
    min-height: 660px !important;
  }

  body.hcc-rg-contact .hcc-contact-hero { min-height: 760px !important; }

  body.hcc-rg-main .hcc-hero h1,
  body.hcc-rg-main .hcc-about-hero h1,
  body.hcc-rg-main .hcc-services-hero h1,
  body.hcc-rg-main .hcc-carer-hero h1,
  body.hcc-rg-main .hcc-prof-hero h1,
  body.hcc-rg-main .hcc-contact-hero h1 {
    font-size: 40px !important;
    line-height: 1.13 !important;
  }

  body.hcc-rg-main .hcc-hero p,
  body.hcc-rg-main .hcc-about-hero p,
  body.hcc-rg-main .hcc-services-hero p,
  body.hcc-rg-main .hcc-carer-hero p,
  body.hcc-rg-main .hcc-prof-hero p,
  body.hcc-rg-main .hcc-contact-hero p {
    font-size: 18px !important;
    line-height: 1.4 !important;
  }
}

/* Mobile: preserve dedicated mobile artwork/layouts. */
@media (max-width: 767.98px) {
  body.hcc-rg-main .hcc-hero,
  body.hcc-rg-main .hcc-about-hero,
  body.hcc-rg-main .hcc-services-hero,
  body.hcc-rg-main .hcc-carer-hero,
  body.hcc-rg-main .hcc-prof-hero,
  body.hcc-rg-main .hcc-contact-hero {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  body.hcc-rg-main.hcc-rg-menu-closed .hcc-nav,
  body.hcc-rg-main.hcc-rg-menu-closed [class*="offcanvas"],
  body.hcc-rg-main.hcc-rg-menu-closed [class*="off-canvas"],
  body.hcc-rg-main.hcc-rg-menu-closed [class*="mobile-menu"] {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translate3d(110%,0,0) !important;
  }
}

@media (max-width: 390px) {
  body.hcc-rg-main .hcc-btn,
  body.hcc-rg-main button,
  body.hcc-rg-main [class*="btn"] {
    white-space: normal !important;
  }
}
