:root {
  /*
   * This value is updated automatically with JavaScript.
   * It provides a fallback before JavaScript runs.
   */
  --page-top-offset: 11.5rem;
  --viewport-height: 100vh;

  --home-hero-image-light: url("../images/1536/1024/compass-001-001.jpg");
  --home-hero-image-dark: url("../images/1536/1024/compass-001-002.jpg");

  --morina-accent: #356b5e;
  --morina-accent-hover: #2b574d;
  --morina-accent-soft: rgba(53, 107, 94, 0.11);
  --morina-button-text: #ffffff;

  --hero-background: #f5f7f6;
  --hero-heading: #19231f;
  --hero-copy: #586762;

  --hero-card-background: rgba(255, 255, 255, 0.95);
  --hero-card-border: rgba(25, 35, 31, 0.12);
  --hero-card-shadow: 0 1.25rem 3.5rem rgba(25, 45, 38, 0.12);

  --hero-secondary-background: rgba(255, 255, 255, 0.62);
  --hero-secondary-border: rgba(25, 35, 31, 0.20);
  --hero-list-border: rgba(25, 35, 31, 0.09);

  --placeholder-navbar-background: #ffffff;
  --placeholder-header-background: #f9faf9;
  --placeholder-section-background: #ffffff;
  --placeholder-border: rgba(25, 35, 31, 0.09);
}

@supports (height: 100svh) {
  :root {
    --viewport-height: 100svh;
  }
}

