/*
Theme Name: SIINOVIA UK LTD
Author: The Design Bank
Author URI: https://thedesignbank.co.uk
Description: The Design Bank custom theme for WordPress
Version: 1.0
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/

@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --button: #797695;
  --bodyText: #797695;
  --headingText: #282345;
  --bodyBackground: #fefefe;
  --blockBackground: #f1efff;
  --backButton: #403a65;
  --border: #c5c5c5;
  /* Block Accordion */
  --left: #dde08d33;
  --leftExpand: #dde08d;
  --center: #52535233;
  --centerExpand: #525352;
  --right: #45406e0c;
  --rightExpand: #a9a5c2;
  --white: #ffffff;
  --black: #000000;
  --yellowBlock: #ffeb8b;
  --font: "Poppins", sans-serif;
  --buttonRadius: 14px;
  --roundedEdge: 20px;
  --headerRadius: 40px;
}

body {
  background: var(--bodyBackground);
  font-family: var(--font);
}

.container {
  max-width: 1920px;
  &.smallContainer {
    max-width: 1278px;
  }
}

h1 {
  font-weight: 500;
  font-size: clamp(32px, 1.2vw, 54px);
  line-height: clamp(36px, 1.2vw, 64px);
  letter-spacing: -2%;
  color: var(--headingText);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h2 {
  font-size: clamp(36px, 1.2vw, 54px);
  line-height: clamp(48px, 1.2vw, 72px);
  letter-spacing: -2%;
  color: var(--headingText);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h3 {
  font-size: clamp(28px, 1.2vw, 42px);
  line-height: clamp(34px, 1.2vw, 48px);
  color: var(--headingText);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h4 {
  font-size: clamp(16px, 1.2vw, 26px);
  line-height: clamp(24px, 1.2vw, 34px);
  letter-spacing: -2%;
  color: var(--headingText);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p {
  font-size: clamp(14px, 1.2vw, 24px);
  line-height: clamp(24px, 1.2vw, 34px);
  color: var(--bodyText);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  text-decoration: none;
}

/* Button Styling */

.siiButton {
  a,
  button {
    display: inline-flex;
    align-items: center;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    span {
      background: var(--button);
      color: var(--white);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.35s ease;
      padding: 0.8rem 1.2rem;
    }
    .text {
      width: 100%;
      font-size: clamp(16px, 1.2vw, 20px);
      border-radius: var(--buttonRadius);
      margin-right: 10px;
    }
    .arrow {
      width: 70px;
      font-size: clamp(16px, 1.2vw, 20px);
      border-radius: var(--buttonRadius);
    }
    &:hover {
      .text {
        width: calc(100% + 10px);
        margin-right: 0;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        transform: translateX(6px);
      }
      .arrow {
        width: 80px;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
      }
    }
  }
}

/* Menu */
/* .sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--bodyBackground);
}
.logo {
  padding-left: 3rem;
}
.menu-header-menu-container {
  display: inline-block;
  @media (max-width: 1367px) {
    float: left;
  }
}
.menu {
  .contactButton {
    margin-top: 1.2rem;
  }
}
#menu-header-menu {
  margin: 1rem auto;
  li {
    display: inline-block;
    padding: 0.5rem;
    @media (max-width: 2000px) {
      padding: 0.25rem;
    }
    a {
      color: var(--headingText);
      text-decoration: none;
      display: inline-block;
      padding: 1rem;
      font-size: clamp(16px, 1.2vw, 24px);
      line-height: clamp(26px, 1.2vw, 34px);
    }
  }
}
.contactButton {
  display: inline-block;
} */

/* NEW MENU */

/* =========================
   Header
========================= */

.sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--bodyBackground);
}

.logo {
  padding-left: 3rem;
  max-width: 280px;

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

/* Bootstrap hamburger */

.navbar-toggler {
  border: 0;
  padding: 0.5rem;

  &:focus {
    box-shadow: none;
  }

  .navbar-toggler-icon {
    width: 2rem;
    height: 2rem;
  }
}

/* Menu */

.menu-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  @media (max-width: 1200px) {
    display: unset;
  }
}

#headerMenu {
  justify-content: flex-end;
}

#menu-header-menu {
  margin: 1rem 0;
  padding: 0;
  list-style: none;

  li {
    display: inline-block;
    padding: 0.25rem;

    a {
      color: var(--headingText);
      text-decoration: none;
      display: inline-block;
      padding: 1rem;
      font-size: clamp(14px, 1vw, 24px);
      line-height: clamp(26px, 1.2vw, 34px);

      &:hover {
        opacity: 0.7;
      }
    }
  }
}

