/**
 * Hero Homepage — Stylesheet
 *
 * Ported from the homepage mockup. Selectors are namespaced under
 * .hero-homepage rather than the mockup's bare .hero, which would collide
 * with Elementor and the parent theme.
 */

.hero-homepage {
  --ts-hero-gold: #c8995c;
  --ts-hero-champagne: #f0d9b0;
  --ts-hero-navy-d: #00243a;

  position: relative;
  height: var(--ts-hero-height, 100vh);
  min-height: var(--ts-hero-min-height, 640px);
  overflow: hidden;
  background-color: var(--ts-hero-navy-d);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-homepage video,
.hero-homepage .poster,
.hero-homepage .poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* <picture> is not a replaced element, so object-fit lands on the <img>. */
.hero-homepage picture.poster {
  display: block;
}

/**
 * The video is decorative and sits under the overlay and the copy.
 *
 * It follows the .poster in the DOM, so it paints over it once
 * hero-homepage.js attaches a source. Until then — and permanently, for every
 * narrow or reduced-motion visitor — it must stay transparent or it would
 * hide the still behind it. The navy now backs .hero-homepage instead, which
 * covers the same gap before either one paints.
 */
.hero-homepage__video {
  pointer-events: none;
  display: block;
  background-color: transparent;
}

.hero-homepage__video::-webkit-media-controls {
  display: none !important;
}

.hero-homepage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(62% 46% at 50% 47%, rgba(0, 24, 39, .44), rgba(0, 24, 39, .18) 55%, rgba(0, 24, 39, 0) 78%),
    linear-gradient(180deg, rgba(0, 24, 39, .46) 0%, rgba(0, 24, 39, 0) 20%, rgba(0, 24, 39, 0) 72%, rgba(0, 24, 39, .5) 100%);
}

.hero-homepage .hero-in {
  position: relative;
  z-index: 2;
  color: #ffffff;
  padding: 0 6vw;
  text-shadow: 0 2px 16px rgba(0, 16, 28, .8), 0 1px 3px rgba(0, 16, 28, .65);
}

.hero-homepage .kick {
  display: block;
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: var(--ts-hero-champagne);
}

.hero-homepage h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 500;
  color: #ffffff;
  letter-spacing: .01em;
  line-height: 1.04;
  margin: 0;
}

.hero-homepage h1 em {
  font-style: italic;
  color: var(--ts-hero-champagne);
}

.hero-homepage .sub {
  font-family: 'Montserrat';
  margin: 24px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, .92);
}

.hero-homepage .cta {
  margin-top: 34px;
}

.hero-homepage .lnk {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #1a1813;
  padding-bottom: 8px;
  position: relative;
  text-decoration: none;
}

.hero-homepage .lnk::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 1px;
  background: var(--ts-hero-gold);
  transition: width .45s cubic-bezier(.2, .8, .2, 1);
}

.hero-homepage .lnk:hover::after {
  width: 100%;
}

.hero-homepage .lnk.light {
  color: #ffffff;
}

/**
 * Content alignment.
 *
 * These values are ported from WPCode snippet "RA Header Logo + Homepage
 * Hero", which is what actually shapes the live homepage. That snippet is
 * gated on `body.home` and does not run inside the Elementor editor, so
 * without this block the widget looked centred in the builder and left in
 * production. Owning the layout here makes the two agree — and the snippet's
 * hero rules redundant, since the values match exactly.
 */
.ts-hero-align-left .hero-homepage {
  justify-content: flex-start;
}

/* Darkens the left third so the headline holds against a bright horizon. */
.ts-hero-align-left .hero-homepage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 28, 46, .62), rgba(0, 28, 46, .18) 42%, rgba(0, 28, 46, 0) 66%);
}

.ts-hero-align-left .hero-homepage .hero-in {
  text-align: left;
  align-items: flex-start;
  margin: 0 0 0 7vw;
  max-width: 720px;
}

.ts-hero-align-left .hero-homepage .sub {
  font-size: 17px;
  margin-left: 0;
  margin-right: 0;
  max-width: 500px;
}

@media (max-width: 1024px) {
  .ts-hero-align-left .hero-homepage h1 {
    font-size: 72px;
    line-height: 1.06;
  }
}

@media (max-width: 767px) {
  .ts-hero-align-left .hero-homepage h1 {
    font-size: 52px;
  }

  .ts-hero-align-left .hero-homepage .hero-in {
    margin-left: 5vw;
  }
}

@media (max-width: 480px) {
  .ts-hero-align-left .hero-homepage h1 {
    font-size: 40px;
  }
}

.ts-hero-align-center .hero-homepage {
  justify-content: center;
}

.ts-hero-align-center .hero-homepage .hero-in {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Scroll cue */
.hero-homepage .hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-homepage .hero-scroll::after {
  content: '';
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, .5);
  animation: ts-hero-scrl 2.4s ease-in-out infinite;
  transform-origin: top;
}

@keyframes ts-hero-scrl {

  0%,
  100% {
    transform: scaleY(.5);
    opacity: .4;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@media (max-width: 600px) {

  /**
   * Override the custom property, not min-height itself: a hard value here
   * would beat the responsive control and strand the mobile setting.
   */
  .hero-homepage {
    --ts-hero-min-height: 540px;
  }

  .hero-homepage h1 {
    font-size: 34px;
    line-height: 1.06;
  }

  .hero-homepage .kick {
    font-size: 10px;
    letter-spacing: .24em;
    margin-bottom: 14px;
  }

  .hero-homepage .sub {
    font-size: 13px;
    margin-top: 18px;
    max-width: 90%;
  }

  .hero-homepage .cta {
    margin-top: 26px;
  }
}

@media (max-width: 380px) {
  .hero-homepage h1 {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-homepage .hero-scroll::after {
    animation: none;
  }
}