/******************************************************* animations *****************************************************/

.has-fade {
    visibility: hidden;
  }
  
  @-webkit-keyframes fade-in {
    from {
      visibility: hidden;
      opacity: 0;
    }
    1% {
      visibility: visible;
      opacity: 0;
    }
    to {
      visibility: visible;
      opacity: 1;
    }
  }
  
  @keyframes fade-in {
    from {
      visibility: hidden;
      opacity: 0;
    }
    1% {
      visibility: visible;
      opacity: 0;
    }
    to {
      visibility: visible;
      opacity: 1;
    }
  }
  .fade-in {
    -webkit-animation: fade-in 200ms ease-in-out forwards;
            animation: fade-in 200ms ease-in-out forwards;
  }
  
  @-webkit-keyframes fade-out {
    from {
      visibility: visible;
      opacity: 1;
    }
    99% {
      visibility: visible;
      opacity: 0;
    }
    to {
      visibility: hidden;
      opacity: 0;
    }
  }
  
  @keyframes fade-out {
    from {
      visibility: visible;
      opacity: 1;
    }
    99% {
      visibility: visible;
      opacity: 0;
    }
    to {
      visibility: hidden;
      opacity: 0;
    }
  }
  .fade-out {
    -webkit-animation: fade-out 200ms ease-in-out forwards;
            animation: fade-out 200ms ease-in-out forwards;
  }

/******************************************************* globals *****************************************************/
  html {
    font-size: 100%;
    box-sizing: border-box;
    scroll-behavior: smooth;
  }
  
  *,
  *::before,
  *::after {
    box-sizing: inherit;
  }
  
  body {
    margin: 0;
    padding: 0;
    font-family: Energy, Helvetica, Arial, sans-serif;
    font-size: 0.875rem; /*14px*/
    font-weight: 300;
    color: #50403A; /*dark grey*/
    line-height: 1.3;
    overflow-x: hidden;
  }
  @media (min-width: 64em) {
    body {
      font-size: 1.125rem; /*18px*/
    }
  }
  body.noscroll {
    overflow: hidden;
  }
  
  h1,
  h2,
  h3 {
    font-weight: 300;
    line-height: 1.15;
    color: #3266AB ; /*blue*/ 
    margin-top: 70px; /*25px*/
  }
  
  h1 {
    font-size: 2.31rem;
    margin-bottom: 1.5rem;
  }
  @media (min-width: 64em) {
    h1 {
      font-size: 3.25rem;
    }
  }
  
  h2 {
    font-size: 1.875rem;
    margin-bottom: 1.5625rem;
  }

  @media (min-width: 64em) {
    h2 {
      font-size: 2.25rem;
      margin-bottom: 2.25rem;
      text-align: center;
    }
  }
  
  p {
    line-height: 1.5;
    margin-bottom: 2.25rem;
    color: #50403A; /* dark grey */
    margin-left: 0.625em; /*10px*/
    margin-right: 0.625em; /*10px*/
  }
  
  a,
  a:visited,
  a:hover {
    text-decoration: none;
  }
  
  .container {
    max-width: 93.75rem; /*1500px*/
    margin: 0 auto;
  }

  .container--pall {
    padding-top: 4.375rem;
    padding-right: 1.5rem;
    padding-bottom: 4.375rem;
    padding-left: 1.5rem;
  }
  @media (min-width: 64em) {
    .container--pall {
      padding-top: 8rem;
      padding-bottom: 8rem;
    }
  }
  .container--py {
    padding-top: 4.375rem;
    padding-bottom: 4.375rem;
  }
  @media (min-width: 64em) {
    .container--py {
      padding-top: 6rem;
      padding-bottom: 6rem;
    }
  }
  .container--px {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }
  .container--pt {
    padding-top: 4.375rem;
  }
  @media (min-width: 64em) {
    .container--pt {
      padding-top: 6rem;
    }
  }
  .container--pr {
    padding-right: 1.5rem;
  }
  .container--pb {
    padding-bottom: 4.375rem;
  }
  @media (min-width: 64em) {
    .container--pb {
      padding-bottom: 6rem;
    }
  }
  .container--pl {
    padding-left: 1.5rem;
  }
  
  .flex {
    display: flex;
  }
  .flex-jc-sb {
    justify-content: space-between;
  }
  .flex-jc-c {
    justify-content: center;
  }
  .flex-ai-c {
    align-items: center;
  }
  
  button,
  .button {
    position: relative;
    display: inline-block;
    padding: 0.875rem 2.1875rem;
    background-color: #5834F5; /*purple*/
    border: 0;
    border-radius: 50px;
    cursor: pointer;
    color: #fafafa; /*super light grey*/
    font-weight: 400;
    font-size: 0.875rem;
    transition: opacity 300ms ease-in-out;
    overflow: hidden;
  }
  button::before,
  .button::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.15); 
    opacity: 0;
    transition: opacity 150ms ease-in-out;
  }
  button:hover::before,
  .button:hover::before {
    opacity: 1;
  }
  
  @media (max-width: 63.9375em) { /*63.9375em*/
    .hide-for-mobile {
      display: none;
    }
  }
  
  @media (min-width: 64em) {
    .hide-for-desktop {
      display: none;
    }
  }

