/* Box sizing rules */
*,
*::after,
*::before {
  box-sizing: border-box;
}

/* Remove default margin */
blockquote,
body,
dd,
dl,
figure,
h1,
h2,
h3,
h4,
p {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
button,
input,
select,
textarea {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::after,
  *::before {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url('../build/fonts/roboto-v30-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  src: url('../build/fonts/roboto-v30-latin-500.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('../build/fonts/inter-v13-latin-600.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('../build/fonts/inter-v13-latin-700.woff2') format('woff2');
}

:root {
  --main: #547998;
  --main-d: #42617a;
  --grey: #F2F5FC;
  --headline: #2E2E2E;
  --text: #637381;
  --sec-margin: 150px;
  --page-margin: 10vw;
}

body {
  font-family: 'Roboto';
  font-weight: 400;
}

h1 {
  color: #FFF;
  text-align: center;
  font-family: 'Inter';
  font-size: 72px;
  font-style: normal;
  font-weight: 700;
  line-height: 80px;
  letter-spacing: 0.5px;
}

h2 {
  color: var(--headline);
  font-family: 'Inter';
  font-size: 42px;
  font-style: normal;
  font-weight: 700;
  line-height: 45px;
  margin-bottom: 1.5rem;

  b {
    display: block;
    color: var(--main);
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
    margin-bottom: .5rem;
  }
}

h3 {
  color: var(--headline);
  font-family: 'Inter';
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 26px;
}

p,
li,
a {
  color: var(--text);
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 25px;
}

a.button {
  padding: 0 2rem;
  background-image: linear-gradient(90deg, var(--main) 0%, var(--main-d) 100%);
  color: #FFFF;
  display: inline-block;
  line-height: 3rem;
  text-decoration: none;
  font-weight: 700;
  border-radius: 1rem;
}

p {
  margin-top: 2rem;
  font-weight: 300;

  &:first-of-type {
    margin-top: 0;
  }
}

ul {
  margin-top: 0;
  padding: 0 0 0 1.25rem;
}

strong {
  font-weight: 700;
  color: var(--main);
}

header ul,
footer ul {
  list-style: none;
}

section {
  margin-top: var(--sec-margin);
  position: relative;
  scroll-margin-top: calc(var(--sec-margin)/2);
}

.width-80 {
  width: min(100% - var(--page-margin), 1280px);
  margin-inline: auto;
}

.width-100 {
  width: 100%;
}

header {
  height: 100vh;
  background-color: #375872;
  display: flex;
  flex-direction: column;
  position: relative;

  .navigation {
    padding: 5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;

    .logo {
      a {
        display: inline-block;

        img {
          width: 160px;
        }
      }
    }

    nav {
      display: flex;
      gap: 4rem;

      ul {
        display: flex;
        gap: 2rem;

        li {
          position: relative;

          a {
            color: #FFF;
            font-size: 18px;
            font-style: normal;
            font-weight: 400;
            line-height: normal;
            text-decoration: none;
            position: relative;

            &:before {
              position: absolute;
              height: 1px;
              width: 0%;
              left: 50%;
              bottom: 0;
              translate: -50% .25rem;
              background-color: white;
              transition: width 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
              content: '';
            }

            &:hover,
            &.selected {
              &:before {
                width: 90%;
              }
            }
          }

          ul {
            opacity: 0;
            transform: translateY(-10px);
            pointer-events: none;
            background-color: red;
            position: absolute;
            display: flex;
            flex-direction: column;
            gap: .5rem;
            padding: 1rem;
            transition: all 400ms ease-in-out;
            background-color: rgba(0, 0, 0, 0.5);

            li {
              min-width: 150px;
              padding: auto;
              margin: 0;

              a {
                line-height: 1.1;
              }
            }
          }

          &:hover {
            ul {
              opacity: 1;
              transform: translateY(0px);
              pointer-events: all;
            }
          }
        }
      }
    }
  }

  .intro {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;

    h1 {
      display: block;
      width: 100%;
    }

    h2 {
      color: #FFF;
      font-size: 2rem;
      opacity: .8;
      margin-top: .5rem;
      text-align: center;
    }

    p {
      opacity: .8;
      color: #FFF;
      text-align: center;
      font-size: 1.25rem;
      margin-top: 2rem;
    }
  }

  .hero {
    inset: 0;
    position: absolute;
    background: url("../build/img/hero-bg.webp") var(--main) 50% / cover no-repeat;
    mix-blend-mode: soft-light;
    z-index: 1;

    .overlay {
      position: absolute;
      opacity: .4;
      inset: 0;
      background-color: var(--main);
      z-index: 2;
    }

    video {
      width: 100%;
      height: 100%;
      z-index: 1;
      object-fit: cover;
    }
  }

  &.small {
    height: 50vh;
  }
}

.two-col-image-text {
  .columns {
    display: flex;
    gap: 100px;
    align-items: center;

    .col {
      &.left {
        width: 40%;
        flex-shrink: 0;

        .images-columns {
          display: flex;
          gap: 30px;
          align-items: center;

          div {
            display: flex;
            flex-direction: column;
            gap: 30px;
            width: 100%;

            img {
              width: 100%;
              border-radius: 1rem;
              transition: all 1000ms cubic-bezier(0.175, 0.885, 0.32, 1.275);

              &:hover {
                scale: 1.1;
              }
            }

            &.right {
              position: relative;

              &:before {
                position: absolute;
                width: 106px;
                height: 134px;
                right: -2rem;
                bottom: -5rem;
                background-image: url("../build/img/dotted.svg");
                background-repeat: no-repeat;
                background-size: contain;
                content: '';
              }
            }
          }
        }
      }
    }
  }

  &#initiatives {
    padding: var(--sec-margin) 0;
    background-color: var(--grey);
  }

  &#text {
    background: none;

    h2:not(:first-child) {
      margin-top: 5rem;
    }
  }
}

.two-col-full-width {
  .columns {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(10, 1fr);

    .col {
      position: relative;

      &.left {
        position: relative;
        grid-column: span 6;
        flex-shrink: 0;
        padding: 0 10vw;
        background-color: var(--main);
        padding: var(--sec-margin) var(--page-margin);

        &:before {
          position: absolute;
          width: 64px;
          height: 80px;
          right: 4rem;
          top: 3rem;
          background-image: url("../build/img/dotted-white.svg");
          background-repeat: no-repeat;
          background-size: contain;
          content: '';
        }

        p,
        a,
        li {
          color: rgba(255, 255, 255, 0.75);
        }

        h2,
        h2 b,
        strong {
          color: rgba(255, 255, 255, 1);
        }
      }

      &.right {
        grid-column: span 4;
        height: 100%;
        background-image: url("../build/img/markus-geier.webp");
        background-repeat: no-repeat;
        background-size: cover;
        background-position: top center;
      }
    }
  }

  &#whois {
    background-color: var(--main);
    background-image: linear-gradient(90deg, var(--main) 0%, var(--main-d) 100%);
    padding: var(--sec-margin) var(--page-margin);

    .columns {
      gap: var(--page-margin);

      .col {
        position: relative;

        &.left {
          background: none;
          padding: 0;
          grid-column: span 6;

          &:before {
            right: 0rem;
            top: -3rem;
          }
        }

        &.right {
          grid-column: span 3;
          background-size: contain;
        }
      }
    }
  }

  &#securecities {
    .columns {

      h3,
      .image_banner {
        margin-top: 3rem;
      }

      .col {
        &.left {
          grid-column: span 5;
          background-color: #fff;

          &:before {
            position: absolute;
            width: 64px;
            height: 80px;
            right: 4rem;
            top: 3rem;
            background-image: url("../build/img/dotted-white.svg");
            background-repeat: no-repeat;
            background-size: contain;
            content: '';
          }

          p,
          a,
          li {
            color: var(--text);
          }

          h2,
          h2 b,
          h3,
          strong {
            color: var(--headline);
          }
        }

        &.right {
          grid-column: span 5;
          background: none;
          background-color: var(--grey);

          .col-inner {
            padding: calc(var(--sec-margin)/2) var(--page-margin);

            .mini-grid {
              display: grid;
              grid-template-columns: repeat(1, 1fr);
              list-style: none;
              padding: 0;
              margin: 2rem 0 0;
              gap: 1rem;

              li {
                border-radius: 1rem;
                padding: 2rem;
                background: #fff;
                box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, .1);
              }
            }
          }
        }
      }
    }
  }

  &#pillars {
    margin-top: calc(var(--sec-margin)/2);

    .columns {
      grid-template-columns: 1fr 1fr;
      gap: 2rem;

      .col {
        padding: calc(var(--sec-margin)/2) calc(var(--page-margin)/2);
        border-radius: 2rem;

        &.left,
        &.right {
          grid-column: span 1;
          background-image: none;
          background-color: var(--main);

          &:before {
            display: none;
          }

          p,
          a,
          li {
            color: white;
          }

          h2,
          h2 b,
          h3,
          strong {
            color: white;
          }

          .button {
            background: white !important;
            color: var(--main);
          }
        }
      }
    }
  }

  &#mcsp {
    .columns {
      .col {
        &.left {
          grid-column: span 5;
          background-image: linear-gradient(90deg, var(--main) 0%, var(--main-d) 100%);

          &:before {
            position: absolute;
            width: 64px;
            height: 80px;
            right: 4rem;
            top: 3rem;
            background-image: url("../build/img/dotted-white.svg");
            background-repeat: no-repeat;
            background-size: contain;
            content: '';
          }
        }

        &.right {
          grid-column: span 5;
          background-image: url("../build/img/mcsp.webp");
        }
      }
    }
  }

  &.targetmarkets {
    .right {
      background-image: url("../build/img/Security_Stock_Photo.jpeg") !important;
    }
  }
}

