/* ===========================
   BASE / DESKTOP STYLES
   =========================== */

.highlighted-text {
  position: relative;
  display: inline-block;
  padding: 4px 12px;
  z-index: 1;
  color: #fff;
  font-weight: 500;
}
.highlighted-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #640606;
  border-radius: 5px;
  z-index: -1;
}

.hero-section {
  position: relative;
  overflow: visible;
  height: 610px;
  display: flex;
  align-items: center;
  padding: 150px;
  margin-bottom: 100px;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 70%;
}

.hero-person-wrapper {
  position: absolute;
  right: 70px;
  bottom: -50px;
  height: 95%;
  width: auto;
  z-index: 1;
  pointer-events: none;
}

.hero-person {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

#menu-item-3286 > a {
  font-family: 'Archivo Black', sans-serif;
  font-style: italic;
  color: #ec952a !important;
  position: relative;
  padding-left: 0;
}
#menu-item-3286 > a::before {
  content: "PHIL";
  color: #ffffff;
  font-family: 'Archivo Black', sans-serif;
  font-style: italic;
}

#masthead {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background-color: transparent !important;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
#masthead .ast-main-header-wrap,
#masthead .ast-primary-header-bar,
#masthead .site-primary-header-wrap {
  background-color: transparent !important;
  transition: background-color 0.3s ease;
}
#masthead.header-scrolled,
#masthead.header-scrolled .ast-main-header-wrap,
#masthead.header-scrolled .ast-primary-header-bar,
#masthead.header-scrolled .site-primary-header-wrap {
  background-color: rgba(26, 0, 0, 0.1) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

body {
  padding-top: 0 !important;
}


/* ===========================
   TABLET — 768px to 1024px
   =========================== */
@media (max-width: 1024px) and (min-width: 768px) {

  .hero-section {
    transform: scale(0.75);
    transform-origin: top left;
    width: 133.33%;          /* Compensate: 100 / 0.75 = 133.33 */
    height: 610px;
    margin-bottom: -80px;   /* Pull up the gap caused by scaling */
  }
}


/* ===========================
   PHONE ONLY — below 768px
   =========================== */
@media (max-width: 767px) {

  /* --- HERO SECTION --- */
  .hero-section {
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100svh;
    padding: 100px 24px 60px 24px !important;
    margin-bottom: 0 !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  /* --- HERO TEXT CONTENT --- */
  .hero-content {
    max-width: 100% !important;
    position: relative;
    z-index: 3;
  }

  /* --- HEADINGS --- */
  .hero-section h1 {
    font-size: 42px !important;
    line-height: 1.2 !important;
    margin-bottom: 4px !important;
  }

  /* --- SUBTITLE --- */
  .hero-section h5 {
    font-size: 14px !important;
    line-height: 1.8 !important;
    margin-bottom: 24px !important;
  }

  /* --- HIGHLIGHTED BADGE --- */
  .highlighted-text {
    font-size: 42px !important;
    padding: 2px 10px !important;
  }

  /* --- BUTTONS: stack vertically --- */
  .hero-section .btn-explore,
  .hero-section .btn-invest,
  .hero-section a > button {
    display: block !important;
    width: 100% !important;
    margin: 0 0 12px 0 !important;
    padding: 14px 20px !important;
    font-size: 15px !important;
    text-align: center !important;
  }

  /* --- PERSON IMAGE: ghost behind content --- */
  .hero-person-wrapper {
    position: absolute !important;
    right: -40px !important;
    bottom: 0 !important;
    height: 70% !important;
    width: auto !important;
    opacity: 0.15 !important;
    transform: none !important;
    z-index: 1 !important;
  }
}

@media (max-width: 600px) {
    .stats-heading h1 {
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 20px 25px !important;
    }

    .stats-heading h1 img {
        height: 70px !important;
        margin-right: 0 !important;
        margin-bottom: 8px;
    }

    .stats-heading h1 span:first-of-type {
        font-size: 80px !important;
        margin-left: 0 !important;
        line-height: 1;
    }

    .stats-heading h1 span:last-of-type {
        font-size: 36px !important;
        margin-left: 0 !important;
        line-height: 1.2;
    }
}

@media (max-width: 767px) {
    #menu-item-3286 > a {
        font-family: 'Archivo Black', sans-serif;
        font-style: italic;
        color: #ec952a !important;
    }

    #menu-item-3286 > a::before {
        content: "PHIL";
        color: #640606;
        font-family: 'Archivo Black', sans-serif;
        font-style: italic;
    }
}

@media (min-width: 769px) {
  #mob-circle-reveal,
  #site-loader-mobile {
    display: none !important;
    visibility: hidden !important;
    position: fixed !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}