/**
 * Home page: Mile High "Alpine Summit" patterns adapted to Asphalt Paving Co (orange / zinc).
 * Loaded only on index.html with body.page-home
 */

/* Contact strip (phone / location / email) moved above services on home */
.page-home main > .footer-quickbar {
  border-top: 1px solid rgba(24, 24, 27, 0.08);
}

.page-home {
  font-family: "DM Sans", "Barlow", system-ui, sans-serif;
  --mh-accent: #f13e07;
  --mh-accent-mid: #f79205;
  --mh-accent-dark: #b83204;
  --mh-accent-soft: rgba(241, 62, 7, 0.15);
  --mh-accent-glow: rgba(241, 62, 7, 0.35);
  --mh-dark: #18181b;
  --mh-dark-mid: #27272a;
  --mh-surface: #f4f4f5;
  --mh-surface-alt: #ececee;
  --mh-text: #18181b;
  --mh-text-muted: #52525b;
  --mh-max: 1200px;
  --mh-radius: 8px;
  --mh-radius-lg: 12px;
  --mh-transition: 0.3s ease;
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 10001;
  background: linear-gradient(90deg, var(--mh-accent-mid), var(--mh-accent));
  box-shadow: 0 0 12px rgba(241, 62, 7, 0.45);
  pointer-events: none;
}

/* Hero: overlays & particles */
.page-home .hero--home .hero-overlay {
  display: none;
}

.page-home .hero--home .hero-media {
  position: absolute;
  inset: 0;
}

.page-home .hero-dark-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, transparent 55%),
    linear-gradient(
      to bottom,
      rgba(9, 9, 11, 0.78) 0%,
      rgba(9, 9, 11, 0.58) 40%,
      rgba(0, 0, 0, 0.92) 100%
    );
  pointer-events: none;
}

.page-home .hero-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.page-home .dust-particle {
  position: absolute;
  bottom: -10px;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  opacity: 0;
  animation: mh-dust-float linear infinite;
}

@keyframes mh-dust-float {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  90% {
    opacity: 0.35;
  }
  100% {
    transform: translateY(-100vh) translateX(40px);
    opacity: 0;
  }
}

.page-home .hero-accent-line {
  width: 3.5rem;
  height: 5px;
  background: linear-gradient(90deg, var(--mh-accent-mid), var(--mh-accent));
  border-radius: 999px;
  margin: 0 auto 1.25rem;
}

.page-home .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.25rem;
  padding: 0.5rem 1.125rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
}

.page-home .hero-typewriter {
  display: inline;
  background: linear-gradient(135deg, #f79205, #f13e07, #f79205);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: mh-gradient-text 4s linear infinite;
}

@keyframes mh-gradient-text {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

.page-home .typewriter-cursor {
  animation: mh-blink 0.8s step-end infinite;
  -webkit-text-fill-color: var(--mh-accent-mid);
}

@keyframes mh-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.page-home .hero-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.page-home .hero-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.875rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.page-home .hero-trust-pill svg {
  width: 14px;
  height: 14px;
  color: var(--mh-accent-mid);
  flex-shrink: 0;
}

.page-home .hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  color: rgba(255, 255, 255, 0.4);
  animation: mh-hero-float 3s ease-in-out infinite;
}

.page-home .hero-scroll-indicator svg {
  width: 24px;
  height: 24px;
  display: block;
}

@keyframes mh-hero-float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.4;
  }
  50% {
    transform: translateX(-50%) translateY(8px);
    opacity: 0.65;
  }
}

.page-home .hero.hero--home .hero-shell {
  position: relative;
  /* Tighter than global .hero.hero--home .hero-shell — less dead space below header */
  padding-top: calc(clamp(7.5rem, 12vw, 10rem) + env(safe-area-inset-top, 0px));
  padding-bottom: 4rem;
}

