:root {
  --red: #e0212b;
  --black: #181818;
  --dark-gray: #2b2b2b;
  --light-gray: #f4f4f5;
  --white: #ffffff;
  --max-width: 1180px;
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--dark-gray);
  line-height: 1.6;
  background: var(--white);
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: #c11820; }

.btn-outline {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--black); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-badge-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-word {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--black);
  letter-spacing: 0.01em;
}

.logo-word .accent-red { color: var(--red); }

.logo-tagline {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
}

.main-nav {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--black);
  position: relative;
  padding-bottom: 10px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.main-nav a:hover { color: var(--red); }
.main-nav a.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--black);
}

.phone-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.phone-label {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
}

.phone-number {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--black);
}

.nav-cta { white-space: nowrap; }
.nav-cta .arrow { margin-left: 4px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--black);
  border-radius: 2px;
}

/* Hero */
/* Extra-tall wrapper gives the scroll-driven wipe room to play out. The
   inner .hero is sticky, so it stays pinned in the viewport for the whole
   wrapper height while JS reads scroll progress and drives the wipe — once
   the wrapper is fully scrolled past, the hero un-pins and the page
   continues to the next section normally. */
.hero-wrapper {
  position: relative;
  height: 220vh;
  padding: 0;
}

.hero {
  position: sticky;
  top: var(--header-h, 0px);
  overflow: hidden;
  height: calc(100vh - var(--header-h, 0px));
  min-height: calc(100vh - var(--header-h, 0px));
  display: flex;
  align-items: center;
  color: var(--white);
}

/* Background wipe effect: a "dirty" pavement photo sits on top of a "clean"
   pavement photo. JS clips the dirty layer down as the user scrolls, so the
   page appears to get pressure-washed clean while scrolling through the hero. */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-bg-clean {
  z-index: 1;
  background-image: url('../images/pavement-clean.png');
}

.hero-bg-dirty {
  z-index: 2;
  background-image: url('../images/pavement-dirty.png');
  /* fully visible until JS calculates scroll progress and shrinks this clip-path */
  clip-path: polygon(0% 8%, 100% 0%, 100% 100%, 0% 100%);
  transition: clip-path 0.05s linear;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0.55) 100%);
}