.grid-rows {

  h2,
  p {
    text-align: center;
    max-width: 50vw;
    margin-left: auto;
    margin-right: auto;
  }

  .grid {
    margin-top: 70px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;

    .item {
      background-color: var(--grey);
      border-radius: 1rem;
      padding: 2rem 1.5rem 3rem;
      position: relative;
      background-image: url("../build/img/dotted.svg");
      background-repeat: no-repeat;
      background-size: 64px 80px;
      background-position: 94% 94%;
      overflow: hidden;
      transition: all 1000ms cubic-bezier(0.175, 0.885, 0.32, 1.275);

      &:hover {
        scale: 1.1;
      }

      img {
        width: 100%;
        height: 170px;
        object-position: center;
        object-fit: cover;
        margin-bottom: 1rem;
      }

      h3 {
        margin-bottom: 1rem;
      }

      p {
        text-align: left;
      }
    }
  }

  &#projects {
    .grid {
      grid-template-columns: repeat(4, 1fr);

      .item {
        background-image: none;
        padding: 0;

        h3 {
          padding: 0 1.5rem;
        }

        p {
          padding: 0 1.5rem 2rem;
        }
      }
    }
  }

  &.listings {
    h3 {
      padding: 0 0 1.5rem;
      text-align: center;
    }

    .grid {
      grid-template-columns: repeat(3, 1fr);

      .item {
        background-image: none;
        padding: 0;

        p {
          padding: 2rem;
          text-align: center;
        }
      }
    }
  }

  &.portfolio {
    margin-top: var(--sec-margin);

    .grid {
      .item {
        padding: 1.5rem;

        h3 {
          padding: 0;
        }

        p {
          padding: 0;
        }
      }
    }
  }
}

