/* ============================================================
   CROSSSTOPS PROJECTS - INDEX.HTML Page Styles
   ============================================================ */

/* ===== HOME-SPECIFIC STYLES ===== */

    /* Hero */
    .hero {
      min-height: 100vh;
      display: flex;
      align-items: center;
      position: relative;
      overflow: hidden;
      background: var(--black);
    }
    .hero-bg {
      position: absolute;
      inset: 0;
      background:
        linear-gradient(to right, rgba(17,17,17,0.92) 50%, rgba(17,17,17,0.4) 100%),
        repeating-linear-gradient(
          90deg,
          transparent, transparent 2px,
          rgba(244,192,5,0.03) 2px, rgba(244,192,5,0.03) 40px
        );
    }
    /* Animated road stripes */
    .road-lines {
      position: absolute;
      right: 0; top: 0; bottom: 0;
      width: 55%;
      overflow: hidden;
    }
    .road-lines::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(160deg, #1a1a1a 0%, #0d0d0d 100%);
      clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    }
    .road-stripe {
      position: absolute;
      width: 8px;
      background: var(--yellow);
      left: 50%;
      animation: stripeScroll 2s linear infinite;
      opacity: 0.7;
    }
    @keyframes stripeScroll {
      from { transform: translateY(-200px); }
      to   { transform: translateY(110vh); }
    }
    .hero-content {
      position: relative;
      z-index: 2;
      padding: calc(var(--nav-h) + 2rem) 0 4rem;
    }
    .hero-eyebrow {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 1.5rem;
    }
    .hero-eyebrow::before {
      content: '';
      display: block;
      width: 40px;
      height: 3px;
      background: var(--red);
    }
    .hero-eyebrow span {
      font-family: var(--font-display);
      font-size: 0.8rem;
      font-weight: 700;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--yellow);
    }
    .hero h1 {
      font-family: var(--font-display);
      font-weight: 900;
      font-size: clamp(3rem, 9vw, 7rem);
      line-height: 0.95;
      text-transform: uppercase;
      margin-bottom: 1.5rem;
    }
    .hero h1 .line-red { color: var(--red); display: block; }
    .hero h1 .line-yellow { color: var(--yellow); display: block; }
    .hero-sub {
      font-size: 1.1rem;
      color: rgba(255,255,255,0.75);
      max-width: 480px;
      margin-bottom: 2.5rem;
      line-height: 1.7;
    }
    .hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
    .hero-badges {
      display: flex;
      gap: 2rem;
      margin-top: 4rem;
      flex-wrap: wrap;
    }
    .hero-badge {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }
    .hero-badge .num {
      font-family: var(--font-display);
      font-weight: 900;
      font-size: 2rem;
      color: var(--yellow);
      line-height: 1;
    }
    .hero-badge .label {
      font-size: 0.8rem;
      color: rgba(255,255,255,0.6);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      line-height: 1.3;
    }

    /* Ticker */
    .ticker {
      background: var(--yellow);
      color: var(--black);
      padding: 0.6rem 0;
      overflow: hidden;
      white-space: nowrap;
    }
    .ticker-inner {
      display: inline-block;
      animation: ticker 22s linear infinite;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 0.85rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
    }
    @keyframes ticker {
      from { transform: translateX(0); }
      to   { transform: translateX(-50%); }
    }

    /* Services Preview */
    .services-preview { padding: 6rem 0; }
    .services-preview .section-heading { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 3.5rem; }
    .services-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5px;
    }
    .service-card {
      position: relative;
      overflow: hidden;
      aspect-ratio: 3/4;
      cursor: pointer;
      background: var(--grey);
    }
    .service-card-bg {
      position: absolute;
      inset: 0;
      transition: transform 0.5s ease;
    }
    .service-card:hover .service-card-bg { transform: scale(1.06); }
    .service-card-bg.tar {
      background: linear-gradient(160deg, #222 0%, #111 60%, rgba(192,57,43,0.3) 100%);
    }
    .service-card-bg.paving {
      background: linear-gradient(160deg, #1a1a1a 0%, #111 60%, rgba(244,192,5,0.25) 100%);
    }
    .service-card-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
    }
    .service-card-pattern {
      position: absolute;
      inset: 0;
      opacity: 0.06;
    }
    .service-card-pattern.stripes {
      background: repeating-linear-gradient(
        -45deg,
        var(--yellow), var(--yellow) 4px,
        transparent 4px, transparent 20px
      );
    }
    .service-card-pattern.dots {
      background-image: radial-gradient(circle, var(--white) 1px, transparent 1px);
      background-size: 18px 18px;
    }
    .service-card-content {
      position: absolute;
      bottom: 0; left: 0; right: 0;
      padding: 2rem;
      z-index: 2;
      transform: translateY(0);
      transition: transform 0.4s ease;
    }
    .service-card:hover .service-card-content { transform: translateY(-8px); }
    .service-icon {
      font-size: 2.5rem;
      margin-bottom: 0.75rem;
      display: block;
    }
    .service-card-content h3 {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 1.6rem;
      text-transform: uppercase;
      color: var(--white);
      margin-bottom: 0.5rem;
    }
    .service-card-content p {
      font-size: 0.9rem;
      color: rgba(255,255,255,0.7);
      margin-bottom: 1.25rem;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.4s ease, opacity 0.4s ease;
      opacity: 0;
    }
    .service-card:hover .service-card-content p {
      max-height: 100px;
      opacity: 1;
    }
    .service-card-link {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 0.85rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--yellow);
      transition: gap 0.3s;
    }
    .service-card:hover .service-card-link { gap: 0.8rem; }
    .service-card-number {
      position: absolute;
      top: 1.5rem;
      right: 1.5rem;
      font-family: var(--font-display);
      font-weight: 900;
      font-size: 4rem;
      color: rgba(255,255,255,0.05);
      line-height: 1;
      z-index: 1;
    }

    /* Why Us */
    .why-us {
      padding: 6rem 0;
      background: var(--grey);
      position: relative;
      overflow: hidden;
    }
    .why-us::before {
      content: '';
      position: absolute;
      right: -100px;
      top: -100px;
      width: 500px;
      height: 500px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(192,57,43,0.12) 0%, transparent 70%);
      pointer-events: none;
    }
    .why-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 5rem;
      align-items: center;
    }
    .why-left .section-heading { font-size: clamp(2rem,4vw,3rem); margin-bottom: 1.5rem; }
    .why-left p { color: rgba(255,255,255,0.7); line-height: 1.8; margin-bottom: 2rem; }
    .why-features { display: flex; flex-direction: column; gap: 1rem; }
    .why-feature {
      display: flex;
      align-items: flex-start;
      gap: 1rem;
      padding: 1.25rem;
      background: rgba(255,255,255,0.03);
      border-left: 3px solid transparent;
      transition: border-color 0.3s, background 0.3s;
    }
    .why-feature:hover { border-left-color: var(--yellow); background: rgba(244,192,5,0.05); }
    .why-feature .feat-icon { font-size: 1.5rem; flex-shrink: 0; }
    .why-feature h4 {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 1rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 0.25rem;
    }
    .why-feature p { font-size: 0.88rem; color: rgba(255,255,255,0.6); margin: 0; line-height: 1.6; }
    .why-right {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
    }
    .stat-box {
      background: var(--black);
      padding: 2rem 1.5rem;
      text-align: center;
      border-bottom: 3px solid var(--red);
      transition: border-color 0.3s, transform 0.3s;
    }
    .stat-box:hover { border-color: var(--yellow); transform: translateY(-4px); }
    .stat-box .counter {
      font-family: var(--font-display);
      font-weight: 900;
      font-size: 3rem;
      color: var(--yellow);
      display: block;
      line-height: 1;
    }
    .stat-box .stat-suffix {
      font-family: var(--font-display);
      font-weight: 900;
      font-size: 2rem;
      color: var(--yellow);
    }
    .stat-box p { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.5rem; }
    .stat-box:nth-child(2) { margin-top: 2rem; }
    .stat-box:nth-child(3) { margin-top: -2rem; }

    /* CTA Banner */
    .cta-banner {
      padding: 5rem 0;
      background: var(--red);
      position: relative;
      overflow: hidden;
      text-align: center;
    }
    .cta-banner::before {
      content: '';
      position: absolute;
      inset: 0;
      background: repeating-linear-gradient(
        90deg,
        transparent, transparent 40px,
        rgba(0,0,0,0.05) 40px, rgba(0,0,0,0.05) 41px
      );
    }
    .cta-banner .container { position: relative; z-index: 1; }
    .cta-banner h2 {
      font-family: var(--font-display);
      font-weight: 900;
      font-size: clamp(2rem, 5vw, 3.5rem);
      text-transform: uppercase;
      margin-bottom: 1rem;
    }
    .cta-banner p { font-size: 1.1rem; opacity: 0.85; margin-bottom: 2rem; }
    .cta-banner .btn-yellow { font-size: 1.1rem; padding: 1rem 2.5rem; }

    /* Projects Teaser */
    .projects-teaser { padding: 6rem 0; }
    .projects-teaser .section-heading { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 3.5rem; }
    .projects-strip {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 3px;
    }
    .project-thumb {
      aspect-ratio: 1;
      position: relative;
      overflow: hidden;
      background: var(--grey-lt);
    }
    .project-thumb-inner {
      width: 100%;
      height: 100%;
      transition: transform 0.5s ease;
      background: linear-gradient(135deg, #2a2a2a, #111);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 3rem;
    }
    .project-thumb:hover .project-thumb-inner { transform: scale(1.08); }
    .project-thumb-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(192,57,43,0.9) 0%, transparent 60%);
      opacity: 0;
      transition: opacity 0.3s;
      display: flex;
      align-items: flex-end;
      padding: 1.25rem;
    }
    .project-thumb:hover .project-thumb-overlay { opacity: 1; }
    .project-thumb-overlay span {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 0.95rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    /* Responsive home */
    @media (max-width: 1024px) {
      .services-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
      .why-grid { grid-template-columns: 1fr; gap: 3rem; }
      .why-right { grid-template-columns: repeat(2, 1fr); }
      .stat-box:nth-child(2) { margin-top: 0; }
      .stat-box:nth-child(3) { margin-top: 0; }
      .projects-strip { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 768px) {
      .hero-badges { gap: 1.5rem; }
      .services-grid { max-width: 100%; }
      .service-card { aspect-ratio: 16/9; }
    }
    @media (max-width: 480px) {
      .hero h1 { font-size: 2.8rem; }
      .hero-ctas { flex-direction: column; }
      .projects-strip { grid-template-columns: 1fr 1fr; }
    }

/* ============================================================
   TWO-SERVICE CARD LAYOUT - Bigger, centred, with real photos
   ============================================================ */

.services-grid--two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.service-card--large {
  aspect-ratio: 3/4;
  min-height: 480px;
}

/* Real photo background on service cards */
.service-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}
.service-card--large:hover .service-card-img { transform: scale(1.05); }

/* Photo project thumbs */
.project-thumb-inner--photo {
  background-size: cover !important;
  background-position: center !important;
  background-color: #111 !important;
}

/* Responsive two-card grid */
@media (max-width: 768px) {
  .services-grid--two {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .service-card--large {
    aspect-ratio: 16/9;
    min-height: 260px;
  }
}

@media (max-width: 480px) {
  .service-card--large {
    min-height: 220px;
  }
}