.contactButton {
  display: inline-block;
  margin-top: 0;
  .siiButton {
    a {
      .arrow {
        font-size: clamp(14px, 1vw, 24px);
      }
      .text {
        font-size: clamp(14px, 1vw, 24px);
      }
    }
  }
}

/* =========================
   Mobile
========================= */

@media (max-width: 991.98px) {
  .sticky {
    padding: 0.75rem 1rem;
  }

  .logo {
    padding-left: 0;
  }

  .navbar-toggler {
    margin-left: auto;
  }

  #headerMenu {
    width: 100%;
    padding: 1rem 0;
  }

  .menu-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  #menu-header-menu {
    width: 100%;
    margin: 0;

    li {
      display: block;
      padding: 0;

      a {
        display: block;
        padding: 0.75rem 0;
      }
    }
  }

  .contactButton {
    margin-top: 1rem;
  }
}

/* Footer */

.preFooter {
  margin-top: 2rem;
  height: 224px;
  background: linear-gradient(180deg, rgba(241, 239, 255, 0) 0%, #f1efff 100%);
  @media (max-width: 768px) {
    height: 125px;
  }
}

footer {
  font-weight: 400;
  font-size: clamp(14px, 1.2vw, 24px);
  color: var(--bodyText);
  background-color: var(--blockBackground);
  padding-top: 2rem;
  ul {
    padding-left: 0;
  }
  li {
    list-style-type: none;
  }
  h3 {
    font-weight: 400;
    font-size: clamp(14px, 1.2vw, 20px);
    letter-spacing: 0%;
    color: var(--headingText);
  }

  a {
    color: var(--bodyText);
    text-decoration: none;
    &:hover {
      color: var(--headingText);
      text-decoration: underline;
    }
  }
  .bottomLogo {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }
  .footerBottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    margin-top: 5rem;
    a {
      text-decoration: underline;
      &:hover {
        text-decoration: none;
      }
    }
    .copyright {
      @media (max-width: 768px) {
        padding-left: 1rem;
      }
      p {
        @media (max-width: 768px) {
          margin-right: 0 !important;
          text-align: center;
        }
        &:last-child {
          text-align: center;
          text-wrap: balance;
        }
      }
    }
    .policyLinks {
      @media (max-width: 768px) {
        padding-left: 0;
      }
    }
    #menu-footer-policy-menu {
      li {
        display: inline-block;
        margin-left: 1rem;
        &:first-child {
          margin-left: 0;
        }
        @media (max-width: 768px) {
          width: 100%;
          margin-left: 0;
          margin-top: 0.5rem;
        }
        a {
          @media (max-width: 768px) {
            font-size: clamp(12px, 1.2vw, 16px);
            line-height: clamp(20px, 1.2vw, 24px);
          }
        }
      }
    }
  }
  h3 {
    margin: 0 auto 2rem;
    img {
      width: 25px;
      margin-right: 1rem;
    }
  }
  .borderLeft {
    border-left: 1px solid var(--border);
    padding: 0 2.5rem;
    @media (max-width: 768px) {
      padding: 0 1.5rem;
      margin-top: 1.5rem;
    }
    li {
      @media (max-width: 768px) {
        font-size: clamp(12px, 1.2vw, 16px);
        line-height: clamp(20px, 1.2vw, 24px);
      }
      a {
        @media (max-width: 768px) {
          font-size: clamp(12px, 1.2vw, 16px);
          line-height: clamp(20px, 1.2vw, 24px);
        }
      }
    }
  }
  .navigation {
    @media (max-width: 768px) {
      margin-top: 2rem;
    }
  }
}

/* News Block */

.news {
  margin: 2rem auto;
  h4 {
    margin: 1rem 0;
    word-break: break-word;
    min-height: 100px;
    font-weight: 400;
    @media (max-width: 768px) {
      min-height: 70px;
      text-align: center;
    }
    a {
      color: var(--headingText);
      text-decoration: none;
    }
  }
  .row {
    display: flex;
    flex-wrap: wrap;
  }
  .articleLoop {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    header {
      display: flex;
      flex-direction: column;
      flex-grow: 1;
    }
    .postDate {
      margin-top: auto;
    }
  }

  .articleImage {
    position: relative;
    overflow: hidden;
    border-radius: var(--roundedEdge);
    img {
      display: block;
      width: 100%;
      transition: transform 0.3s ease;
    }

    &:after {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.35);
      opacity: 0;
      transition: opacity 0.3s ease;
      pointer-events: none;
      border-radius: 15px;
    }
  }

  .articleLoop {
    margin-top: 2.5rem;
    &:hover {
      cursor: pointer;
      .articleImage {
        &:after {
          opacity: 1;
        }
      }
    }
    @media (max-width: 768px) {
      margin-top: 0.5rem;
    }
  }
}

