/* ============================================================================
   FLUID-GLASS — HOME layer for SkyHigh Realty NYC
   ---------------------------------------------------------------------------
   Thin, home-only layer on top of the site-wide system in public-glass.css.
   It owns only what is unique to the home page: the transparent-over-video
   header, the full-bleed video hero, the frosted search panel, the stat band,
   the feature cards and the popular-search chips.

   Everything shares the SAME rounded radius language, the SAME cool near-black
   palette and the SAME blue/cyan accent as every other public page — so the
   home page and the interior pages finally read as one continuous site.
   Loads AFTER public-glass.css (via {% block extra_css %}), so it wins on home.
   ============================================================================ */

:root {
  --ease-out-quart:    cubic-bezier(0.165, 0.84, 0.44, 1);
  --ease-in-out-quart: cubic-bezier(0.77, 0, 0.175, 1);
  --fg-blur: 22px;
}

.fg-home { --fg-ref: 1600; --fg-u: calc((100vw / var(--fg-ref)) * 10); }

/* ─────────────────────────────────────────────────────────────────────────
   GLASS — the see-through frosted surfaces unique to the hero-over-video.
   Rounded to match the site. Cool neutral, catch-light on the top edge.
   ───────────────────────────────────────────────────────────────────────── */
.fg-glass {
  border-radius: var(--r-lg);
  background-image: linear-gradient(135deg, rgba(255,255,255,0.20), rgba(255,255,255,0.06));
  -webkit-backdrop-filter: blur(var(--fg-blur)) saturate(170%) brightness(1.06);
  backdrop-filter: blur(var(--fg-blur)) saturate(170%) brightness(1.06);
  border: 1px solid rgba(255,255,255,0.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5),
              inset 0 -1px 0 rgba(255,255,255,0.10),
              0 24px 60px -26px rgba(0,0,0,0.55);
}
.fg-glass-dark {
  border-radius: var(--r-lg);
  background-image: linear-gradient(180deg, rgba(12,14,18,0.40), rgba(12,14,18,0.56));
  -webkit-backdrop-filter: blur(var(--fg-blur)) saturate(150%);
  backdrop-filter: blur(var(--fg-blur)) saturate(150%);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22),
              0 30px 70px -26px rgba(0,0,0,0.6);
}
.fg-glass-hover {
  transition: box-shadow .5s var(--ease-out-quart), transform .5s var(--ease-out-quart), border-color .4s var(--ease-out-quart);
}
.fg-glass-hover:hover {
  border-color: rgba(255,255,255,0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 30px 76px -26px rgba(0,0,0,0.6);
  transform: translateY(-3px);
}

/* ─────────────────────────────────────────────────────────────────────────
   TYPOGRAPHY — light tight sans display (matches the site's unified voice).
   ───────────────────────────────────────────────────────────────────────── */
.fg-home .font-display { font-family: var(--font-sans); font-weight: 380; letter-spacing: -0.03em; line-height: 1.02; }
.fg-home h2.font-display, .fg-home h3.font-display { font-weight: 460; }

.fg-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  font-size: clamp(9.5px, calc(var(--fg-u) * 1.1), 12px);
  line-height: 1;
  color: rgba(233,235,242,0.82);
}
.fg-home .eyebrow { font-family: var(--font-mono); letter-spacing: 0.18em; }

/* ─────────────────────────────────────────────────────────────────────────
   HEADER (home only) — transparent over the video, glass nav pill + glass CTA.
   ───────────────────────────────────────────────────────────────────────── */
#skyHeader {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
#skyHeader::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 210px;
  background: linear-gradient(180deg, rgba(4,6,10,0.62) 0%, rgba(4,6,10,0.30) 42%, transparent 100%);
  pointer-events: none; z-index: -1;
}
#skyHeader > .hidden.md\:block:first-child { display: none !important; }