.news {

  h2,
  p {
    text-align: center;
    max-width: 50vw;
    margin-left: auto;
    margin-right: auto;
  }

  .grid {
    margin-top: 70px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;

    .item,
    .news {
      border-radius: 1rem;
      padding: 2rem;
      background: #FFF;
      box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.10);
      grid-column: 1;

      &.big {
        grid-column: 2;
        grid-row: 1 / span 2;
      }

      &.old {
        opacity: .5;

        &:hover {
          opacity: 1;
        }
      }

      .date {
        background-image: linear-gradient(90deg, var(--main) 0%, var(--main-d) 100%);
        display: flex;
        flex-direction: column;
        text-align: center;
        aspect-ratio: 1/1;
        width: 70px;
        border-radius: .75rem;
        color: #FFF;
        line-height: .5;
        padding-top: 4px;
        margin-bottom: 2rem;

        b {
          text-align: center;
          font-family: Inter;
          font-size: 36px;
          font-style: normal;
          font-weight: 700;
          line-height: normal;
        }
      }

      h3 {
        margin-bottom: 1rem;
      }

      li {
        font-size: 14px;
        line-height: 1.3;
      }

      p {
        text-align: left;
      }

      table {
        font-size: 14px;

        td {
          padding: 4px;
          vertical-align: top;
          color: var(--text);

          &:first-child {
            font-weight: bold;
            padding-left: 0;
          }
        }
      }
    }

    .item {
      transition: all 1000ms cubic-bezier(0.175, 0.885, 0.32, 1.275);

      &:hover {
        scale: 1.1;
      }
    }

    .news {
      grid-column: 3;
      grid-row: 1 / span 2;
      background-image: linear-gradient(90deg, var(--main) 0%, var(--main-d) 100%);
      box-shadow: none;

      ul {
        margin: 0;
        padding: 0;
        list-style: none;

        li {
          border-bottom: 1px solid rgba(255, 255, 255, 0.29);
          padding-bottom: 1.5rem;
          margin-bottom: 1.5rem;

          &:last-of-type {
            border-bottom: 0;
            padding-bottom: 0;
            margin-bottom: 0;
          }

          h3 {
            color: #FFF;
            margin-bottom: .5rem;
          }

          em {
            color: rgba(255, 255, 255, 0.75);
            font-size: 12px;
            font-style: normal;
            font-weight: 400;
            line-height: 20px;
            letter-spacing: 0.5px;
            margin-bottom: .25rem;
            display: inline-block;
          }

          p {
            color: rgba(255, 255, 255, 0.75);
          }

          a {
            color: rgba(255, 255, 255, 0.75);
            display: block;
            text-decoration: none;
            text-decoration: underline;
          }
        }
      }
    }
  }
}

