/*
 * Theme Name: SSC Engineering&reg; 2026
 * Version: 1
 * Description: For sscengineering.com
 * Author: Thoughtprocess Interactive
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap');

:root {
  /* Theme colors */
  --theme-color-primary-red: #9E0000;
  --theme-color-dark-red: #7E0000;
  --theme-color-muted-red: #C94A4A;
  --theme-color-soft-red: #F5EAEA;
  --theme-color-blue: #0179A2;
  --theme-color-light-blue: #B2E1F5;

  --theme-color-white: #ffffff; 
  --theme-color-gray-900: #1A1A1A;
  --theme-color-gray-800: #2E2E2E;
  --theme-color-gray-700: #4A4A4A;
  --theme-color-gray-600: #6A6A6A;
  --theme-color-gray-500: #8A8A8A;
  --theme-color-gray-300: #D9D9D9;
  --theme-color-gray-200: #F2F2F2;
  --theme-color-gray-100: #F9F9F9;
  --theme-color-gray-50: #FCFCFC;
  --theme-color-emergency: #893022;

  /* Fonts */
  --theme-font-sans-serif: "Outfit", sans-serif;
  --theme-font-serif: "Source Serif 4", serif;
}

@media (max-width: 1024px) {
  .ssce-mobile-mr-0 {
    margin-right: 0 !important;
  }
  .ssce-mobile-ml-0 {
    margin-left: 0 !important;
  }
  .ssce-mobile-mt-0 {
    margin-top: 0 !important;
  }
  .ssce-mobile-mb-0 {
    margin-bottom: 0 !important;
  }
}

html {
  line-height: 1.3;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overscroll-behavior: none;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  font-family: var(--theme-font-sans-serif);
  color: var(--theme-color-dark-gray);
  background: var(--theme-color-white);
}

h1,
h2,
h3,
h4,
.has-headline-display-default-font-size,
.has-headline-heading-large-font-size,
.has-headline-heading-default-font-size,
.has-eyebrow-font-size {
  font-family: var(--theme-font-sans-serif);
  line-height: 1.2;
  text-wrap: pretty;
}

h1 {
  font-size: clamp(2.25rem, 1.929rem + 1.607vw, 3.375rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.75rem, 1.607rem + 0.714vw, 2.25rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.5rem, 1.393rem + 0.536vw, 1.875rem);
  font-weight: 600;
}

h4, .has-headline-heading-small-font-size {
  font-size: clamp(1rem, 0.464rem + 1.429vw, 1.75rem);
  font-weight: 500;
}

.has-headline-title-default-font-size {
  font-family: var(--theme-font-sans-serif);
  line-height: 1.2;
  text-wrap: pretty;
  font-size: clamp(3.75rem, 2.679rem + 5.357vw, 7.5rem);
  font-weight: 900;
}

.util--text-wrap--balance {
  text-wrap: balance;
}

.util--text-wrap--pretty {
  text-wrap: pretty;
}

p {
  font-size: clamp(1.125rem, 1.089rem + 0.179vw, 1.25rem);
  font-weight: 400;
  line-height: 1.4;
}

.has-body-xl-font-size,
.has-body-large-font-size,
.has-body-default-font-size,
.has-body-small-font-size,
.has-eyebrow-font-size,
.has-quote-font-size {
  font-weight: 400;
}

.has-body-xl-font-size {
  font-size: clamp(1.75rem, 1.607rem + 0.714vw, 2.25rem);
}

.has-body-large-font-size {
  font-size: clamp(1.25rem, 1.179rem + 0.357vw, 1.5rem);
}

.has-body-default-font-size {
  font-size: clamp(1.125rem, 1.089rem + 0.179vw, 1.25rem);
}

.has-body-small-font-size {
  font-size: clamp(0.875rem, 0.839rem + 0.179vw, 1rem);
}

.has-quote-font-size {
  font-family: var(--theme-font-serif);
  line-height: 1.2;
  font-size: clamp(1.875rem, 1.607rem + 0.714vw, 2.25rem);
}

.has-eyebrow-font-size {
  font-size: clamp(1rem, 0.911rem + 0.238vw, 1.125rem);
  letter-spacing: 2px;
}

strong {
  font-weight: 700;
}

iframe {
  max-width: 100%;
}

.wp-block-post-content > :not(.alignwide):not(.alignfull) {
    max-width: 1152px;
    margin-left: auto;
    margin-right: auto;
}

