/**** 1. ANIMATIONS ****/
/**** 2. MODULES ****/
/**** 3. PAGES ****/
/**** 4. COMPONENTS ****/

/**** 1. ANIMATIONS ****/
@keyframes heroImgFadeIn {
  from {
    opacity: 0.2;
    transform: translateX(50px) scaleX(-1);
  }

  to {
    opacity: 1;
    transform: translateX(0) scaleX(-1);
  }
}

@keyframes FadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

main {
  animation: FadeIn 0.5s ease-in;
}

/**** 2. MODULES ****/

/* NAVBAR - nav.js */
.navbar {
  background-color: var(--color-white);
  padding: 1rem 2rem;
  position: relative;
  z-index: 10;
  font-size: 16px;
  border-bottom: 1px solid #2974a2;
}

.navbar__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
}

.navbar__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.navbar__logo-image {
  width: 24px;
  height: 24px;
  margin-right: 0.5rem;
}

.navbar__logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-blue);
}

.navbar__menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar__item .navbar__link {
  text-decoration: none;
  color: var(--color-gray);
  font-size: 16px;
}

.navbar__link:hover {
  color: var(--color-blue);
}

.navbar__cta {
  background-color: var(--color-blue);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  text-decoration: none;
  display: inline-block;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

.navbar__cta:hover {
  background-color: #2974a2;
}

.navbar__toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.navbar__toggle-bar {
  height: 2px;
  width: 100%;
  background-color: var(--color-gray);
}

.navbar__mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--color-blue);
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9;
}

.navbar__mobile-menu--open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.navbar__mobile-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.navbar__mobile-link {
  display: block;
  color: var(--color-white);
  font-size: 1.25rem;
  text-decoration: none;
  margin: 1.5rem 0;
}

.navbar__link.is-active,
.navbar__cta.is-active,
.navbar__mobile-link.is-active {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .navbar__toggle {
    display: none;
  }

  .navbar__menu {
    display: flex;
    gap: 2rem;
    align-items: center;
  }

  .navbar__mobile-menu {
    display: none !important;
  }
}

/* HERO - hero.js */
.hero {
  padding: 2rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.hero__content {
  flex: 1;
  margin: 0 0.6rem;
}

.hero__title {
  font-weight: 700;
  font-size: 48px;
  line-height: 45px;
  letter-spacing: -3px;
  color: #181e4b;
  max-width: 290px;
}

.hero__subtitle {
  font-weight: 700;
  font-size: 48px;
  line-height: 45px;
  color: #2974a2;
  margin-bottom: 1rem;
  max-width: 290px;
}

.hero__taglines p {
  font-size: 16px;
  font-weight: 900;
  line-height: 18px;
  color: #181e4b;
  margin: 0;
  text-align: end;
}

.hero__body {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
  line-height: 24px;
  font-size: 14px;
}

.hero__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: none;
}

.hero__icon-mobile {
  width: 20px;
  height: 20px;
  position: absolute;
  margin-top: -22px;
}

.hero__text {
  font-size: 14px;
  font-weight: 400;
  color: #181e4b;
  line-height: 18px;
  margin: 0;
}

.hero__image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  object-position: 0% 20%;
  transform: scaleX(-1);
  aspect-ratio: 265/81;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

.hero__disclaimer {
  font-size: 14px;
  color: #2974a2;
  margin-top: 2rem;
  line-height: 1.4;
  max-width: 898px;
}

.home__divider {
  display: none;
}

@media (min-width: 768px) {
  .hero {
    margin: 2rem 0 0 0;
    padding-bottom: 0;
    align-items: start;
  }

  .hero__container {
    flex-direction: row;
    align-items: center;
    position: relative;
    justify-content: space-between;
    margin-right: 0;
  }

  .hero__title,
  .hero__subtitle {
    font-size: 2rem;
    line-height: 32px;
    max-width: 100%;
  }

  .hero__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__icon-mobile {
    display: none;
  }

  .hero__icon {
    display: block;
    position: absolute;
    bottom: 0.5rem;
  }

  .hero__image {
    flex: 1;
    align-self: flex-end;
  }

  .hero__image img {
    aspect-ratio: 1/1;
    min-height: 350px;
    animation: heroImgFadeIn 1s ease-out forwards;
    max-height: 70vh;

  }

  .hero__body {
    margin-top: 1rem;
  }

  .hero__taglines {
    margin: 0 0 0 30%;
  }

  .hero__taglines p {
    margin: 0;
  }

  .hero__disclaimer {
    margin: 3rem 0rem;
    max-width: 100%;
  }

  .home__divider {
    display: block;
    border: none;
    height: 1.5px;
    background-color: #181e4b;
    margin-top: 0rem;
    width: 92%;
  }
}

@media (min-width: 1024px) {

  .hero__title,
  .hero__subtitle {
    font-size: 2.5rem;
    line-height: 49px;
    margin-bottom: 0;
  }

  .hero__container,
  .hero__image {
    margin: 0 1rem;
  }

  .hero__content {
    margin-top: 0;
  }

  .hero__taglines {
    margin: 0;
  }

  .hero__taglines p {
    text-align: left;
    padding-left: 0;
    margin: 1rem 0 0 0;
  }

  .hero__text {
    font-size: 14px;
  }

  .hero__disclaimer {
    margin: 3rem 2rem;
  }

}