.backButton {
  a {
    font-size: clamp(18px, 1.2vw, 24px);
    line-height: clamp(28px, 1.2vw, 34px);
    color: var(--backButton);
  }
}

/* Video Block */

.videoBlock {
  position: relative;
  z-index: -10;
  video {
    width: 100%;
    margin-top: -15rem;
    position: relative;
    z-index: -1;
    margin-bottom: -15rem;
    @media (max-width: 768px) {
      width: 100%;
      top: -150px;
    }
  }
}

/* HEADING CONTENT AND IMAGE */

.headingIntroImage {
  position: relative;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;

  &__content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 60px;
    color: #fff;

    h2 {
      margin-bottom: 20px;
    }
  }

  &__text {
    max-width: 700px;
  }
}

.posts-header {
  .posts-header-background {
    position: relative;
    background-size: cover;
    background-position: left;
    background-repeat: no-repeat;
    padding: 80px 20px;
    color: var(--headingText);
    height: clamp(760px, 1.2vw, 768px);
    max-width: 98%;
    margin: 0 auto 5rem;
    border-top-left-radius: var(--headerRadius);
    border-top-right-radius: var(--headerRadius);
    border-bottom-right-radius: var(--headerRadius);
    border-bottom-left-radius: var(--headerRadius);
    > * {
      position: relative;
      z-index: 1;
    }
    @media (max-width: 768px) {
      background-position: center;
      height: clamp(500px, 1.2vw, 768px);
    }
  }
}

/* ---------- Accordion panels ---------- */
.horizontalPanels {
  display: flex;
  max-width: 1920px;
  margin: 60px auto 0;
  height: 450px;
  border-radius: 20px;
  overflow: hidden;
  @media (max-width: 900px) {
    flex-direction: column;
    height: auto;
  }
  .panel {
    position: relative;
    flex: 1;
    padding: 44px 40px;
    cursor: pointer;
    transition:
      flex-grow 0.55s cubic-bezier(0.65, 0, 0.35, 1),
      background-color 0.55s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    &:nth-child(1) {
      background: var(--left);
    }
    &:nth-child(2) {
      background: var(--center);
    }
    &:nth-child(3) {
      background: var(--right);
    }
    &.active {
      flex-grow: 2.4;
      &:nth-child(1) {
        background: var(--leftExpand);
      }
      &:nth-child(2) {
        background: var(--centerExpand);
        h3 {
          color: var(--white);
        }
        p {
          color: var(--white);
        }
      }
      &:nth-child(3) {
        background: var(--rightExpand);
      }
      p {
        opacity: 1;
        transform: translateY(0);
      }
      .toggle {
        border-color: var(--white);
        color: var(--white);
        svg {
          transform: rotate(0deg);
        }
      }
      @media (max-width: 900px) {
        min-height: 320px;
      }
    }
    &.inactive {
      flex-grow: 0.75;
    }
    p {
      margin: 20px 0 0;
      font-size: clamp(20px, 1.2vw, 24px);
      color: var(--headingText);
      opacity: 0;
      transform: translateY(8px);
      transition:
        opacity 0.35s ease 0.15s,
        transform 0.35s ease 0.15s;
    }
    .toggle {
      margin-top: auto;
      width: 46px;
      height: 46px;
      border-radius: 50%;
      border: 1.5px solid var(--headingText);
      display: flex;
      align-items: center;
      justify-content: center;
      align-self: flex-end;
      transition:
        transform 0.4s ease,
        border-color 0.4s ease,
        background 0.4s ease;
      flex-shrink: 0;
      svg {
        width: 18px;
        height: 18px;
        transition: transform 0.4s ease;
        transform: rotate(180deg);
      }
    }
    @media (max-width: 900px) {
      flex: none !important;
      min-height: 140px;
    }
    &:not(.active) {
      justify-content: space-between;
      p {
        height: 0;
        margin: 0;
        overflow: hidden;
      }
    }
  }
}
