/*
Theme Name: SIINOVIA UK LTD - 2026
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");

/* =========================
   Variables
========================= */

:root {
  --button: #797695;
  --bodyText: #797695;
  --headingText: #282345;
  --bodyBackground: #fefefe;
  --blockBackground: #f1efff;
  --backButton: #403a65;
  --border: #c5c5c5;

  /* Block Accordion */
  --left: #dde08d33;
  --leftExpand: #d3da5f;
  --center: #52535233;
  --newCenter: #a8a9a8;
  --centerExpand: #525352;
  --right: #45406e0c;
  --rightExpand: #a9a5c2;

  --white: #ffffff;
  --black: #000000;
  --yellowBlock: #ffeb8b;
  --font: "Poppins", sans-serif;
  --buttonRadius: 14px;
  --roundedEdge: 20px;
  --headerRadius: 40px;
}

/* =========================
   Global
========================= */

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

.container {
  max-width: 1920px;
}

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

h1 {
  font-weight: 500;
  font-size: clamp(32px, 1.2vw, 54px);
  line-height: clamp(36px, 1.2vw, 64px);
  letter-spacing: -0.02em;
  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: -0.02em;
  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: -0.02em;
  color: var(--headingText);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
}

/* =========================
   Button Styling
========================= */

.siiButton a,
.siiButton button {
  display: inline-flex;
  align-items: center;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.siiButton a span,
.siiButton button 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;
}

.siiButton a .text,
.siiButton button .text {
  width: 100%;
  font-size: clamp(16px, 1.2vw, 20px);
  border-radius: var(--buttonRadius);
  margin-right: 10px;
}

.siiButton a .arrow,
.siiButton button .arrow {
  width: 70px;
  font-size: clamp(16px, 1.2vw, 20px);
  border-radius: var(--buttonRadius);
}

.siiButton a:hover .text,
.siiButton button:hover .text {
  width: calc(100% + 10px);
  margin-right: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  transform: translateX(6px);
}

.siiButton a:hover .arrow,
.siiButton button:hover .arrow {
  width: 80px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

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

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

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

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

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

.navbar-toggler:focus {
  box-shadow: none;
}

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

.menu-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

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

#menu-header-menu li {
  display: inline-block;
  padding: 0.25rem;
}

#menu-header-menu li 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);
}

#menu-header-menu li a:hover {
  opacity: 0.7;
}

.contactButton {
  display: inline-block;
  margin-top: 0;
}

.contactButton .siiButton a .arrow {
  font-size: clamp(14px, 1vw, 24px);
}

.contactButton .siiButton a .text {
  font-size: clamp(14px, 1vw, 24px);
}

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

@media (max-width: 1200px) {
  .menu-wrapper {
    display: block;
  }
}

@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;
  }

  #menu-header-menu li {
    display: block;
    padding: 0;
  }

  #menu-header-menu li 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%);
}

footer {
  font-weight: 400;
  font-size: clamp(14px, 1.2vw, 24px);
  color: var(--bodyText);
  background-color: var(--blockBackground);
  padding-top: 2rem;
}

footer ul {
  padding-left: 0;
}

footer li {
  list-style-type: none;
}

footer h3 {
  font-weight: 400;
  font-size: clamp(14px, 1.2vw, 20px);
  letter-spacing: 0;
  color: var(--headingText);
  margin: 0 auto 2rem;
}

footer h3 img {
  width: 25px;
  margin-right: 1rem;
}

footer a {
  color: var(--bodyText);
  text-decoration: none;
}

footer a:hover {
  color: var(--headingText);
  text-decoration: underline;
}

footer .bottomLogo {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

footer .footerBottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 5rem;
}

footer .footerBottom a {
  text-decoration: underline;
}

footer .footerBottom a:hover {
  text-decoration: none;
}

footer .footerBottom .copyright {
  padding-left: 0;
}

footer .footerBottom .copyright p {
  margin-right: 0;
}

footer .footerBottom .copyright p:last-child {
  text-align: center;
}

footer .footerBottom .policyLinks {
  padding-left: 0;
}

footer .footerBottom #menu-footer-policy-menu li {
  display: inline-block;
  margin-left: 1rem;
}

footer .footerBottom #menu-footer-policy-menu li:first-child {
  margin-left: 0;
}

footer .borderLeft {
  border-left: 1px solid var(--border);
  padding: 0 2.5rem;
}

footer .navigation {
  margin-top: 0;
}

.sii-footer-logo {
  max-width: 232px;
  margin-left: 0px;
}

@media (max-width: 1943px) {
  footer .footerBottom {
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
  }

  .sii-footer-logo {
    max-width: 232px;
    margin-left: 50px;
  }
}

@media (max-width: 991px) {
  .sii-footer-logo {
    max-width: 220px;
    max-height: 60px;
    height: auto;
    margin: 0 auto;
  }

  .sii-footer-logo-wrap {
    padding-bottom: 5rem;
  }
}

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