/* SERVICES CARDS */

.services {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.services__title,
.services__title-desk {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  padding: 1rem 0;
  margin-bottom: 1rem;
  border-top: 1px solid #454963;
  border-bottom: 1px solid #454963;
  max-width: 370px;
}

.services__title-desk {
  display: none;
}

.services__highlight {
  color: #2974a2;
}

.services__text {
  color: #454963;
  text-align: center;
  width: 70%;
  font-size: 14px;
}

@media (min-width: 768px) {
  .services__title {
    display: none;
    ;
  }

  .services__title-desk {
    display: block;
    border: 0;
    max-width: 100%;
    font-size: 1.8rem;
    line-height: 32px;
    color: #2974a2;
    margin: 2rem 0 1rem 0;
  }

  .services__text {
    margin-bottom: 1rem;
    font-size: 16px;
  }
}

@media (min-width: 1024px) {
  .services {
    height: 85vh;
  }

  .services__text {
    max-width: 50%;
  }
}

/* WHO WE ARE */

.about {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 1rem 2rem 1rem;
}

.about__block {
  margin-bottom: 1rem;
}

.about__block--who {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about__image img {
  width: 100%;
  height: auto;
  max-width: 400px;
  display: none;
}

.about__heading {
  display: flex;
  align-items: last baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #181e4b;
}

.about__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}

.blue {
  color: #2974a2;
}

.about__title--blue {
  color: #2974a2;
}

.about__title--center {
  text-align: center;
  width: 100%;
}

.about__subtitle {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #181e4b;
  text-align: center;
  margin-bottom: 0.5rem;
}

.about__icon {
  width: 18px;
  height: 18px;
}

.about__text {
  font-size: 14px;
  color: #454963;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.about__text--center {
  text-align: center;
  max-width: 720px;
  margin: 2rem;
}

.about__text--left {
  text-align: left;
  margin: 2rem;
}

.about__divider {
  height: 1px;
  border: none;
  background-color: #181e4b;
  margin: 1.5rem;
}

@media (min-width: 768px) {
  #about-container {
    margin-top: 4rem;
  }

  .about__block--who {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .about__image {
    display: flex;
    justify-content: end;
    align-items: start;
    margin: -2rem 4rem 0 -3rem;
    width: 50%;
  }

  .about__image img {
    display: block;
    scale: 110%;
  }

  .about__content {
    width: 50%;
  }

  #about-container {
    display: flex;
    justify-content: center;
  }

  .about__text {
    font-size: 16px;
  }

  .about__text--left {
    margin: 2rem 5rem;
  }

  .about__divider {
    display: none;
  }
}

/* VITAL RECORDS */
#vitalrecords__block {
  margin: 0 2rem 3rem 2rem;
  display: flex;
  justify-content: center;
}

.vitalrecords__block {
  margin-bottom: 3rem;
}

.vitalrecords__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #181e4b;
}

.vitalrecords__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}

.vitalrecords__title--blue {
  color: #2974a2;
}

.vitalrecords__icon {
  width: 18px;
  height: 18px;
}

.vitalrecords__text {
  font-size: 14px;
  color: #454963;
  line-height: 1.6;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .vitalrecords__block {
    margin: 4rem;
  }

  .vitalrecords__text {
    font-size: 16px;
  }
}

/* WORKING WITH US */

/* FOOTER - footer.js */

.footer {
  background-color: #2974a2;
  padding: 2rem 1rem;
  color: #ffffff;
  font-size: 14px;
}

.footer__content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1440px;
  margin: 0 auto;
}

