* {
  --color-primary: #106734;
  --blue: #48759c;
  --color-primary-light: #41c484cc;
  --color-primary-alt: #d1ffbe;
  --grey: #444444;
  --white: #ffffff;
  --grey-light: #555555;
  --raw-background: rgb(250, 250, 250);
  --grey-dark: #212121;
  --hero-gradient: linear-gradient(
    180deg,
    #ffffff26 0%,
    #d1ffbe26 45%,
    #48759c26 100%
  );

  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  width: 100%;
  height: 100vh;
}
p {
  margin: unset;
}

.sticky-top-section {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.contact-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  width: 100%;
  background-color: var(--color-primary);
}
.contact-bar-contents {
  max-width: 1178px;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 0.8rem;

  .telephone {
    display: flex;
    align-items: center;
    justify-content: center;

    svg {
      width: 22px;
      height: 22px;
      margin-right: 0.5rem;
    }

    p {
      color: white;
      font-size: 0.875rem;
      font-weight: 300;
    }
  }
  .email {
    display: flex;
    align-items: center;
    justify-content: center;

    svg {
      width: 22px;
      height: 22px;
      margin-right: 0.5rem;
    }

    p {
      color: white;
      font-size: 0.875rem;
      font-weight: 300;
    }
  }
}

@media (max-width: 768px) {
  .contact-bar {
    padding: 0.4rem;
  }
  .contact-bar-contents {
    flex-direction: column;
    align-items: center;
  }
}

.navbar {
  min-height: 72px;
  width: 100%;
  display: flex;
  justify-content: center;
  background: white;
  border-bottom: 3px solid var(--color-primary-alt);

  .navbar-contents {
    padding: 0 2rem;
    container-type: inline-size;
    display: flex;
    align-items: center;
    max-width: 1178px;
    width: 100%;
    justify-content: space-between;
  }
  .navbar-logo {
    margin-top: 0.5rem;
  }
}
.navbar-links {
  display: none;
  align-items: center;
  gap: 1rem;
}

.navbar-links a:first-child {
  display: inline-block;
  position: relative;
  color: white;
  z-index: 1; /* Ensure a higher stacking context */
}

.navbar-links a:first-child:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  padding: 0.5rem;
  z-index: -1; /* Make sure it's behind the text */
  background: var(--blue);
  transition: opacity 0.3s ease-in-out;
  opacity: 1; /* Ensure it's fully visible */
}

.navbar-links a {
  position: relative;
  text-decoration: none;
  color: var(--grey-light);
}

@container (min-width: 768px) {
  .navbar-links {
    display: flex !important;
  }
}
.hero {
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hero-gradient);
  /* change opacity to bg to 15% */

  .hero-contents {
    flex-shrink: 1;
    flex-grow: 1;
    max-width: 768px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    padding: 2rem;
  }
  .hub-image {
    width: 100%;
    height: auto;
    max-width: 408px;
  }
  .cta-options {
    display: grid;
    gap: 2rem;
    /* should have 3 columns, but wrapp in the event of overflow.. Each column should be 156px, and centered */
    grid-template-columns: repeat(auto-fit, 156px);
    justify-items: center; /* Center grid items within each grid cell */
    width: 100%;
    justify-content: center;
  }
  .cta-option {
    column-span: 1;
    text-decoration: none;
    padding: 1rem;
    max-width: 156px;
    max-height: 140px;
    width: 100%;
    background-color: white;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 140px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    img {
      height: 48px;
      width: 48px;
      object-fit: contain;
    }
    h3 {
      font-size: 15px;
      font-weight: bold;
      color: var(--grey-dark);
      margin-top: 0.5rem;
      text-wrap: wrap;
      text-align: center;
    }
  }
}

.speak-to-agent {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  text-decoration: none;
  color: var(--grey-dark);
  svg {
    width: 22px;
    height: 22px;
    margin-right: 0.5rem;
  }
  h3 {
    font-size: 16px;
  }
}

/* information section */

.information {
  background-color: var(--raw-background);
  width: 100%;
  display: flex;
  justify-content: center;

  & .information-contents {
    max-width: 1178px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    padding: 5.625rem 2rem;

    & h1 {
      font-size: 1.625rem;
      font-weight: bold;
      color: var(--grey-dark);
      text-align: center;
    }

    & .accordions {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      width: 100%;
      max-width: 1178px;

      & .accordion-item {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 1178px;
        border: 1px solid var(--grey-light);
        border-radius: 10px;
        padding: 0rem 1rem;
        background-color: white;
        & summary {
          list-style: none;
          cursor: pointer;
          padding: 0.5rem;
          gap: 1rem;
          width: 100%;
          display: flex;
          justify-content: space-between;
          align-items: center;
          &::-webkit-details-marker {
            display: none;
          }
          & h3 {
            font-size: 1.25rem;
            font-weight: bold;
            color: var(--grey-dark);
          }
        }
      }
    }
  }
}

