/* Hero redesign (October 2026). Tokens, buttons and the hero section, all prefixed .oh- so nothing collides with base.css or home.css. */

:root {
  --bg: #081F26;
  --fg: #F3F6F4;
  --ink: #0B0D10;
  --frost: #E6EEF0;
  --lime: #D3F26A;
  --lime-hover: #BFE159;
  --sand: #E8DCC4;
  --nav-h: 82px; /* overwritten at runtime from .nav offsetHeight */
  --gutter: clamp(20px, 6vw, 88px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-std: cubic-bezier(.4, 0, .2, 1);
  --font-ui: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Instrument Serif", Georgia, "Times New Roman", serif;
}


.oh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-ui); font-weight: 600; font-size: 14px; letter-spacing: -.01em;
  padding: 12px 22px; border-radius: 999px; text-decoration: none; cursor: pointer; border: 0;
  transition: transform .2s var(--ease-std), background .2s;
  white-space: nowrap;
}
.oh-btn--lime { background: var(--lime); color: var(--ink); }
.oh-btn--lime:hover { background: var(--lime-hover); transform: scale(1.02); }
.oh-btn--lime:active { transform: scale(.97); }

/* ---------- Hero ---------- */
.oh {
  position: relative; isolation: isolate;
  font-family: var(--font-ui); font-stretch: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--nav-h); /* the live .nav is position: fixed */
  display: grid; grid-template-rows: 1fr auto;
  overflow: hidden; background: var(--bg);
}
.oh__media { position: absolute; inset: 0; z-index: 0; }
.oh__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 68% 58%;
  opacity: 0; transform: scale(1.06);
  transition: opacity .7s ease;
}
.oh__img.is-loaded { opacity: 1; animation: ohSettle 1.8s var(--ease-out) both; }
@keyframes ohSettle { from { transform: scale(1.06); } to { transform: scale(1); } }
.oh__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to right,
    rgba(8, 31, 38, .82) 0%, rgba(8, 31, 38, .62) 34%, rgba(8, 31, 38, .22) 60%, rgba(8, 31, 38, 0) 80%);
}
.oh__fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46%; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(8, 31, 38, 0) 0%, rgba(8, 31, 38, .18) 30%, rgba(8, 31, 38, .6) 62%, rgba(8, 31, 38, .9) 85%, var(--bg) 100%);
}
.oh__grain {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

.oh__stage {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end;
  padding: clamp(40px, 7vh, 96px) var(--gutter) clamp(20px, 3.5vh, 40px);
}
.oh__copy { max-width: 820px; }
.oh__eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 0 0 22px;
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(243, 246, 244, .62);
}
.oh__dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .7; }
.oh__h1 {
  margin: 0 0 24px; font-family: var(--font-ui); font-stretch: 100%;
  font-weight: 500; font-size: clamp(44px, 5.9vw, 88px); line-height: 1.0; letter-spacing: -.035em;
  color: var(--fg); text-shadow: 0 16px 38px rgba(0, 0, 0, .32);
}
.oh__line { display: block; padding-bottom: .06em; }
@media (min-width: 900px) { .oh__line { white-space: nowrap; } }
.oh__eyebrow-more { display: inline; }
.oh__h1 em {
  font-family: var(--font-accent); font-style: italic; font-weight: 400;
  font-size: 1.1em; letter-spacing: -.02em; color: var(--sand);
  animation: ohSharpen 1.1s var(--ease-out) .7s both;
}
@keyframes ohSharpen { from { opacity: .35; filter: blur(4px); } }
.oh__sub {
  margin: 0 0 34px; max-width: 30rem;
  font-size: clamp(16px, 1.25vw, 18px); line-height: 1.55; font-weight: 400;
  color: rgba(243, 246, 244, .78); text-shadow: 0 2px 18px rgba(0, 0, 0, .42);
}
.oh__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.oh-btn--lg { font-size: 15px; padding: 16px 28px; }
.oh__link {
  display: inline-flex; align-items: center; gap: 8px; position: relative; padding: 10px 0; min-height: 44px;
  font-size: 15px; font-weight: 500; color: var(--fg); text-decoration: none;
}
.oh__link::after {
  content: ""; position: absolute; left: 0; bottom: 7px; height: 1px; width: 100%;
  background: currentColor; opacity: .5; transform: scaleX(.35); transform-origin: left;
  transition: transform .35s var(--ease-out), opacity .3s;
}
.oh__link:hover::after { transform: scaleX(1); opacity: 1; }
.oh__link svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.oh__link:hover svg { transform: translateX(3px); }
.oh__note { margin: 18px 0 0; font-size: 13px; color: rgba(243, 246, 244, .5); }
.oh__note--short { display: none; }

