/* ==========================================================================
   Our Services (home page section) — nine vertical strips, hover to open one
   ========================================================================== */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* page: title row on top, strips fill the rest of the screen */
.st-page {
  position: relative;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  padding-top: var(--nav-height);
}
.st-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 3.2vh, 40px) var(--container-pad) clamp(18px, 2.6vh, 30px);
}
/* section label — same style as the About us label */
.st-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--maroon);
}
.st-title::after { content: ''; width: 40px; height: 1px; background: var(--maroon); }
.st-count {
  margin-left: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  vertical-align: top;
  position: relative;
  top: 0.35em;
  color: var(--maroon);
}
.st-hint {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-400);
}

.st {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
  background: var(--white);
}

.st-item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid var(--white);
  cursor: pointer;
  transition: flex-grow 0.8s cubic-bezier(0.65, 0, 0.2, 1);
  outline: none;
}
.st-item:last-child { border-right: 0; }

.st-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.6) brightness(0.97);   /* muted colour (was black-and-white) */
  transform: scale(1.08);
  transition: filter 0.8s ease, transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* pale veil on closed strips, dark gradient under the text on the open one */
.st-item::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;   /* pale veil removed with the colour photos */
  transition: opacity 0.6s ease;
}
.st-item::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(10, 8, 8, 0.85) 0, rgba(10, 8, 8, 0.25) 50%, transparent 72%);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.st-num {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 26px;
  transform: translateX(-50%);
  padding: 5px 7px;
  background: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--maroon);
  transition: opacity 0.4s ease;
}
.st-name {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  padding: 14px 7px;
  background: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink, #141213);
  transition: opacity 0.4s ease;
}

.st-info {
  position: absolute;
  z-index: 3;
  left: clamp(24px, 3vw, 44px);
  bottom: clamp(24px, 4vh, 44px);
  width: min(520px, 38vw);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.st-info__num {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  opacity: 0.8;
}
.st-info__name {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.st-info__text {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
}
.st-info .btn--solid:hover { background: var(--maroon-bright); }

/* ---- open strip ---- */
.st-item.is-open { flex-grow: 6.2; cursor: default; }
.st-item.is-open img { filter: none; transform: scale(1); }
.st-item.is-open::before { opacity: 0; }
.st-item.is-open::after { opacity: 1; }
.st-item.is-open .st-num,
.st-item.is-open .st-name { opacity: 0; }
.st-item.is-open .st-info {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease 0.35s, visibility 0s;
}
.st-item:not(.is-open):hover img { filter: saturate(1) brightness(1); }

/* ---- phone / tablet: stacked bands, tap to open ---- */
@media (max-width: 860px) {
  .st-page { height: auto; display: block; }
  .st-hint { display: none; }
  .st {
    overflow: visible;
    flex-direction: column;
  }
  .st-item {
    flex: none;
    height: 76px;
    border-right: 0;
    border-bottom: 1px solid var(--white);
    transition: height 0.7s cubic-bezier(0.65, 0, 0.2, 1);
  }
  .st-item.is-open { height: min(78vh, 620px); }
  .st-num { left: 20px; top: 50%; transform: translateY(-50%); }
  .st-name {
    left: 70px; bottom: auto; top: 50%;
    transform: translateY(-50%);
    writing-mode: horizontal-tb;
    padding: 7px 10px;
    font-size: 12px;
    white-space: normal;
    max-width: calc(100% - 90px);
  }
  .st-info { width: auto; right: 24px; }
  .st-info__text { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .st-item, .st-item img, .st-info { transition: none; }
}

/* ---- spacing: same system as About us (desktop) ---- */
@media (min-width: 861px) {
  .st-page {
    height: auto;
    display: block;
    padding: var(--section-top) 0 var(--section-bottom);
  }
  .st-head {
    max-width: var(--page-max);
    margin: 0 auto var(--label-gap);
    padding: 0 var(--container-pad);
  }
  .st {
    max-width: calc(var(--page-max) - 2 * var(--container-pad));
    width: calc(100% - 2 * var(--container-pad));
    margin: 0 auto;
    height: clamp(440px, 68vh, 680px);
    gap: var(--media-gap);
  }
  .st-item { border-right: 0; }
  .st-info { width: auto; right: clamp(24px, 3vw, 44px); max-width: 520px; }
}

/* ---- autoplay timer + clearer hint ---- */
.st-timer { position: absolute; z-index: 4; left: 0; bottom: 0; height: 3px; width: 0; background: var(--maroon); pointer-events: none; }
.st-item.is-open .st-timer.run { animation: st-timer 5s linear forwards; }
@keyframes st-timer { from { width: 0; } to { width: 100%; } }
@media (min-width: 861px) {
  .st-hint { color: var(--ink, #141213); display: flex; align-items: center; gap: 10px; }
  .st-hint::before { content: ''; width: 18px; height: 1px; background: var(--maroon); }
}

/* buttons in the open card: Get a quote + Learn more (link to the service page) */
.st-info__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.st-more { border: 1px solid rgba(255,255,255,0.6); color: var(--white); background: transparent; }
.st-more:hover { background: var(--white); color: var(--black); border-color: var(--white); }
