/* ============================================================
   services.css — Services page
   Depends on: global.css (.pc-only/.mobile-only, .reveal),
               doc.css (.doc-breadcrumb), contacts.css (.contacts-primary,
               copied verbatim from contacts.php)
   ============================================================ */

/* ── Page ──────────────────────────────────────────────────── */
.services-page {
  min-height: calc(100vh - var(--nav-height));
  background: var(--footer-light, #f7f7f7);
  padding-bottom: 80px;
}

.services-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 50px 0;
}

/* ── Page header ───────────────────────────────────────────── */
.services-page-header {
  margin-bottom: 32px;
}

.services-page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-black);
  margin: 0 0 8px;
}

.services-page-subtitle {
  font-size: 0.95rem;
  color: var(--color-grey);
  margin: 0;
}

/* ── Services list ─────────────────────────────────────────── */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 56px;
}

/* ── Service block (card) ─────────────────────────────────── */
.service-block {
  background: var(--color-white);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.1);
}

/* Mobile banner — same proportions as .project-full-banner on
   the projects page (16/7), full width, on top of the card */
.service-block-banner {
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
  background: var(--color-accent-tag);
}

.service-block-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.service-block-body {
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-block-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-black);
  margin: 0;
  line-height: 1.3;
}

.service-block-desc {
  font-size: 0.9rem;
  color: var(--color-grey);
  line-height: 1.7;
  margin: 0;
}

/* Desktop side image — visibility is handled entirely by the .pc-only
   utility class (global.css); this only adds positioning for the img */
.service-block-media {
  position: relative;
}

/* ── Contact section (heading above the copied contacts-primary) ── */
.services-contact-section {
  margin-top: 8px;
}

.services-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-grey);
  margin: 0 0 20px;
}

/* ── Desktop layout ────────────────────────────────────────── */
@media (min-width: 992px) {
  .service-block {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 280px;
  }

  .service-block-body {
    flex: 1 1 auto;
    justify-content: center;
    padding: 44px 48px;
    gap: 14px;
  }

  .service-block-title {
    font-size: 1.3rem;
  }

  .service-block-desc {
    font-size: 0.92rem;
    max-width: 640px;
  }

  /* Side image: diagonal cut on the left edge, image bleeding to the
     card's top/right/bottom edges — same slant as the reference mock-up */
  .service-block-media {
    flex: 0 0 34%;
    overflow: hidden;
  }

  .service-block-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    -webkit-clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%);
    clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%);
  }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .services-container {
    padding: 32px 20px 0;
  }

  .services-page-title {
    font-size: 1.35rem;
  }
}

@media (max-width: 480px) {
  .service-block-body {
    padding: 24px 20px 28px;
  }
}