:root {
  /* Colors */
  --primary: #f1faee;
  --primary-transparent: hsla(105, 55%, 96%, 0.7);
  --secondary: #10172d;
  --accent: #3ca09b;
  --accent-hover: #31807c;
  /* --boxes: #edf6ea; */
  --boxes: hsl(105, 40%, 92%);
  /* Texts */
  --dark-text-300: #10172d;
  --dark-text-200: #40485e;
  --dark-text-100: #a3aabf;
  --light-text-400: #f1faee;
  --light-text-300: #b9c1be;
  --light-text-200: #8c9497;
  --light-text-100: #5f6671;
  --border-200: #a3aabf;
  --border-100: #fdfefc;
  /* Sizes */
  /* --h1: 3rem; 48px/1.2 700 Bold */
  --h2: 2.25rem; /*36px/1.2 600 semiBold*/
  --h3: 1.5rem; /*24px/1.3 600 semiBold*/
  --subheading: 1.125rem; /* 18px/1.3 500 medium */
  --body: 1rem; /* 16px/1.5 400 regular*/
  /* --links: 16px; 16px/1.5 500 medium */
  --shadow-1: 0 5px 15px rgba(0, 0, 0, 0.2);
  --shadow-2: 0 5px 15px rgba(0, 0, 0, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}
html {
  font-size: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", sans-serif;
  background-color: var(--primary);
  min-height: 100vh;
  line-height: 1.5;
}

h1 {
  font-size: 1.875rem;
  font-size: clamp(1.875rem, 1.2rem + 2.4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-text-300);
}
h2 {
  font-size: 1.375rem;
  font-size: clamp(
    1.375rem,
    1.0290697674418605rem + 1.627906976744186vw,
    2.25rem
  );
  font-weight: 600;
  line-height: 1.2;
  text-transform: capitalize;
  color: var(--dark-text-300);
}
h3 {
  font-size: var(--h3);
  font-weight: 600;
  line-height: 1.3;
}
p,
a {
  font-size: 0.875rem;
  font-size: clamp(
    0.875rem,
    0.8255813953488372rem + 0.23255813953488372vw,
    1rem
  );
  color: var(--dark-text-300);
}
p {
  line-height: 1.5;
}
a {
  text-decoration: none;
}
ul {
  list-style: none;
}

input,
textarea,
button {
  font-family: inherit;
}

img {
  display: block;
  max-width: 100%;
}
.subheading {
  font-size: 0.875rem;
  font-size: clamp(
    1rem,
    0.7840909090909091rem + 0.45454545454545453vw,
    1.125rem
  );
  color: var(--dark-text-300);
}
/* Utilities */
.container {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
}

section,
footer {
  margin-block-start: 120px;
}

.box {
  background-color: var(--boxes);
  box-shadow: var(--shadow-1);
  padding: 2rem;
  border-radius: 25px;
}
.box__heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-block-end: 1rem;
}
.box__icon {
  color: var(--primary);
  background-color: var(--accent);
  border-radius: 15px;
  width: 50px;
  height: 50px;
  padding: 0.5rem;
}
.box__title {
  color: var(--dark-text-300);
}

.box__description {
  color: var(--dark-text-200);
}

.insights {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  align-content: center;
  grid-auto-rows: 1fr;
  gap: 1rem;
}
.insight {
  background-color: var(--primary);
  box-shadow: var(--shadow-2);
  padding: 1rem;
  border-radius: 25px;
  text-align: center;
  transition: 0.15s ease-in-out;
  transition-property: scale, box-shadow;
}
.insight:hover {
  box-shadow: var(--shadow-1);
  scale: 1.04;
}
.insight__heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-block-end: 1rem;
  width: fit-content;
  margin-inline: auto;
}
.insight__icon {
  color: var(--primary);
  background-color: var(--accent);
  border-radius: 15px;
  width: 50px;
  height: 50px;
  padding: 0.5rem;
}

.insight__description {
  color: var(--dark-text-200);
}

