/* Services page — full layout */

:root {
  --svc-gutter: 20px;
}

@media (min-width: 768px) {
  :root {
    --svc-gutter: 64px;
  }
}

.svc-page {
  padding-top: 4.25rem;
  background: #f9f9f9;
  min-height: 100vh;
  overflow-x: clip;
}

.svc-page *,
.svc-page *::before,
.svc-page *::after {
  box-sizing: border-box;
}

.svc-page__container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Hero ── */
.svc-page-hero {
  position: relative;
  min-height: 280px;
  max-height: 420px;
  overflow: hidden;
  background: #014d33;
}

.svc-page-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.svc-page-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 4vw, 2.75rem) var(--svc-gutter) !important;
  background: linear-gradient(180deg, rgba(1, 30, 20, 0.25) 0%, rgba(1, 77, 51, 0.92) 100%);
  color: #ffffff;
}

.svc-page-hero__label {
  display: inline-block;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f7af28;
  margin-bottom: 0.75rem;
}

.svc-page-hero__title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  line-height: 1.1;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.75rem;
  max-width: 28rem;
}

.svc-page-hero__lead {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 40rem;
  margin: 0 0 1.75rem;
}

.svc-page__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 36rem;
}

@media (min-width: 768px) {
  .svc-page__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

.svc-page__stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0.875rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 3px solid #f7af28;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.svc-page__stat:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(247, 175, 40, 0.4);
}

.svc-page__stat-num {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.svc-page__stat-num--iso {
  font-size: clamp(0.875rem, 2vw, 1rem);
  letter-spacing: 0.02em;
}

.svc-page__stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.75);
}

/* ── Divisions overview ── */
.svc-page .svc-page__overview {
  padding: clamp(2.5rem, 5vw, 4rem) var(--svc-gutter) !important;
  background: #f9f9f9;
  border-bottom: 1px solid #e2e8f0;
}

.svc-page .svc-page__overview .svc-page__container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.svc-page .svc-overview__head {
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  max-width: 40rem;
}

.svc-page .svc-overview__label {
  display: inline-block;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #016644;
  margin-bottom: 0.75rem;
}

.svc-page .svc-overview__title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  color: #014d33;
  margin: 0;
}

.svc-page .svc-overview__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
  align-items: stretch;
}

@media (min-width: 640px) {
  .svc-page .svc-overview__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .svc-page .svc-overview__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .svc-page .svc-overview__grid .svc-division:last-child:nth-child(3n + 1) {
    grid-column: 2;
  }
}

.svc-page .svc-division {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  min-height: 100%;
  height: auto;
  padding: 1.5rem 1.35rem 1.5rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: none;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.svc-page .svc-division:hover {
  transform: translateY(-4px);
  border-color: #f7af28;
  box-shadow: 0 16px 40px rgba(1, 102, 68, 0.1);
}

.svc-page .svc-division__corner {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: 4.5rem;
  height: 4.5rem;
  background: linear-gradient(135deg, transparent 50%, #e8f5ef 50%);
  pointer-events: none;
  z-index: 0;
}

.svc-page .svc-division:hover .svc-division__corner {
  background: linear-gradient(135deg, transparent 50%, rgba(247, 175, 40, 0.22) 50%);
}

.svc-page .svc-division__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.svc-page .svc-division__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  background: linear-gradient(145deg, #014d33 0%, #016644 100%);
  color: #f7af28;
}

.svc-page .svc-division__icon .material-symbols-outlined {
  font-size: 1.375rem;
}

.svc-page .svc-division__num {
  position: relative;
  z-index: 1;
  display: block;
  flex-shrink: 0;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(1, 77, 51, 0.12);
  user-select: none;
}

.svc-page .svc-division__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.svc-page .svc-division__title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #014d33;
  margin: 0 0 0.625rem;
  line-height: 1.3;
  padding-right: 0.5rem;
  overflow-wrap: break-word;
}

.svc-page .svc-division__summary {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #3f4947;
  margin: 0;
  overflow-wrap: break-word;
}

/* ── Testing catalogue ── */
.svc-page .svc-catalog.svc-catalog--preview {
  padding: clamp(2.5rem, 5vw, 5rem) var(--svc-gutter) clamp(3rem, 6vw, 5rem) !important;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.svc-page .svc-catalog--preview > .max-w-container-max,
.svc-page .svc-catalog--preview > .svc-page__container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.svc-page .svc-catalog--preview .svc-catalog__header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.svc-page .svc-catalog--preview .svc-catalog__header {
  margin-bottom: 0;
  flex: 1 1 min(100%, 28rem);
  max-width: 42rem;
}

.svc-page .svc-catalog--preview .svc-catalog__label {
  color: #765b00;
}

.svc-page .svc-catalog--preview .svc-catalog__title {
  color: #016644;
}

.svc-page .svc-catalog--preview .svc-catalog__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  width: 100%;
}

@media (min-width: 992px) {
  .svc-page .svc-catalog--preview .svc-catalog__layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 2rem;
  }
}

.svc-page .svc-catalog--preview .svc-nav {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

@media (min-width: 992px) {
  .svc-page .svc-catalog--preview .svc-nav {
    flex-direction: column;
    overflow: visible;
    position: sticky;
    top: 6.5rem;
    padding-bottom: 0;
  }
}

.svc-page .svc-catalog--preview .svc-nav__btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 11rem;
  max-width: 16rem;
  white-space: normal;
  text-align: left;
}

@media (min-width: 992px) {
  .svc-page .svc-catalog--preview .svc-nav__btn {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}

.svc-page .svc-catalog--preview .svc-panels {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  width: 100%;
}

.svc-page .svc-catalog--preview .svc-panel {
  min-width: 0;
  scroll-margin-top: calc(4.25rem + 1rem);
}

.svc-page .svc-catalog--preview .svc-panel__trigger {
  gap: 0.75rem;
}

.svc-page .svc-catalog--preview .svc-panel__title {
  min-width: 0;
  overflow-wrap: break-word;
}

.svc-page .svc-catalog--preview .svc-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.svc-page .svc-catalog--preview .svc-table {
  width: 100%;
  min-width: 520px;
}

.svc-page .svc-catalog--preview .svc-catalog__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.svc-page .nav-link--active {
  color: #014d33;
}

/* ── Mobile tweaks ── */
@media (max-width: 767px) {
  .svc-page {
    padding-top: 4rem;
  }

  .svc-page-hero {
    position: relative;
    min-height: auto;
    max-height: none;
    height: auto;
    display: grid;
    grid-template: 1fr / 1fr;
  }

  .svc-page-hero__image {
    grid-area: 1 / 1;
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 100%;
    height: 100%;
  }

  .svc-page-hero__overlay {
    grid-area: 1 / 1;
    position: relative;
    z-index: 1;
    min-height: 280px;
    padding: 1.5rem var(--svc-gutter) 1.75rem !important;
  }

  .svc-page-hero__title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .svc-page-hero__lead {
    max-width: 100%;
  }

  .svc-page .svc-page__overview {
    padding: 1.5rem var(--svc-gutter) 2rem !important;
  }

  .svc-page .svc-catalog.svc-catalog--preview {
    padding: 2rem var(--svc-gutter) 3rem !important;
  }

  .svc-page .svc-catalog--preview .svc-catalog__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .svc-page .svc-catalog--preview .svc-catalog__cta a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 639px) {
  .svc-page__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .svc-page .svc-division {
    padding: 1.25rem 1.1rem 1.35rem;
  }

  .svc-page .svc-division__num {
    font-size: 1.65rem;
  }
}