#skyHeader nav.md\:flex {
  gap: 0.35rem;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  background-image: linear-gradient(180deg, rgba(12,14,18,0.42), rgba(12,14,18,0.58));
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}
#skyHeader nav.md\:flex a { padding: 6px 14px; border-radius: var(--r-pill); color: rgba(255,255,255,0.8) !important; }
#skyHeader nav.md\:flex a:hover { color: #fff !important; }

/* Header CTAs → frosted white-glass pills */
#skyHeader a[href="/contact/"],
#skyHeader a[href*="applications/apply"] {
  border-radius: var(--r-pill) !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.08)) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.3) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
#skyHeader a[href="/contact/"]:hover,
#skyHeader a[href*="applications/apply"]:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.32), rgba(255,255,255,0.16)) !important;
}
#skyHeader .h-10.md\:h-12 { filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4)); }

/* ─────────────────────────────────────────────────────────────────────────
   BUTTONS — frosted glass pills, mono uppercase (rounded, cool).
   ───────────────────────────────────────────────────────────────────────── */
.fg-btn {
  display: inline-flex; align-items: center; gap: 0.7em;
  padding: 13px 26px !important;
  border-radius: var(--r-pill) !important;
  border: 1px solid rgba(255,255,255,0.26);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: clamp(10px, calc(var(--fg-u) * 1.15), 12px) !important;
  color: #fff !important;
  cursor: pointer;
  -webkit-backdrop-filter: blur(var(--fg-blur)) saturate(170%) brightness(1.06);
  backdrop-filter: blur(var(--fg-blur)) saturate(170%) brightness(1.06);
  background-image: linear-gradient(135deg, rgba(255,255,255,0.20), rgba(255,255,255,0.06)) !important;
  background-color: transparent !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
  transition: background-image .45s var(--ease-out-quart), border-color .45s var(--ease-out-quart), transform .3s var(--ease-out-quart);
}
.fg-btn:hover { background-image: linear-gradient(135deg, rgba(255,255,255,0.32), rgba(255,255,255,0.15)) !important; border-color: rgba(255,255,255,0.42); transform: translateY(-1px); }
.fg-btn:active { transform: translateY(1px); }
.fg-btn--dark {
  background-image: linear-gradient(180deg, rgba(12,14,18,0.42), rgba(12,14,18,0.58)) !important;
  border-color: rgba(255,255,255,0.16);
}
.fg-btn--dark:hover { background-image: linear-gradient(180deg, rgba(12,14,18,0.55), rgba(12,14,18,0.7)) !important; }
.fg-btn--accent {
  background-image: none !important;
  background-color: var(--color-accent) !important;
  border-color: transparent;
  color: #06131f !important;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}
.fg-btn--accent:hover { background-color: var(--color-accent-hover) !important; background-image: none !important; }

/* ─────────────────────────────────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────────────────────────────────── */
.fg-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; display: flex; align-items: flex-end;
  background: #0a0a0c;
  margin-top: calc(-1 * var(--fg-header-h, 80px));
}
.fg-hero__media, .fg-hero__media video, .fg-hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.fg-hero__media { z-index: -2; }
.fg-hero__media video, .fg-hero__media img { opacity: 1; will-change: transform; }
.fg-hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6,8,12,0.12) 0%, rgba(6,8,12,0) 30%, rgba(6,8,12,0) 55%, rgba(6,8,12,0.66) 100%),
    linear-gradient(95deg, rgba(6,8,12,0.36) 0%, rgba(6,8,12,0) 55%);
}
.fg-hero__grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.32;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: clamp(52px, 6vw, 104px) clamp(52px, 6vw, 104px);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 42%, #000 12%, transparent 74%);
  mask-image: radial-gradient(120% 90% at 50% 42%, #000 12%, transparent 74%);
}
.fg-hero__inner {
  position: relative; width: 100%; max-width: 1400px; margin: 0 auto;
  padding: clamp(7rem, 16vh, 11rem) 1.5rem clamp(2.5rem, 6vh, 4.5rem);
}
@media (min-width: 768px) { .fg-hero__inner { padding-left: 2.5rem; padding-right: 2.5rem; } }