.main-title {
  text-align: center;
  margin-block-end: 60px;
  color: var(--dark-text-300);
  scroll-margin-top: 120px;
}

@media (max-width: 650px) {
  :root {
    /* --h1: 1.875rem; 48px/1.2 700 Bold */
    --h2: 2.25rem; /*36px/1.2 600 semiBold*/
    --h3: 1.5rem; /*24px/1.3 600 semiBold*/
    --subheading: 0.875rem; /* 18px/1.3 500 medium */
    --body: 0.875rem; /* 14px */
  }

  section,
  footer {
    margin-block-start: 90px;
  }

  h1 {
    font-size: 1.875rem;
    font-size: clamp(
      1.875rem,
      1.1111111111111112rem + 3.7037037037037033vw,
      2.5rem
    );
  }
}

/* Header */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
  padding-block-start: 25px;
  background-color: var(--primary-transparent);
  backdrop-filter: blur(12px); /* the blur magic */
  -webkit-backdrop-filter: blur(12px); /* Safari support */
  border-block-end: 2px solid var(--primary);
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block-end: 1rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo__img {
  width: 34px;
}
.logo__text {
  font-size: 1.625rem; /* 26px semibold */
  font-weight: 500;
  color: var(--dark-text-300);
  margin-inline-start: 8px;
}
#menu-button {
  display: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  padding: 0.5rem;
  color: var(--dark-text-300);
  font-weight: 500;
  text-wrap: nowrap;
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--accent);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  opacity: 0;
  background-color: rgb(0, 0, 0);
  pointer-events: none;
}

@media (max-width: 650px) {
  .logo__img {
    width: 26px;
  }
  .logo__text {
    font-size: 1.375rem;
  }
  .drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 60%;
    transform: translateX(100%);
    transition: transform 0.25s ease-in-out;
  }
  .nav-links {
    display: flex;
    flex-direction: column;
    padding: 7rem 2rem;
    height: 100%;
    background-color: var(--primary);
  }
  .drawer.opened {
    transform: translateX(0);
  }

  .nav-links a {
    padding: 0.75rem 1rem;
    background-color: var(--boxes);
    border-radius: 10px;
    width: 100%;
    display: block;
    text-align: center;
  }

  #menu-button {
    display: block;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1;
    background: none;
    border: none;
    cursor: pointer;
  }

  #menu-button span {
    position: absolute;
    left: 0;
    width: 26px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 10px;
    transition: transform 0.25s ease-in-out, opacity 0.25s ease-in-out,
      width 0.25s ease-in-out;
  }

  #menu-button span:nth-child(1) {
    top: 0;
  }
  #menu-button span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
  }
  #menu-button span:nth-child(3) {
    bottom: 0;
  }

  /* Cross state */
  #menu-button.cross span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  #menu-button.cross span:nth-child(2) {
    opacity: 0;
    width: 0;
  }
  #menu-button.cross span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .overlay {
    transition: opacity 0.25s ease-in-out;
  }
  .overlay.opened {
    opacity: 0.4;
    pointer-events: all;
  }
}

/* Hero Section */
.hero {
  margin-block-start: 150px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero__info {
  max-width: 500px;
  margin-inline-end: 1rem;
}
.hero__title {
  margin-block-end: 0.5rem;
  color: var(--dark-text-300);
}
.hero__title span {
  color: var(--accent);
}

.hero__subheading {
  color: var(--dark-text-200);
  margin-block-end: 1rem;
}

.hero__button {
  display: block;
  width: fit-content;
  color: var(--accent);
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--accent);
  border-radius: 100vw;
  font-weight: 600;
  text-transform: uppercase;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}
.hero__button:hover {
  background-color: var(--accent);
  color: var(--primary);
}

.hero__imgs {
  position: relative;
  width: 18.75rem;
  width: clamp(18.75rem, 11.875rem + 18.333333333333336vw, 25.625rem);
  aspect-ratio: 1/1;
}

