.container {
  max-width: 1350px;
  margin-left: auto;
  margin-right: auto;
}

.container-small {
  width: 875px;
  margin-left: auto;
  margin-right: auto;

  @media (max-width: 1024px) {
    width: 100%;
    max-width: 875px;
  }

  p,
  ul {
    margin-bottom: 20px;
  }

  a {
    color: #dbb84d;
  }

  ol {
    list-style: decimal;
    list-style-position: inside;
  }
}

.font-montserrat {
  font-family: "Montserrat" !important;
}

.font-andrada {
  font-family: "Montserrat" !important;
}

.col-green {
  color: #476c6f;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Andada Pro";
  font-weight: bold;
  color: #cc9900;
}

p,
button,
li {
  font-family: "Montserrat";
  color: #476c6f;
}

input,
textarea {
  font-family: "Montserrat";
}

ul {
  list-style-type: disc;
  list-style-position: outside;
  padding-left: 15px;
}

a {
  font-family: "Montserrat";
}

h1 {
  font-size: 36px;
}

h2 {
  font-size: 44px;
}

h3 {
  font-size: 40px;
}

h4 {
  font-size: 24px;
}

h5 {
  font-size: 20px;
}

h6 {
  font-size: 16px;
}

header {
  height: 165px;
  display: flex;
  align-items: center;
  padding: 0 48px;

  .header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;

    img {
      height: 112px;
    }

    #mobile-menu {
      ul {
        list-style: none;

        li {
          margin-left: -8px;
          padding-left: 8px;
          padding-block: 8px;
          transition: 150ms;
          border-bottom-width: 1px;
          border-bottom-color: #0000002d;

          a {
            display: flex;
            width: 100%;
            height: 100%;
          }

          &:hover {
            background-color: #476c6f;
            color: white;
          }
        }

        .sub-menu {
          width: calc(100% - 12px);
          margin-left: 12px;

          li {
            padding-block: 4px;
          }
        }
      }
    }

    nav {
      font-size: 16px;
      font-weight: 600;
      text-transform: uppercase;

      ul {
        list-style: none;
        display: flex;
        justify-content: space-between;
        gap: 16px;
        padding-left: 0px;

        &.sub-menu {
          display: none;
          position: absolute;
        }

        li.menu-item:hover .sub-menu {
          display: flex;
          flex-direction: column;
          padding-top: 16px;
          gap: 0;
          background-color: white;

          li {
            white-space: nowrap;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
            padding-left: 1rem;
            padding-right: 1rem;
            padding-top: 0.5rem;
            padding-bottom: 0.5rem;
            transition-duration: 75ms;

            &:hover {
              background-color: #476c6f;
              color: white !important;
            }
          }
        }

        a {
          font-family: "Andada Pro";
          text-decoration: none;
          color: inherit;
        }

        li {
          color: #476d6e;
          font-size: 18px;

          &.current-menu-item,
          &.current-menu-parent {
            color: #dbb84d;
          }
        }
      }
    }
  }
}

.module--lightbox {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  min-height: 755px;
  background-repeat: no-repeat;
  background-size: cover;

  h2 {
    font-family: "Montserrat";
    font-size: 64px;
    text-transform: uppercase;
    font-weight: 800;
    color: white;
  }

  p {
    font-family: "Montserrat";
    font-size: 24px;
    font-weight: normal;
    color: white;
  }

  &.lb--small {
    min-height: 475px;
  }
}

.module--title-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 44px 0;

  p {
    font-family: "Montserrat";
    font-size: 16px;
    font-weight: 500;
    color: #476d6e;
  }
}

.module--image-left-description-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 44px 0;

  h3 {
    font-family: "Andada Pro";
    font-size: 24px;
    font-weight: bold;
    color: #cc9900;
  }

  p {
    font-family: "Montserrat";
    font-size: 16px;
    font-weight: 500;
    color: #476d6e;
  }
}

.module--left-right-usps p {
  color: white;
}

.module--recent-events-block {
  .event-date-indicator p {
    color: white;
  }
}

.button--read-more, .wpcf7-form input[type="submit"] {
  background-color: #476c6f;
  color: white;
  transition: 75ms;

  &:hover {
    background-color: #476c6fbf;
  }
}

.button--read-more-orange {
  background-color: #cc9900;
  color: white;
  transition: 75ms;

  &:hover {
    background-color: #cc9900bf;
  }
}

.semi-container-width {
  width: calc(100% - 128px);
  margin: auto;

  iframe,
  img {
    aspect-ratio: 16 / 9;
  }

  @media screen and (max-width: 767px) {
    width: 100%;
  }
}