.hero-inner {
  position: relative;
  z-index: 4;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-left { text-align: left; }

.hero-line { display: block; }

.hero-line-accent {
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 4px solid var(--red);
}

.btn-icon { margin-right: 6px; }

.hero-card {
  background: rgba(20,20,24,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(6px);
}

.hero-card-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-card-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.check svg {
  display: block;
}

.hero-card-list strong {
  display: block;
  color: var(--white);
  font-size: 0.92rem;
}

.hero-card-desc {
  display: block;
  color: #9a9ca3;
  font-size: 0.8rem;
  margin-top: 2px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 14px rgba(0,0,0,0.55);
}

.hero .accent { color: var(--red); }

.hero-sub {
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 0 32px;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0,0,0,0.55);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Section shared */
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
  color: var(--black);
}

.section-sub {
  text-align: center;
  color: #666;
  max-width: 600px;
  margin: 0 auto 48px;
}

section { padding: 90px 0; }

/* Services */
.services,
.about,
.gallery {
  background-color: #eef0f1;
  background-image:
    linear-gradient(rgba(255,255,255,0.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.7) 1px, transparent 1px),
    linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: 0 0, 0 0, 1px 1px, 1px 1px;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-eyebrow .eyebrow-line {
  width: 28px;
  height: 2px;
  background: var(--red);
  display: inline-block;
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.section-title-lg {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--black);
  max-width: 480px;
}

.services-header-right {
  text-align: right;
  max-width: 340px;
}

.services-header-right p {
  color: #666;
  margin-bottom: 16px;
}

.btn-dark {
  background: var(--black);
  color: var(--white);
}
.btn-dark:hover { background: #000; }

.services-grid-new {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.service-feature,
.service-card-new {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  color: var(--white);
  background-image: linear-gradient(180deg, rgba(10,10,12,0.1) 0%, rgba(10,10,12,0.55) 60%, rgba(10,10,12,0.9) 100%), var(--bg, linear-gradient(160deg, #4a4a4e, #1c1c1e));
  background-size: cover;
  background-position: center;
}

.service-feature:hover,
.service-card-new:hover {
  animation: service-card-jump 0.45s ease;
}

@keyframes service-card-jump {
  0% { transform: translateY(0); }
  35% { transform: translateY(-12px); }
  65% { transform: translateY(2px); }
  100% { transform: translateY(0); }
}

.service-feature {
  flex: 1;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}

.service-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
}

.service-card-body h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.service-feature .service-card-body p {
  color: #d9dadd;
  max-width: 420px;
  margin-bottom: 20px;
}

.service-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-card-new {
  flex: 1;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.service-card-new .service-card-body p {
  color: #d9dadd;
  font-size: 0.9rem;
  max-width: 320px;
}

/* About */
.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-list {
  list-style: none;
  margin: 24px 0;
}

.about-list li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
  font-weight: 600;
}

.about-list li::before {
  content: "✔";
  color: var(--red);
  position: absolute;
  left: 0;
  font-weight: 800;
}

.about-copy { color: #555; }

.about-image {
  background: var(--light-gray);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Gallery */
.gallery-wrap {
  position: relative;
  width: 100%;
}

.gallery-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  outline: none;
  padding-left: max(24px, calc((100vw - var(--max-width)) / 2 + 24px));
  padding-right: 24px;
}

.gallery-grid::-webkit-scrollbar { display: none; }

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid #e2e2e3;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--black);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.gallery-nav:hover { background: var(--red); color: var(--white); border-color: var(--red); }

.gallery-nav-prev { left: 16px; }
.gallery-nav-next { right: 16px; }

.gallery-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: min(420px, 80vw);
  border-radius: var(--radius);
  aspect-ratio: 16/9;
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  display: block;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,10,12,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.25s ease;
}

.lightbox.open .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
}

/* Form success popup */
.form-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(10,10,12,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.form-success-overlay.open {
  opacity: 1;
  visibility: visible;
}

.form-success-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 36px;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: scale(0.85);
  transition: transform 0.25s ease;
}

.form-success-overlay.open .form-success-card {
  animation: service-card-jump 0.5s ease 0.1s;
  transform: scale(1);
}

.form-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.form-success-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--black);
}

.form-success-card p {
  color: #666;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

/* Testimonials */
.testimonials { background: var(--black); color: var(--white); }
.testimonials .section-title { color: var(--white); }
.testimonials .section-sub { color: #9a9ca3; }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--dark-gray);
  padding: 28px;
  border-radius: var(--radius);
  border-left: 4px solid var(--red);
}

.testimonial-stars {
  color: var(--red);
  letter-spacing: 2px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.testimonial-card p { margin-bottom: 16px; opacity: 0.9; font-size: 0.92rem; }
.testimonial-name { font-weight: 700; color: var(--red); }

.testimonials-cta {
  text-align: center;
  margin-top: 48px;
}

/* Contact */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact-list {
  list-style: none;
  margin-top: 24px;
}

.contact-list li { margin-bottom: 14px; }
.contact-list a { color: var(--red); font-weight: 600; }

.hours-rows {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hours-row {
  display: flex;
  gap: 10px;
  font-size: 0.95rem;
}

.hours-row span:first-child {
  min-width: 90px;
  color: var(--black);
  font-weight: 600;
}

.hours-row span:last-child { color: #555; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--light-gray);
  padding: 32px;
  border-radius: var(--radius);
}

.contact-form label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 12px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
}

.contact-form button { margin-top: 20px; }

.form-note {
  font-size: 0.78rem;
  color: #888;
  margin-top: 14px;
}
.form-note:empty { display: none; margin-top: 0; }
.form-note code { background: #e8e8e8; padding: 2px 4px; border-radius: 4px; }

/* Footer */
.site-footer {
  background: var(--black);
  color: #aaa;
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-logo {
  height: 48px;
  border-radius: 8px;
}

/* Mobile */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-right { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px;
    gap: 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  }

  .testimonial-grid { grid-template-columns: 1fr; }

  .about-inner,
  .contact-inner { grid-template-columns: 1fr; }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-left { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-sub { margin: 0 auto 32px; }
  .hero-card { display: none; }

  .services-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .services-header-right { text-align: left; max-width: 100%; }

  .services-grid-new { flex-direction: column; }
  .service-feature { min-height: 420px; }
}

@media (max-width: 520px) {
  .hero { min-height: 90vh; padding: 90px 0 70px; }
  section { padding: 64px 0; }
}
