/* =========================================================
   ILTS — Services Page Styles (services.css)
   Depends on style.css for variables and base styles
   ========================================================= */

/* ---- PAGE HERO (reused from about.css pattern) ---- */
.page-hero {
  position: relative;
  height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transform: scale(1.05);
  transition: transform 6s ease;
}
.page-hero:hover .page-hero-img { transform: scale(1); }
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(21,32,51,0.5) 0%,
    rgba(21,32,51,0.78) 100%
  );
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 50px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.page-hero-content .section-label {
  color: var(--gold-lt, #ddb96e);
  margin-bottom: 10px;
}
.page-hero-content .section-label::before { background: var(--gold-lt, #ddb96e); }
.page-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(46px, 6vw, 72px);
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 10px;
}
.page-hero-accent {
  color: transparent;
  -webkit-text-stroke: 2px #ffffff;
}
.page-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
}
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.page-breadcrumb a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.page-breadcrumb a:hover { color: var(--gold); }
.page-breadcrumb i { font-size: 10px; color: var(--gold); }
.page-breadcrumb span { color: #ffffff; }

/* ---- INTRO STRIP ---- */
.services-intro-strip {
  background: var(--off-white);
  border-bottom: 1px solid var(--gray);
  padding: 30px 0;
}
.services-intro-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.services-intro-inner p {
  font-size: 15px;
  color: var(--text-lt);
  line-height: 1.7;
  max-width: 700px;
  flex: 1;
}

/* ---- ALL SERVICES SECTION ---- */
.all-services-section { background: #ffffff; }

/* Masonry-style grid with wide cards */
.all-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 340px;
  gap: 20px;
}

/* Wide card spans 2 columns */
.srv-card-wide {
  grid-column: span 2;
}

/* ---- SERVICE CARD ---- */
.srv-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  background: var(--navy);
  box-shadow: 0 4px 20px rgba(21,32,51,0.1);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.4s cubic-bezier(0.4,0,0.2,1);
}
.srv-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 60px rgba(21,32,51,0.22);
}

/* Image area */
.srv-card-img-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.srv-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
  filter: brightness(0.85);
}
.srv-card:hover .srv-card-img {
  transform: scale(1.08);
  filter: brightness(0.7);
}

/* Gradient overlay */
.srv-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(21,32,51,0.08) 0%,
    rgba(21,32,51,0.15) 40%,
    rgba(21,32,51,0.75) 100%
  );
  transition: background 0.4s;
  z-index: 1;
}
.srv-card:hover .srv-card-overlay {
  background: linear-gradient(
    to bottom,
    rgba(21,32,51,0.15) 0%,
    rgba(21,32,51,0.25) 30%,
    rgba(21,32,51,0.88) 100%
  );
}

/* Service number — top right watermark */
.srv-card-number {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 72px;
  font-weight: 900;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  z-index: 2;
  transition: color 0.4s, transform 0.4s;
  user-select: none;
}
.srv-card:hover .srv-card-number {
  color: rgba(255,255,255,0.14);
  transform: scale(1.1) translateY(-4px);
}

/* Footer bar — sits at the bottom */
.srv-card-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(to top, rgba(21,32,51,0.95), transparent);
  transform: translateY(0);
  transition: padding 0.35s;
}
.srv-card:hover .srv-card-footer {
  padding-bottom: 26px;
}

/* Icon circle */
.srv-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
  flex-shrink: 0;
  transition: background 0.3s, transform 0.3s;
  box-shadow: 0 4px 14px rgba(196,154,60,0.4);
}
.srv-card:hover .srv-card-icon {
  background: #ffffff;
  color: var(--navy);
  transform: rotate(-6deg) scale(1.08);
}

/* Title & CTA */
.srv-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.srv-card-info h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  margin: 0;
}
.srv-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.35s, transform 0.35s;
}
.srv-card-cta i {
  font-size: 10px;
  transition: transform 0.25s;
}
.srv-card:hover .srv-card-cta {
  opacity: 1;
  transform: translateX(0);
}
.srv-card:hover .srv-card-cta i {
  transform: translateX(4px);
}

/* Gold left border accent on hover */
.srv-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--gold);
  z-index: 4;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  border-radius: 0 2px 2px 0;
}
.srv-card:hover::before {
  transform: scaleY(1);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .all-services-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 300px;
  }
  .srv-card-wide {
    grid-column: span 2;
  }
  .page-hero { height: 340px; }
}

@media (max-width: 640px) {
  .all-services-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }
  .srv-card-wide {
    grid-column: span 1;
  }
  .srv-card-cta {
    opacity: 1;
    transform: translateX(0);
  }
  .srv-card-number { font-size: 50px; }
  .page-hero { height: 280px; }
  .page-hero-inner { flex-direction: column; align-items: flex-start; padding-bottom: 28px; }
  .services-intro-inner { flex-direction: column; align-items: flex-start; }
  .services-intro-inner .btn-primary { width: 100%; justify-content: center; }
}