/* ================================================================
   SERVICES PAGE — Visual Enhancement Layer
   Loaded after style.css on services.html only.
   ================================================================ */

/* ── PAGE HERO ── */
.page-hero {
  padding-block: 130px 72px;
  min-height: 360px;
}

.page-hero h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  margin-bottom: 18px;
}

.page-hero p {
  font-size: 15px;
  max-width: 540px;
  line-height: 1.7;
  opacity: 0.72;
}

/* ── SERVICES WRAP ── */
.svc-wrap {
  padding-block: 56px 88px;
}

/* ── SECTION LABELS — more air above/below ── */
.svc-section-label {
  margin-bottom: 32px;
  margin-top: 20px;
}

.svc-section-label span {
  font-size: 11.5px;
  letter-spacing: 4px;
}

/* ── GRID — tighter, more precise ── */
.svc-grid {
  gap: 24px;
}

/* ── CARD CONTAINER ── */
.svc-card {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  background: #151414;
  transition: transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.28s ease,
              border-color 0.28s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.svc-card:not(.coming-soon):hover {
  transform: translateY(-5px);
  border-color: rgba(200, 57, 26, 0.45);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(200, 57, 26, 0.18),
              0 0 28px rgba(200, 57, 26, 0.08);
  background: #181717;
}

/* ── IMAGE AREA — taller presence ── */
.svc-card-img-wrap {
  aspect-ratio: 3 / 2;
  height: auto;
}

/* ── CARD BODY ── */
.svc-card-body {
  padding: 22px 24px 26px;
  border-top: 2px solid var(--red);
  gap: 10px;
  position: relative;
}

/* ── SERVICE NUMBER — decorative background digit ── */
.svc-grid:first-of-type .svc-card:nth-child(1) .svc-card-body::before { content: '01'; }
.svc-grid:first-of-type .svc-card:nth-child(2) .svc-card-body::before { content: '02'; }
.svc-grid:first-of-type .svc-card:nth-child(3) .svc-card-body::before { content: '03'; }
.svc-grid:first-of-type .svc-card:nth-child(4) .svc-card-body::before { content: '04'; }

.svc-card-body::before {
  position: absolute;
  top: 12px;
  inset-inline-end: 16px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.035);
  letter-spacing: 3px;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.svc-card-body h3,
.svc-card-body p,
.svc-cta {
  position: relative;
  z-index: 1;
}

/* ── CARD TITLE ── */
.svc-card-body h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: 0.5px;
  line-height: 1.05;
  padding-bottom: 10px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(200, 57, 26, 0.18);
}

/* ── CARD DESCRIPTION ── */
.svc-card-body p {
  font-size: 13.5px;
  line-height: 1.68;
  color: rgba(170, 162, 158, 0.9);
}

/* ── READ MORE — collapsed description ── */
.svc-desc {
  max-height: 5.2em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  transition: max-height 0.4s ease, -webkit-mask-image 0.3s ease, mask-image 0.3s ease;
}

.svc-desc.expanded {
  max-height: 9999px;
  -webkit-mask-image: none;
  mask-image: none;
}

.svc-read-more-btn {
  background: none;
  border: none;
  color: var(--red);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: relative;
  z-index: 1;
  transition: opacity 0.2s ease;
  margin-top: 2px;
}

.svc-read-more-btn:hover {
  opacity: 0.7;
}

.svc-read-more-btn::after {
  content: '↓';
  font-size: 12px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.svc-read-more-btn[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

/* ── BADGE GLOW — active services ── */
.svc-badge:not(.coming) {
  box-shadow: 0 0 14px rgba(255, 70, 30, 0.45);
}

/* ── COMING SOON CARDS ── */
.svc-card.coming-soon {
  border-color: rgba(255, 255, 255, 0.04);
  background: #111010;
}

.svc-card.coming-soon .svc-card-body {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.svc-card.coming-soon:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  background: #111010;
}

/* Space between active and coming-soon grids */
.svc-section-label.soon {
  margin-top: 56px;
}

/* ── CTA STRIP — more impact ── */
.svc-cta-strip {
  background: #0e0d0d;
  border-top: 1px solid rgba(200, 57, 26, 0.28);
  position: relative;
  overflow: hidden;
}

/* Left red accent bar */
.svc-cta-strip::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--red), rgba(200, 57, 26, 0.2));
  pointer-events: none;
}

/* Subtle radial glow behind the heading */
.svc-cta-strip::after {
  content: '';
  position: absolute;
  inset-inline-start: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  height: 280px;
  background: radial-gradient(ellipse at center, rgba(200, 57, 26, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.svc-cta-strip-inner {
  padding-block: 56px;
  padding-inline: clamp(24px, 5vw, 80px);
  max-width: 1440px;
  position: relative;
  z-index: 1;
}

.svc-cta-strip h2 {
  font-size: clamp(36px, 4.2vw, 58px);
}

.svc-cta-strip p {
  font-size: 14.5px;
  max-width: 400px;
}

/* ── TRUST STRIP ── */
.trust-strip {
  background: #0e0d0d;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── CROSSFADE SLIDER ── */
/* Override the flex/scroll-snap layout for a smooth opacity crossfade */
.svc-slides {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.svc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  /* Remove scroll-snap — not needed with crossfade */
  scroll-snap-align: unset;
  scroll-snap-stop: unset;
}

.svc-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

/* Slight Ken Burns zoom on active slide image */
.svc-slide img {
  transition: transform 5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.04);
}

.svc-slide.active img {
  transform: scale(1.0);
}

/* Dot indicator — upgrade style */
.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}

button.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, width 0.3s ease;
  flex-shrink: 0;
}

button.dot.active {
  background: var(--red);
  width: 18px;
  border-radius: 3px;
  transform: none;
}

/* Disable the card-level hover zoom — Ken Burns handles image animation */
.svc-card:hover .svc-card-img {
  transform: none;
}

/* ── SLIDER NAV ARROWS — refine hit area ── */
.s-prev, .s-next {
  width: 36px;
  height: 36px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .page-hero {
    min-height: 300px;
  }

  .svc-card-body::before {
    font-size: 44px;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding-block: 104px 54px;
    min-height: auto;
  }

  .svc-card-img-wrap {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .svc-card-body {
    padding: 18px 18px 22px;
  }


  .svc-card-body::before {
    font-size: 38px;
    top: 10px;
    inset-inline-end: 14px;
  }

  .svc-section-label.soon {
    margin-top: 40px;
  }

  .svc-cta-strip::before {
    display: none;
  }

  .svc-cta-strip-inner {
    padding-block: 40px;
  }
}

/* ── RTL ADJUSTMENTS ── */
html[dir="rtl"] .svc-card-body::before {
  letter-spacing: 0;
}
