/* ==========================================================================
   Esspry LLC — home.css
   Homepage-only styles: hero, scroll-driven cards, closing section
   ========================================================================== */

#content { position: relative; z-index: 2; }

/* Hero -------------------------------------------------------------------- */
#hero { position: relative; height: 100vh; width: 100%; display: flex; flex-direction: column; }
#hero .gradient-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent, transparent);
}
#hero .hero-content {
  position: relative; z-index: 10; flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; text-align: center; padding: 0 1.5rem 6rem;
}
#hero .subtitle {
  font-size: 0.875rem; color: var(--text-dim); margin-bottom: 1rem;
  letter-spacing: 0.15em; text-transform: uppercase;
}
#hero h1 { font-size: clamp(1.6rem, 5vw, 3.75rem); font-weight: 600; line-height: 1.15; max-width: 52rem; }
#hero h1 .underlined { position: relative; display: inline-block; }
#hero h1 .underlined .line {
  position: absolute; bottom: 0.25rem; left: 0; width: 100%; height: 10px;
  background: var(--accent); border-radius: 2px;
}
#hero h1 .underlined span { position: relative; }
#hero .ctas { display: flex; align-items: center; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap; justify-content: center; }
#hero .bounce-arrow { position: relative; z-index: 10; display: flex; justify-content: center; padding-bottom: 2rem; }
#hero .bounce-arrow svg { width: 1.5rem; height: 1.5rem; color: #6b7280; animation: bounce 1s infinite; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-25%); }
}

/* Spacers used to drive scroll timeline */
.spacer-150 { height: 150vh; }
.spacer-100 { height: 100vh; }
#cards-trigger { height: 200vh; }

/* Fixed scroll-reveal cards ----------------------------------------------- */
#fixed-cards {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 4;
  padding: 2rem 2.5rem; opacity: 0; pointer-events: none;
}
#fixed-cards .grid {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
#fixed-cards .card .card-tag { display: block; }
#fixed-cards .card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.85rem; }
#fixed-cards .card p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; }

/* Closing section --------------------------------------------------------- */
#closing { position: relative; min-height: 100vh; display: flex; align-items: flex-end; justify-content: center; padding: 0 2.5rem 8rem; }
#closing .inner {
  position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; text-align: center;
  opacity: 0; transform: translateY(32px); filter: blur(8px);
  transition: opacity 1s ease-out, transform 1s ease-out, filter 1s ease-out;
}
#closing .inner.visible { opacity: 1; transform: translateY(0); filter: blur(0); }
#closing .inner p.kicker { color: var(--text-muted); font-size: 1rem; margin-bottom: 0.75rem; letter-spacing: 0.05em; }
#closing .inner h2 { font-size: clamp(1.875rem, 6vw, 4.5rem); font-weight: 700; }
#closing .inner .tagline { color: var(--text-dim); font-size: 1rem; margin-top: 1.25rem; max-width: 34rem; }
#closing .inner .btn { margin-top: 2rem; }

@media (max-width: 1024px) and (min-width: 769px) {
  #fixed-cards .grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (max-width: 768px) {
  #hero .hero-content { padding-bottom: 5rem; }
  #hero h1 { font-size: 1.6rem; }
  #hero .ctas { flex-direction: column; }
  #fixed-cards { padding: 1.5rem 1rem; }
  #fixed-cards .grid { grid-template-columns: 1fr; gap: 1.25rem; }
  #closing { padding-bottom: 5rem; }
}

