/* ==========================================================================
   Section 04 — Our Services (Elementor id d1f3556)
   Click-driven 10-tab widget. No scroll trigger, no entrance animation:
   the tab state is toggled by src/js/main.js (class .is-active + [hidden]).
   Desktop 1440x1051 / tablet 768x1110 / mobile 390x791. Background white.

   Widget shell: 1140 wide, padding 40, radius 12,
   background linear-gradient(135deg, #000 50%, #1f1f1f 100%).
   Inner rail 250px, panel 810px, rail row height 62px, rail total 620px.
   ========================================================================== */

.s-services {
  padding: 50px 0;
  background: var(--c-white);
  font-family: var(--f-body);
  font-size: var(--t-body-15);
  font-weight: 300;
  line-height: 1.5em;
  color: var(--c-text);
}

/* ---- Head: eyebrow, title, lead ------------------------------------------ */

.s-services .sv-head {
  text-align: center;
}

.s-services .sv-eyebrow {
  margin: 0 0 20px;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5em;
  color: var(--c-green);
}

.s-services .sv-title {
  margin: 0 0 14px;
  font-family: var(--f-body);
  font-size: var(--t-h1);
  font-weight: 300;
  line-height: 1.2em;
  letter-spacing: -0.5px;
  color: var(--c-black);
}

.s-services .sv-lead {
  max-width: 1140px;
  margin: 0 auto;
  font-family: var(--f-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--c-slate);
}

/* ---- Widget shell --------------------------------------------------------- */

.s-services .sv-widget {
  margin-top: 20px;
  padding: 40px;
  border-radius: 12px;
  background-image: linear-gradient(135deg, var(--c-black) 50%, #1f1f1f 100%);
}

.s-services .services__tabs {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  min-height: 1px;
}

/* ---- Tab rail ------------------------------------------------------------- */

.s-services .services__rail {
  flex: 0 0 250px;
  width: 250px;
  align-self: flex-start;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.s-services .services__rail > li {
  display: flex;
  width: 100%;
}

.s-services .sv-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 62px;
  padding: 4px 8px 4px 4px;
  border-radius: 7px;
  background-color: transparent;
  color: var(--c-white);
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25em;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--dur) ease-out, color var(--dur) ease-out;
}

.s-services .sv-tab:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.s-services .sv-tab.is-active {
  background-color: var(--c-text-grey);
  color: var(--c-white);
}

.s-services .sv-tab-icon {
  flex: 0 0 34px;
  display: block;
  width: 34px;
  height: 34px;
}

.s-services .sv-tab-icon svg {
  width: 34px;
  height: 34px;
  display: block;
}

.s-services .sv-tab-icon .ic-bg {
  fill: var(--c-black);
  stroke: #d3ab5e;
  stroke-width: 1.4;
}