@media (max-width: 768px) {
  .preFooter {
    height: 125px;
  }

  footer .footerBottom .copyright {
    padding-left: 1rem;
  }

  footer .footerBottom .copyright p {
    margin-right: 0;
    text-align: center;
  }

  footer .footerBottom .copyright p:last-child {
    text-align: center;
    overflow-wrap: break-word;
  }

  footer .footerBottom .policyLinks {
    padding-left: 0;
    padding-right: 0;
  }

  footer .footerBottom #menu-footer-policy-menu li {
    width: 100%;
    margin-left: 0;
    margin-top: 0.5rem;
  }

  footer .footerBottom #menu-footer-policy-menu li a {
    font-size: clamp(12px, 1.2vw, 16px);
    line-height: clamp(20px, 1.2vw, 24px);
  }

  footer .borderLeft {
    padding: 0 1.5rem;
    margin-top: 1.5rem;
  }

  footer .borderLeft li {
    font-size: clamp(12px, 1.2vw, 16px);
    line-height: clamp(20px, 1.2vw, 24px);
  }

  footer .borderLeft li a {
    font-size: clamp(12px, 1.2vw, 16px);
    line-height: clamp(20px, 1.2vw, 24px);
  }

  footer .navigation {
    margin-top: 2rem;
  }
}

/* =========================
   News Block
========================= */

.news {
  margin: 2rem auto;
}

.news h4 {
  margin: 1rem 0;
  word-break: break-word;
  min-height: 100px;
  font-weight: 400;
}

.news h4 a {
  color: var(--headingText);
  text-decoration: none;
}

.news .row {
  display: flex;
  flex-wrap: wrap;
}

.news .articleLoop {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
  margin-top: 2.5rem;
}

.news .articleLoop header {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news .articleLoop .postDate {
  margin-top: auto;
}

.news .articleImage {
  position: relative;
  overflow: hidden;
  border-radius: var(--roundedEdge);
}

.news .articleImage img {
  display: block;
  width: 100%;
  transition: transform 0.3s ease;
}

.news .articleImage::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: 15px;
}

.news .articleLoop:hover {
  cursor: pointer;
}

.news .articleLoop:hover .articleImage::after {
  opacity: 1;
}

@media (max-width: 768px) {
  .news h4 {
    min-height: 70px;
    text-align: center;
  }

  .news .articleLoop {
    margin-top: 0.5rem;
  }
}

/* =========================
   Back Button
========================= */

.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;
}

.videoBlock video {
  width: 100%;
  margin-top: -15rem;
  position: relative;
  z-index: -1;
  margin-bottom: -15rem;
}

@media (max-width: 768px) {
  .videoBlock video {
    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;
}

.headingIntroImage__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 60px;
  color: #fff;
}

.headingIntroImage__content h2 {
  margin-bottom: 20px;
}

.headingIntroImage__text {
  max-width: 700px;
}

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

.posts-header .posts-header-background {
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 0;
  padding: 55px 75px;
  color: var(--headingText);
  height: clamp(430px, 30vw, 500px);
  max-width: 97%;
  margin: 0 auto 7rem;
  border-radius: var(--headerRadius);
}

.posts-header .posts-header-background h1 {
  margin-top: 0;
  margin-bottom: 14px;
  font-weight: 500;
}

.posts-header .posts-header-background > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 992px) {
  .posts-header .posts-header-background {
    padding: 40px 28px;
    align-items: flex-start !important;
  }

  .headerContent {
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .posts-header .posts-header-background {
    background-position: center;
    height: clamp(500px, 1.2vw, 768px);
  }

  .headerContent {
    max-width: 290px;
  }
}

/* =========================
   Accordion Panels
========================= */

.horizontalPanels {
  display: flex;
  max-width: 1920px;
  margin: 60px auto 0;
  height: 450px;
  border-radius: 20px;
  overflow: hidden;
}

.horizontalPanels .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;
}

.horizontalPanels .panel h3 {
  font-weight: 400 !important;
}

.horizontalPanels .panel:nth-child(1) {
  background: var(--left);
}

.horizontalPanels .panel:nth-child(2) {
  background: var(--center);
}

.horizontalPanels .panel:nth-child(3) {
  background: var(--right);
}

.horizontalPanels .panel.active {
  flex-grow: 2.4;
}

.horizontalPanels .panel.active:nth-child(1) {
  background: var(--leftExpand);
}

.page-template-compliance .horizontalPanels .panel.active:nth-child(1) {
  background: var(--leftExpand);
}

.horizontalPanels .panel.active:nth-child(2) {
  background: var(--centerExpand);
}

.horizontalPanels .panel.active:nth-child(2) h3 {
  color: var(--white);
}

.horizontalPanels .panel.active:nth-child(2) p {
  color: var(--white);
}

.horizontalPanels .panel.active:nth-child(3) {
  background: var(--rightExpand);
}

.horizontalPanels .panel.active p {
  opacity: 1;
  transform: translateY(0);
}

.horizontalPanels .panel.active .toggle {
  border-color: var(--white);
  color: var(--white);
}

