@import url(hk-style-general.css);

/*specific sections style*/

.principal-banner {
  height: auto;
  min-height: calc(100vh - 75px);
  /*padding-top: 60px;*/
}

.principal-banner h1 {
  font-size: 110px;
  font-weight: 900;
  line-height: 1.1;
}

.principal-banner h1 small {
  font-size: 58px;
  transform: translateX(5%);
}

.principal-banner p {
  font-size: 22px;
  font-weight: 400;
  width: 100%;
}

.principal-banner .position-absolute {
  left: -4%;
  right: 0;
  margin: auto;
  /* height: -webkit-fill-available;*/
}

.principal-banner img {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translatey(0px);
  }
  50% {
    transform: translatey(-20px);
  }
  100% {
    transform: translatey(0px);
  }
}

.typ-section {
  height: auto;
  min-height: calc(100vh - 380px);
}

/* services */

.waterfall-cards .card-header img {
  margin-bottom: 1rem;
}

.waterfall-cards .card:nth-child(2) {
  margin-top: 50px;
}

.waterfall-cards .card:nth-child(3) {
  margin-top: 100px;
}

.waterfall-cards .card:nth-child(4) {
  margin-top: 150px;
}

.waterfall-cards .card:nth-child(5) {
  margin-top: -155px;
}

.waterfall-cards .card:nth-child(6) {
  margin-top: -105px;
}

.waterfall-cards .card:nth-child(7) {
  margin-top: -55px;
}

.waterfall-cards .card:nth-child(8) {
  margin-top: 15px;
}

.waterfall-cards .card:nth-child(9) {
  margin-top: -150px;
}

.waterfall-cards .card:nth-child(10) {
  margin-top: -35px;
  margin-right: 16px;
}

.waterfall-cards .big-card:nth-child(3) {
  margin-top: 150px;
  margin-right: 0;
}

.waterfall-cards .big-card:nth-child(4) {
  margin-top: -155px;
  margin-right: 15px;
  margin-left: 36px;
}

.waterfall-cards .big-card:nth-child(5) {
  margin-top: -130px;
  margin-left: 0;
  margin-right: auto;
}

/* portfolio */

#portfolio-sect {
  padding-left: 0;
}

#portfolio-sect .owl-stage {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.owl-stage-outer {
  position: relative;
  z-index: 10;
}

.owl-nav {
  position: absolute;
  z-index: 99;
  margin-top: -35px !important;
  top: -5px;
}

.owl-theme .owl-nav [class*="owl-"]:hover {
  background: transparent;
}

/* clients */

.owl-stage {
  display: flex;
  align-items: center;
  justify-content: center;
}

.owl-carousel#porfolio {
  position: absolute;
  left: 0;
}

#clients img {
  max-height: 65px;
}

/*blog*/

#blog-section .card-group .card {
  max-width: inherit;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

/*ABOUT*/

.grid-row {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.grid-row img {
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  padding-top: calc(var(--bs-gutter-y) * 0.5);
  padding-bottom: calc(var(--bs-gutter-y) * 0.5);
}

.grid-item {
  width: 20%;
  height: auto;
}

.grid-item-2 {
  width: 40%;
  height: auto;
}

.grid-item-w50 {
  width: 50%;
}

#work-grid,
#about-grid {
  margin-bottom: 200px;
}

/*CAREERS*/

.accordion-item {
  margin-bottom: 30px;
}

h3 .accordion-button,
h3 .accordion-button:not(.collapsed) {
  font-size: 1.375rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64dfdf;
  box-shadow: none;
}

.accordion-button img {
  width: 55px;
  margin-right: 1.25rem;
}

.accordion-item:first-of-type .accordion-button,
.accordion-item:first-of-type,
.accordion-item:last-of-type,
.accordion-item:last-of-type .accordion-button.collapsed,
.accordion-item:last-of-type .accordion-collapse {
  border-radius: 11px;
}

.accordion-item:first-of-type,
.accordion-item:last-of-type,
.accordion-item,
.accordion-item:not(:first-of-type) {
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.accordion-body h4 {
  margin-top: 20px;
}

.accordion-button::after,
.accordion-button:not(.collapsed)::after {
  background-image: url(../img/chevron-solid.png);
}

#g-recaptcha-response {
  display: block !important;
  position: absolute;
  margin: -78px 0 0 0 !important;
  width: 302px !important;
  height: 76px !important;
  z-index: -999999;
  opacity: 0;
}

/*CODE AUDIT*/
.card[data-card~="stack"] {
  border-radius: 0;
  --border-color: #FFFFFF63;
  border-color: var(--border-color);
  min-height: 16.25rem;
}

