/* ActProxy - Homepage custom styling
   Place this file at: /templates/<your_template>/css/actproxy-homepage.css
   This stylesheet is scoped to the #top-content homepage section only.
*/

/* Scoped Google Font (apply ONLY inside the top band section) */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300..900&family=Rubik+Glitch&display=swap');

:root{
  /* If your theme’s main content wrapper has padding (often 20px), set it here */
  --act-main-pad: 20px;

  /* Vertical padding INSIDE the top band */
  --act-topband-pad: 54px;

  /* Minimum height of the band */
  --act-topband-minh: clamp(78px, 10.5vh, 132px);

  /* Title sizes */
  --act-big-title-size: 48px;
  --act-big-title-weight: 100;
  --act-sub-title-size: 20px;
  --act-sub-title-weight: 400;

  /* Pattern tuning */
  --act-bg: #333;
  --act-box-border: 1px;     /* line thickness */
}

/* Separate fonts for big title vs subtitle in the top band */
#top-content.act-fullbleed .big-title{
  font-family:"Rubik Glitch","Rubik",sans-serif;
}

#top-content.act-fullbleed .sub-title{
  font-family:"Rubik",sans-serif;
}

/* Full-bleed dark band that bypasses the parent container padding */
#top-content.act-fullbleed{
  background: var(--act-bg);

  /* Required for overlay layers */
  position: relative;
  overflow: hidden;

  /* Make it span the viewport even when inside a fixed-width parent */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  /* Pull up to bypass the parent’s top padding */
  margin-top: calc(-1 * var(--act-main-pad));

  /* Remove side padding so background reaches the edges */
  padding-left: 0;
  padding-right: 0;

  /* Keep content nicely spaced while accounting for the bypass */
  padding-top: calc(var(--act-topband-pad) + var(--act-main-pad));
  padding-bottom: var(--act-topband-pad);

  /* True vertical centering */
  min-height: var(--act-topband-minh);
  display: flex;
  align-items: center;

  /* Scoped font for this section only */
  font-family: "Rubik", sans-serif;
  color: #fff;
}

/* Container created by JS for the animated boxes */
#top-content.act-fullbleed .act-bg-boxes{
  position: absolute;
  inset: -180px;          /* extend beyond edges so you don’t see cutoff */
  pointer-events: none;
  z-index: 0;             /* under content */
}

/* Each animated outlined rectangle */
#top-content.act-fullbleed .act-bg-box{
  position: absolute;
  box-sizing: border-box;
  border: var(--act-box-border) solid rgba(255,255,255,.14);
  background: transparent;
  border-radius: 0;

  will-change: transform, width, height, left, top, border-color, opacity;

  /* Continuous-feel: constant speed (no ease-out “stopping”) */
  transition:
    left 4000ms linear,
    top 4000ms linear,
    width 4000ms linear,
    height 4000ms linear,
    transform 4000ms linear,
    border-color 4000ms linear;
}

/* Keep WHMCS inner container centered and above the pattern */
#top-content.act-fullbleed > .container{
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Text styling inside the band */
#top-content.act-fullbleed .big-title{
  font-size: var(--act-big-title-size);
  line-height: 1;
  font-weight: var(--act-big-title-weight);
}

#top-content.act-fullbleed .sub-title{
  font-size: var(--act-sub-title-size);
  line-height: 1.2;
  margin-top: 10px;
  font-weight: var(--act-sub-title-weight);
}

/* Keep form controls readable */
#top-content.act-fullbleed input,
#top-content.act-fullbleed button,
#top-content.act-fullbleed select,
#top-content.act-fullbleed textarea{
  font-family: "Rubik", sans-serif;
}

/* Light text-only section below the top band */
#platforms-simple.act-darkband{
  background: #fff;
  color: #333;

  /* Full-bleed like the top band */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  padding: 32px 0;
}

#platforms-simple.act-darkband .act-lines{
  text-align: center;
}

#platforms-simple.act-darkband .act-line{
  margin: 0.35rem 0;
  line-height: 1.45;
}

#platforms-simple.act-darkband .act-section-title{
  font-family:"Rubik Glitch","Rubik",sans-serif;
  font-size: 38px;
  line-height: 1.1;
  text-align: center;
  margin: 0 0 14px 0;
}

/* Bullet/marker hard-disable (in case markup is still a UL/Li somewhere) */
#platforms-simple ul{
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
}
#platforms-simple li{
  list-style: none !important;
  margin: 0.35rem 0;
}
#platforms-simple li::marker{
  content: "" !important;
}
#platforms-simple .act-line::before{
  content: none !important;
}
