/* ==================================================
  Josh Custom Styles
  ================================================== */

/* ==================================================
   Spacing Scale
   ================================================== */
:root {
  --space-0: 0;
  --space-1: 10px;
  --space-2: 20px;
  --space-3: 30px;
  --space-4: 40px;
  --space-5: 50px;
  --space-6: 100px;
}

/* ==================================================
  Base Utilities
  ================================================== */
.baseFlex {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.baseFlex--large {
  gap: var(--space-4);
}

.bgGray {
  background: var(--secondary);
}

.bgWhite {
  background: var(--white);
}

.textCenter {
  text-align: center;
}

.textLeft {
  text-align: left;
}

.text--large {
  font-size: 2.25rem;
}

.topsite-Relative {
  position: relative;
}

.topsite-wfull {
  width: 100%;
}

.topsite-noPb {
  padding-bottom: var(--space-0) !important;
}

.topsite-noPt {
  padding-top: var(--space-0) !important;
}

.topsite-pageSection {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.topsite-basePara {
  font-size: 18px;
  line-height: 1.7;
  color: #333;
}

.topsite-headingTwo {
  font-size: 2.5rem;
  color: var(--primary);
  text-align: center;
}

.topsite-paralax {
  background-attachment: fixed;
}

.topsite-paralax-8s,
.topsite-static-8s {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: url("/wp-content/uploads/2026/04/captiv8-grey-pattern.png");
  background-color: var(--secondary);
}

.topsite-paralax-8s {
  background-attachment: fixed;
}

.topsite-static-8s {
  background-attachment: scroll;
}

.video-hero {
  position: relative;
  overflow: hidden;
}

.hero-parallax-wedge {
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: calc(clamp(48px, 12.23vw, 170px) + 2px);
  z-index: 3;
  clip-path: polygon(-1% 100%, 101% 0, 101% 101%, -1% 101%);
}

/* ==================================================
   Layout Utilities
   ================================================== */
.topsite-halfBox {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.topsite-halfBox__box {
  width: 50%;
  height: 100%;
}

.topsite-halfBox h4,
.topsite-halfBox p,
.topsite-halfBox ul {
  margin: var(--space-0);
}

/* ==================================================
   Section Overrides
   ================================================== */
.topsite-cta .homepage-text {
  margin-top: var(--space-0);
}

.topsite-video-slider {
  margin-bottom: var(--space-0) !important;
}

.topsite-why-video .benefit-heading,
.topsite-why-video .video-benefits {
  margin: var(--space-0);
}

.topsite-our-services-inner {
  margin-top: var(--space-4) !important;
  margin-bottom: var(--space-4) !important;
}

.topsite-our-services-inner .our-service-section div {
  width: 100% !important;
}

.topsite-our-services-inner h4,
.topsite-our-services-inner p,
.topsite-our-services-inner ul {
  margin: var(--space-0);
}

.video-style-container-inner h3 {
  text-align: center;
}

.video-container-desc {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-2);
  align-items: center;
}

/* ================================================== Components================================================== */

/* ==================================================
   Service Cards
================================================== */

.serviceCardContainer {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.serviceCard {
  width: 33.333%;
  min-height: 45vh;

  background-color: var(--primary);

  display: flex;
  overflow: hidden;
}

.serviceCard:nth-child(2n) {
  background-color: var(--dark-grey);
}

/* ==================================================
   Inner
================================================== */

.serviceCard__inner {
  width: 100%;
  padding: var(--space-3);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

/* ==================================================
   Image
================================================== */

.serviceCard__img {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);

  transition: transform 0.45s cubic-bezier(0.5, 1.5, 0.5, 1);
}

.serviceCard:hover .serviceCard__img,
.serviceCard:focus-within .serviceCard__img {
  /* pushes image upward and clips it */
  transform: translateY(-120px);
}

.serviceCard img {
  width: 130px;
  aspect-ratio: 1/1;
  display: block;
}

.serviceCard h3 {
  color: var(--white);
  text-transform: uppercase;
  text-align: center;
}

.serviceCard__line {
  width: 50px;
  height: 2px;
  background: var(--white);
}

.serviceCard:hover .serviceCard__img,
.serviceCard:focus-within .serviceCard__img {
  transform: translateY(calc(-1 * var(--space-2)));
}

/* ==================================================
   Description
================================================== */

.serviceCard__desc {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
  width: 100%;
  max-height: 0;
  opacity: 0;
  transform: translateY(var(--space-2));

  overflow: hidden;

  transition:
    max-height 0.35s ease,
    opacity 0.35s ease,
    transform 0.35s ease;
}

.serviceCard__desc p {
  color: var(--white);
  text-align: center;
  line-height: 1.5;
  font-size: 16px;
}

.serviceCard:hover .serviceCard__desc,
.serviceCard:focus-within .serviceCard__desc {
  max-height: 400px;
  opacity: 1;
  transform: translateY(0);
}

/* ==================================================
   Responsive
================================================== */

@media (max-width: 1024px) {
  .serviceCard {
    width: 50%;
  }

  .serviceCard:nth-child(2n) {
    background-color: var(--dark-grey);
  }
}

@media (max-width: 767px) {
  .serviceCard {
    width: 100%;
  }

  .serviceCard__inner {
    padding: 30px;
  }

  .serviceCard__desc p {
    width: 100%;
  }
}

/* ==================================================
   Blog
   ================================================== */
.blogEntries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr;
  grid-auto-rows: 1fr;
  gap: var(--space-2);
}

.blogCard {
  width: 100%;
  background-color: var(--white);
  transition: all 0.3s ease;
}

.blogCard:hover {
  transform: translateY(-8px);
}

.blogCard__image {
  position: relative;
  width: 100%;
  height: 275px;
  overflow: hidden;
}

.blogCard__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.blogCard__image svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  fill: var(--white);
}

.blogCard__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-2);
}

