:root {
  --primary-white: #FFFFFF;
  --primary-coral: #FE6E68;
  --primary-sky-blue: #3375B9;
  --primary-xenti-blue: #0b1e3f;
  --secondary-dark-blue: #1B2F53;
  --secondary-sky-blue: #1C5B9B;
  --secondary-light-blue: #364F79;
  --primary-caramel: #DEAB6C;
  --secondary-blue: #1C5B9B;
  --dark-grey: #848484;
  --medium-grey: #00000034;
  --light-grey: #F7F7F7;
  --darkest-gray: #707070;
  --lightest-grey: #F8F8F8;

  /* Typography */
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-md: 18px;
  --font-size-lg: 22px;
  --font-size-xl: 35px;

  /* Spacing */
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 20px;
  --spacing-lg: 40px;
  --spacing-xl: 80px;
  --spacing-xxl: 120px;
  --spacing-xxxl: 150px;

  /* Border Radius */
  --border-radius-sm: 10px;
  --border-radius-md: 24px;
  --border-radius-lg: 30px;
  --border-radius-xl: 60px;

  /*  Values square size  */
  --values-square-size: 200px;
  --white-container-offset: -100px;
}

body {
  margin: 0;
  padding: var(--spacing-md);
  background-color: var(--primary-white);
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
}