.hero__imgs img {
  width: 6.25rem;
  width: clamp(6.25rem, 1.25rem + 13.333333333333334vw, 11.25rem);
  height: auto;
}
.hero__imgs img:first-child {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.hero__imgs img:nth-child(2) {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}
.hero__imgs img:last-child {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 2;
}

@media (max-width: 650px) {
  .hero {
    margin-block-start: 130px;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    align-items: center;
  }
  .hero__imgs {
    order: -1;
    width: 16.25rem;
    width: clamp(
      16.25rem,
      13.194444444444445rem + 14.814814814814813vw,
      18.75rem
    );
  }
  .hero__info {
    margin-inline-end: 0;
  }
  .hero__button {
    margin-inline: auto;
  }
  .hero__imgs img {
    width: 120px;
  }
}
/* About */
.about {
  display: grid;
  scroll-margin-top: 130px;
  margin-block-start: 150px;
  gap: 30px;
}

.who {
  grid-column: span 2;
  padding: 4rem;
  text-align: center;
  background-color: var(--secondary);
  border-radius: 25px;
}
.who h2 {
  color: var(--light-text-400);
  margin-block-end: 1rem;
}
.who p {
  color: var(--light-text-300);
  max-width: 80ch;
  margin-inline: auto;
}

@media (max-width: 650px) {
  .about {
    grid-template-columns: 1fr;
  }
  .who {
    grid-column: span 1;
    padding: 2rem;
    text-align: center;
    background-color: var(--secondary);
    border-radius: 25px;
  }
}
/* Core Values */

.cores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.cores .box {
  max-width: 350px;
}
/* MedZ Cast */
.medz-cast {
  background-color: var(--boxes);
  box-shadow: var(--shadow-1);
  padding: 2rem;
  border-radius: 25px;
}
.cast__heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-block-end: 1rem;
}
.cast__title {
  color: var(--dark-text-300);
}
.cast__icon {
  color: var(--accent);
  /* width: 50px; */
  width: 2.1875rem;
  width: clamp(2.1875rem, 1.816860465116279rem + 1.744186046511628vw, 3.125rem);
  height: 2.1875rem;
  height: clamp(
    2.1875rem,
    1.816860465116279rem + 1.744186046511628vw,
    3.125rem
  );
}
.cast__description {
  color: var(--dark-text-200);
  margin-block-end: 1rem;
}

.cast__infos {
  display: flex;
  gap: 1rem;
}

.cast__infos > * {
  flex: 1;
}
.cast__info .subheading {
  color: var(--dark-text-300);
  margin-block-end: 1rem;
}

.cast__img {
  background-color: var(--secondary);
  border-radius: 25px;
  overflow: hidden;
  object-fit: cover;
}
.cast__img img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

@media (max-width: 950px) {
  .cast__infos > * {
    flex: initial;
  }
  .cast__img {
    width: 100%;
    /* height: 300px; */
    height: 11.25rem;
    height: clamp(
      11.25rem,
      7.0696721311475414rem + 19.672131147540984vw,
      18.75rem
    );
    order: -1;
  }
  .cast__infos {
    flex-direction: column;
  }
}

/* EVents */
.event {
  display: flex;
  gap: 2rem;
  background-color: var(--boxes);
  box-shadow: var(--shadow-1);
  padding: 2rem;
  border-radius: 25px;
}
.event:not(:last-child) {
  margin-block-end: 60px;
}
.event.flip .insights {
  order: -1;
}

.event > * {
  flex: 1;
}
.event__title {
  color: var(--dark-text-300);
}
.event__date {
  display: block;
  color: #343a40;
  font-size: var(--body);
  margin-block-end: 0.25rem;
  font-weight: 500;
}
.event .subheading {
  margin-block-end: 1rem;
}
.event__description {
  color: var(--dark-text-200);
}
@media (max-width: 950px) {
  .event {
    flex-direction: column;
  }
  .event.flip .insights {
    order: 1;
  }
}