@media (max-width: 768px) {
  .page-home .hero.hero--home .hero-shell {
    padding-top: calc(clamp(5.25rem, 9vw, 6.75rem) + env(safe-area-inset-top, 0px));
    padding-bottom: 3.25rem;
    gap: 1.75rem;
  }
}

.page-home .hero-float {
  display: none;
}

/* Stats */
.mh-stats {
  background: var(--mh-dark);
  padding: 2.5rem 1rem;
  position: relative;
  overflow: hidden;
}

.mh-stats::before,
.mh-stats::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--mh-accent);
  filter: blur(120px);
  opacity: 0.07;
  pointer-events: none;
}

.mh-stats::before {
  width: 22rem;
  height: 22rem;
  top: -7rem;
  left: 15%;
}

.mh-stats::after {
  width: 16rem;
  height: 16rem;
  bottom: -5rem;
  right: 20%;
}

.mh-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1rem;
  max-width: var(--mh-max);
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

/* Third stat: own row, centered (not stretched / left-hugging) */
.mh-stats-grid .mh-stat-card:nth-child(3) {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 16rem);
}

@media (min-width: 768px) {
  .mh-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 1rem;
  }

  .mh-stats-grid .mh-stat-card:nth-child(3) {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
    max-width: none;
  }
}

.mh-stat-card {
  text-align: center;
}

.mh-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--mh-accent-soft);
  margin-bottom: 0.75rem;
}

.mh-stat-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--mh-accent-mid);
}

.mh-stat-num-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
}

.mh-stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--mh-accent-mid);
  line-height: 1;
}

@media (min-width: 768px) {
  .mh-stat-number {
    font-size: 2.5rem;
  }
}

.mh-stat-suffix {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--mh-accent-mid);
}

.mh-stat-label {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.8125rem;
  margin-top: 0.35rem;
  font-weight: 500;
}

/* Marquee */
.trust-marquee {
  padding: 1rem 0;
  background: var(--mh-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  animation: mh-marquee 32s linear infinite;
  white-space: nowrap;
}

@keyframes mh-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0 1.75rem;
  flex-shrink: 0;
}

.marquee-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--mh-radius);
  background: var(--mh-accent-soft);
}

.marquee-item-icon svg {
  width: 1rem;
  height: 1rem;
  color: var(--mh-accent-mid);
}

.marquee-label {
  font-weight: 600;
  font-size: 0.8125rem;
  color: #fff;
  line-height: 1.2;
}

.marquee-sublabel {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.2;
}

/* Floating + mobile CTA */
.floating-cta {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.125rem;
  border-radius: 100px;
  background: linear-gradient(160deg, var(--mh-accent-mid), var(--mh-accent));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 28px rgba(241, 62, 7, 0.45);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.floating-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-cta svg {
  width: 1.25rem;
  height: 1.25rem;
}

.mobile-cta-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  padding: 0.75rem 1rem;
  background: rgba(24, 24, 27, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(241, 62, 7, 0.2);
  gap: 0.625rem;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.mobile-cta-bar.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mobile-cta-bar a {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem;
  border-radius: var(--mh-radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
}

.mobile-cta-bar .mcta-primary {
  background: linear-gradient(160deg, var(--mh-accent-mid), var(--mh-accent));
  color: #fff;
}

.mobile-cta-bar .mcta-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-cta-bar .mcta-phone-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.mobile-cta-bar .mcta-phone-icon svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

.mobile-cta-bar .mcta-secondary-label {
  white-space: nowrap;
}

.mobile-cta-bar .pulse-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: mh-pulse-dot 1.4s ease-in-out infinite;
}

@keyframes mh-pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(1.15);
  }
}

@media (min-width: 768px) {
  .mobile-cta-bar {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .floating-cta {
    display: none !important;
  }

  .page-home .site-footer {
    padding-bottom: 4.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
  .page-home .hero-typewriter {
    animation: none;
  }
  .page-home .dust-particle {
    animation: none;
    display: none;
  }
}