.image-row {

  h2,
  p {
    text-align: center;
    max-width: 50vw;
    margin-left: auto;
    margin-right: auto;
  }

  ul {
    margin-top: 70px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    list-style: none;
    gap: 50px;

    a {
      display: inline-block;
      transition: all 1000ms cubic-bezier(0.175, 0.885, 0.32, 1.275);

      &:hover {
        scale: 1.1;
      }

      img {
        max-width: 200px;
        max-height: 80px;
      }
    }
  }
}

footer {
  background-color: var(--grey);
  margin-top: var(--page-margin);

  .contact {
    padding: var(--sec-margin) 0;

    .columns {
      display: grid;
      grid-template-columns: repeat(12, 1fr);
      gap: 50px;

      .col {
        grid-column: span 3;
        display: flex;
        align-items: flex-start;

        h2 {
          color: #212B36;
          font-size: 32px;
          font-style: normal;
          font-weight: 500;
          line-height: 45px;
          margin: 0;
        }

        h3 {
          margin-bottom: 1rem;
        }

        img {
          width: 2rem;
        }

        span {
          padding-left: 1rem;
        }

        a {
          text-decoration: none;

          &:hover {
            text-decoration: underline;
          }
        }
      }
    }
  }

  .copyright {
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    padding: 40px 0;

    .columns {
      display: flex;
      justify-content: space-between;

      .logo {
        a {
          display: inline-block;

          img {
            width: 120px;
          }
        }
      }

      .copy {
        color: #637381;
      }

      .social {
        display: flex;
        gap: 1rem;
        margin: 0;
        padding: 0;

        li {
          a {
            display: inline-block;

            img {
              height: 1.5rem;
            }
          }
        }
      }
    }
  }
}

