/* Homepage only: original oceanfront roof photograph continues behind the existing navigation. */
@font-face {
  font-family: Montserrat;
  src: url('assets/montserrat-medium.ttf') format('truetype');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

.home-page {
  --home-header-height: 86px;
}

.home-page .site-header {
  height: var(--home-header-height);
  margin-bottom: calc(-1 * var(--home-header-height));
  background: transparent;
  border-bottom-color: transparent;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.home-page .site-header.is-scrolled,
.home-page.menu-open .site-header {
  background: var(--blue);
  box-shadow: 0 3px 18px rgb(3 14 40 / 16%);
}

.home-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 620px;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #263b47;
  color: #fff;
}

.home-hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 48%;
}

.home-hero-content {
  width: 100%;
  max-width: 1600px;
  padding: calc(var(--home-header-height) + 50px) clamp(24px, 6vw, 96px) clamp(68px, 10vh, 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.home-hero-heading {
  width: 100%;
  max-width: 1100px;
}

.home-hero-kicker {
  margin: 0 auto 18px;
  color: #ff9c60;
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(12px, 1.15vw, 16px);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: .18em;
  text-shadow: 0 1px 8px rgb(0 0 0 / 65%);
  text-transform: uppercase;
  text-wrap: balance;
}

.home-hero h1 {
  margin: 0;
  color: #fff;
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(44px, 5.3vw, 80px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.025em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgb(0 0 0 / 24%);
}

.home-hero h1 span {
  display: block;
  text-wrap: balance;
}

.home-hero h1 span + span {
  margin-top: .06em;
}

.home-hero .home-hero-estimate {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-width: var(--header-call-width);
  min-height: var(--header-call-height);
  padding: 2px 10px;
  border: 1.5px solid var(--orange);
  border-radius: 6px;
  background: var(--orange);
  color: #061744;
  font: 700 15px/1.2 Belman, Arial, sans-serif;
  letter-spacing: .055em;
  text-shadow: none;
  box-shadow: 0 5px 16px rgb(0 5 30 / 24%);
}

/* Give the slim desktop face the same usable hit area as the phone button. */
.home-hero-estimate::after {
  content: "";
  position: absolute;
  inset: min(0px, calc((var(--header-call-height) - 44px) / 2)) 0;
}

.home-hero .home-hero-estimate:is(:hover, :focus-visible, :active) {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.home-hero .home-hero-estimate:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.home-about-socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.home-about-socials > span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}

.home-about-socials .hero-socials {
  margin: 0;
  gap: 10px;
}

@media (min-width: 1600px) {
  .home-page { --home-header-height: 98px; }
}

@media (max-width: 1000px) {
  .home-page { --home-header-height: 78px; }
}

@media (max-width: 680px) {
  .home-page { --home-header-height: 76px; }
  .home-hero {
    min-height: 560px;
    height: calc(100vh - 64px);
    height: calc(100svh - 64px);
  }
  .home-hero-photo { object-position: 50% 38%; }
  .home-hero-content {
    padding: 140px 22px 64px;
    gap: 22px;
  }
  .home-hero-kicker {
    max-width: 34em;
    margin-bottom: 14px;
    font-size: 12px;
    line-height: 1.65;
    letter-spacing: .14em;
  }
  .home-hero h1 {
    font-size: clamp(23px, 7.3vw, 48px);
    line-height: 1.12;
    text-wrap: balance;
  }
  .home-hero h1 span { display: inline; }
  .home-hero .home-hero-estimate {
    padding-inline: 5px;
    font-size: 12px;
    letter-spacing: .04em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .site-header { transition: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .home-hero-kicker { animation: home-intro-fade 1000ms ease-out both; }
  .home-hero h1 span { animation: home-intro-fade 1000ms ease-out 180ms both; }
  .home-hero h1 span + span { animation-delay: 320ms; }
  .home-hero .home-hero-estimate { animation: home-intro-fade 1000ms ease-out 480ms both; }
  .home-hero .home-hero-estimate:focus-visible { animation: none; }

}

@keyframes home-intro-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
