/*
 * DiscoverCAH landing page (home/templates/home/home_page.html)
 * Mobile-first; consumes the design tokens from discovercah.css via var().
 *
 * Authored in SCSS. Compiled to static_compiled/css/home_page.css via
 * `npm run build:css` (Dart Sass) - edit this file, not the generated .css.
 */
:root {
  --homepage-max-width: 640px;
}

body.template-homepage {
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-family-body);
}

/* -------------------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------------------- */
.homepage-hero {
  background: var(--gradient-hero);
  color: var(--color-text-inverse);
  /* Fluid mobile (32/16) -> desktop (64/100) across the design widths. */
  padding: clamp(32px, 20.7324px + 3.0047vw, 64px) clamp(16px, -13.5775px + 7.8873vw, 100px);
}
@media (width >= 1024px) {
  .homepage-hero {
    /* Horizontal gradient on desktop (Figma frame 2062:255). */
    background: linear-gradient(90deg, var(--color-hero-gradient-start), var(--color-hero-gradient-end));
  }
}

.homepage-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: var(--homepage-max-width);
  margin: 0 auto;
}
@media (width >= 1024px) {
  .homepage-hero__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    max-width: 1240px;
  }
}

.homepage-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}
@media (width >= 1024px) {
  .homepage-hero__content {
    flex: 1 1 auto;
    gap: 24px;
    margin-right: -64px;
  }
}

.homepage-hero__media {
  width: 100%;
}
@media (width >= 1024px) {
  .homepage-hero__media {
    flex: 0 0 50%;
  }
}

.homepage-hero__eyebrow {
  color: var(--color-accent-turquoise);
  font-weight: 300;
  font-size: var(--font-size-hero-eyebrow);
  line-height: 1.15;
  text-transform: uppercase;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.29);
}

.homepage-hero__wordmark {
  width: 100%;
  font-weight: 600;
  font-style: italic;
  font-size: var(--font-size-hero-wordmark);
  text-align: center;
  color: var(--color-white);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  background: url("/static/img/ellipse.541519aa1e4f.png") no-repeat center bottom;
  background-size: min(100%, 613px) auto;
}
@media (width >= 1024px) {
  .homepage-hero__wordmark {
    background-position: center bottom 8px;
  }
}
.homepage-hero__wordmark sup {
  font-size: var(--font-size-hero-wordmark-tm);
  vertical-align: super;
}

.homepage-hero__body {
  width: 100%;
  font-weight: 300;
  font-size: var(--font-size-hero-body);
  line-height: 1.35;
}
.homepage-hero__body p {
  margin: 20px 0 0;
}
.homepage-hero__body p:first-child {
  margin-top: 0;
}

.homepage-hero__footnote {
  color: var(--color-accent-turquoise);
  font-weight: 300;
  font-size: var(--font-size-hero-footnote);
  line-height: 1.2;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.29);
}

/* Primary call to action */
.homepage-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  align-self: center;
  width: 300px;
  max-width: 100%;
  min-height: 60px;
  padding: 10px 32px;
  border-radius: 10px;
  background: var(--gradient-cta);
  box-shadow: var(--shadow-cta-inset);
  color: var(--color-white);
  text-decoration: none;
}
.homepage-cta:hover {
  filter: brightness(1.05);
}
.homepage-cta:focus-visible {
  box-shadow: var(--shadow-cta-inset), 0 0 0 3px var(--color-focus-ring-contrast);
}

.homepage-cta__label {
  font-weight: 800;
  font-size: var(--font-size-cta);
  line-height: 1;
  text-shadow: 1px 2px 2px rgba(0, 0, 0, 0.3), -1px -1px 2px rgba(0, 0, 0, 0.3);
}

.homepage-cta__icon {
  flex: none;
}

.homepage-hero__image {
  display: block;
  width: 100%;
  height: auto;
}
