@font-face {
  font-family: "Source Sans 3";
  font-weight: 200 - 900;
  font-style: normal;
  src: url("/fonts/SourceSans3-VariableFont_wght.ttf");
}

@font-face {
  font-family: "Source Sans 3";
  font-weight: 200 - 900;
  font-style: italic;
  src: url("/fonts/SourceSans3-Italic-VariableFont_wght.ttf");
}

:root {
  /* Primary greens */
  --green: #669f83;
  --green-dark: #4c7b67;
  --green-deep: #355c4b;
  --green-light: #8abea3;
  --green-pale: #eef6f1;

  /* Backgrounds */
  --white: #fefefe;
  --off-white: #f8f5f0;
  --beige: #f2ebe2;

  --medical-blue: #d8e7ee;
  --medical-blue-dark: #5f7f8b;

  --trust: #d2e3df;

  /* Text */
  --text: #26332d;
  --text-muted: #3d3f3e;
  --text-light: #555f5a;

  /* Supporting medical tone */
  --blue-grey: #6f8790;
  --blue-grey-light: #e8eff1;

  /* States */
  --success: #3f765c;
  --warning: #c69a55;
  --error: #a65c5c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  background-color: var(--off-white);
  font-family: "Source Sans 3", sans-serif;
}

main {
  flex: 1;
}

.header-container {
  position: fixed;
  top: 0;
  width: 100%;
  height: 7.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.12);
  z-index: 10;
}

.header-contact {
  position: absolute;
  top: 0;
  width: 100%;
  height: 1.75rem;
  background-color: var(--green-deep);
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
  padding: 0 2.25rem;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.04);
}

.header-contact-option {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  color: var(--off-white);
  text-decoration: none;
  font-weight: 400;
}

.header-contact-option img {
  max-width: 1rem;
  margin-left: 0.5rem;
  filter: invert(98%);
}

.header-main {
  height: 6rem;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.01);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.75rem;
  transition: all ease 0.5s;
}

.header-main.opaque {
  background-color: var(--green-dark);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
}

.header {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin: 0 2.25rem;
}

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

.header-brand a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.header-title {
  font-size: 2.35rem;
  font-weight: 650;
  color: var(--beige);
  letter-spacing: 0.03em;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  line-height: 0.95;
}

.header-subtitle {
  font-size: 1.95rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  color: var(--off-white);
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  line-height: 1;
  margin-top: 0.15rem;
}

.hero-container {
  width: 100%;
  height: auto;
  position: relative;
}

.hero {
  background-color: rgba(0, 0, 0, 0);
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-image {
  position: relative;
  z-index: 1;
  width: 100%;
  opacity: 0.8;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 2;
  height: auto;
  inset: 0;
  background: rgba(0, 0, 0, 0.24);
}

.hero-content {
  position: absolute;
  z-index: 4;
  top: 10rem;
  margin: auto;
  max-width: 34rem;
  padding: 2.5rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 2rem;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.08);
}

.hero-eyebrow {
  color: var(--beige);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.08);
  opacity: 0.85;
}

.hero-heading {
  font-size: 2.75rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--white);
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.08);
  margin: 0.25rem 0 0.75rem;
  letter-spacing: 0.01em;
}

.hero-heading span {
  font-weight: 600;
  font-style: italic;
  color: var(--green-light);
}

.hero-paragraph {
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--beige);
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.08);
}

.hero-trust {
  margin-top: 0.3rem;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--beige);
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.08);
  opacity: 0.7;
}

.hero-buttons {
  margin-top: 1.25rem;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.hero-button {
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 500;
  border-radius: 2rem;
  width: 180px;
  height: 60px;
  transition: all ease 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.08);
}

.hero-button:hover {
  transform: scale(1.02);
  letter-spacing: 0.02em;
  opacity: 0.85;
  font-size: 1.3rem;
}

.hero-button.primary {
  color: var(--off-white);
  background-color: var(--green);
}

.hero-button.secondary {
  color: var(--off-white);
  background-color: var(--blue-grey);
}

