/* ═══════════════════════════════════════════
   Capital Paving — Home Page Only
   ═══════════════════════════════════════════ */

/* ── Scroll Progress ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 100;
  transition: width 0.1s linear;
}

/* ── Home Hero ── */
.hero--home {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  background: #0a0a0a;
  overflow: hidden;
}
/* No scroll-over effect on homepage */
.hero--home + * {
  border-radius: 0;
  box-shadow: none;
}
/* Video + bg image container */
.hero--home .hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  animation: hero-media-reveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}
@keyframes hero-media-reveal {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}
/* Background texture behind video */
.hero--home .hero-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.06;
  z-index: 0;
}
.hero--home .hero-media img,
.hero--home .hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.1;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  animation: hero-img-zoom 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes hero-img-zoom {
  0% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
/* Pitch-black left side that fades smoothly into the video */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(to right,
    #0a0a0a 0%,
    #0a0a0a 15%,
    rgba(10,10,10,0.98) 25%,
    rgba(10,10,10,0.9) 40%,
    rgba(10,10,10,0.85) 60%,
    rgba(10,10,10,0.7) 100%
  );
}
.hero-dark-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(to top, #0a0a0a, transparent 45%, rgba(10,10,10,0.3));
}

/* Particles — hidden, replaced with cleaner hero */

/* Hero shell */
.hero-shell {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 10rem 1.5rem 6rem;
  width: 100%;
}
@media (min-width: 768px) {
  .hero-shell { padding: 12rem 2.5rem 6rem; }
}

/* Hero content */
.hero-content { max-width: 700px; }

.hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
}
.hero-word-1 { animation: hero-fade-up 0.7s ease-out 0.2s forwards; }
.hero-word-2 { color: var(--accent); animation: hero-glow-in 0.9s ease-out 0.5s forwards; }
.hero-word-3 { animation: hero-fade-up 0.7s ease-out 0.8s forwards; }
.hero-word-4 { color: var(--accent-dark); animation: hero-glow-in 0.9s ease-out 1.1s forwards; }

.hero-lead {
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1.7;
  max-width: 50ch;
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(20px);
  animation: hero-fade-up 0.7s ease-out 0.7s forwards;
}

@keyframes hero-fade-up {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-glow-in {
  0% { opacity: 0; transform: scale(0.92) translateY(10px); }
  60% { opacity: 1; transform: scale(1.03) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Trust pills */
.hero-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: hero-fade-up 0.7s ease-out 1.2s forwards;
}
.hero-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-glow);
  border: 1px solid rgba(254,207,1,0.2);
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
}

/* Hero actions */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  animation: hero-fade-up 0.7s ease-out 1s forwards;
}

/* Stats grid */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 520px;
  margin-top: 2rem;
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; gap: 0.75rem; }
}
.stat-card {
  background: rgba(17,17,17,0.7);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  backdrop-filter: blur(8px);
}
.stat-icon {
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.stat-number {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-suffix {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  color: var(--accent-dark);
}
.stat-label {
  color: var(--text-faint);
  font-size: 1.1rem;
  margin-top: 0.3rem;
  letter-spacing: 0.02em;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-faint);
  opacity: 0;
  animation: scroll-indicator-in 0.6s ease-out 1.8s forwards, bounce-down 2s ease-in-out 2.4s infinite;
}
@keyframes scroll-indicator-in {
  to { opacity: 0.7; }
}
@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ── Trust Marquee ── */
.trust-marquee {
  border-top: 1px solid var(--bg-border);
  border-bottom: 1px solid var(--bg-border);
  background: rgba(17,17,17,0.5);
  padding: 1rem 0;
  overflow: hidden;
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee-scroll 35s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.marquee-item-icon { color: var(--accent); flex-shrink: 0; }
.marquee-label {
  color: var(--text-mid);
  font-size: 1rem;
  font-weight: 600;
}
.marquee-sublabel {
  color: var(--text-faint);
  font-size: 1.1rem;
}

/* ── About Section ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 7fr 5fr; }
}
.about-text { max-width: 60ch; }
.about-text p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.about-link {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease;
}
.about-link:hover { gap: 0.7rem; }

.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: visible;
}
.about-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius);
  position: relative;
  z-index: 1;
}
/* Triple-layer decorative border: silver (outer), black, dark yellow (inner) */
.about-image::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: calc(var(--radius) + 4px);
  border: 3px solid rgba(180, 180, 190, 0.45);
  z-index: 0;
}
.about-image::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--radius) + 2px);
  border: 2px solid rgba(10, 10, 10, 0.9);
  box-shadow: inset 0 0 0 1px rgba(200, 165, 0, 0.5);
  z-index: 0;
}
.about-image-frame { display: none; }

/* ── How We Work ── */
.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) {
  .how-grid { grid-template-columns: 1fr 1fr; }
}
.how-steps { display: flex; flex-direction: column; gap: 2rem; }
.how-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.how-step-num {
  width: 36px;
  height: 36px;
  background: var(--accent-glow);
  border: 1px solid rgba(254,207,1,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.how-step-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.how-step-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* ── Gallery Preview ── */
.gallery-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .gallery-preview-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Testimonials Slider ── */
.testimonials-slider { position: relative; overflow: hidden; }
.testimonials-track {
  display: flex;
  transition: transform 0.5s var(--ease);
}
.testimonials-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 0 0.25rem;
}
@media (min-width: 768px) {
  .testimonials-slide { grid-template-columns: repeat(2, 1fr); }
}
.testimonials-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.testimonials-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.testimonials-btn:hover { border-color: var(--accent); color: var(--accent); }
.testimonials-dots { display: flex; gap: 0.5rem; }
.testimonials-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-muted);
  transition: background 0.2s ease;
  cursor: pointer;
}
.testimonials-dot.is-active { background: var(--accent); }

/* ── Final CTA ── */
.final-cta {
  text-align: center;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/asphalt-paving-crew-action.jpg') center/cover no-repeat;
  opacity: 0.06;
  pointer-events: none;
}
.final-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(254,207,1,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.final-cta .section-title { margin-bottom: 1rem; }
.final-cta .section-intro { margin: 0 auto 2rem; text-align: center; }
.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