@media all and (max-width: 1200px) {
  header .navigation nav ul.main {
    display: none;
  }

  .grid-rows {
    &#projects {
      .grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }
  }
}

@media all and (max-width: 1000px) {
  .two-col-image-text {
    .columns {
      gap: 50px;

      .col {
        &.left {
          width: 40%;

          .images-columns {
            gap: 1rem;

            div {
              gap: 1rem;
            }
          }
        }
      }
    }

    &#iniatives {
      padding: var(--sec-margin) 0;
      background-color: var(--grey);
    }
  }

  .grid-rows {
    .grid {
      grid-template-columns: repeat(2, 1fr) !important;
    }
  }

  .news {
    .grid {
      grid-template-columns: repeat(1, 1fr);

      .news {
        grid-column: 2;
      }

      .big {
        grid-column: auto !important;
        grid-row: auto !important;
      }
    }
  }
}

@media all and (max-width: 800px) {
  :root {
    --sec-margin: 100px;
    --page-margin: 7.5vw;
  }

  section {
    overflow: hidden;
  }

  .width-80 {
    width: 100%;
    padding: 0 var(--page-margin);
  }

  h1 {
    font-size: 48px;
    line-height: 60px;
  }

  h2 {
    font-size: 36px;
    line-height: 40px;

    b {
      font-size: 16px;
    }
  }

  h3 {
    font-size: 18px;
    line-height: 24px;
  }

  header {
    height: 100vh;

    .navigation {
      padding: 5rem var(--page-margin) 0;

      .logo {
        a {
          img {
            width: 160px;
          }
        }
      }
    }
  }

  .two-col-image-text {
    .columns {
      flex-direction: column;
      gap: 100px;

      .col {
        &.left {
          order: 2;
          width: 100%;
        }
      }
    }
  }

  .two-col-full-width {
    .columns {
      width: 100%;
      display: grid;
      grid-template-columns: repeat(1, 1fr);

      .col {
        position: relative;

        .left {
          padding: var(--sec-margin) var(--page-margin);
        }

        &.right {
          grid-column: span 1;
        }
      }
    }

    &#securecities {
      ul.mini-grid {
        grid-template-columns: repeat(1, 1fr) !important;
      }

      .columns {
        .col {
          &.right {
            height: auto;
          }
        }
      }
    }

    &#mcsp {
      .columns {
        .col {
          &.left {
            grid-column: span 1;
          }

          &.right {
            grid-column: span 1;
          }
        }
      }
    }

    &#pillars {
      .columns {
        grid-template-columns: 1fr;
      }
    }
  }

  .grid-rows {

    h2,
    p {
      max-width: 100%;
    }

    .grid {
      grid-template-columns: repeat(1, 1fr) !important;
      gap: 1rem;

      &#projects {
        .grid {
          grid-template-columns: repeat(1, 1fr) !important;
        }
      }
    }
  }

  .news {

    h2,
    p {
      max-width: 100%;
    }

    .grid {
      grid-template-columns: repeat(1, 1fr);
      gap: 1rem;

      .news {
        grid-column: 1;
        grid-row: auto;
      }
    }
  }

  .image-row {

    h2,
    p {
      max-width: 100%;
    }

    ul {
      gap: 2rem;
      flex-direction: column;
    }
  }

  footer {
    .contact {
      .columns {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
      }
    }

    .copyright {
      padding: 50px 0;

      .columns {
        align-items: flex-start;
        flex-direction: column;

        .logo {
          order: 2;
        }

        .copy {
          order: 3;
        }

        .social {
          order: 1;
          margin-bottom: 2rem;

          li {
            a {
              img {
                height: 2rem;
              }
            }
          }
        }
      }
    }
  }
}