.fg-hero__eyebrow { display: inline-flex; align-items: center; gap: 0.6em; padding: 9px 18px; border-radius: var(--r-pill); color: #fff !important; }
.fg-hero__eyebrow svg { color: var(--color-cyan); }

.fg-hero__title {
  margin-top: clamp(1.4rem, 3.4vh, 2.2rem);
  max-width: 20ch; color: #fff;
  font-size: clamp(2.8rem, calc(var(--fg-u) * 9), 8rem);
  letter-spacing: -0.04em; line-height: 0.96; text-wrap: balance;
  text-shadow: 0 2px 40px rgba(0,0,0,0.35);
}
.fg-hero__title .fg-em { font-style: italic; font-weight: 300; color: #fff; }
.fg-hero__sub {
  margin-top: clamp(1.3rem, 2.6vh, 2rem); max-width: 46ch;
  color: rgba(255,255,255,0.94);
  font-size: clamp(1rem, calc(var(--fg-u) * 1.55), 1.35rem); line-height: 1.5;
  text-shadow: 0 1px 20px rgba(0,0,0,0.5);
}
.fg-hero__ticks {
  margin-top: clamp(2rem, 4vh, 3rem);
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  color: rgba(255,255,255,0.84);
}
.fg-hero__ticks span { display: inline-flex; align-items: center; gap: 0.55em; }
.fg-hero__ticks span::before {
  content: ""; width: 6px; height: 6px; border-radius: var(--r-pill);
  background: var(--color-cyan); box-shadow: 0 0 10px var(--color-cyan);
}

/* Frosted glass search panel — rounded, submit rounded to match. */
.fg-search-wrap { margin-top: clamp(1.8rem, 4vh, 2.75rem); max-width: 940px; padding: 10px; }
.fg-search { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 768px) { .fg-search { grid-template-columns: 1.35fr 1fr 1fr auto; gap: 6px; align-items: stretch; } }
.fg-search__field {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 12px 18px; min-width: 0; border-radius: var(--r-md);
  transition: background .3s var(--ease-out-quart);
}
.fg-search__field:hover { background: rgba(255,255,255,0.05); }
@media (min-width: 768px) {
  .fg-search__field + .fg-search__field { position: relative; }
  .fg-search__field + .fg-search__field::before {
    content: ""; position: absolute; left: -3px; top: 18%; bottom: 18%; width: 1px; background: rgba(255,255,255,0.14);
  }
}
.fg-search__label { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.18em; font-size: 9.5px; color: rgba(255,255,255,0.78); }
.fg-search select {
  -webkit-appearance: none; appearance: none; border: 0; background: transparent;
  color: #fff; font-family: var(--font-sans); font-size: 14px; letter-spacing: -0.01em;
  padding: 0 18px 0 0; cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.7) 50%),
    linear-gradient(135deg, rgba(255,255,255,0.7) 50%, transparent 50%);
  background-position: right 4px center, right 0 center;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.fg-search select:focus { outline: none; box-shadow: none; }
.fg-search select option { color: #111; }
.fg-search__submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  border: 0; border-radius: var(--r-md); padding: 0 28px; min-height: 58px;
  background: #fff; color: #0b0d10;
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 11px; cursor: pointer;
  transition: background-color .35s var(--ease-out-quart), transform .3s var(--ease-out-quart);
}
.fg-search__submit:hover { background: var(--color-accent-hover); transform: translateY(-1px); }

/* ─────────────────────────────────────────────────────────────────────────
   TRUST BAND — glass stat tiles
   ───────────────────────────────────────────────────────────────────────── */
.fg-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (min-width: 768px) { .fg-stats { grid-template-columns: repeat(4, 1fr); } }
.fg-stat {
  background: rgba(255,255,255,0.015);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: clamp(1.6rem, 3.4vw, 2.6rem) 1.4rem;
  display: flex; flex-direction: column; gap: 0.55rem;
  transition: background-color .5s var(--ease-out-quart);
}
.fg-stat:hover { background: rgba(255,255,255,0.05); }
.fg-stat__icon { color: var(--color-accent); }
.fg-stat__num { font-family: var(--font-sans); font-weight: 300; letter-spacing: -0.03em; font-size: clamp(2rem, calc(var(--fg-u) * 3.6), 3rem); line-height: 1; color: #fff; }
.fg-stat__label { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.16em; font-size: 10px; color: rgba(240,242,248,0.72); }

/* ─────────────────────────────────────────────────────────────────────────
   FEATURE CARDS (AI advantage) — frosted panels, rounded.
   ───────────────────────────────────────────────────────────────────────── */
.fg-card {
  padding: clamp(1.5rem, 2.4vw, 2rem) !important;
  border-radius: var(--r-lg) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  background-image: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)) !important;
  background-color: transparent !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 24px 60px -30px rgba(0,0,0,0.6);
}
.fg-card__ic {
  display: inline-flex; height: 46px; width: 46px; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--color-accent);
  background: rgba(96,165,250,0.10);
}