.horizontalPanels .panel.active .toggle svg {
  transform: rotate(0deg);
}

.horizontalPanels .panel.inactive {
  flex-grow: 0.75;
}

.horizontalExpandingBlocks .horizontalPanels .panel:hover p {
  opacity: 1;
  visibility: visible;
  max-height: 300px;
  margin-top: 22px;
  max-width: 620px;
  line-height: 1.45;
}

.horizontalExpandingBlocks .horizontalPanels .panel p {
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  font-size: clamp(20px, 1.2vw, 24px);
  color: var(--headingText);
  transform: translateY(8px);
  transition:
    opacity 0.3s ease,
    max-height 0.4s ease,
    color 0.3s ease;
}

.horizontalPanels .panel .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;
}

.horizontalPanels .panel .toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.4s ease;
  transform: rotate(180deg);
}

.horizontalPanels .panel:not(.active) {
  justify-content: space-between;
}

.horizontalPanels .panel:not(.active) p {
  height: 0;
  margin: 0;
  overflow: hidden;
}

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

.page-template-compliance .horizontalExpandingBlocks .horizontalPanels .panel {
  transition:
    background-color 0.45s,
    min-height 0.4s !important;
}

@media (max-width: 992px) {
  .page-template-compliance .horizontalPanels {
    height: auto;
    row-gap: 15px;
  }

  .page-template-compliance .horizontalPanels .panel:nth-child(2) {
    background: var(--newCenter) !important;
  }

  .page-template-compliance .horizontalPanels .panel:nth-child(2) p {
    color: #ffffff !important;
  }

  .page-template-compliance .horizontalExpandingBlocks {
    padding: 0px;
  }

  .page-template-compliance .horizontalExpandingBlocks .horizontalPanels .panel,
  body.page-id-297 .horizontalExpandingBlocks .horizontalPanels .panel {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 260px !important;
    max-height: none !important;
    padding: 32px 28px 30px !important;
    border-radius: 26px !important;
    overflow: hidden !important;
    transition:
      background-color 0.45s,
      min-height 0.4s !important;
  }

  .page-template-compliance .horizontalPanels .panel h3 {
    margin-bottom: 0px;
    font-size: 27px !important;
  }

  .horizontalExpandingBlocks .horizontalPanels .panel p {
    transform: translateY(0px);
  }

  .page-template-compliance
    .horizontalExpandingBlocks
    .horizontalPanels
    .panel:hover
    p {
    max-height: 350px;
    opacity: 1;
    visibility: visible;
    margin-top: 22px;
    max-width: 620px;
    line-height: 1.45;
    font-size: 17px;
    font-weight: 500;
    color: rgb(32, 32, 32);
  }
  .preFooter {
    height: 50px;
  }

  .page-template-compliance
    .horizontalExpandingBlocks
    .horizontalPanels
    .panel.active {
    min-height: 360px !important;
  }
}

@media (max-width: 900px) {
  .page-template-compliance .horizontalPanels {
    row-gap: 15px;
  }

  .horizontalPanels {
    flex-direction: column;
    height: auto;
  }

  .horizontalPanels .panel {
    flex: none;
    min-height: 140px;
  }

  .horizontalPanels .panel.active {
    min-height: 320px;
  }
}

/* Footer logo - match top navigation branding */
@media (max-width: 991px) {
  footer > .container:first-child > .row > .col-12.col-lg-4 > img {
    display: block;
    width: auto;
    max-width: none;
    max-height: 70px;
    height: auto;
    margin-top: -4px;
    margin: 0 auto;
  }
  .footerMenus {
    text-align: left;
  }
}

@media (max-width: 900px) {
  footer {
    text-align: center;
  }

  /* -----------------------------------------
	   LOGO
	   ----------------------------------------- */

  footer > .container:first-child > .row > .col-12.col-lg-4 {
    width: 100%;
    text-align: center;
    padding-top: 0;
    padding-bottom: 35px;
  }

  footer > .container:first-child > .row > .col-12.col-lg-4 > img {
    display: block;
    width: auto;
    max-width: 220px;
    max-height: 60px;
    height: auto;
    margin: 0 auto;
  }

  .borderLeft {
    text-align: left;
  }

  /* -----------------------------------------
	   SPACING BETWEEN MOBILE SECTIONS
	   ----------------------------------------- */

  footer .navigation,
  footer .borderLeft {
    padding-top: 20px;
    padding-bottom: 30px;
  }

  /* -----------------------------------------
	   BOTTOM COPYRIGHT / POLICIES
	   ----------------------------------------- */

  footer .footerBottom {
    text-align: center;
  }

  footer .footerBottom .copyright,
  footer .footerBottom .policyLinks {
    width: 100%;

    justify-content: center;
    align-items: center;

    text-align: center;
  }

  footer .footerBottom .policyLinks {
    margin-top: 16px;
  }
}

@media (max-width: 768px) {
  .borderLeft {
    text-align: center;
  }
}