.footer__section {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer__section p {
  margin: 0;
}

.footer__icon {
  width: 20px;
  height: 20px;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.location {
  padding-bottom: 10px;
  width: 24x;
  height: 24px;
}

.footer__logo {
  display: flex;
  gap: 0.5rem;
}

.footer__logo-icon {
  width: 16px;
  height: 16px;
}

.footer__logo-name {
  font-weight: 700;
}

.footer__links a {
  color: #ffffff;
  text-decoration: underline;
  margin: 0 0.25rem;
}

.footer__links a:hover {
  text-decoration: none;
}

.footer__disclaimer {
  margin-top: 2rem;
  font-size: 12px;
}

@media (min-width: 768px) {

  .footer__content {
    flex-direction: row;
    justify-content: space-between;
    gap: 3rem;
  }

  .footer__copyright {}

  .footer__brand {
    flex-direction: row;
    gap: 0.5rem;
    justify-content: end !important;
    flex-wrap: wrap;
  }

  .footer__contact p {
    text-align: center;
  }

  .footer__section {
    justify-content: start;
    width: 30%;
  }

  .footer__disclaimer {
    font-size: 14px;
  }
}

/**** 3. PAGES ****/

/* CONTACT PAGE - contact.html */

.contact {
  padding: 2rem 1rem;
  min-height: 70vh;
}

.contact__container {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Contact Box */
.contact__box {
  border: 1px solid #181e4b;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  max-width: 388px;
  width: 80%;
  text-align: center;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

.contact__title {
  color: #181e4b;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact__subtitle {
  font-size: 16px;
  color: #454963;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact__info {
  text-align: left;
}

.contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #181e4b;
  font-size: 1rem;
  margin: 1.25rem 0 0 0;
  line-height: 1.5;
}

.contact__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.contact__image img {
  width: 100%;
  height: auto;
  max-width: 400px;
}

@media (min-width: 768px) {
  .contact__container {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
  }

  .contact__box {
    text-align: left;
    padding: 3rem;
  }

  .contact__info {
    text-align: left;
  }

  .contact__info-item {
    font-size: 16px;
  }

  .contact__title {
    font-size: 32px;
  }

  .contact__image img {
    max-width: 456px;
  }

  .contact__image {
    padding-right: 2rem;
  }
}

/* 404 PAGE */

.not-found__title {
  margin: 5rem 3rem;
  color: #2974a2;
  text-align: center;
}

/* PRIVACY POLICY PAGE */
.privacy {
  padding: 2rem 1rem;
  background-color: #ffffff;
  color: #181e4b;
  max-width: 960px;
  margin: 0 auto;
}

.privacy__container {
  display: flex;
  flex-direction: column;
}

.privacy__title {
  font-size: 2rem;
  font-weight: 700;
  color: #2974a2;
}

.privacy__meta {
  font-size: 0.875rem;
  color: #454963;
}

.privacy__section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  color: #2974a2;
}

.privacy p {
  font-size: 1rem;
  line-height: 1.6;
}

.privacy a {
  color: #2974a2;
  text-decoration: underline;
}

.privacy ul {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

.privacy li {
  margin-bottom: 0.5rem;
}


/* TERMS OF USE PAGE */

.terms {
  padding: 2rem 1rem;
  max-width: 960px;
  margin: 0 auto;
  color: #181e4b;
  background-color: #ffffff;
}

.terms__container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.terms__title {
  font-size: 2rem;
  font-weight: 700;
  color: #2974a2;
  margin-bottom: 0.5rem;
}

.terms__meta {
  font-size: 0.875rem;
  color: #454963;
  margin-bottom: 1rem;
}

.terms__section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #2974a2;
  border-left: 4px solid #f4042d;
  padding-left: 0.75rem;
}

.terms__text {
  font-size: 1rem;
  line-height: 1.7;
  color: #454963;
  margin-bottom: 1rem;
}

.terms__text strong {
  color: #181e4b;
  font-weight: 600;
}

.terms__text a {
  color: #2974a2;
  text-decoration: underline;
}

@media (min-width: 768px) {
  .terms {
    padding: 3rem;
  }

  .terms__title {
    font-size: 2.5rem;
  }

  .terms__section-title {
    font-size: 1.5rem;
  }

  .terms__text {
    font-size: 1.05rem;
  }
}



/**** 4.COMPONENTS ****/

/* CARD - card.js */

.services-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  margin: 0;
}

.card {
  border: 1px solid #2974a2;
  border-radius: 8px;
  padding: 1.5rem 1.3rem;
  text-align: center;
  width: 150px;
  height: 155px;
  margin: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

.card__icon {
  margin-bottom: 0.5rem;
}

.card__icon-image {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.card__title {
  font-size: 1rem;
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  color: #181e4b;
  margin: 0;
}

.card__separator {
  width: 90%;
  min-height: 1.5px;
  background-color: #f4042d;
  margin: 1rem auto;
}

.card__description {
  color: #454963;
  font-size: 11px;
  font-weight: 400;
  line-height: 16px;
  margin: 0;
}

@media (min-width: 768px) {
  .card {
    padding: 1.2rem 1rem;
  }

  .card__description {
    max-height: 64px;
    overflow: hidden;
  }

  .services-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    max-width: 60%;
  }

  .card__separator {
    margin: 0.5rem;
  }
}

@media (min-width: 1024px) {
  .services-container {

    max-width: 100%;
  }
}

/* FEATURE LIST - feature-list.js */

.working-with-us {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 3rem 0;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 1rem;
  justify-content: center;
}

#features-container-reasons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 2rem;
  max-width: 300px;
}

.feature-list__item {
  display: flex;
  flex-direction: column;
  width: 90%;
  max-width: 454px;
  border: 1px #2974a2 solid;
  padding: 1rem;
  border-radius: 20px;
}

.feature-list__heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-list__title {
  color: #2974a2;
  font-weight: 700;
  font-size: 14px;
  text-decoration: underline;
  margin: 0;
  flex-grow: 1;
}

.feature-list__icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.feature-list__text {
  margin-top: 0.5rem;
  color: #454963;
  line-height: 1.6;
  font-size: 14px;
}

@media (min-width: 768px) {
  .feature-list {
    flex-direction: row;
    max-width: 90%;
    gap: 2rem;
  }

  .feature-list__item {
    width: 300px;

  }

  #features-container-reasons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    margin: 2rem;
  }
}