/* Layout Components */
.flex-container {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.justify-start {
  justify-content: flex-start;
}

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

/* Typography */
h1,
h2 {
  font-weight: 300;
}

h1 {
  font-size: var(--font-size-xl);
  line-height: 44px;
}

h2 {
  font-size: var(--font-size-lg);
  line-height: 33px;
}

p {
  font-size: var(--font-size-md);
  line-height: 1.5;
}

.uppercase-text {
  text-transform: uppercase;
}


/* Buttons */
.button {
  border-radius: var(--border-radius-md);
  padding: var(--spacing-xs) var(--spacing-sm);
  font: normal normal medium 22px/27px Montserrat;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease;
  max-width: 200px;
  max-height: max-content;
  padding-top: 8px;
  padding-bottom: 8px;
  margin-left: 10%;
  margin-top: 20px;
}

.button-coral {
  background-color: var(--primary-coral);
  color: var(--primary-white);
}

.button-sky-blue {
  background-color: var(--primary-sky-blue);
  color: var(--primary-white);
}

/* ------ THIS CONTAINER COVES THE HEADER SECTION */
.header-container {
  border-top-left-radius: var(--border-radius-lg);
  border-top-right-radius: var(--border-radius-lg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 40% 10%;
  /* background-image: url('assets/img/Images/AI-Character-head-landscape-min2.png'); */
  background-image: url('assets/img/Images/header-index.png');
  padding-bottom: 300px;
  /* THIS IS HERE TO HACK THE OFFSET FROM THE OVERLAPPING WHITE CONTAINER */
}

/* ------  THIS CONTAINER COVERS THE LOGO, SOCIAL AND MENU AREA */

.logo-social-menu-container {
  border-radius: var(--border-radius-lg);
  font-family: "Montserrat", sans-serif;
  padding-left: 20;
}

/* ------  THIS CONTAINER COVES THE LOGO and SOCIAL ICONS  */
.logo-social-container {
  margin-left: 10%;
  margin-top: 0;
}

.logo img {
  /* width: 20%; */
  max-width: 400px;
  height: auto;
  object-fit: contain;
  display: block;
  min-width: 100px;
  padding-left: 0;
  transform: translateX(-40px);
}

.margin-right-10 {
  margin-right: 10%;
}

.social-icons {
  align-self: center;
  flex-shrink: 1;
  flex-grow: 0;
  flex-basis: auto;
  min-width: 200px;
}

.social-icons a {
  color: var(--primary-white);
  font-size: x-large;
  text-decoration: none;
  list-style: none;
}

.social-icons ul {
  text-decoration: none;
  list-style: none;
}

.social-icons li {
  text-decoration: none;
  list-style: none;
}

.fa-facebook {
  padding: 10px 14px;
  -o-transition: .5s;
  -ms-transition: .5s;
  -moz-transition: .5s;
  -webkit-transition: .5s;
  transition: .5s;
}

.fa-facebook:hover {
  background-color: #3d5b99;
}

.fa-x-twitter {
  padding: 10px 12px;
  -o-transition: .5s;
  -ms-transition: .5s;
  -moz-transition: .5s;
  -webkit-transition: .5s;
  transition: .5s;
}

.fa-x-twitter:hover {
  background-color: black;
}

.fa-linkedin {
  padding: 10px 14px;
  -o-transition: .5s;
  -ms-transition: .5s;
  -moz-transition: .5s;
  -webkit-transition: .5s;
  transition: .5s;
}

.fa-linkedin:hover {
  background-color: #0073a4;
}

/* ------ THIS CONTAINER HOLDS THE MENU and MENU ITEMS IN WIDE WEB BROWSER */

.nav {
  margin-top: 20px;
  margin-left: 10%;
  width: 100%;
}

.nav ul {
  display: flex;
  list-style: none;
  align-items: flex-start;
  margin-block-start: 0;
  padding-inline-start: 0;
  padding-left: 20px;
}

.nav ul li {
  margin-right: 20px;
}

.nav ul li a {
  text-decoration: none;
  color: #fff;
  font-size: 18px;
}

.nav li a:hover {
  border-color: var(--primary-coral);
  background-color: var(--primary-coral);
  border-radius: var(--border-radius-sm);
  padding: 8px;
}



/* ------ SMALL SCREEN RESPONSIVE MENU and MENU ITEMS  */
/* ------ HAMBURGER ICON ONLY SHOWN WHEN SMALL SCREEN   */

.hamburger {
  display: none;
  margin-left: 0;
  padding-left: 20px;
}

.menu {
  z-index: 100;
  width: 50%;
  height: auto;
  align-items: flex-start;
  background-color: var(--primary-sky-blue);
  margin: 0;
  padding-top: 20px;
  border: var(--light-grey);
  border-style: solid;
  border-width: 1px;
  list-style: none;
  text-decoration: none;
  transform: translateX(-100%);
  transition: transform 0.2s ease, visibility 0.2s ease;
  visibility: hidden;
}

.menu li a {
  font: normal normal medium 20px/24px Montserrat;
  color: var(--primary-white);
  list-style: none;
  text-decoration: none;
  margin: var(--spacing-sm);
  padding: var(--spacing-sm);
}

.menu li a:hover {
  border-color: var(--primary-coral);
  background-color: var(--primary-coral);
}

.menu:target {
  /* RESPONSIVE - show menu if referenced in href id*/
  transform: translateX(0);
  visibility: visible;
}

.menu li a.close {
  color: var(--primary-white);
  padding: var(--spacing-sm);
  text-decoration: none;
  font-size: medium;
  cursor: pointer;
}

.menu li a.close:hover {
  background-color: var(--primary-coral);
}

/* HERO CONTENT BELOW NAVBAR */

.hero-container {
  z-index: 10;
  position: relative;
  justify-content: flex-start;
  border-radius: 0px;
  height: 30vh;
  margin-bottom: var(--spacing-xxl);
  padding: var(--spacing-md);
  color: var(--primary-white);
  margin-left: 10%;
}

.hero-container h1 {
  color: var(--primary-white);
  font: normal normal bold 55px/67px Montserrat;
  max-width: 35%;
  /* margin-left: 10%; */
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.hero-container p {
  font: normal normal medium 22px/27px Montserrat;
  max-width: 30%;
  /* margin-left: 10%; */
  max-height: 250px;
}

.white-container {
  z-index: 20;
  position: relative;
  top: calc(var(--white-container-offset));
  padding-bottom: var(--values-square-size);
  gap: var(--spacing-lg);
  background-color: var(--primary-white);
  border-radius: var(--border-radius-xl);
  text-align: center;
  align-items: center;
}

.white-container h2 {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  color: var(--primary-sky-blue);
  font: normal normal 300 35px/44px Montserrat;
}

.white-container hr {
  display: block;
  padding: 0;
  height: 1px;
  width: 55%;
  border: 0;
  border-top: 1px solid var(--primary-sky-blue);
}

.white-container p {
  font: normal normal 300 22px/33px Montserrat;
  color: var(--dark-grey);
  margin-top: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.white-container button {
  margin-left: 0%;
}

.white-container-tile-container {
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);

}

.white-container-video-tiles {
  position: relative;
  width: 40%;
  height: auto;
  overflow: hidden;
  border-radius: var(--border-radius-sm);
}

.white-container-video-container {
  width: 100%;
  height: 100%;
}

.white-container-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.title {
  position: relative;
  z-index: 25;
  top: -60px;
  bottom: var(--spacing-sm);
  left: var(--spacing-sm);
  color: var(--primary-white);
  font-size: var(--font-size-md);
  font-weight: bold;
}

/*  OVERLAPPING COLOURED VALUES */

.values-container {
  position: relative;
  z-index: 30;
  top: calc(var(--white-container-offset) - var(--values-square-size)/1.5);
  gap: var(--spacing-xs);
  align-items: center;
}

.values-item {
  border-radius: var(--border-radius-lg);
  color: var(--primary-white);
  font-size: large;
  align-items: center;
  text-align: center;
  width: 300px;
  height: 300px;
}

.values-item img {
  color: var(--primary-white);
  margin-top: var(--spacing-sm);
  padding-top: var(--spacing-sm);
}

.values-item h3 {
  font: normal normal 300 35px/44px Montserrat;
  padding: var(--spacing-sm);
  margin: 0;
}

.values-item p {
  font: normal normal 300 20px/25px Montserrat;
  padding: var(--spacing-sm);
  margin: 0;
}

.value-innovation {
  background-color: var(--secondary-dark-blue);
}

.value-integrity {
  background-color: var(--primary-sky-blue);
}

.value-oneteam {
  background-color: var(--primary-coral);
}

.value-fun {
  background-color: var(--primary-caramel);
}

/*  XENTI DUAL EXPERTISE UNDERLAPPING COLOURED VALUES */

.offerings-container {
  position: relative;
  z-index: 10;
  top: calc(var(--white-container-offset) + (-2 * var(--values-square-size)));
  padding-bottom: var(--spacing-xl);
  background-color: var(--primary-xenti-blue);
  min-height: min-content;
  text-align: center;
  align-items: center;
  gap: var(--spacing-xl);

}

.offerings-container h2 {
  font: normal normal 300 35px/44px Montserrat;
  color: var(--primary-coral);
  justify-content: center;
  padding-top: calc(var(--white-container-offset)*-4);
}

.offerings-container hr {
  display: block;
  padding: 0;
  height: 1px;
  width: 55%;
  border: 0;
  border-top: 1px solid var(--primary-white);
  padding-bottom: var(--spacing-lg);
}

.offerings-container p {
  font: normal normal 300 22px/33px Montserrat;
  color: var(--primary-white);
  margin-top: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  padding-bottom: var(--spacing-lg);
}

.offering {
  flex: 1 1 200px;
  padding-left: 30px;
  padding-right: 30px;
  text-align: left;
  max-width: 550px;
  /* max-width: 30%; */

}

.offering img {
  color: var(--primary-coral);
  align-items: left;
}

.offering h3 {
  font: normal normal 300 25px/44px Montserrat;
  color: var(--primary-coral);
  text-align: left;
}

.offering p {
  font: normal normal 300 22px/33px Montserrat;
  color: var(--primary-white);
}

/*  CONTACT US SECTION */

.contactus-background-container {
  position: relative;
  top: calc(var(--white-container-offset)*4 - var(--values-square-size)/2);
  z-index: 10;
  background-color: var(--primary-sky-blue);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: right;
  background-image: url('assets/img/Images/contactus-background.png');
  padding: 3%;
  justify-content: center;

}

.contactus-blue-container {

  color: var(--primary-white);
  justify-content: space-between;
  align-items: flex-start;
  /* padding: var(--spacing-md); */
  border-radius: var(--border-radius-lg);
  background-color: var(--primary-sky-blue);

}

.contactus-left-text {
  flex: 1 1 50%;
  max-width: 50%;
  padding: var(--spacing-xl);
}

.contactus-left-text h2 {
  font: normal normal 200 35px/44px Montserrat;
}

.contactus-left-text p {
  font: normal normal 300 20px/33px
}

.contactus-left-text-items {
  padding: 12px;
}

.contactus-right-form {
  flex: 1 1 50%;
  max-width: 50%;
  padding: var(--spacing-xl);
}

/* MAILERLITE FORM EMBED - Hide all forms by default */
.mailterlite-form {
  display: none;
  color: var(--primary-white);
}

.mailterlite-form p {
  font: normal normal 300 20px/33px;
}

.mailterlite-form h2 {
  font-size: 18px;
  padding-top: 10px;
  padding-bottom: 5px;
}

.form-selection label {
  margin-right: 20px;
  cursor: pointer;

}

.form-selection h2 {
  font: normal normal 200 35px/44px Montserrat;
}

.form-selection p {
  font: normal normal 300 20px/33px;
}

.radio-options {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 18px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default radio button */
.radio-options input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-options label {
  font: normal normal 300 20px/33px;
  padding-bottom: 5px;
}

/* Create a custom radio button */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
  border-radius: 50%;
}

/* On mouse-over, add a grey background color */
.radio-options:hover input~.checkmark {
  background-color: #ccc;
}

/* When the radio button is checked, add a blue background */
.radio-options input:checked~.checkmark {
  background-color: #2196F3;
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the indicator (dot/circle) when checked */
.radio-options input:checked~.checkmark:after {
  display: block;
}

/* Style the indicator (dot/circle) */
.radio-options .checkmark:after {
  top: 9px;
  left: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}


/*  BOTTOM BLUE FOOTER SECTION */

.footer-container {
  z-index: 20;
  position: relative;
  top: calc(var(--white-container-offset) + (-2 * var(--values-square-size)) - var(--border-radius-lg));
  margin-bottom: 0;
  padding-bottom: 0;
  overflow: hidden;
  bottom: 0;
}

.blue-footer {
  background-color: var(--primary-xenti-blue);
  align-items: center;
  font-family: "Montserrat", sans-serif;
  font-size: small;
  gap: 10px;
  border-top-left-radius: var(--border-radius-lg);
  border-top-right-radius: var(--border-radius-lg);

}

.blue-footer-logo img {
  max-width: 150px;
  height: auto;
  object-fit: contain;
  display: block;
  min-width: 100px;
}

.blue-footer-nav {
  padding-right: 40px;
}

.blue-footer-nav-items {
  /* margin-left: 10%; */
  color: var(--primary-white);
}

.blue-footer-nav-items ul {
  justify-content: flex-start;
  list-style: none;
  padding: 0;
  margin: 0;
}

.blue-footer-nav-items li {
  margin-left: 0px;

}

.blue-footer-nav-items li a {
  font-size: small;
  color: var(--primary-white);
  list-style: none;
  text-decoration: none;
  margin-left: 20px;
  padding: 3px;
}

.blue-footer-nav-items li a:hover {
  border-color: var(--primary-coral);
  background-color: var(--primary-coral);
  padding: 8px;
  border-radius: 10px;
}

.blue-footer-social-container {
  min-width: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  text-decoration: none;
}

.coral-footer {
  background-color: var(--primary-coral);
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  font-family: "Figtree", sans-serif;
  font-weight: 200;
  font-size: x-small;
  height: 60px;
  align-items: center;
}

.coral-footer-items {
  display: flex;
  margin-left: 10%;
  color: var(--primary-white);
  margin-right: 10%;
}

/* ----------------------- RESPONSIVE MEDIA QUERIES */

@media (min-width: 801px) {

  #menu {
    display: none;
  }

}

@media (max-width: 800px) {

  #menu {
    display: block;
    position: absolute;
    top: 20px;
    left: 50px;
    width: 90%;
    background-color: var(--primary-sky-blue);
    z-index: 1000;
    /* Ensure it's above other content */
    padding: 20px;
    box-sizing: border-box;
  }

  /* Increase the spacing between the menu items */
  #menu li {
    margin-bottom: 15px;
    /* Adjust this value to increase or decrease the spacing */
    list-style: none;
    /* Ensure there's no bullet or numbering */
  }

  /* Optional: Remove the margin from the last item to avoid extra space at the end */
  #menu li:last-child {
    margin-bottom: 0;
  }

  .nav {
    display: none;
  }

  .header-container,
  .hero-container {
    font-size: small;
    width: 100%;
    padding: 10px;
    margin: 0;
    height: auto;
    min-height: min-content;
    top: 0;

  }

  .header-container {
    background-position: center;
    margin-top: 0;
    top: 0;
  }

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

  .logo-social-container {
    flex-direction: row;
    justify-content: space-between;
    /* align-items: flex-start; */
    flex-wrap: nowrap;
    width: 100%;
    margin-top: 0;
    padding-top: 0;
  }

  .social-icons ul li a {
    font-size: medium;
  }

  /* show hamburger menu if screen is small */
  .hamburger {
    display: block;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 2rem;
    margin-right: 10px;
  }


  .hero-container h1 {
    /* max-width: 95%; */
    font-size: large;
  }

  .hero-container p {
    max-width: 95%;
    font-size: small;
  }

  .white-container,
  .values-container,
  .offerings-container,
  .contactus-background-container,
  .footer-container,
  .blue-footer,
  .coral-footer {
    font-size: small;
    padding: 10px;
    margin: 0;
    height: auto;
    min-height: min-content;
    top: 0;
    border-radius: 0;
  }

  .white-container-video-tiles {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: var(--border-radius-sm);
  }

  .offerings-container h2 {
    padding-top: unset;
  }

  .offering {
    margin-top: 15px;
  }

  .contactus-left-text,
  .contactus-right-form {
    max-width: 100%;
    /* margin: 10; */
    padding: unset;
    padding-left: 10px;
    padding-right: 10px;
  }

  .contactus-blue-container {
    flex-direction: column;
    align-items: stretch;
    border-radius: 0;
  }

  .footer-container,
  .blue-footer,
  .coral-footer {
    padding: 0;
  }

  /* This alternates the text and the images on the service page as they go bad in small screens text --- image --- image --- text
  rather than text -- image --- text --- image */

  .service-container:nth-child(2n+1) .service-item:nth-child(1) {
    order: 2;
    /* Move text below image for odd-numbered containers */
  }

  .service-container:nth-child(2n+1) .service-item:nth-child(2) {
    order: 1;
    /* Move image above text for odd-numbered containers */
  }
}


@media (max-width: 550px) {

  .footer-container,
  .blue-footer,
  .coral-footer,
  .blue-footer-nav ul {
    flex-wrap: nowrap;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    gap: 2px;
  }

  .blue-footer-nav ul,
  .blue-footer-social-container,
  .social-icons {
    padding: 0;
    justify-content: center;
    justify-items: center;
  }

}