.wp-block-post-content > .alignwide {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.blur {
  backdrop-filter: blur(4px);
}

a {
  color: var(--theme-color-primary-red);
  transition: all .25s ease-out;
  text-decoration: none;

  &:hover {
    color: var(--theme-color-dark-red);
  }
}

.wp-block-button {

  .wp-block-button__link {
    background: var(--theme-color-primary-red);
    padding: 15px 30px;
    color: var(--theme-color-white);
    text-align: center;
    text-transform: uppercase; 
    font-weight: 600;

    &:after {
      content: "";
      display: inline-block;
      width: 28px;
      height: 15px;
      background-color: var(--theme-color-white);
      -webkit-mask-image: url("./assets/images/icon-arrow.svg");
      mask-image: url("./assets/images/icon-arrow.svg");
      -webkit-mask-size: contain;
      mask-size: contain;
      -webkit-mask-repeat: no-repeat;
      mask-repeat: no-repeat;
      position: relative;
      left: .5em;
      transition: all .25s ease-out;
    }

    &.has-body-small-font-size {
      padding: 12px 20px !important;

      &:after {
        width: 20px;
        height: 11px;
      }
    }

    &:hover:after {
      left: .75em;
      background-color: var(--theme-color-white);
    }

    &:hover {
      background: var(--theme-color-dark-red);
    }
  }
  

  &.is-style-fill .wp-block-button__link {
    background: var(--theme-color-primary-red);
    color: var(--theme-color-white);

    &:hover {
      background: var(--theme-color-dark-red);
    }
  }

  &.is-style-white .wp-block-button__link {
    background: var(--theme-color-white);
    color: var(--theme-color-primary-red);

    &:after {
      background-color: var(--theme-color-primary-red);
    }

    &:hover:after {
      background-color: var(--theme-color-primary-red);
    }

    &:hover {
      background: var(--theme-color-gray-100);
    }
  }

  &.is-style-light-gray .wp-block-button__link {
    background: var(--theme-color-gray-300);
    color: var(--theme-color-gray-800);

    &:after {
      background-color: var(--theme-color-gray-800);
    }

    &:hover:after {
      background-color: var(--theme-color-gray-800);
    }

    &:hover {
      background: var(--theme-color-gray-500);
    }
  }

  &.is-style-dark-gray .wp-block-button__link {
    background: var(--theme-color-gray-800);
    color: var(--theme-color-gray-300);

    &:after {
      background-color: var(--theme-color-gray-300);
    }

    &:hover:after {
      background-color: var(--theme-color-gray-300);
    }

    &:hover {
      background: var(--theme-color-gray-900);
    }
  }

  &.is-style-text-cta-red .wp-block-button__link {
    background: transparent;
    color: var(--theme-color-primary-red);

    &:after {
      background-color: var(--theme-color-primary-red);
    }

    &:hover:after {
      background-color: var(--theme-color-dark-red);
    }

    &:hover {
      color: var(--theme-color-dark-red);
    }
  }

  &.is-style-text-cta-dark-gray .wp-block-button__link {
    background: transparent;
    color: var(--theme-color-gray-800);

    &:after {
      background-color: var(--theme-color-gray-800);
    }

    &:hover:after {
      background-color: var(--theme-color-gray-500);
    }

    &:hover {
      color: var(--theme-color-gray-500);
    }
  }

  &.is-style-text-cta-light-gray .wp-block-button__link {
    background: transparent;
    color: var(--theme-color-gray-300);

    &:after {
      background-color: var(--theme-color-gray-300);
    }

    &:hover:after {
      background-color: var(--theme-color-gray-500);
    }

    &:hover {
      color: var(--theme-color-gray-500);
    }
  }

  &.is-style-text-cta-white .wp-block-button__link {
    background: transparent;
    color: var(--theme-color-white);

    &:after {
      background-color: var(--theme-color-white);
    }

    &:hover:after {
      background-color: var(--theme-color-gray-100);
    }

    &:hover {
      color: var(--theme-color-gray-100);
    }
  }

  &.is-style-back .wp-block-button__link {
    background: var(--theme-color-primary-red);
    color: var(--theme-color-white);
    
    &:after {
      content: "";
      display: none;
    }

    &:before {
      content: "";
      display: inline-block;
      width: 28px;
      height: 15px;
      background-color: var(--theme-color-white);
      -webkit-mask-image: url("./assets/images/icon-arrow.svg");
      mask-image: url("./assets/images/icon-arrow.svg");
      -webkit-mask-size: contain;
      mask-size: contain;
      -webkit-mask-repeat: no-repeat;
      mask-repeat: no-repeat;
      position: relative;
      left: -.5em;
      transform:rotate(180deg);
      transition: all .25s ease-out;
    }

    &.has-body-small-font-size {
      padding: 12px 20px !important;

      &:before {
        width: 20px;
        height: 11px;
      }
    }

    &:hover {
      background: var(--theme-color-dark-red);
    }

    &:hover:before {
      left: -.75em;
    }
  }

  &.is-style-offsite .wp-block-button__link {
    

    &:after {
      content: "";
      display: inline-block;
      width: 28px;
      height: 15px;
      background-color: var(--theme-color-white);
      -webkit-mask-image: url("./assets/images/icon-offsite.svg");
      mask-image: url("./assets/images/icon-offsite.svg");
      -webkit-mask-size: contain;
      mask-size: contain;
      -webkit-mask-repeat: no-repeat;
      mask-repeat: no-repeat;
      position: relative;
      left: .5em;
      transform: translate(0, 0);
      transition: all .25s ease-out;
    }

    &.has-body-small-font-size {
      padding: 12px 20px !important;

      &:after {
        width: 24px;
        height: 13px;
      }
    }

    &:hover:after {
      transform: translate(6px, -6px);
      background-color: var(--theme-color-white);
    }

    &:hover {
      background: var(--theme-color-dark-red);
    }
  }
}

.frm_style_ssc {

  .frm_primary_label {
    box-sizing: border-box;
  }

  .frm_submit.frm_flex {
    justify-content: flex-end;
  }

  .frm_button_submit, .frm-show-form button[type="submit"] {
    background: var(--theme-color-primary-red);
    padding: 15px 30px;
    color: var(--theme-color-white);
    text-align: center;
    text-transform: uppercase; 
    font-weight: 600;

    &:after {
      content: "";
      display: inline-block;
      width: 28px;
      height: 15px;
      background-color: var(--theme-color-white);
      -webkit-mask-image: url("./assets/images/icon-arrow.svg");
      mask-image: url("./assets/images/icon-arrow.svg");
      -webkit-mask-size: contain;
      mask-size: contain;
      -webkit-mask-repeat: no-repeat;
      mask-repeat: no-repeat;
      position: relative;
      left: .5em;
      transition: all .25s ease-out;
    }

    &.has-body-small-font-size {
      padding: 12px 20px !important;

      &:after {
        width: 20px;
        height: 11px;
      }
    }

    &:hover:after {
      left: .75em;
      background-color: var(--theme-color-white);
    }

    &:hover {
      background: var(--theme-color-dark-red);
    }
  }
}

.wp-block-read-more {
    background: transparent;
    padding: 15px 30px;
    color: var(--theme-color-primary-red);
    text-align: center;
    text-transform: uppercase; 
    font-weight: 600;

    &:after {
      content: "";
      display: inline-block;
      width: 28px;
      height: 15px;
      background-color: var(--theme-color-primary-red);
      -webkit-mask-image: url("./assets/images/icon-arrow.svg");
      mask-image: url("./assets/images/icon-arrow.svg");
      -webkit-mask-size: contain;
      mask-size: contain;
      -webkit-mask-repeat: no-repeat;
      mask-repeat: no-repeat;
      position: relative;
      left: .5em;
      transition: all .25s ease-out;
    }

    &.has-body-small-font-size {
      padding: 12px 20px !important;

      &:after {
        width: 20px;
        height: 11px;
      }
    }

    &:hover:after {
      left: .75em;
    }

    &:hover {
      color: var(--theme-color-dark-red);
    }

}

.kb-header-container {
  background: linear-gradient(95deg, #FFF -4.93%, rgba(255, 255, 255, 0.85) 26.65%, rgba(255, 255, 255, 0.97) 72.56%, rgba(255, 255, 255, 0.94) 104.84%) !important;
  backdrop-filter: blur(7.5px);
  top: 0 !important;
}

.entry-content {
  margin-top: 135px;

  @media screen and (max-width: 1024px) {
    margin-top: 65px;
  }

  .home, .single &{
    margin-top: 0;
  }
}

/* CUSTOM BODY STYLES */

.two-col {
  columns: 2;
  column-gap: 1rem;

  @media screen and (max-width: 768px) {
    columns: 1;
  }
}

.text-balance {
  text-wrap: balance;
}

.flex-center {
  display: flex;
  align-items: center;
}

.lg-image {
  height: calc(50vw + 300px);
}

.halfsies {
  gap: 0;
  align-items: stretch;

  @media screen and (max-width: 768px) {
    flex-wrap: wrap;
  }
  > div {
    flex: 0 1 50%;

    @media screen and (max-width: 768px) {
      flex: 0 1 100%;
    }

    &.has-background {
      background-position: center center;

      @media screen and (max-width: 768px) {
        min-height: 200px;
      }
    }

    &:nth-child(2n) {
      > * {
        max-width: 500px;
      }
    }

    &.center-content * {
      @media screen and (max-width: 768px) {
        text-align: center !important;
        margin: 0 auto !important;
        float: none !important;
      }
    }
  }
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);

  .wp-block-cover {
    margin: 0;
    width: 100%;
    min-height: 0 !important;
  }

  @media (max-width: 1024px) {
    grid-template-columns: repeat(2, 1fr);
  }

  @media (max-width: 600px) {
    grid-template-columns: 1fr;
  }
}
.portfolio-grid .wp-block-query,
.portfolio-grid .wp-block-post-template {
  display: contents;
}

.project-card {
  position: relative;
  border: 1px solid var(--theme-color-white);

  .details {
    position: absolute;
    bottom: -20px;
    left: 20px;
    width: calc(100% - 40px);
    margin-right: 20px;
    background-color: rgba(249, 249, 249, .9);
    backdrop-filter: blur(4px);
    padding: 20px 20px 15px;
    opacity: 0;
    transition: all .25s ease-out;

    @media (max-width: 1024px) {
      bottom: 0;
      opacity: 1;
    }

    .wp-block-read-more {
      background: transparent;
      color: var(--theme-color-primary-red);
      text-transform: uppercase;
      font-size: 14px !important;

      &:after {
        content: "";
        display: inline-block;
        width: 20px;
        height: 11px;
        background-color: var(--theme-color-primary-red);
        -webkit-mask-image: url("./assets/images/icon-arrow.svg");
        mask-image: url("./assets/images/icon-arrow.svg");
        -webkit-mask-size: contain;
        mask-size: contain;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        position: relative;
        left: .5em;
        transition: all .25s ease-out;
      }

      &:hover:after {
        left: .75em;
        background-color: var(--theme-color-dark-red);
      }

      &:hover {
        color: var(--theme-color-dark-red);
      }
    }
  }
    
  figure {
    overflow: hidden;
    img {
        transition: transform 0.3s ease;
    }
    &:hover {
        img {
            transform: scale(1.1);
        }
    }
  }

  &:hover {
    .details {
      bottom: 0;
      opacity: 1;
    }
  }
}

.map-dot {
  position: relative;
  &:before {
    content: '';
    width: 280px;
    border: 1px solid #B2E1F5;
    height: 0px;
    display: block;
    position: absolute;
    top: 50%;
    left: -310px;
  }
  &:after {
    content: '';
    width: 16px;
    height: 16px;
    background: #B2E1F5;
    border-radius: 100%;
    display: block;
    position: absolute;
    top: calc(50% - 8px);
    left: -310px;
  }
  
  @media (max-width: 768px) {
    margin-top: 0 !important;
    &:before {
      height: 150px;
      border: 1px solid var(--theme-color-gray-300);
      width: 0px;
      display: block;
      position: absolute;
      top: -180px;
      left: 50%;
    }
    &:after {
      content: '';
      width: 16px;
      height: 16px;
      background: var(--theme-color-gray-300);
      border-radius: 100%;
      display: block;
      position: absolute;
      top: -180px;
      left: calc(50% - 8px);
    }
  }
}

.breadcrumb {
  display: inline-block !important;
  a {
    position: relative;
    margin-right: 10px;

    &:after {
      content: "";
      display: inline-block;
      width: 12px;
      height: 10px;
      background-color: var(--theme-color-gray-500);
      -webkit-mask-image: url(./assets/images/icon-arrow.svg);
      mask-image: url(./assets/images/icon-arrow.svg);
      -webkit-mask-size: contain;
      mask-size: contain;
      -webkit-mask-repeat: no-repeat;
      mask-repeat: no-repeat;
      position: relative;
      left: 5px;
      top: 0;
    }
  }
}

.project-details {
  position: sticky;
  top: 165px;
  align-self: start;

  @media (max-width: 768px) {
    position: relative;
    top: auto;
  }

}

.img-link {
    figure {
        overflow: hidden;
        img {
            transition: transform 0.3s ease;
        }
        &:hover {
            img {
                transform: scale(1.1);
            }
        }
    }
    figcaption {
        position: absolute;
        display: block !important;
        top: 0;
        left: 30px;
        background: rgba(255, 255, 255, .9);
        backdrop-filter: blur(4px);
        padding: 10px 20px;
        width: calc(100% - 100px);
        margin: 0;
        
        a {
            color: var(--theme-color-gray-900);;
        }
    }
    &.right {
      figcaption {
        text-align: right;
      }
    }
}

.timeline {
  .swiper {
    border-top: 2px solid var(--theme-color-gray-700);

    .content-slide {
      position: relative;
      /* padding: 35px 30px; */

      &:before {
        content: '';
        width: 0px;
        border: 1px solid var(--theme-color-gray-700);
        height: 50px;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
      }
      &:after {
        content: '';
        width: 16px;
        height: 16px;
        background: var(--theme-color-gray-700);
        border-radius: 100%;
        display: block;
        position: absolute;
        top: 50px;
        left: -7px;
      }
    }
  }
}


footer {
  margin-top: 0 !important;
}