/* ============================================================
   Favorite Properties — custom stylesheet
   Loaded AFTER Tailwind CDN so these rules layer on top.
   ============================================================ */

/* ---- Fluid typography ---------------------------------------- */

.hero-headline {
  font-size: clamp(2.4rem, 5vw + 1rem, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.section-heading {
  font-size: clamp(1.85rem, 2.5vw + 0.75rem, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ---- Scroll-reveal ------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---- Bounce scroll indicator --------------------------------- */

@keyframes bounce-slow {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(10px); }
}
.bounce-slow {
  animation: bounce-slow 1.8s ease-in-out infinite;
}

/* ---- Navigation ---------------------------------------------- */

#main-nav {
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

#nav-logo-img {
  transition: filter 0.35s ease;
}

/* Animated underline on desktop nav links */
.nav-link {
  position: relative;
  padding-bottom: 3px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: #db2627;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after {
  width: 100%;
}

/* ---- Mobile full-screen overlay ------------------------------ */

#mobile-menu {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.mobile-nav-link.link-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Commitment section — radial gradient -------------------- */

.commitment-bg {
  background: radial-gradient(ellipse at 20% 65%, #3e38b3 0%, #312e81 42%, #1e1a72 100%);
}

/* ---- Ghost numbers behind items ------------------------------ */

.ghost-number {
  position: absolute;
  top: 0;
  left: -0.25rem;
  font-size: 7rem;
  font-weight: 800;
  line-height: 1;
  color: #312e81;
  opacity: 0.055;
  user-select: none;
  pointer-events: none;
  z-index: 0;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
}
.ghost-number-light {
  color: #fdfeff;
  opacity: 0.07;
}

/* ---- Eyebrow accent bar -------------------------------------- */

.eyebrow-bar {
  display: block;
  width: 2rem;
  height: 2px;
  background-color: #db2627;
  margin-top: 0.75rem;
  margin-bottom: 1.75rem;
}

/* Auto-center the bar inside centered-text containers */
.text-center .eyebrow-bar {
  margin-left: auto;
  margin-right: auto;
}

/* ---- Button hover effects ------------------------------------ */

.btn-accent {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease,
              background-color 0.2s ease;
}
.btn-accent:hover {
  transform: scale(1.025);
  box-shadow: 0 8px 28px rgba(219, 38, 39, 0.3);
}
.btn-accent:active {
  transform: scale(0.97);
}

.btn-ghost {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.25s ease,
              border-color 0.25s ease;
}
.btn-ghost:hover {
  transform: scale(1.025);
}

/* ---- Card hover lift ----------------------------------------- */

.card-lift {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease;
}
.card-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(49, 46, 129, 0.11);
}

/* ---- Image zoom on hover ------------------------------------- */

.img-zoom {
  overflow: hidden;
}
.img-zoom img {
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-zoom:hover img {
  transform: scale(1.06);
}

/* ---- Image duotone brand tint -------------------------------- */

.img-duotone {
  position: relative;
}
.img-duotone::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #312e81;
  opacity: 0.16;
  mix-blend-mode: multiply;
  pointer-events: none;
  transition: opacity 0.45s ease;
  z-index: 1;
}
.img-duotone:hover::after {
  opacity: 0.05;
}

/* ---- Min touch target on mobile ------------------------------ */

@media (max-width: 767px) {
  a, button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  /* Override for inline elements that don't need flex */
  p a, li a, span a {
    display: inline;
    min-height: unset;
  }
}