.blogPost {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 950px;
  margin: var(--space-0) auto;
}

.blogPost__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.blogPost__content ul,
.blogPost__content ol {
  padding-left: var(--space-2);
}

.homepage-our-work {
  margin-top: var(--space-5);
}

/* ==================================================
   Responsive Media Queries
   ================================================== */
@media only screen and (max-width: 999px) {
  .topsite-paralax,
  .topsite-paralax-8s {
    background-attachment: scroll !important;
  }

  .video-style .video-style-container {
    height: max-content;
  }

  .video-style {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: max-content;
    grid-auto-rows: max-content;
  }

  .video-style .video-style-container {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
  }

  .video-style .video-container-img img {
    width: 80px;
  }

  .video-style .video-style-container-inner {
    height: 100%;
    justify-content: space-between;
    position: relative;
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  .video-style-container:hover .video-container-desc p {
    margin-top: 0px !important;
  }

  .video-style-container:hover .video-style-container-inner img {
    margin-top: 0px !important;
  }

  .video-style-container:hover .video-style-container-inner {
    height: 100% !important;
  }

  .video-style .video-container-desc {
    flex: 1;
  }

  .video-style .video-container-desc p {
    flex: 1;
    margin: 0;
  }

  .video-style .video-style-container:nth-child(4n),
  .video-style .video-style-container:nth-child(4n + 1) {
    background-color: var(--primary) !important;
  }

  .video-style .video-style-container:nth-child(3n),
  .video-style .video-style-container:nth-child(4n - 2) {
    background-color: var(--dark-grey) !important;
  }
}

@media only screen and (max-width: 600px) {
  .video-style {
    grid-template-columns: 1fr;
  }

  .video-style .video-style-container:nth-child(2n) {
    background-color: var(--dark-grey) !important;
  }

  .video-style .video-style-container:nth-child(2n + 1) {
    background-color: var(--primary) !important;
  }

  .instagram-feed-section {
    display: none;
  }
}

@media only screen and (max-width: 950px) {
  .blogEntries {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 850px) {
  .process-section .process-grid,
  .topsite-process-section .process-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr);
  }

  .topsite-process-section .process-grid::before {
    width: 4px;
    height: 75%;
    left: 50%;
    display: none;
  }
}

.topsite-homepage-our-services {
  padding-top: calc(var(--space-6) - 50px);
}

.topsite-homepage-our-services .homepage-text {
  gap: 100px;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.topsite-homepage-our-services .our-services-inner {
  margin: 0;
}

.topsite-homepage-our-services h2 {
  margin: 0;
}

.topsite-homepage-our-services .our-service-section {
  gap: var(--space-3);
}

@media only screen and (max-width: 600px) {
  .page-id-9274 .video-hero {
    background-position: 25% 20%;
  }

  .page-id-9283 .video-hero {
    background-position: 70% 20%;
  }
}

@media only screen and (max-width: 450px) {
  .topsite-homepage-our-services .our-services-inner .our-service-section div iframe {
    height: 100%;
  }
}

@media only screen and (max-width: 800px) {
  .topsite-halfBox {
    flex-direction: column;
    align-items: unset;
  }

  .topsite-halfBox__box {
    width: 100%;
  }

  .picture-grid-inner > .grid-picture:nth-last-child(-n + 2),
  .picture-grid-inner > .grid-picture:nth-last-child(-n + 3) {
    display: none;
  }

  .topsite-homepage-our-services .homepage-text {
    gap: var(--space-4);
  }

  .video-hero {
    background-attachment: scroll !important;
  }
}

@media only screen and (max-width: 550px) {
  .blogEntries {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media only screen and (max-width: 500px) {
  .topsite-longButton a {
    font-size: 0.85rem;
  }
}

@media (hover: none) {
  .serviceCard__inner {
    height: 100%;
  }

  .serviceCard__desc p {
    margin-top: 30px;
  }

  .serviceCard img {
    margin-top: 0;
  }
}