/******************************************************* header *****************************************************/
  
  .header {
    position: relative;
    z-index: 2;
    width: 100%;
    background-color: #464646; /*super dark grey*/ 
  }

  @media only screen and (min-width: 48.0625em) { /* Adjust the min-width value as needed */
    .header {
        position: fixed; /* Fixed position for larger screens */
        width: 100%;
        left: 0;
        right: 0;
        top: 0;
    }
}

.editWidget {
  background-color: #5834F5; /* purple */
  height: 35px;
  overflow: hidden; /* Ensures no overflow within the container */
  white-space: nowrap; /* Prevents the text from wrapping within the widget */
  z-index: 1
}
/*
@media only screen and (min-width: 48.0625em) { /* Adjust the min-width value as needed 
  .editWidget {
      float: center;
  }
} */

.phone-number {
  text-align: center;
  background-color: #F17920;
  margin-top: 0; /* Remove any margin */
  padding: 0.10rem 0; /* Adjust padding as needed */
  top: 0; /* Align to top */
}

.phone-number a {
  color: #fafafa; /* super light grey */
  text-decoration: none;
  font-family: Energy, Helvetica, Arial, sans-serif;
  font-size: 1rem; /*16px*/
  font-weight: 300;
  line-height: 1.3;
  overflow-x: hidden;
}

.phone-number p {
  color: #fafafa; /* super light grey */
  text-decoration: none;
  font-family: Energy, Helvetica, Arial, sans-serif;
  font-size: 1rem; /*16px*/
  font-weight: 300;
  line-height: 1.3;
  overflow-x: hidden;
  margin: 0; /* Remove default margin */
  padding: 0.25rem 0; /* Add small padding for better spacing */
}