/* Ambassadors */
.ambassadors .event__description {
  margin-block: 1rem;
}

.ambassadors .event__info > .subheading {
  margin-block: 1rem 0;
}

.reviews {
  display: flex;
  justify-content: center;
  text-align: center;
  gap: 1rem;
}
.review {
  flex: 1;
  max-width: 250px;
  padding: 1.5rem;
  background-color: var(--accent);
  border-radius: 25px;
}
.review h2 {
  color: #f4ea9e;
  font-size: 2rem;
}
.review .subheading {
  color: var(--primary);
}
.ambassadors .insights {
  gap: 2rem;
}
@media (max-width: 950px) {
  .reviews {
    flex-wrap: wrap;
  }
}

/* Projects */
.programs .event__date {
  margin-block-end: 1rem;
}

/* Contact */
.contact {
  display: flex;
  gap: 2rem;
  scroll-margin-top: 120px;
  justify-content: space-between;
}
.contact > * {
  flex: 1;
}
.contact form {
  max-width: 400px;
  display: grid;
  gap: 1.5rem;
}

.contact input,
.contact textarea {
  background-color: transparent;
  color: var(--dark-text-200);
  padding: 1rem;
  font-size: 1;
  border: none;
  border-block-end: 3px solid var(--border-200);
  transition: border-block-end-color 0.15s ease-in-out;
}
.contact input:focus-visible,
.contact textarea:focus-visible {
  border-block-end-color: var(--dark-text-200);
}
.contact textarea {
  resize: none;
}

*:focus-visible {
  outline: 1px solid transparent;
}

.contact button {
  background-color: var(--accent);
  border: none;
  border-radius: 12px;
  padding: 1rem;
  color: var(--primary);
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
}
.contact button:hover {
  background-color: var(--accent-hover);
}
.contact__info {
  max-width: 600px;
}
.contact__info .email {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-block: 1rem;
}
.contact__info .email .icon {
  color: var(--dark-text-200);
}
.contact__info .email a {
  color: var(--dark-text-200);
}
.contact .links {
  display: flex;
  gap: 10px;
}
.contact .link {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  background-color: var(--secondary);
  color: var(--light-text-400);
  width: 40px;
  height: 40px;
  transition: background-color 0.15s ease-in-out;
}
.contact .link:hover {
  background-color: var(--accent);
}
.contact .main-title {
  display: none;
}
@media (max-width: 650px) {
  .contact {
    flex-direction: column;
    text-align: center;
    gap: 0;
  }
  .contact > * {
    margin-inline: auto;
  }
  .contact .main-title {
    display: block;
    margin-block-end: 30px;
  }
  .contact__info h1 {
    display: none;
  }
  .contact__info .email {
    justify-content: center;
  }
}
/* Footer */
footer {
  background-color: var(--secondary);
}

footer .copy {
  padding-block: 1rem;
  font-size: 12px;
  border-block-start: 1px solid var(--border-200);
  color: var(--dark-text-100);
  max-width: 700px;
  width: 100%;
  text-align: center;
  margin-inline: auto;
}

.footer__info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding-block: 2rem;
}

.footer__logo_heading {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-block-end: 10px;
}
.footer__logo_heading span {
  color: var(--light-text-400);
  font-size: 16px;
}
footer .footer__logo p {
  color: var(--light-text-100);
  max-width: 200px;
}
footer .title {
  color: var(--light-text-400);
}

.footer__link {
  color: var(--light-text-200);
  font-size: 14px;
}
.footer__link:not(.email__text):hover {
  text-decoration: underline;
}

footer .links {
  display: flex;
  gap: 10px;
  margin-block-start: 10px;
}
footer .link {
  background-color: var(--light-text-300);
  color: var(--secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  transition: background-color 0.15s ease-in-out;
}
footer .link > * {
  width: 22px;
  height: 22px;
}
footer .link:hover {
  background-color: var(--primary);
}
.footer__link:first-child {
  margin-block-start: 10px;
  display: block;
}