details {
  overflow: hidden;
  margin-top: 0.125em;
  border: 1px solid #dddddd;
  background: #ffffff;
  color: #333333;
  border-radius: 3px;
}

details summary {
  display: block;
  cursor: pointer;
  position: relative;
  padding: 0.5em 0.5em 0.5em 0.7em;
  color: var(--blue);
  border-radius: 3px 3px 0 0;

  span {
    font-weight: bold;
  }
}

/*

details[open] summary {
}
*/

details main {
  padding: 1em 2.2em;
}

/* add chevrons at very end of summary pointing down when close, up when open */

details summary::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--blue);
  margin-left: 0.5rem;
  transition: transform 0.3s ease-in-out;
}

details[open] summary::after {
  transform: rotate(180deg);
}

/* terms and rates section */

.terms-and-rates {
  background-color: var(--color-primary-alt);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 450px;

  & .terms-and-rates-contents {
    max-width: calc(1178px - 4rem);
    flex-grow: 0;
    flex-shrink: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    min-height: 222px;
    background-color: white;
    height: fit-content;
    border-radius: 10px;
    /* blur 30 spread 5 */
    box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.1);
  }

  & .rate {
    width: 246px;
    flex-direction: column;
    display: flex;
    align-items: center;
    gap: 0.5rem;

    & span {
      font-size: 1.625rem;
      font-weight: bold;
      color: var(--blue);
    }
  }

  & .rate-separator {
    width: 1px;
    height: 100%;
    background-color: var(--grey-light);
  }

  img {
    width: 42px;
    height: auto;
    object-fit: contain;
  }
}

@media (max-width: 1178px) {
  .terms-and-rates {
    & .terms-and-rates-contents {
      justify-content: space-evenly;
      padding: 3rem;
    }
  }
}
@media (max-width: 768px) {
  .terms-and-rates {
    padding: 2rem;
    & .terms-and-rates-contents {
      flex-direction: column;
    }
  }
}
/* support section */

.support {
  padding: 2rem;
  background-color: var(--hero-gradient);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 450px;

  & .support-contents {
    max-width: calc(1178px - 4rem);
    width: 100%;
    display: grid;
    container-type: inline-size;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.support-info,
.support-faqs {
  column-span: 1;
}

@media (max-width: 768px) {
  .support {
    & .support-contents {
      grid-template-columns: 1fr;
      grid-template-rows: auto 1fr;
    }
  }
}

.support-info {
  h1 {
    font-size: 1.625rem;
    font-weight: bold;
    color: var(--grey-dark);
    margin-bottom: 2rem;
  }

  .support-phone-info {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    font-weight: bold;
  }
}

/* footer section */

.footer {
  padding: 2rem;
  min-height: 384px;
  background-color: #000;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  .footer-contents {
    max-width: calc(1178px - 4rem);
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    place-content: center;
    gap: 3rem;
  }
  .footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    h4 {
      font-size: 1.25rem;
      font-weight: bold;
    }
    p {
      font-size: 0.875rem;
      font-weight: 300;
    }
  }
}

.footer-bottom-contents {
  max-width: calc(1178px - 4rem);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  a {
    text-decoration: none;
  }
  img {
    width: 50px;
    height: auto;
    object-fit: contain;
  }
}

.scroll-to-top {
  width: fit-content;
}

footer {
  min-height: 50px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: medium;
  background-color: var(--blue);
  border-top: 3px solid var(--color-primary-alt);
}

#copyright-statement {
  font-size: 0.875rem;
  a {
    text-decoration: none;
  }
}

.terms {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: calc(100vh - 170px);
  background: var(--hero-gradient);
  /* change opacity to bg to 15% */

  .terms-contents {
    flex-shrink: 1;
    flex-grow: 1;
    max-width: 1178px;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 2rem;
    margin-bottom: 6rem;
  }
  h3 {
    font-size: 15px;
    font-weight: bold;
    color: var(--grey-dark);
    margin-top: 0.5rem;
    text-wrap: wrap;
    text-align: center;
  }
}

.apply-info p {
  font-size: 18px;
  color: var(--grey-dark);
  margin: 0 0 1rem 0;
  text-wrap: wrap;
  text-align: left;
}
.apply-docs {
  padding: 1.5rem 1.5rem 1.5rem 0;
  column-count: 2; /* Create two columns */
  column-gap: 1rem; /* Gap between columns */
  list-style-position: inside;
}

.apply-docs li {
  break-inside: avoid; /* Prevents items from breaking between columns */
  margin-bottom: 0.25rem;
}

.apply-docs ::marker {
  font-weight: bold;
}

@media screen and (max-width: 768px) {
  .apply-docs {
    column-count: 1; /* Create one column */
  }
  .apply-info {
    font-weight: 500;
  }
}

.one-col {
  column-count: 1;
}