.phone-number a:hover {
  text-decoration: underline; 
}


  .header.open .header__toggle > span:first-child {
    transform: rotate(45deg);
  }
  .header.open .header__toggle > span:nth-child(2) {
    opacity: 0;
  }
  .header.open .header__toggle > span:last-child {
    transform: rotate(-45deg);
  }
  .header .overlay {
    opacity: 0;
    position: fixed;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    background-image: linear-gradient(#F17920, transparent);
  }
  .header nav {
    position: relative;
    background-color: #464646; /*super dark grey*/ 
    padding-top: 1.0625rem;
    padding-bottom: 1.0625rem;
  }
  .header__logo img {
    width: 10.625rem; /* 170px */
    height: 3.4375rem; /* 55px */
  }

  .header__toggle > span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: #F17920; /*bright orange*/
    transition: all 300ms ease-in-out;
    transform-origin: 3px 1px;
  }
  .header__toggle > span:not(:last-child) {
    margin-bottom: 5px;
  }
  .header__menu {
    position: absolute;
    width: calc(100% - 3rem);
    left: 50%;
    transform: translateX(-50%);
    background: #fafafa; /*super light grey*/
    margin-top: 1.5rem;
    padding: 1.625rem;
    border-radius: 5px;
  }
  .header__menu a {
    display: block;
    padding: 0.625rem;
    color: #50403A; /*dark grey*/
    text-align: center;
  }
  .header__links a {
    position: relative;
    font-size: 0.875rem;
    color: #fafafa; /*light grey*/
    transition: color 300ms ease-in-out;
  }
  .header__links a:not(:last-child) {
    margin-right: 32px;
  }
  .header__links a::before {
    content: "";
    display: block;
    position: absolute;
    height: 5px;
    left: 0;
    right: 0;
    bottom: -30px;
    background: linear-gradient(to right, #F17920, #F8E8D0);
    opacity: 0;
    transition: opacity 300ms ease-in-out;
  }
  .header__links a:hover {
    color: #fafafa;
  }
  .header__links a:hover::before {
    opacity: 1;
  }

/******************************************************* hero *****************************************************/
  
  .hero {
    background-color: #F7F8FA; /*light grey*/
  }
  @media (min-width: 64em) {
    .hero .container {
      display: flex;
      align-items: center;
    }
  }
  .hero__image {
    position: relative;
    background-image: url("/MainSectionPicOption3.jpg");
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center center;
    min-height: 17.5rem;
  }
  @media (min-width: 40em) {
    .hero__image {
      min-height: 25rem;
      background-position: center 70%;
    }
  }
  @media (min-width: 64em) {
    .hero__image {
      flex: 3;
      order: 2;
      height: 39rem;
      background-image: none;
    }
  }
  @media (min-width: 64em) {
    .hero__image::before {
      content: "";
      position: absolute;
      height: 950px; /* 940px */
      background-image: url("/HandsMoney.jpeg");
      background-repeat: no-repeat;
      background-position: center bottom;
      width: 70.3125rem; /* 1125px */
      background-position: 0% 23%;
      background-size: calc(93% - 255px);  
      margin-left: 45px;
    }
  }

  @media (min-width: 40em) {
    .hero__image::after {
      background-size: 52%;
    }
  }
  @media (min-width: 64em) {
    .hero__image::after {
      width: 120%;
      height: 122%;
      background-size: 94%;
      background-position: center 150%;
      left: 22%;
    }
  }
  .hero__text {
    text-align: center;
  }
  @media (min-width: 64em) {
    .hero__text {
      flex: 2;
      order: 1;
      text-align: left;
    }
  }

/******************************************************* why Ambit *****************************************************/
.whyAmbit {
  background-color: #f3f4f6; /*grey*/
}

.whyAmbit {
  margin-bottom: 3.75rem;
}
@media (min-width: 64em) {
  .whyAmbit {
    width: 60%;
  }
}

.whyAmbit__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.875rem;
}
@media (min-width: 40em) {
  .whyAmbit__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 64em) {
  .whyAmbit__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.whyAmbit__item {
  border-radius: 0.3125rem;
  overflow: hidden;
  background-color: #fafafa;
  box-shadow: 0px 3px 12px rgba(0, 0, 0, 0.15);
  transition: all 150ms ease-in-out;
}
.whyAmbit__item:hover {
  transform: scale(1.05);
}
.whyAmbit__image {
  height: 12.5rem;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.whyAmbit__text {
  padding: 1.875rem 1.875rem 2.5rem 1.875rem;
  color: #50403A; /*dark grey*/
}
@media (min-width: 40em) {
  .whyAmbit__text {
    padding: 1.875rem 1.5625rem;
  }
}

.whyAmbit__title {
  font-size: 1.0625rem;
  line-height: 1.2;
  color: #5834F5;
  margin-bottom: 0.5rem;
  text-decoration: underline;
}
.whyAmbit__description {
  font-size: 0.8125rem;
}


/******************************************************* aboutMe *****************************************************/
  .aboutMe {
    background-color: #F7F8FA; /*light grey*/
  }
  @media (min-width: 40em) {
    .aboutMe {
      text-align: left;
    }
  }
  .aboutMe__intro {
    margin-bottom: 3.75rem;
  }
  @media (min-width: 64em) {
    .aboutMe__intro {
      width: 100%;
    }
  }

  @media (min-width: 40em) {
    .aboutMe__grid {
      display: flex;
      flex-wrap: wrap;
    }
  }

  .aboutMe__item {
    display: flex;
    flex-direction: column; /* Align vertically */
    justify-content: center; /* Center vertically */
    align-items: center; /* Center horizontally */
  }
  
  .aboutMe__icon img {
    max-width: 100%; /* Ensure the image scales appropriately */
    height: auto;
  }

  @media only screen and (max-width: 52em) {
    .aboutMe__icon img {
      max-width: none; /* Removes max-width restriction */
    }
  }

  .aboutMe__item {
    padding: 0.9375rem;
  }
  @media (min-width: 40em) {
    .aboutMe__item {
      flex: 0 0 50%;
    }
  }
  @media (min-width: 64em) {
    .aboutMe__item {
      flex: 1;
    }
  }
  .aboutMe__icon {
    margin-bottom: 1.875rem;
  }
  @media (min-width: 64em) {
    .aboutMe__icon {
      margin-bottom: 2.75rem;
    }
  }

  .aboutMe__icon img { 
    width: 31.875rem; /*510px*/
    height: 39.5625rem; /*633px*/
    border-radius: 5%;
    background-size: 93%;
  } 

  .aboutMe__title {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.15;
    color: #44486A;
    margin-bottom: 1rem;
  }
  @media (min-width: 64em) {
    .aboutMe__title {
      font-size: 1.5rem;
      margin-bottom: 1.5rem;
    }
  }
  .aboutMe__description {
    font-size: 0.875rem;
    line-height: 1.5;
  }

/******************************************************* footer *****************************************************/
  .footer {
    background-color: #464646; /*super dark grey*/ 
    color: #fafafa;
    padding: 2.5rem;
    text-align: center;
  }
  @media (min-width: 64em) {
    .footer .container {
      display: grid;
      grid-template-columns: 2fr 2fr 2fr 2fr;
      grid-template-rows: 1fr auto;
      grid-template-areas: "logo links1 links2 cta" "social links1 links2 copyright";
      gap: 1rem;
      justify-items: stretch;
    }
  }
  .footer a {
    color: #fafafa;
  }
  .footer__logo {
    display: inline-block;
  }
  .footer__logo img {
    width: 10.625rem; /* 170px */
    height: 3.4375rem; /* 55px */
  }
  @media (max-width: 63.9375em) {
    .footer__logo {
      margin-bottom: 1.875rem;
    }
  }
  @media (min-width: 64em) {
    .footer__logo {
      grid-area: logo;
    }
  }

  .footer__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9375rem;
  }
  @media (min-width: 64em) {
    .footer__links {
      justify-content: space-between;
      align-items: stretch;
    }
  }
  @media (min-width: 64em) {
    .footer__links.col1 {
      grid-area: links1;
    }
  }
  @media (max-width: 63.9375em) {
    .footer__links.col2 {
      margin-bottom: 1.875rem;
    }
  }
  @media (min-width: 64em) {
    .footer__links.col2 {
      grid-area: links2;
    }
  }
  .footer__links a {
    line-height: 2.25;
    transition: color 150ms ease-in-out;
  }
  .footer__links a:hover {
    color: #F17920; /* bright orange */
  }
  @media (min-width: 64em) {
    .footer__cta {
      grid-area: cta;
      text-align: right;
      justify-self: end;
    }
  }
  @media (max-width: 63.9375em) {
    .footer__cta a.button {
      margin-bottom: 1.875rem;
    }
  }
  .footer__copyright {
    font-size: 0.8125rem;
    color: #fafafa; /*super light grey*/
    margin-top: 1.875rem; /*30px*/
  }

  p.copyrightText {
    line-height: 1.5;
    margin-bottom: 1.0rem;
    color: #fafafa; /*super light grey*/
    margin-left: 0.625em; /*10px*/
    margin-right: 0.625em; /*10px*/
  }

  @media (min-width: 64em) {
    .footer__copyright {
      grid-area: copyright;
      align-self: end;
      justify-self: end;
    }
  }
  .footer .attribution {
    margin-top: 4rem;
    font-size: 0.875rem;
  }