/* ==========================================================================
   FINDABILITY — Homepage
   Hero with photo, overlay, animated content, logo bar
   ========================================================================== */

/* ---- Hero ---- */
.fa-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--neutral-900);
}

.fa-hero-photo {
  position: absolute;
  inset: 0;
  background: url('/img/hero-sofia-doorway.webp') center/cover no-repeat;
  opacity: 0.65;
}

.fa-hero-overlay {
  position: absolute;
  inset: 0;
  /* Bottom-heavy gradient: strong at the base where text sits, fades up to let the image breathe */
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.5) 30%, rgba(0,0,0,0.15) 55%, transparent 100%);
}

.fa-hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(0,105,177,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.fa-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.fa-hero-inner {
  max-width: 900px;
}

/* Badge */
.fa-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}
.fa-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: badge-pulse 2s infinite;
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Headline */
.fa-headline {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}
.fa-headline-line2 {
  color: var(--gold);
  display: block;
  white-space: nowrap;
}

/* Subtext */
.fa-subtext {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin-bottom: 32px;
}

/* Buttons */
.fa-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.fa-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  background: var(--gold);
  color: var(--white);
  border-radius: var(--radius-sm);
  transition: background 0.25s, transform 0.25s;
}
.fa-btn-primary:hover {
  background: var(--gold-dark);
  color: var(--white);
  transform: translateY(-1px);
}
.fa-btn-primary svg {
  width: 16px;
  height: 16px;
}
.fa-btn-secondary {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s;
}
.fa-btn-secondary:hover {
  border-color: var(--white);
  color: var(--white);
}

/* Logo Bar */
.fa-logo-bar {
  margin-top: 48px;
  padding-top: 32px;
  border-top: none;
}
.fa-logo-bar-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.fa-logo-row {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.fa-logo-item {
  height: 24px;
  width: auto;
  opacity: 0.5;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s;
}
.fa-logo-item:hover { opacity: 0.8; }
.fa-logo-wellness { height: 32px; }
.fa-logo-castlemaine { height: 26px; }
.fa-logo-bendigo { height: 22px; }

/* ---- Animations ---- */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fa-animate {
  opacity: 0;
  animation: hero-fade-up 0.6s var(--ease) forwards;
}
.fa-delay-1 { animation-delay: 0.1s; }
.fa-delay-2 { animation-delay: 0.25s; }
.fa-delay-3 { animation-delay: 0.4s; }
.fa-delay-4 { animation-delay: 0.55s; }
.fa-delay-5 { animation-delay: 0.7s; }

/* ---- Meet findabilityOS section ---- */
.fb-fos__logo {
  display: block;
  width: 260px;
  max-width: 70%;
  height: auto;
  margin-bottom: 24px;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
  .fb-fos__logo { width: 200px; max-width: 80%; margin-bottom: 18px; }

  /* Stack: image on top, copy below */
  .fa-hero {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
  }

  /* Image block: 50vh, positioned, with subject visible */
  .fa-hero-photo {
    position: relative;
    height: 50vh;
    width: 100%;
    opacity: 1;
    background-position: top center;
  }

  /* Subtle overlay on mobile image — just enough for the badge to read */
  .fa-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50vh;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.05) 40%, transparent 100%);
  }

  .fa-hero-glow { display: none; }

  /* Copy block below the image */
  .fa-hero-content {
    position: relative;
    padding: 32px 20px 40px;
    background: var(--neutral-800);
  }

  .fa-headline { font-size: 2rem; }
  .fa-headline-line2 { display: block; }
  .fa-subtext { font-size: 0.95rem; }
  .fa-logo-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 32px;
    justify-items: center;
    align-items: center;
  }
  .fa-logo-item { height: 22px; }
  .fa-logo-wellness { height: 28px; }
  .fa-logo-castlemaine { height: 24px; }
  .fa-logo-bendigo { height: 20px; }
  .fa-logo-bar { margin-top: 32px; padding-top: 24px; }
}