.module--title-description-block {
  display: flex;
  flex-direction: column;
  gap: 52px;
  padding: 148px;

  h2 {
    font-size: 60px;
    line-height: 1.1;

    @media screen and (max-width: 767px) {
      font-size: 48px;
    }
  }

  p {
    font-size: 24px;

    @media screen and (max-width: 767px) {
      font-size: 20px;
    }
  }
}

.module--left-right-usps {
  h2 {
    font-size: 44px;
    line-height: 1.1;

    @media screen and (max-width: 767px) {
      font-size: 44px;
    }
  }

  p {
    font-size: 20px;

    @media screen and (max-width: 767px) {
      font-size: 20px;
    }
  }
}

.module--recent-events-block {
  p:first-of-type {
    font-size: 26px;
  }

  p {
    font-size: 20px;
  }

  a {
    p:first-of-type {
      font-size: 20px;
    }
  }

  .event-date-indicator {
    p {
      font-size: 16px;
    }
  }
}

.module--get-in-contact {
  @media screen and (max-width: 767px) {
    padding-left: 44px;
    padding-right: 44px;
  }

  h2 {
    font-size: 50px;

    @media screen and (max-width: 767px) {
      font-size: 36px;
    }
  }

  p {
    font-size: 48px;

    @media screen and (max-width: 767px) {
      font-size: 28px;
    }
  }

  button {
    font-size: 18px;
    padding: 12px 32px;
  }
}

.button--read-more,
.button--read-more-orange {
  font-size: 18px;
  padding: 12px 52px;
}

.social-icons {
  padding-top: 32px;

  svg {
    width: 40px;
    padding: 8px;
    border: 1px solid white;
    aspect-ratio: 1 / 1;
    fill: white;
    transition: 150ms;

    &:hover {
      fill: #476c6f;
      background-color: white;
    }
  }
}

footer {
  h4 {
    font-size: 20px;
    font-family: "Montserrat";
  }

  a {
    font-size: 18px;
  }
}

.module--get-in-contact {
  h2 {
    font-family: "Montserrat";
  }
}

.module--editor {
  .container-small {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  ul {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 500;
  }

  font-family: "Montserrat";

  h1 {
    font-size: var(--text-4xl);
  }
  h2 {
    font-size: var(--text-3xl);
  }
  h3 {
    font-size: var(--text-2xl);
  }
  h4 {
    font-size: var(--text-xl);
  }
  h5 {
    font-size: var(--text-lg);
  }
}

.module--text-wrapping {
  .container-small {
    display: block;
  }
}

.module--editor h1,
.module--editor h2,
.module--editor h3,
.module--editor h4,
.module--editor h5,
.module--editor h6 {
  font-family: "Montserrat";
  color: #476c6f;
}

.module--embed {
  iframe {
    width: 100% !important;
  }
}

@media (max-width: 1400px) {
  header {
    height: 112px;

    .header-container {
      img {
        height: 68px;
      }

      nav {
        ul {
          li {
            font-size: 16px;
          }
        }
      }
    }
  }

  .module--lightbox {
    min-height: 550px;
  }

  .module--get-in-contact {
    h2 {
      font-size: 42px;
    }

    p {
      font-size: 32px;
    }
  }

  .module--title-description-block {
    padding: 56px;
  }
}

@media (max-width: 999px) {
  .module--description-text {
    padding-inline: 24px;
  }

  .module--editor {
    padding-inline: 24px;
  }
}

@media (max-width: 767px) {
  .module--get-in-contact {
    h2 {
      font-size: 30px;
    }

    p {
      font-size: 28px;
    }
  }
}

/* Contact Form 7 Custom Styling */
.wpcf7.js {
  width: 100%;

  form {
    margin-inline: auto;
  }
}

.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: 100%;
  max-width: 100%;
  margin-top: 1rem;

  @media (min-width: 1024px) {
    max-width: 50%;
    margin-top: 2rem;
  }

  @media (min-width: 1280px) {
    max-width: 50%;
  }
}

/* Form Rows */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;

  /* Single column for organisation name, file, and textarea */
  &:nth-child(3),
  &:nth-child(6),
  &:nth-child(7) {
    grid-template-columns: 1fr;
  }

  p {
    margin: 0 !important;
  }
}

/* Input Styling */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="file"] {
  background-color: #dbe2e5;
  padding: 1.25rem;
  width: 100%;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
}

/* Textarea Styling */
.wpcf7-form textarea {
  background-color: #dbe2e5;
  padding: 1.25rem;
  width: 100%;
  font-weight: 600;
  font-size: 0.875rem;
  min-height: 13rem;
  border: none;
}

/* Submit Button */
.wpcf7-form input[type="submit"] {
  padding: 1.25rem 5.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  width: fit-content;
  transition: all 0.075s ease;
  border: none;
  cursor: pointer;
}

/* File Size Text */
.wpcf7-form p {
  font-weight: 600;
  font-size: 1rem;
  margin-top: 1rem;
}