[data-bs-theme="dark"] {
  --morina-accent: #83b6aa;
  --morina-accent-hover: #9ac8bd;
  --morina-accent-soft: rgba(131, 182, 170, 0.14);
  --morina-button-text: #10211c;

  --hero-background: #101815;
  --hero-heading: #f1f5f3;
  --hero-copy: #b4c2bd;

  --hero-card-background: rgba(20, 29, 26, 0.96);
  --hero-card-border: rgba(255, 255, 255, 0.10);
  --hero-card-shadow: 0 1.25rem 3.5rem rgba(0, 0, 0, 0.24);

  --hero-secondary-background: rgba(255, 255, 255, 0.045);
  --hero-secondary-border: rgba(255, 255, 255, 0.18);
  --hero-list-border: rgba(255, 255, 255, 0.08);

  --placeholder-navbar-background: #0d1412;
  --placeholder-header-background: #121b18;
  --placeholder-section-background: #0d1412;
  --placeholder-border: rgba(255, 255, 255, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background-color: var(--bs-body-bg);
}

/*
 * Empty page elements included only to test the hero within a full page.
 * Replace these elements with the real navbar, header and page sections.
 */

.test-navbar {
  min-height: 4.5rem;
  background-color: var(--placeholder-navbar-background);
  border-bottom: 1px solid var(--placeholder-border);
}

.test-header {
  min-height: 7rem;
  background-color: var(--placeholder-header-background);
  border-bottom: 1px solid var(--placeholder-border);
}

.test-section {
  min-height: 36rem;
  background-color: var(--placeholder-section-background);
  border-top: 1px solid var(--placeholder-border);
}

/*
 * Hero section
 */

.home-hero {
  min-height: clamp(
    36rem,
    calc(var(--viewport-height) - var(--page-top-offset)),
    49rem
  );

  display: flex;
  align-items: center;

  position: relative;
  isolation: isolate;
  overflow: hidden;

  padding-block: clamp(4rem, 7vw, 6.5rem);

  background-color: var(--hero-background);
}

.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-hero::before {
  z-index: -2;

  background-image: var(--home-hero-image-light);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  filter:
    saturate(0.68)
    contrast(0.94);

  transform: scale(1.01);
}

.home-hero::after {
  z-index: -1;

  background:
    radial-gradient(
      circle at 84% 18%,
      rgba(53, 107, 94, 0.10),
      transparent 26rem
    ),
    linear-gradient(
      90deg,
      rgba(245, 247, 246, 0.99) 0%,
      rgba(245, 247, 246, 0.97) 40%,
      rgba(245, 247, 246, 0.78) 67%,
      rgba(245, 247, 246, 0.37) 100%
    );
}

[data-bs-theme="dark"] .home-hero::before {
  background-image: var(--home-hero-image-dark);

  filter:
    saturate(0.56)
    brightness(0.68)
    contrast(0.96);
}

[data-bs-theme="dark"] .home-hero::after {
  background:
    radial-gradient(
      circle at 84% 18%,
      rgba(131, 182, 170, 0.10),
      transparent 26rem
    ),
    linear-gradient(
      90deg,
      rgba(16, 24, 21, 0.99) 0%,
      rgba(16, 24, 21, 0.97) 40%,
      rgba(16, 24, 21, 0.79) 67%,
      rgba(16, 24, 21, 0.43) 100%
    );
}

/*
 * Main hero content
 */

.home-hero-content {
  max-width: 48rem;
}

.home-hero-eyebrow {
  width: fit-content;

  display: inline-flex;
  align-items: center;
  gap: 0.75rem;

  margin-bottom: 1.35rem;

  color: var(--morina-accent);

  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.home-hero-eyebrow::before {
  content: "";

  width: 1.75rem;
  height: 1px;
  flex: 0 0 auto;

  background-color: currentColor;
  opacity: 0.8;
}

.home-hero-title {
  max-width: 13ch;
  margin-bottom: 1.4rem;

  color: var(--hero-heading);

  font-size: clamp(2.65rem, 4.75vw, 4.45rem);
  font-weight: 650;
  line-height: 1.03;
  letter-spacing: -0.045em;

  text-wrap: balance;
}

.home-hero-description {
  max-width: 58ch;
  margin-bottom: 2rem;

  color: var(--hero-copy);

  font-size: clamp(1.05rem, 1.4vw, 1.19rem);
  line-height: 1.7;
}

/*
 * Hero buttons
 */

.home-hero-actions .btn {
  min-height: 3.2rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.78rem 1.3rem;
  border-radius: 0.7rem;

  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;

  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.home-hero-actions .btn-primary {
  --bs-btn-color: var(--morina-button-text);
  --bs-btn-bg: var(--morina-accent);
  --bs-btn-border-color: var(--morina-accent);

  --bs-btn-hover-color: var(--morina-button-text);
  --bs-btn-hover-bg: var(--morina-accent-hover);
  --bs-btn-hover-border-color: var(--morina-accent-hover);

  --bs-btn-active-color: var(--morina-button-text);
  --bs-btn-active-bg: var(--morina-accent-hover);
  --bs-btn-active-border-color: var(--morina-accent-hover);

  box-shadow: 0 0.5rem 1.25rem rgba(43, 87, 77, 0.15);
}

.home-hero-actions .btn-primary:hover {
  box-shadow: 0 0.6rem 1.45rem rgba(43, 87, 77, 0.19);
}

.home-hero-actions .btn-secondary-soft {
  color: var(--hero-heading);
  background-color: var(--hero-secondary-background);
  border: 1px solid var(--hero-secondary-border);
}

.home-hero-actions .btn-secondary-soft:hover {
  color: var(--hero-heading);
  background-color: var(--hero-card-background);
  border-color: var(--morina-accent);
}

.home-hero-actions .btn:focus-visible {
  box-shadow:
    0 0 0 0.25rem var(--morina-accent-soft),
    0 0.5rem 1.25rem rgba(43, 87, 77, 0.12);
}

/*
 * Supporting card
 */

.home-hero-card {
  width: 100%;
  max-width: 28.5rem;
  margin-left: auto;
  padding: clamp(1.6rem, 3vw, 2.25rem);

  position: relative;
  overflow: hidden;

  border: 1px solid var(--hero-card-border);
  border-radius: 1.1rem;

  background-color: var(--hero-card-background);
  box-shadow: var(--hero-card-shadow);
}

.home-hero-card::before {
  content: "";

  position: absolute;
  top: 1.4rem;
  bottom: 1.4rem;
  left: 0;

  width: 3px;

  border-radius: 0 3px 3px 0;
  background-color: var(--morina-accent);
  opacity: 0.88;
}

.home-hero-card-label {
  margin-bottom: 0.7rem;

  color: var(--morina-accent);

  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.home-hero-card-title {
  max-width: 20ch;
  margin-bottom: 1rem;

  color: var(--hero-heading);

  font-size: clamp(1.3rem, 1.8vw, 1.55rem);
  font-weight: 650;
  line-height: 1.27;
  letter-spacing: -0.025em;

  text-wrap: balance;
}

.home-hero-card-text {
  margin-bottom: 1.4rem;

  color: var(--hero-copy);

  font-size: 0.98rem;
  line-height: 1.65;
}

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

.home-hero-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;

  padding: 0.75rem 0;

  color: var(--hero-heading);
  border-top: 1px solid var(--hero-list-border);

  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.45;
}

.home-hero-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.home-hero-list li:last-child {
  padding-bottom: 0;
}

.home-hero-list li::before {
  content: "✓";

  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 1.25rem;

  display: grid;
  place-items: center;

  margin-top: 0.08rem;
  border-radius: 50%;

  color: var(--morina-accent);
  background-color: var(--morina-accent-soft);

  font-size: 0.73rem;
  font-weight: 800;
  line-height: 1;
}

/*
 * Tablet
 */

@media (max-width: 991.98px) {
  .test-navbar {
    min-height: 4rem;
  }

  .test-header {
    min-height: 5.5rem;
  }

  .home-hero {
    min-height: auto;
    padding-block: 4.5rem;
  }

  .home-hero::before {
    background-position: 62% center;
  }

  .home-hero::after {
    background:
      radial-gradient(
        circle at 82% 12%,
        rgba(53, 107, 94, 0.09),
        transparent 20rem
      ),
      linear-gradient(
        180deg,
        rgba(245, 247, 246, 0.86) 0%,
        rgba(245, 247, 246, 0.94) 38%,
        rgba(245, 247, 246, 0.99) 72%,
        rgba(245, 247, 246, 1) 100%
      );
  }

  [data-bs-theme="dark"] .home-hero::after {
    background:
      radial-gradient(
        circle at 82% 12%,
        rgba(131, 182, 170, 0.09),
        transparent 20rem
      ),
      linear-gradient(
        180deg,
        rgba(16, 24, 21, 0.86) 0%,
        rgba(16, 24, 21, 0.94) 38%,
        rgba(16, 24, 21, 0.99) 72%,
        rgba(16, 24, 21, 1) 100%
      );
  }

  .home-hero-content {
    max-width: 44rem;
  }

  .home-hero-title {
    max-width: 15ch;
  }

  .home-hero-card {
    max-width: 42rem;
    margin-left: 0;
  }
}

/*
 * Mobile
 */

@media (max-width: 575.98px) {
  .home-hero {
    padding-block: 3.75rem;
  }

  .home-hero-title {
    font-size: clamp(2.35rem, 11.5vw, 3.2rem);
  }

  .home-hero-description {
    font-size: 1.04rem;
    line-height: 1.65;
  }

  .home-hero-actions .btn {
    width: 100%;
  }

  .home-hero-card {
    padding: 1.5rem;
    border-radius: 1rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .home-hero-actions .btn {
    transition: none;
  }
}

/* new */