.s-services .sv-tab-icon .ic-l {
  fill: none;
  stroke: var(--c-white);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.s-services .sv-tab-icon .ic-a {
  fill: none;
  stroke: var(--c-green-light);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.s-services .sv-tab-icon .ic-f {
  fill: var(--c-green-light);
  stroke: none;
}

.s-services .sv-tab-label {
  display: block;
}

/* the "+" affordance only exists in the mobile accordion arrangement */
.s-services .sv-tab::after {
  content: none;
}

/* ---- Panels --------------------------------------------------------------- */

.s-services .services__panel {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  padding: 10px 30px;
  color: var(--c-white);
  text-align: left;
}

.s-services .services__panel[hidden] {
  display: none;
}

.s-services .sv-panel-top {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px 40px;
  align-items: start;
}

/* The kicker <h2> is present on the target for structure but is not painted:
   the panel opens on the <h3>. Keep it for semantics, hide it visually. */
.s-services .sv-panel-kicker {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.s-services .sv-panel-title {
  margin: 0;
  font-family: var(--f-display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15em;
  letter-spacing: -0.4px;
  color: var(--c-white);
  overflow-wrap: break-word;
}

.s-services .sv-panel-text {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55em;
  color: var(--c-white);
}

.s-services .sv-panel-result {
  margin: 18px 0 0;
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5em;
  color: var(--c-white);
}

/* ---- Panel media + overlaid CTA ------------------------------------------- */

.s-services .sv-panel-media {
  position: relative;
  width: 100%;
  max-width: 730px;
  margin: 30px 0 0;
}

.s-services .sv-panel-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 730 / 365;
  object-fit: cover;
  border-radius: 10px;
}

.s-services .sv-panel-cta {
  position: absolute;
  right: 20px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background-color: var(--c-black);
  color: var(--c-white);
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.s-services .sv-panel-cta:hover,
.s-services .sv-panel-cta:focus-visible {
  background-color: var(--c-green);
  color: var(--c-white);
}

.s-services .sv-cta-arrow {
  width: 20px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Tablet 768 to 1024 ---------------------------------------------------- */

@media (min-width: 768px) and (max-width: 1024px) {
  .s-services .sv-title {
    font-size: 50px;
    line-height: 1.25em;
  }

  .s-services .sv-lead {
    font-size: 15px;
    line-height: 22px;
  }

  .s-services .sv-widget {
    padding: 30px 24px;
  }

  .s-services .services__rail {
    flex: 0 0 250px;
    width: 250px;
  }

  .s-services .services__panel {
    padding: 10px 0 10px 24px;
  }

  .s-services .sv-panel-top {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 16px 32px;
  }

  /* The target lets the panel title break mid-word in this narrow column. */
  .s-services .sv-panel-title {
    font-size: 30px;
    word-break: break-word;
  }

  .s-services .sv-panel-cta {
    padding: 12px 20px;
    font-size: 12px;
  }
}

/* ---- Mobile <= 767 --------------------------------------------------------
   The target swaps the two-column widget for a stacked, full-width accordion:
   every service is a full-width row with its icon, its label and a "+" on the
   right. The active panel renders underneath the list. */

@media (max-width: 767px) {
  .s-services {
    padding: 40px 0;
  }

  .s-services .sv-title {
    font-size: 32px;
    line-height: 1.25em;
  }

  .s-services .sv-lead {
    font-size: 15px;
    line-height: 22px;
  }

  .s-services .sv-widget {
    margin-top: 24px;
    padding: 10px 16px;
    border-radius: 8px;
    background-image: linear-gradient(var(--c-black) 80%, var(--c-text-grey) 100%);
  }

  .s-services .services__tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .s-services .services__rail {
    position: static;
    flex: 0 0 auto;
    width: 100%;
  }

  .s-services .services__rail > li + li .sv-tab {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .s-services .sv-tab {
    position: relative;
    min-height: 47px;
    padding: 10px 34px 10px 0;
    border-radius: 0;
    font-size: 14px;
    font-weight: 700;
  }

  .s-services .sv-tab:hover,
  .s-services .sv-tab.is-active {
    background-color: transparent;
  }

  .s-services .sv-tab-icon,
  .s-services .sv-tab-icon svg {
    width: 28px;
    height: 28px;
  }

  .s-services .sv-tab-icon {
    flex: 0 0 28px;
  }

  .s-services .sv-tab::after {
    content: "";
    position: absolute;
    right: 4px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    background:
      linear-gradient(var(--c-white), var(--c-white)) center / 14px 2px no-repeat,
      linear-gradient(var(--c-white), var(--c-white)) center / 2px 14px no-repeat;
    transition: transform var(--dur) var(--ease);
  }

  .s-services .sv-tab.is-active::after {
    transform: rotate(45deg);
  }

  .s-services .services__panel {
    padding: 18px 0 22px;
  }

  .s-services .sv-panel-top {
    display: block;
  }

  .s-services .sv-panel-title {
    font-size: 24px;
  }

  .s-services .sv-panel-copy {
    margin-top: 14px;
  }

  .s-services .sv-panel-text,
  .s-services .sv-panel-result {
    font-size: 14px;
  }

  .s-services .sv-panel-media {
    margin-top: 20px;
  }

  .s-services .sv-panel-cta {
    right: 12px;
    bottom: 12px;
    padding: 10px 16px;
    font-size: 11px;
    letter-spacing: 0.4px;
  }

  .s-services .sv-cta-arrow {
    width: 16px;
  }
}