.card[data-card~="stack"].bg-opaque {
  --border-color: #FFFFFF66;
}

.card[data-card="stack"]:first-of-type, 
.row:first-of-type > .card[data-card~="grid-flow"]:nth-child(2) {
  border-radius: 11px 11px 0 0;
}

.card[data-card="stack"]:last-of-type,
.row:last-of-type > .card[data-card~="grid-flow"]:nth-child(3) {
  border-radius: 0 0 11px 11px;
}

.card[data-card~="gradient"] {
  --gradient-radius: 333deg;
  --gradient: linear-gradient(var(--gradient-radius), hsla(180, 66%, 63%, 65%) 0%, hsla(263, 60%, 48%, 65%) 100%);
  
  background-color: transparent;
  background-image: var(--gradient);
  background-repeat: no-repeat;
}

[id="audit-help"] .card-img {
  height: 5.5rem;
  display: block;
  margin-right: auto;
  width: fit-content;
}

[id="audit-quality"] .waterfall-cards {
  column-gap: 1.125rem;
}

/* trump waterfall specificity with id selector */
#audit-quality .card {
  margin-right: 0;
}

[id="audit-addition"] .card-header {
  text-wrap: balance;
}

[id="audit-addition"] .card-img {
  height: 13.125rem;
  object-fit: scale-down;
}

@media all and (min-width: 1200px) {
  .work-together-text {
    margin: 0 200px 25px !important;
  }

  [id="audit-quality"] .waterfall-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  [id="audit-quality"] .card {
    min-height: 24.375rem;
    max-width: fit-content;
  }
}

@media all and (min-width: 992px) {
  .card[data-card~="stack"]:first-of-type {
    border-radius: 11px 0 0 11px;
  }
  
  .card[data-card~="stack"]:last-of-type {
    border-radius: 0 11px 11px 0;
  }

  .card[data-card~="gradient"] {
    --gradient-radius: 290deg;
    --rocket-width: 15.75rem;
    --rocket-height: 21.5rem;

    background-image: url('../img/rocket@2x.png'), var(--gradient);
    background-position: calc(100% + var(--rocket-width) / 2) calc(100% + var(--rocket-height) / 16), 0;
    background-size: var(--rocket-width) var(--rocket-height), cover;
  }

  .card[data-card~="gradient"] .card-body {
    max-width: 83ch;
  }

  .row:first-of-type > .card[data-card~="grid-flow"]:nth-child(2) {
    border-radius: 11px 0px 0px 0px;
  }

  .row:first-of-type > .card[data-card~="grid-flow"]:nth-child(3) {
    border-radius: 0px 11px 0px 0px;
  }

  .row:last-of-type > .card[data-card~="grid-flow"]:nth-child(1) {
    border-radius: 11px 0px 0px 11px;
  }

  .row:last-of-type > .card[data-card~="grid-flow"]:nth-child(2) {
    border-radius: 0;
  }

  .row:last-of-type > .card[data-card~="grid-flow"]:nth-child(3) {
    border-radius: 0px 0px 11px 0px;
  }

  .card-img {
    height: 150px;
    object-fit: cover;
  }

  [id="audit-help"] .col-md-1 {
    align-items: baseline;
  }

  [id="audit-help"] .card-img {
    height: auto;
    width: auto;
  }

  [id="audit-addition"] .card-img {
    height: 11.875rem;
  }
}

/*Hide arrows on input number for Chrome, Safari, Edge, Opera */

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Hide arrows on input number Firefox */

input[type="number"] {
  -moz-appearance: textfield;
}

/*------ RESPONSIVE -------*/

@media all and (max-width: 1199px) {
  .waterfall-cards .card:nth-child(n) {
    margin-top: 15px;
  }

  .waterfall-cards .big-card:nth-child(3),
  .waterfall-cards .big-card:nth-child(5) {
    margin-right: 15px;
  }

  .waterfall-cards .big-card:nth-child(4) {
    margin-right: 0;
    margin-left: 0;
  }

  .waterfall-cards .card:nth-child(10) {
    margin-right: 0;
  }
  .owl-nav {
    left: 40%;
    right: 40%;
  }
  #blog-section .card-group .card {
    max-width: calc(50% - 30px);
  }
}

@media all and (max-width: 990px) {
  .principal-banner h1 {
    font-size: 4rem;
    line-height: 1;
  }
  .principal-banner h1 small {
    font-size: 45px;
  }
}

@media all and (max-width: 767px) {
  .internal-section {
    min-height: auto;
    height: auto;
  }
  .owl-carousel#img-about .owl-item img {
    width: auto;
    max-width: auto !important;
    height: 250px;
  }
  #blog-section .card-group .card {
    max-width: 100%;
  }
}
