/* ---------- Home-page-only rules ---------- */
/* Shared theme (colors, buttons, cards, reveal, tilt) lives in theme.css.
   This file only holds things unique to the one-page homepage layout:
   the full-bleed hero, the fixed/transparent-to-solid navbar overlay,
   the stats bar, and the contact section. */

.home-page main {
  padding-top: 0;
}

/* Offset anchor-jump targets so the fixed navbar doesn't cover section headings */
.home-page section[id] {
  scroll-margin-top: 84px;
}

/* Navbar overlays the hero and solidifies on scroll (home page only --
   other pages use the normal in-flow solid navbar from custom.css) */
.home-page #siteNavbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: transparent !important;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  z-index: 1030;
}

.home-page #siteNavbar.navbar-solid {
  background-color: rgba(10, 14, 22, 0.92) !important;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 15% 15%, rgba(var(--accent-rgb), 0.2), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 55%, var(--ink-mid) 100%);
  background-size: 140% 140%, 100% 100%;
  animation: heroGradientShift 18s ease-in-out infinite;
  color: #fff;
}

@keyframes heroGradientShift {
  0%, 100% { background-position: 0% 0%, 0 0; }
  50% { background-position: 30% 20%, 0 0; }
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 5.5rem;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 1.25rem 0 1.25rem;
}

.hero h1 .accent {
  background: linear-gradient(100deg, var(--accent), var(--warm));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.15rem;
  max-width: 42rem;
}

.hero__badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  border-radius: 1rem;
  padding: 0.9rem 1.4rem;
  margin-top: 2.75rem;
}

.hero__badge .stars {
  color: var(--warm);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.hero__badge .stars span {
  display: inline-block;
  animation: twinkle 2.4s ease-in-out infinite;
}

.hero__badge .stars span:nth-child(2) { animation-delay: 0.15s; }
.hero__badge .stars span:nth-child(3) { animation-delay: 0.3s; }
.hero__badge .stars span:nth-child(4) { animation-delay: 0.45s; }
.hero__badge .stars span:nth-child(5) { animation-delay: 0.6s; }

@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.hero__scroll-cue {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 0.4rem;
}

.hero__scroll-cue span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  animation: scrollcue 1.6s ease-in-out infinite;
}

@keyframes scrollcue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Stats bar ---------- */

.stats-bar {
  background: var(--ink);
  color: #fff;
  padding: 3.5rem 0;
  position: relative;
  z-index: 1;
}

.stat-number {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.stat-number .accent {
  color: var(--warm);
}

.stat-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Contact section ---------- */

.contact-section {
  position: relative;
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 60%, var(--ink-mid) 100%);
  color: #fff;
  overflow: hidden;
}

.contact-section .truss-pattern {
  opacity: 0.08;
}

.contact-section .section-eyebrow {
  color: var(--accent);
}

.contact-section .section-title {
  color: #fff;
}

.contact-section > .container {
  position: relative;
  z-index: 1;
}

.contact-info__row {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.35rem;
}

.contact-info__icon {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-map {
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  filter: grayscale(0.25) brightness(0.92) contrast(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .hero__scroll-cue span,
  .hero__badge .stars span {
    animation: none;
  }
}