.footer-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.footer {
  width: 100%;
  background-color: var(--green-deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.copy {
  margin: 2rem 0;
  color: var(--off-white);
  opacity: 0.8;
}

/* =========================
   TABLET
   ========================= */

@media (max-width: 900px) {
  .header-contact {
    padding: 0 1.5rem;
  }

  .hero {
    min-height: 48rem;
    max-height: none;
  }

  .hero-image {
    width: 100%;
    height: 48rem;
    object-fit: cover;
    object-position: center;
  }

  .hero-content {
    top: 9rem;
    width: min(90%, 34rem);
    padding: 2.25rem;
  }

  .hero-heading {
    font-size: 2.5rem;
  }

  .hero-paragraph {
    font-size: 1.35rem;
  }
}

/* =========================
   SMALL LAPTOP / LANDSCAPE TABLET
   ========================= */

@media (min-width: 901px) and (max-width: 1120px) {
  .hero {
    min-height: calc(100svh - 5rem);
  }

  .hero-image {
    width: 100%;
    min-height: calc(100svh - 5rem);
    object-fit: cover;
  }
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 600px) {
  html,
  body {
    overflow-x: hidden;
  }

  /* ----- Header ----- */

  .header-container {
    height: 7rem;
  }

  .header-contact {
    height: 1.75rem;
    justify-content: center;
    gap: 1rem;
    padding: 0 0.75rem;
  }

  .header-contact-option {
    font-size: 0.8rem;
  }

  .header-contact-option img {
    max-width: 0.8rem;
    margin-left: 0;
  }

  .header-main {
    height: 5.25rem;
    margin-top: 1.75rem;
  }

  .header {
    margin: 0 1rem;
  }

  .header-title {
    font-size: 1.65rem;
  }

  .header-subtitle {
    font-size: 1.4rem;
  }

  /* ----- Hero ----- */

  .hero-container {
    height: 100svh;
    min-height: 44rem;
    overflow: hidden;
  }

  .hero {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 44rem;
    max-height: none;
    overflow: hidden;
  }

  .hero-image {
    position: absolute;
    top: 0;
    left: 50%;

    width: auto;
    max-width: none;
    height: 100%;

    transform: translateX(-50%);

    object-fit: cover;
  }

  .hero::after {
    position: absolute;
    inset: 0;
  }

  /* ----- Hero content ----- */

  .hero-content {
    top: 8rem;
    left: 50%;
    transform: translateX(-50%);

    width: calc(100% - 2rem);
    max-width: 30rem;

    margin: 0;
    padding: 1.75rem;

    border-radius: 1.5rem;
  }

  .hero-eyebrow {
    font-size: 0.95rem;
  }

  .hero-heading {
    font-size: clamp(2rem, 9vw, 2.5rem);
    line-height: 1.05;
    margin: 0.25rem 0 0.75rem;
  }

  .hero-paragraph {
    font-size: 1.15rem;
    line-height: 1.15;
  }

  .hero-trust {
    font-size: 0.95rem;
  }

  /* ----- Buttons ----- */

  .hero-buttons {
    gap: 0.75rem;
    margin-top: 1.25rem;
  }

  .hero-button {
    width: 50%;
    height: 3.25rem;
    font-size: 1.05rem;
  }

  /*
    Hover states can get "stuck" on touchscreens,
    so don't enlarge buttons on mobile.
  */
  .hero-button:hover {
    transform: none;
    letter-spacing: normal;
    opacity: 1;
    font-size: 1.05rem;
  }

  /* ----- Footer ----- */

  .copy {
    margin: 1.5rem 1rem;
    font-size: 0.9rem;
    text-align: center;
  }
}

/* =========================
   VERY SMALL PHONES
   ========================= */

@media (max-width: 380px) {
  .header-contact {
    gap: 1.25rem;
  }

  .header-contact-option {
    font-size: 0.72rem;
  }

  .hero-content {
    width: calc(100% - 1.25rem);
    padding: 1.4rem;
  }

  .hero-heading {
    font-size: 1.9rem;
  }

  .hero-paragraph {
    font-size: 1.05rem;
  }

  .hero-buttons {
    flex-direction: row;
    gap: 0.75rem;
  }

  .hero-button {
    flex: 1;
    width: auto;
    min-width: 0;
  }
}
