/* =============================================================
   Services page — reuses tokens from css/style.css (:root)
   ============================================================= */

/* ---------- shared page-banner base ---------- */
.page-banner {
  position: relative;
  padding: calc(var(--header-h) + 90px) 0 90px;
  color: var(--paper);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-banner .eyebrow {
  color: var(--amber);
}

.page-banner h1 {
  color: var(--paper);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  margin: 10px 0 0;
  max-width: 20ch;
}

/* ---------- services banner image (simplified) ---------- */
.services-banner {
  background-image:
    linear-gradient(180deg, rgba(23, 35, 59, 0.75), rgba(23, 35, 59, 0.50)),
    url("../images/banner/solar.png");
}

/* Fix service grid headings for light background */
.services-grid h2 {
  color: var(--ink);
}

.services-grid .eyebrow {
  color: var(--ink-soft);
}

/* Fix service tile titles for light background */
.service-tile h3 {
  color: var(--ink);
}

/* ---------- clickable service tiles ---------- */
.service-tile {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  height: 100%;
  color: var(--ink);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
}

.service-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--amber);
  color: var(--ink);
}

.service-tile-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--paper-dim);
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.service-tile h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.service-tile p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.service-tile-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sky-deep);
}

/* ---------- service cards (Jio & CCTV) ---------- */
.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-image {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.service-image-contain {
  object-fit: contain;
  background: var(--paper-dim);
  padding: 10px;
}

.service-body {
  padding: 20px;
}

.service-body h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.service-body p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.text-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sky-deep);
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* ---------- balance of system ---------- */
.bos {
  padding: 70px 0;
}

/* Fix headings for dark background */
.bos h2 {
  color: var(--paper);
}

.bos .eyebrow {
  color: var(--amber);
}

/* Fix chip text for dark background (cards remain white) */
.bos .chip-list-wrap li {
  background: var(--card);
  color: var(--ink-soft);
  border-color: var(--line);
}

.components-photo {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.chip-list-wrap {
  list-style: none;
}

.chip-list-wrap li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  background: var(--card);
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ---------- responsive ---------- */
@media (max-width: 992px) {
  .page-banner {
    padding: calc(var(--header-h) + 60px) 0 60px;
  }
}

@media (max-width: 768px) {
  .service-tile {
    padding: 22px;
  }

  .service-card {
    margin-top: 0;
  }

  .service-image {
    height: 140px;
  }

  .chip-list-wrap li {
    font-size: 0.65rem;
    padding: 4px 12px;
  }
}

@media (max-width: 480px) {
  .page-banner {
    padding: calc(var(--header-h) + 40px) 0 40px;
  }

  .page-banner h1 {
    font-size: 1.6rem;
  }

  .service-image {
    height: 120px;
  }

  .service-body {
    padding: 16px;
  }

  .chip-list-wrap li {
    font-size: 0.6rem;
    padding: 4px 10px;
  }
}