.oh__strip {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter) max(28px, env(safe-area-inset-bottom));
}
.oh__strip-left { display: flex; flex-direction: column; gap: 8px; }
.oh__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--fg); text-decoration: none;
}
.oh__phone svg { width: 16px; height: 16px; opacity: .8; }
.oh__area { margin: 0; font-size: 13px; color: rgba(243, 246, 244, .55); }
.oh__stats { display: flex; margin: 0; }
.oh__stat { padding: 0 28px; border-left: 1px solid rgba(243, 246, 244, .16); }
.oh__stat:first-child { padding-left: 0; border-left: 0; }
.oh__stat:last-child { padding-right: 0; }
.oh__stat dt {
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(243, 246, 244, .5); margin-bottom: 8px;
}
.oh__stat dd {
  margin: 0; display: flex; align-items: center; gap: 10px; color: var(--fg); white-space: nowrap;
  font-size: 26px; font-weight: 500; letter-spacing: -.025em; line-height: 1; font-variant-numeric: tabular-nums;
}
.oh__stars { display: inline-flex; gap: 2px; color: var(--sand); }
.oh__stars svg { width: 14px; height: 14px; }

/* ---------- Entrance ---------- */
.in {
  animation-fill-mode: both; animation-timing-function: var(--ease-out);
  animation-delay: var(--d, 0s); animation-play-state: paused;
}
.in-fade { animation-name: ohFadeRise; animation-duration: .8s; }
.in-blur { animation-name: ohBlurRise; animation-duration: .9s; }
.fonts-ready .in { animation-play-state: running; }
.no-js .in, .no-js .oh__h1 em { animation: none; }
.no-js .oh__img { opacity: 1; transform: none; }
@keyframes ohFadeRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ohBlurRise { from { opacity: 0; transform: translateY(24px); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }

@media (prefers-reduced-motion: reduce) {
  .in, .oh__h1 em { animation: none !important; opacity: 1; transform: none; filter: none; }
  .oh__img { transition: none; transform: none; }
  .oh__img.is-loaded { animation: none; }
  .oh-btn, .oh__link svg, .oh__link::after, .oh-nav__burger span { transition: none; }
}

/* ---------- Responsive ---------- */
@media (min-width: 641px) and (max-height: 760px) {
  .oh__h1 { font-size: clamp(40px, 5vw, 64px); margin-bottom: 16px; }
  .oh__stage { padding-top: 32px; }
  .oh__sub { margin-bottom: 24px; }
  .oh__note { margin-top: 12px; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .oh-nav__logo img { height: 38px; }
  .oh__img { object-position: 60% 55%; }
  .oh__scrim {
    background: linear-gradient(to bottom,
      rgba(8, 31, 38, .42) 0%, rgba(8, 31, 38, .22) 28%, rgba(8, 31, 38, .55) 58%, rgba(8, 31, 38, .9) 84%, var(--bg) 100%);
  }
  .oh__fade { display: none; }
  .oh__stage { align-items: flex-end; padding: 40px 20px 18px; }
  .oh__eyebrow { font-size: 11px; margin-bottom: 14px; gap: 8px; }
  .oh__eyebrow-more, .oh__eyebrow .oh__dot { display: none; }
  .oh__h1 { font-size: clamp(36px, 10vw, 52px); margin-bottom: 14px; }
  .oh__sub { font-size: 15px; line-height: 1.5; margin-bottom: 20px; max-width: 22rem; }
  .oh__actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .oh-btn--lg { width: 100%; padding: 16px 24px; }
  .oh__link { justify-content: center; align-self: center; padding: 10px 8px; }
  .oh__note { margin-top: 10px; font-size: 12px; text-align: center; }
  .oh__note--long { display: none; }
  .oh__note--short { display: block; }
  .oh__strip {
    flex-direction: column; align-items: stretch; gap: 12px;
    padding: 14px 20px max(20px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(243, 246, 244, .12);
  }
  .oh__strip-left { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; }
  .oh__phone { font-size: 14px; flex: none; }
  .oh__area { font-size: 11.5px; text-align: right; line-height: 1.35; }
  .oh__stats { justify-content: flex-start; gap: 0; }
  .oh__stat { padding: 0 20px; }
  .oh__stat:first-child { padding-left: 0; }
  .oh__stat dt { margin-bottom: 5px; font-size: 10px; }
  .oh__stat dd { font-size: 20px; gap: 8px; }
  .oh__stars svg { width: 12px; height: 12px; }
}

/* Live-site only: keep the bottom strip clear of the fixed mobile CTA bar (92px) and the chat bubble */
@media (max-width: 767px) {
  body:has(.sticky-mobile-cta) .oh__strip { padding-bottom: calc(max(20px, env(safe-area-inset-bottom)) + 92px); }
  body:has(.oasis-chat__fab) .oh__stats { max-width: calc(100% - 88px); }
  body:has(.oasis-chat__fab) .oh__stat { flex: 0 1 auto; padding: 0 16px; }
  body:has(.oasis-chat__fab) .oh__stat:first-child { padding-left: 0; }
}
