/* GOOGLE FONT */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/* VARIABLE */
:root {
  --header-height: 5rem;
  
  /* Colours */

  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(220, 68%, 54%);
  --first-color-lighten: hsl(220, 68%, 97%);
  --title-color: hsl(220, 48%, 28%);
  --text-color: hsl(221, 56%, 11%);
  --body-color: hsl(0, 0%, 100%);

  
  /* Fonts & Typography */

  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Poppins", sans-serif;
  --normal-font-size: 1rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;
  
  /* Font Weights */
  --font-medium: 500;
  --font-semi-bold: 600;
  
  /* Z Index */
  --z-tooltip: 10;
  --z-fixed: 100;
}

@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/* BASE */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

/* We use this to find an ID on the page. Matches your navbar height to ensure the item selected is neatly positioned.  */
:root {
  scroll-padding-top: 6rem; 
}
/* Card colours */
.card-bg-blue    { background-color: #072C50; color: #fff; }
.card-bg-gold    { background-color: #B88746; color: #fff; }
.card-bg-green   { background-color: #198754; color: #fff; }
.card-bg-orange  { background-color: #fb651e; color: #fff; }
.shadow-exception {
  text-shadow: none !important;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  padding-top: calc(var(--header-height) + 1rem); /* Adds extra 3rem space after the nav bar */
  margin: 0 0 3% 0;
}

/* Prevent page from overflowing */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Remove margins for elements with the margin-exception class */
.margin-exception {
    margin-left: -6%;
    margin-right: -6%;
}

/* Insert space before the footer */
body::after {
  display: block;
  content: '';
  /* height: 33px */
}

.bg-light-transparent {
    background-color: rgba(248, 249, 250, 0.9); /* Bootstrap's .bg-light with 70% opacity */
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  place-content: center;
  margin-top: 2rem;
  /* gap: 1rem; */
}

.text-shadow {
  text-shadow: 2px 2px 8px rgba(0,0,0,0.75);
}

.main-hero-bg::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}

.main-hero-bg > * {
    position: relative;
    z-index: 2;
}

#page-container {
  position: relative;
  min-height: 100vh;
}

#content-wrap {
padding-bottom: 0;    /* Footer height */
}

.golden-blue {
  background-color: #072C50;
  color: #B88746;
  font-weight: bold;
}

.blue-on-gold {
  background-color:  #B88746;
  color: #072C50;
}

.white-on-gold {
  background-color: #B88746;
  color: white;
}

.white-blue {
  background-color: #072C50;
  color: #fff;
}

.golden-blue-orange-gradient {
  background: linear-gradient( 45deg,#fb651e, #072C50, #B88746);
  color: #fff;
}

.bb__blue {
  color: #072C50;
}

.bb__orange {
  color: #fb651e;
}

.orange-white {
  background-color: #fb651e;
  color: #fff;
}

.img {
  max-width: 50%;
  height: auto;
}

.bb__gold {
  color: #B88746;
}

ul {
  list-style: none;
}

.bullet-listed-items > ul {
    list-style: disc outside none;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.bullet-listed-items > ol {
    list-style: decimal outside none;
    margin-left: 1.5rem;
}

.bullet-listed-items > ul > li,
.bullet-listed-items > ol > li {
    display: list-item;
}

.nowrap {
  white-space: nowrap;
}

a {
  text-decoration: none;
}

/* REUSABLE CSS CLASSES */
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.container__main {
  margin-left: 1.5rem;  
  margin-right: 1.5rem;  
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-shadow: 0 2px 8px hsla(220, 68%, 12%, 0.1);
  background-color: var(--body-color);
  z-index: var(--z-fixed);
}

/* Wrapping the body to fix footer to bottom */
.footer {
  /* background-color: rgb(240, 254, 240); */
  top: 3;
  bottom: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  position: fixed;
  text-align: center;
  z-index: 1;
}

/* NAVIGATION STYLE */
.nav {
  height: var(--header-height);
}

.nav__data {
  height: 100%;
  display: flex;
  justify-content: space-between; /* Logo left, menu right */
  align-items: center;
  padding-left: 1rem; /* Marginal left padding for logo */
  padding-right: 1rem; /* Optional: right padding for menu */
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  column-gap: 0.25rem;
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  transition: color 0.3s;
  margin-right: 2rem; /* Space between logo and menu */
}

.nav__logo i {
  font-size: 1.25rem;
}

.nav__logo:hover {
  color: var(--first-color);
}

.nav__toggle {
  position: relative;
  width: 32px;
  height: 32px;
}

.nav__toggle-menu, .nav__toggle-close { 
  font-size: 1.25rem;
  background-color: rgb(227, 225, 225);
  margin-left: .25rem;
  border-radius: 20%;
  color: var(--title-color);
  position: absolute;
  display: grid;
  place-items: center;
  inset: 0;
  cursor: pointer;
  transition: opacity 0.1s, transform 0.4s;
}

.nav__toggle-close {
  opacity: 0;
}

@media screen and (max-width: 1118px) {
  .nav__menu {
    background-color: var(--body-color);
    position: absolute;
    left: 10vw;
    top: 10vh;
    width: 90vw;
    border-radius: 12px;
    height: calc(85vh - 3.5rem);
    overflow: auto;
    padding-block: 1.5rem 4rem;
    pointer-events: none;
    opacity: 0;
    transition: top 0.4s, opacity 0.3s;
  }
  .nav__menu::-webkit-scrollbar {
    width: 0.5rem;
  }
  .nav__menu::-webkit-scrollbar-thumb {
    background-color: hsl(220, 12%, 70%);
  }
}

.nav__link {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s;
}

.nav__link:hover {
  background-color: var(--first-color-lighten);
}

/* SHOW MENU */
.show-menu {
  opacity: 1;
  top: 3.5rem;
  pointer-events: initial;
}

/* SHOW ICON */
.show-icon .nav__toggle-menu {
  opacity: 0;
  transform: rotate(90deg);
}

.show-icon .nav__toggle-close {
  opacity: 1;
  transform: rotate(90deg);
}

/* DROPDOWN SWITCH BUTTON */
.dropdown__button {
  cursor: pointer;
}

.dropdown__arrow {
  font-size: 1.5rem;
  font-weight: initial;
  transition: transform 0.4s;
}

.dropdown__content, .dropdown__group, .dropdown__list {
  display: grid;
}

.dropdown__container {
  background-color: var(--first-color-lighten);
  height: 0;
  overflow: hidden;
  transition: height 0.4s;
}

.dropdown__content {
  row-gap: 1.75rem;
  border-bottom: #e0deda solid 1px;
}

.dropdown__group {
  padding-left: 0.5rem;
  row-gap: 0.5rem;
}

.dropdown__group:first-child {
  margin-top: 1rem;
}

.dropdown__group:last-child {
  margin-bottom: 1.25rem;
}

.dropdown__icon i {
  font-size: 1.25rem;
  color: var(--first-color);
}

.dropdown__title {
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.dropdown__list {
  row-gap: 0.25rem;
}

.dropdown__link {
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color);
  transition: color 0.3s;
}

.dropdown__link:hover {
  color: var(--title-color);
}

/* DROPDOWN ROTATION BUTTON */
.show-dropdown .dropdown__arrow {
  transform: rotate(180deg);
}

/* BREAKPOINTS */

/* Small Devices */
@media screen and (max-width: 640px) {
  .dropdown__group {
    padding-left: 1rem;
  }

  body {
    padding-top: calc(var(--header-height) + 0.1rem); /* Reduced gap for smaller devices */
  }
  
}

/* Large Devices */
@media screen and (min-width: 1118px) {

  /* Navigation */
  .nav {
    height: calc(var(--header-height) + 2rem);
    display: flex;
    justify-content: space-between;
  }
  .nav__toggle {
    display: none;
  }
  .nav__list {
    display: flex;
    column-gap: 3rem;
    height: 100%;
  }
  .nav li {
    display: flex;
  }
  .nav__link {
    padding: 0;
  }
  .nav__link:hover {
    background-color: initial;
  }

  /* Dropdown */
  .dropdown__button {
    column-gap: 0.25rem;
    pointer-events: none;
  }
  .dropdown__container {
    height: max-content;
    position: absolute;
    left: 0;
    right: 0;
    top: 6.5rem;
    background-color: var(--body-color);
    box-shadow: 0 6px 8px hsla(220, 68%, 12%, 0.05);
    pointer-events: none;
    opacity: 0;
    transition: top 0.4s, opacity 0.3s;
  }
  .dropdown__content {
    grid-template-columns: repeat(4, max-content);
    column-gap: 6rem;
    max-width: 1120px;
    margin-inline: auto;
  }
  .dropdown__group {
    padding: 1rem 0;
    align-content: baseline;
    row-gap: 1.25rem;
  }
  .dropdown__group:first-child, .dropdown__group:last-child {
    margin: 0;
  }
  .dropdown__list {
    row-gap: 0.75rem;
  }
  .dropdown__icon {
    width: 60px;
    height: 60px;
    background-color: var(--first-color-lighten);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
  }
  .dropdown__icon i {
    font-size: 2rem;
  }
  .dropdown__title {
    font-size: var(--normal-font-size);
  }
  .dropdown__link {
    font-size: var(--small-font-size);
  }
  .dropdown__link:hover {
    color: var(--first-color);
  }
  .dropdown__item {
    cursor: pointer;
  }
  .dropdown__item:hover .dropdown__arrow {
    transform: rotate(180deg);
  }
  .dropdown__item:hover > .dropdown__container {
    top: 5.5rem;
    opacity: 1;
    pointer-events: initial;
    cursor: initial;
  }
}
@media screen and (min-width: 1152px) {
  .container {
    margin-inline: auto;
  }
}



.cover {
  position: relative;
  width: 100vw;
  height: 95vh;
  display: flex;
  justify-content: center;
  align-items: center;
  display: grid;
  overflow: contain;
  grid-template-columns: repeat(16, 1fr);
  grid-template-rows: repeat(9, 1fr);

}

.cover-lead-text {
  grid-column: 3 / 8;
  grid-row: 3 / 3;
}

.cover-logo-container {
  grid-row: 3 / 8;
  grid-column: 4 / 6;
}

.custom-h1 {
    font-size: clamp(1.8rem, calc(7vw + 1rem), 5rem);
    font-weight: 700;
    line-height: 1.2;
    max-width: 40vw;
    margin-bottom: 1.5rem;
}

.custom-p-1 {
    font-size: clamp(1rem, calc(1vw + 0.5rem), 1.5rem);
    max-width: 40vw;
    margin-bottom: 2rem;
  }
  
  .custom-h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #333;
    grid-row: 3 / 6;
    grid-column: 3 / 1;
  }

  .custom-h2-orange {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #fb651e;
    grid-row: 3 / 6;
    grid-column: 3 / 1;
  }

.custom-p-2 {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #e63d04;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: clamp(0.9rem, calc(0.8vw + 0.5rem), 1.2rem);
}

.cta-button:hover {
    background-color: #070d14;
}

@media (max-width: 768px) {
    .custom-h1, .custom-p {
        max-width: 80vw;
    }
    
    .content-block {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 1rem;
    }
    
  .custom-h1, .custom-p {
      max-width: 100%;
  }
}
