/**
 * Home page: Mile High "Alpine Summit" patterns adapted to Reliable Asphalt (orange / dark).
 * 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(255, 255, 255, 0.08);
}

.page-home {
  font-family: "DM Sans", "Barlow", system-ui, sans-serif;
  --mh-accent: #EB640D;
  --mh-accent-mid: #F4842E;
  --mh-accent-dark: #C24E08;
  --mh-accent-soft: rgba(235, 100, 13, 0.15);
  --mh-accent-glow: rgba(235, 100, 13, 0.35);
  --mh-dark: #0a0a0b;
  --mh-dark-mid: #141416;
  --mh-surface: #0a0a0b;
  --mh-surface-alt: #141416;
  --mh-text: #f0f0f2;
  --mh-text-muted: #a1a1aa;
  --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(235, 100, 13, 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.4) 0%, transparent 55%),
    linear-gradient(
      to bottom,
      rgba(5, 5, 6, 0.88) 0%,
      rgba(5, 5, 6, 0.72) 40%,
      rgba(0, 0, 0, 0.95) 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 {
  display: none;
}

/* ── Hero side decorations ── */

/* Vertical accent lines — absolute within hero, tall */
.hero--home::before,
.hero--home::after {
  content: "";
  position: absolute;
  top: 15%;
  height: 70%;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--mh-accent) 25%, var(--mh-accent-mid) 50%, var(--mh-accent) 75%, transparent);
  opacity: 0;
  animation: mh-line-reveal 1.2s ease 0.8s forwards;
  z-index: 5;
  pointer-events: none;
}

.hero--home::before {
  left: clamp(0.75rem, 2vw, 1.5rem);
}

.hero--home::after {
  right: clamp(0.75rem, 2vw, 1.5rem);
}

@keyframes mh-line-reveal {
  to { opacity: 0.3; }
}


/* Floating hexagon shapes — decorative */
.hero--home .hero-media::after {
  content: "";
  position: absolute;
  left: 8%;
  bottom: 25%;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(235, 100, 13, 0.15);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  opacity: 0;
  animation: mh-hex-float 12s ease-in-out infinite, mh-hex-reveal 1s ease 1.6s forwards;
  z-index: 3;
  pointer-events: none;
}

@keyframes mh-hex-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(15deg); }
}

@keyframes mh-hex-reveal {
  to { opacity: 1; }
}

/* Small secondary hexagon — right side */
.hero--home .hero-particles::after {
  content: "";
  position: absolute;
  right: 12%;
  top: 30%;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(235, 100, 13, 0.12);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  opacity: 0;
  animation: mh-hex-float-2 10s ease-in-out infinite, mh-hex-reveal 1s ease 2s forwards;
  z-index: 3;
  pointer-events: none;
}

@keyframes mh-hex-float-2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(-10deg); }
}


@media (max-width: 768px) {
  .hero--home::before,
  .hero--home::after {
    display: none;
  }
  .hero--home .hero-media::after,
  .hero--home .hero-particles::after {
    display: none;
  }
}

.page-home .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mh-accent);
  margin-bottom: 1.5rem;
  padding: 0.6rem 1.25rem;
  border: 1px solid rgba(235, 100, 13, 0.3);
  border-radius: var(--mh-radius);
  background: rgba(235, 100, 13, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Hero title — staggered line reveal */
.hero-title-line {
  display: block;
  overflow: hidden;
}

.hero-title-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%) skewY(4deg);
  animation: mh-title-reveal 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-title-line:nth-child(1) .hero-title-word { animation-delay: 0.4s; }
.hero-title-line:nth-child(2) .hero-title-word { animation-delay: 0.65s; }
.hero-title-line:nth-child(3) .hero-title-word { animation-delay: 0.9s; }

/* Middle line — filled with accent gradient */
.hero-title-line--filled .hero-title-word {
  color: transparent;
  -webkit-text-stroke: 0px;
  background: linear-gradient(135deg, var(--mh-accent-mid) 0%, var(--mh-accent) 50%, var(--mh-accent-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 700;
  font-style: normal;
  filter: drop-shadow(0 4px 20px rgba(235, 100, 13, 0.35));
}

@keyframes mh-title-reveal {
  to {
    opacity: 1;
    transform: translateY(0) skewY(0deg);
  }
}

.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.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--mh-radius);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(235, 100, 13, 0.2);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.page-home .hero-trust-pill svg {
  width: 14px;
  height: 14px;
  color: var(--mh-accent);
  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 */
/* Standalone stats section (no longer used — stats are inside hero) */
.mh-stats {
  display: none;
}

.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;
  padding: 1.75rem 1rem;
  background: linear-gradient(165deg, rgba(26, 26, 30, 0.6) 0%, rgba(17, 17, 19, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--mh-radius-lg);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.mh-stat-card:hover {
  border-color: rgba(235, 100, 13, 0.2);
  transform: translateY(-3px);
}

/* Stats inside hero */
.hero-stats {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--mh-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero-stats .mh-stat-card {
  background: rgba(10, 10, 11, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mh-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--mh-radius-lg);
  background: rgba(235, 100, 13, 0.1);
  border: 1px solid rgba(235, 100, 13, 0.2);
  margin-bottom: 1rem;
}

.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: 2.75rem;
  font-weight: 700;
  color: var(--mh-accent);
  -webkit-text-stroke: 0.5px currentColor;
  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: 1.25rem 0;
  background: linear-gradient(180deg, #111113 0%, #0e0e10 100%);
  border-top: 1px solid rgba(235, 100, 13, 0.08);
  border-bottom: 1px solid rgba(235, 100, 13, 0.08);
  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-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  color: #fff;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.marquee-sublabel {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

/* 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(235, 100, 13, 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(235, 100, 13, 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;
  }
  .hero-title-word {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .page-home .dust-particle {
    animation: none;
    display: none;
  }
}
