@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCtr6Hw5aXo.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/Qw3PZQNVED7rKGKxtqIqX5E-AVSJrOCfjY46_DjQbMZhLw.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html {
  scroll-behavior: smooth;
}
button {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: bold;
  font-size: large;
  font-style: normal;
  color: #ffffff;
  background-color: #e6b866;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

button:hover {
  color: #e6b866;
  background-color: #ffffff;
}

button a {
  text-decoration: none;
  color: inherit;
}

body {
  padding: 0px;
  margin: 0px;
  background-color: #333333;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
  color: #ffffff;
}

header {
  position: relative;
  aspect-ratio: 2/1;
  background: #333333;
  max-width: 1600px;
  margin: 0 auto; /* Centers the header */
}

header > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

nav {
  position: sticky;
  z-index: 100;
  top: 0px;
  background: linear-gradient(#ffefd2, #ffe4b4);
  padding: 1rem;
  display: flex;
  /* max-width: 1600px; */
  margin: 0 auto; /* Centers the nav */
  box-sizing: border-box;
}

nav > a {
  /* margin: 0rem 1.5rem; */
  text-decoration: none;
  color: black;
}

main {
  padding: 0rem 5%;
  max-width: 1600px;
  margin: 0 auto; /* Centers the main content */
}

main > section {
  padding: 4rem 0rem;
}

.flex {
  display: flex;
  color: #111111;
  gap: 1rem;
}

.text-column {
  flex: 2;
  background: linear-gradient(#e0fff8, #c9ebe3);
  padding: 2rem;
  border-radius: 1rem;
  box-sizing: border-box;
}

.flex > .text-column:nth-child(2) {
  background: linear-gradient(#ffefd2, #ffe4b4);
}

.image-column {
  flex: 1; /* This is shorthand for flex-grow: 1, flex-shrink: 1, flex-basis: 0% */
  position: relative;
}

.image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.image-column:nth-child(2) .image-wrapper {
  justify-content: flex-end;
}

.image-wrapper img {
  border-radius: 1rem;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.smallgap {
  gap: 1rem;
  width: 90vw;
  flex-wrap: wrap;
  height: auto;
  padding-top: 0;
}

.smallgap img {
  height: 250px;
  border-radius: 1rem;
}

form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* label {
  font-size: 1.5rem;
} */

input {
  width: 100%;
  box-sizing: border-box;
  /* font-size: 1.25rem; */
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
}

input:last-child {
  margin-bottom: 0;
}

textarea {
  width: 100%;
  box-sizing: border-box;
  /* font-size: 1.25rem; */
  padding: 0.5rem;
  margin-bottom: 0.75rem;
  border-radius: 0.5rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

h1 {
  font-family: "Josefin Sans", "Montserrat", sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 4rem); /* Responsive font size */
  margin: 0;
  line-height: 1.2;
  word-wrap: break-word;
}

h2 {
  font-family: "Josefin Sans", "Montserrat", sans-serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2rem); /* Responsive font size */
  margin: 0;
  line-height: 1.2;
  word-wrap: break-word;
}

#services {
  color: #ffffff;
}

.cards {
  /* gap: 5rem; */
  align-items: center;
  /* height: 22em;
  min-height: fit-content; */
  /* height: 340px; */
  gap: 0px;
  color: #ffffff;
}

.cards:nth-of-type(1) {
  margin: 1rem 0rem 3rem 0rem;
}
.cards:nth-of-type(2) {
  margin: 0rem 0rem 3rem 0rem;
}

.cards > section {
  /* align-self: stretch; */
  display: flex;
  flex-direction: column;
  border: #e6b866 0.25rem solid;
  padding: 1rem;
  border-radius: 2rem;
  flex: 1 1 0;
  /* height: 100%; */
  box-sizing: border-box;
}

.alt > section {
  align-self: stretch;
}

.cards > span {
  display: flex;
  flex: 0.25 0.25 0;
  /* margin: 5px */
}

.cards:nth-of-type(1) span:nth-of-type(1) {
  border-top: #e6b866 0.25rem solid;
  height: 80px;
}

.cards:nth-of-type(1) span:nth-of-type(2) {
  border-bottom: #e6b866 0.25rem solid;
  height: 120px;
}

.cards:nth-of-type(1) span:nth-of-type(3) {
  border-top: #e6b866 0.25rem solid;
  height: 0px;
}

.cards:nth-of-type(2) span:nth-of-type(1) {
  border-top: #e6b866 0.25rem solid;
  height: 0px;
}

.cards:nth-of-type(2) span:nth-of-type(2) {
  border-top: #e6b866 0.25rem solid;
  height: 120px;
}

.cards:nth-of-type(2) span:nth-of-type(3) {
  border-bottom: #e6b866 0.25rem solid;
  height: 80px;
}

.cards:nth-of-type(3) span:nth-of-type(1) {
  border-top: #e6b866 0.25rem solid;
  height: 0px;
}

.cards:nth-of-type(3) span:nth-of-type(2) {
  border-top: #e6b866 0.25rem solid;
  height: 120px;
}

.cards:nth-of-type(3) span:nth-of-type(3) {
  border-bottom: #e6b866 0.25rem solid;
  height: 80px;
}

.cards h2 {
  font-family: "Josefin Sans", "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 2rem;
  margin: 0rem;
}

#testimonials .flex {
  gap: 2rem;
}

.flex > .testimony {
  flex: 1 1 0;
  align-self: stretch;
  height: auto;
}

#gallery {
  justify-content: space-evenly;
}

.accreditation-logos {
  display: flex;
  align-items: start;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: start;
  margin: 1rem 0rem;
}

.accreditation-logos img {
  height: auto;
  max-height: 70px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Hamburger button styles */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 15px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #e6b866;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Hamburger animation when active */
.hamburger.active span {
  background-color: #e6b866;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -5px);
}


/* Navigation styles */
.nav-menu {
  display: flex;
  justify-content: start;
  gap: clamp(10px, 2vw, 3rem);
  padding: 1rem;
  padding-left: 3rem;
}

/* Small screen styles */
@media screen and (max-width: 1024px) {
  /* First cards should be 1rem margin at bottom */
  .cards:nth-of-type(1) {
    margin-bottom: 1rem;
  }
  /* Make the cards stack vertically with a gap of 1rem */
  .cards {
    flex-direction: column;
    gap: 1rem;
  }
  /* Remove the span elements */
  .cards > span {
    display: none;
  }
}

/* Mobile styles */
@media screen and (max-width: 768px) {

  .nav-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    background: linear-gradient(#ffefd2, #ffe4b4);
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    padding: 1rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(0,0,0,0.1);
  }

  .nav-menu a:last-child {
    border-bottom: none;
  }

  .nav-menu a:hover {
    background-color: rgba(230, 184, 102, 0.2);
  }


  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    aspect-ratio: 2/1; /* Adjust for mobile if needed */
  }

  .accreditation-logos {
    gap: 1rem;
  }
  
  .accreditation-logos img {
    max-height: 60px;
  }

  /* Mobile styles for flex containers */
  .flex {
    flex-direction: column;
  }

  .image-column {
    flex: none;
    height: 300px;
    position: relative;
    margin-bottom: 1rem;
  }

  /* Special handling for the first welcome section image */
  #welcome .image-column, #contact .image-column {
    height: auto;
    min-height: 200px;
  }

  #welcome .image-wrapper, #contact .image-wrapper   {
    justify-content: center;
  }

  #welcome .image-wrapper img, #contact .image-wrapper img {
    width: auto;
    max-width: 300px;
    height: auto;
    object-fit: contain;
  }

  .image-wrapper {
    position: relative;
    height: 100%;
  }

  .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 25%;
  }

  /* Hide the Terms of Engagement image on mobile */
  #termsofengagement .image-column {
    display: none;
  }

  /* Remove the flex-direction: column-reverse since we're hiding the image */
  #termsofengagement .flex {
    flex-direction: column;
  }

  .hamburger {
    display: block;
    position: fixed;
    right: 1rem;
    top: 1rem;
    background-color: #ffffff;
  }

  .hamburger:hover span {
    background-color: #d4a44d;
  }

  header {
    position: relative;
  }

  .text-column {
    padding: 1.5rem;
  }
  
  main {
    padding: 0rem 3%;
  }
  
  main > section {
    padding: 2rem 0rem;
  }

  #gallery img {
    height: 400px;
    width: 100%;
    object-fit: cover;
    object-position: 50% 50%;
  }
}

/* Footer styles */
footer {
  background: linear-gradient(#ffefd2, #ffe4b4);
  padding: 2rem;
  text-align: center;
  color: #333333;
  margin-top: 2rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.social-icons a {
  color: #333333;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #e6b866;
}

.social-icons svg {
  width: 32px;
  height: 32px;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* Update mobile styles */
@media screen and (max-width: 768px) {
  footer {
    padding: 1.5rem;
  }
  
  .social-icons svg {
    width: 28px;
    height: 28px;
  }
}