/* ─────────────────────────────────────────────────────────────────────────
   POPULAR SEARCH — frosted glass chips (rounded)
   ───────────────────────────────────────────────────────────────────────── */
.fg-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 15px 20px; border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.12);
  background-image: linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 14px; color: var(--color-foreground);
  transition: border-color .4s var(--ease-out-quart), background-image .4s var(--ease-out-quart), transform .4s var(--ease-out-quart);
}
.fg-chip:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.3); background-image: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05)); }
.fg-chip svg { color: rgba(255,255,255,0.5); transition: transform .4s var(--ease-out-quart); }
.fg-chip:hover svg { color: var(--color-accent); transform: translateX(3px); }

/* ─────────────────────────────────────────────────────────────────────────
   NEWSLETTER — glass input row (rounded)
   ───────────────────────────────────────────────────────────────────────── */
.fg-home [data-newsletter] form { max-width: 30rem; }
.fg-home [data-newsletter] input {
  border-radius: var(--r-pill) 0 0 var(--r-pill) !important; border: 1px solid rgba(255,255,255,0.18) !important;
  background: rgba(255,255,255,0.08) !important;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.fg-home [data-newsletter] button {
  border-radius: 0 var(--r-pill) var(--r-pill) 0 !important; font-family: var(--font-mono); letter-spacing: 0.14em;
  background: var(--color-accent) !important; color: #06131f !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   VISIBILITY — lift the low-opacity text on the near-black canvas.
   ───────────────────────────────────────────────────────────────────────── */
.fg-home .text-muted { color: #a6a7b2 !important; }
.fg-home .text-muted-foreground { color: #cdced6 !important; }
.fg-home .text-foreground\/85, .fg-home .text-foreground\/80 { color: #ededf0 !important; }
.fg-home .text-white\/90, .fg-home .text-white\/85, .fg-home .text-white\/80, .fg-home .text-white\/75 { color: rgba(255,255,255,0.96) !important; }
.fg-home .text-white\/70, .fg-home .text-white\/60, .fg-home .text-white\/50, .fg-home .text-white\/40 { color: rgba(255,255,255,0.74) !important; }
.fg-label { color: rgba(240,242,248,0.88) !important; }
.fg-stat__label { color: rgba(240,242,248,0.74) !important; }
.fg-search__label { color: rgba(255,255,255,0.8) !important; }
.fg-home figure blockquote { color: #eaebf0 !important; }
.fg-home figure figcaption p:first-child { color: #ffffff !important; }

@media (prefers-reduced-motion: reduce) {
  .fg-hero__media video, .fg-hero__media img { transform: none !important; }
}
