.services-section {
  background: var(--primary-color-dark);
}

/* Extra spacing between glass effect and CTA button */
.services-cta-row {
  margin-top: var(--space-5);
}
.services-glass .services-list details > summary {
  position: relative;
  padding-bottom: 0.5rem;
  padding-right: 2.2em; /* space for arrow */
}

/* Add right-hand arrow for clickability */
/* Custom icon (img) as arrow */
/* .services-glass .services-list details > summary .service-arrow {
  display: inline-block;
  position: absolute;
  right: 0.2em;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  width: 15px;
  height: 15px;
  transition: transform 0.2s;
  pointer-events: none;
  z-index: 2;
  filter: brightness(1.1) drop-shadow(0 0 2px #005bea44);
} */
 /* Add right-hand arrow for clickability */
/* Custom icon (img) as arrow */
.services-glass .services-list details > summary .service-arrow {
  display: block;
  width: 15px;
  height: 15px;
  transition: transform 0.2s;
  pointer-events: auto;
  transform: rotate(180deg);
  filter: brightness(1.1) drop-shadow(0 0 2px #005bea44);
}
.services-glass .services-list details[open] > summary .service-arrow {
  transform: rotate(0deg);
  filter: brightness(1.2) drop-shadow(0 0 4px #ffb34788);
}
/* .services-glass .services-list details[open] > summary .service-arrow {
  transform: translateY(-50%) rotate(0deg);
  filter: brightness(1.2) drop-shadow(0 0 4px #ffb34788);
} */

/* Add arrow content using HTML or JS: <span class="service-arrow">&#8594;</span> */
/* --- CTA Button: Cleaned & Consolidated --- */
.services-cta {
  margin-top: var(--space-6);
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  max-width: 150px;
  min-width: 130px;
  padding: 0.5rem 1.5rem;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  font-weight: 250;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-align: center;
}

@media (max-width: 768px) {
  .services-cta {
    max-width: 150px;
    min-width: 130px;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .services-cta {
    width: 100%;
    max-width: 120px;
    min-width: 90px;
    margin: 0 auto;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
  }
}


/* Force left alignment for services-header on mobile, after all other styles */
/* @media (max-width: 768px) {
  .services-header {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
} */
/* 
@media (max-width: 900px) {
  #services .services-header {
    text-align: right !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
} */

/* ===== Services overlap (keep as is, just for context) ===== */
#services.services-section {
  /* --lift: clamp(4rem, 12vw, 8rem); */
  /* --lift: clamp(8rem, 15vw, 12rem); */
  /* --overlap: clamp(0.2rem, 1.25vw, 0.8rem); */
  /* --overlap: clamp(0.8rem, 2.5vw, 4rem); */
  /* margin-top: calc(-1 * var(--overlap)); */
  margin-top: 0;
  position: relative;
  /* margin-top: calc(-1 * var(--lift));          */
  /* padding-top: calc(var(--lift) + clamp(.25rem,2vw,1rem)); */
  padding-top: clamp(1rem, 3vw, 2rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
  /* padding-bottom: clamp(2.5rem, 6vw, 4.5rem); */
  scroll-margin-top: calc(var(--navbar-height) + 16px);

  background-image: url('/static/img/services-desktop.jpg');
  background-image: -webkit-image-set(
    url('/static/img/services-desktop.webp') type("image/webp") 1x,
    url('/static/img/services-desktop@2x.webp') type("image/webp") 2x,
    url('/static/img/services-desktop.jpg') type("image/jpeg") 1x,
    url('/static/img/services-desktop@2x.jpg') type("image/jpeg") 2x
  );
  background-image: image-set(
    url('/static/img/services-desktop.webp') type("image/webp") 1x,
    url('/static/img/services-desktop@2x.webp') type("image/webp") 2x,
    url('/static/img/services-desktop.jpg') type("image/jpeg") 1x,
    url('/static/img/services-desktop@2x.jpg') type("image/jpeg") 2x
  );
  background-size: cover;
  background-position: center 28%;
  background-repeat: no-repeat;
  z-index: 0;
  background-color: #0157b3ff;
  background-size: cover;
  /* transform: scale(1.02); */
  margin-bottom: -1px; /* Fixes 1px gap below background on some browsers */
}

@media (max-width: 768px) and (orientation: portrait) {
  #services.services-section {
    background-image: url('/static/img/services-mobile.jpg');
    background-image: -webkit-image-set(
      url('/static/img/services-mobile.webp') type("image/webp") 1x,
      url('/static/img/services-mobile@2x.webp') type("image/webp") 2x,
      url('/static/img/services-mobile.jpg') type("image/jpeg") 1x,
      url('/static/img/services-mobile@2x.jpg') type("image/jpeg") 2x
    );
    background-image: image-set(
      url('/static/img/services-mobile.webp') type("image/webp") 1x,
      url('/static/img/services-mobile@2x.webp') type("image/webp") 2x,
      url('/static/img/services-mobile.jpg') type("image/jpeg") 1x,
      url('/static/img/services-mobile@2x.jpg') type("image/jpeg") 2x
    );
    background-position: center 22%;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  #services.services-section {
    background-image: url('/static/img/services-mobile-landscape.jpg');
    background-image: -webkit-image-set(
      url('/static/img/services-mobile-landscape.webp') type("image/webp") 1x,
      url('/static/img/services-mobile-landscape@2x.webp') type("image/webp") 2x,
      url('/static/img/services-mobile-landscape.jpg') type("image/jpeg") 1x,
      url('/static/img/services-mobile-landscape@2x.jpg') type("image/jpeg") 2x
    );
    background-image: image-set(
      url('/static/img/services-mobile-landscape.webp') type("image/webp") 1x,
      url('/static/img/services-mobile-landscape@2x.webp') type("image/webp") 2x,
      url('/static/img/services-mobile-landscape.jpg') type("image/jpeg") 1x,
      url('/static/img/services-mobile-landscape@2x.jpg') type("image/jpeg") 2x
    );
    background-position: center 30%;
  }
}

@media (min-width: 769px) and (max-width: 1023px) and (orientation: portrait) {
  #services.services-section {
    background-image: url('/static/img/services-tablet-portrait.jpg');
    background-image: -webkit-image-set(
      url('/static/img/services-tablet-portrait.webp') type("image/webp") 1x,
      url('/static/img/services-tablet-portrait@2x.webp') type("image/webp") 2x,
      url('/static/img/services-tablet-portrait.jpg') type("image/jpeg") 1x,
      url('/static/img/services-tablet-portrait@2x.jpg') type("image/jpeg") 2x
    );
    background-image: image-set(
      url('/static/img/services-tablet-portrait.webp') type("image/webp") 1x,
      url('/static/img/services-tablet-portrait@2x.webp') type("image/webp") 2x,
      url('/static/img/services-tablet-portrait.jpg') type("image/jpeg") 1x,
      url('/static/img/services-tablet-portrait@2x.jpg') type("image/jpeg") 2x
    );
    background-position: center 24%;
  }
}

@media (min-width: 769px) and (max-width: 1366px) and (orientation: landscape) {
  #services.services-section {
    background-image: url('/static/img/services-tablet-landscape.jpg');
    background-image: -webkit-image-set(
      url('/static/img/services-tablet-landscape.webp') type("image/webp") 1x,
      url('/static/img/services-tablet-landscape@2x.webp') type("image/webp") 2x,
      url('/static/img/services-tablet-landscape.jpg') type("image/jpeg") 1x,
      url('/static/img/services-tablet-landscape@2x.jpg') type("image/jpeg") 2x
    );
    background-image: image-set(
      url('/static/img/services-tablet-landscape.webp') type("image/webp") 1x,
      url('/static/img/services-tablet-landscape@2x.webp') type("image/webp") 2x,
      url('/static/img/services-tablet-landscape.jpg') type("image/jpeg") 1x,
      url('/static/img/services-tablet-landscape@2x.jpg') type("image/jpeg") 2x
    );
    background-position: center 28%;
  }
}

@supports not (background-image: image-set(url("x") 1x)) {
  @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    #services.services-section {
      background-image: url('/static/img/services-desktop@2x.jpg');
    }
  }

  @media (max-width: 768px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 2),
         (max-width: 768px) and (orientation: portrait) and (min-resolution: 192dpi) {
    #services.services-section {
      background-image: url('/static/img/services-mobile@2x.jpg');
    }
  }

  @media (max-width: 768px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 2),
         (max-width: 768px) and (orientation: landscape) and (min-resolution: 192dpi) {
    #services.services-section {
      background-image: url('/static/img/services-mobile-landscape@2x.jpg');
    }
  }

  @media (min-width: 769px) and (max-width: 1023px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 2),
         (min-width: 769px) and (max-width: 1023px) and (orientation: portrait) and (min-resolution: 192dpi) {
    #services.services-section {
      background-image: url('/static/img/services-tablet-portrait@2x.jpg');
    }
  }

  @media (min-width: 769px) and (max-width: 1366px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 2),
         (min-width: 769px) and (max-width: 1366px) and (orientation: landscape) and (min-resolution: 192dpi) {
    #services.services-section {
      background-image: url('/static/img/services-tablet-landscape@2x.jpg');
    }
  }
}

/* @media (min-width: 769px) {
  #services.services-section {
    min-height: 875px;
  }
} */

/* Section shell */
.services-shell {
  /* --lift: clamp(4rem, 12vw, 8rem); */
  --lift: clamp(0rem, 0vw, 0rem);
  max-width: 1200px;                      
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  position: relative;
  z-index: 1;  /* sit above the background / hero */
}

.services-intro {
  max-width: none;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.services-inner {
  display: block;
}

.services-aside {
  display: none;
}

@media (min-width: 768px) {
  .services-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: stretch;
  }

  .services-row {
    grid-column: 1;
    height: 100%;
  }

  .services-aside {
    display: block;
    grid-column: 2;
    align-self: stretch;
    justify-self: end;
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 767px) and (orientation: landscape) {
  .services-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 1.5rem);
    align-items: stretch;
  }

  .services-row {
    grid-column: 1;
    height: 100%;
  }

  .services-aside {
    display: block;
    grid-column: 2;
    align-self: stretch;
    justify-self: end;
    width: 100%;
    height: 100%;
  }
}

/* Section title */
.services-header {
  display: block;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  color: var(--text-tertiary);
  text-transform: uppercase;
  font-weight: 200;
}

/* Intro: center on mobile, left-align on larger screens */
/* .services-intro {
  margin-inline: auto; */
  /* max-width: 72ch; */
  /* Right-align on desktop */
  /* text-align: center;
  margin-bottom: var(--space-4); */
/* } */

/* Mobile: left-align the intro for visual alignment on small screens */
/* @media (max-width: 768px) {
  .services-intro {
    text-align: left;
    padding-inline: clamp(0.75rem, 6vw, 1rem);
  }
} */

/* @media (min-width: 900px) {
  .services-intro {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
  }
} */

.services-intro p {
  color: var(--neutral-light);
  line-height: 1.6;
  margin: 0;
}

.services-intro p {
  font-size: var(--text-base);
}

.services-intro img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: clamp(0.75rem, 2vw, 1.25rem) auto 0;
}

/* Desktop: make the intro image a little larger and responsive */
/* @media (min-width: 900px) {
  .services-intro img {
    width: clamp(520px, 36vw, 720px);
    max-width: none;
    margin: clamp(0.75rem, 2vw, 1.25rem) auto 0;
  }
} */

.services-intro p.services-lead {
  font-size: var(--text-base);
  color: var(--text-tertiary);
  margin-bottom: 0.9rem;
  text-align: left;
  margin-top: 0;
}

.services-intro > .services-lead:last-child {
  margin-bottom: 0;

}

@media (min-width: 900px) {
  .services-lead {
    max-width: none;
  }
}

/* Mobile: left-align lead text to match mobile header/intro */
@media (max-width: 768px) {
  .services-lead { text-align: left; }
}

/* Make arrow link clickable separately from accordion toggle */
/* .service-arrow-link {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 1em;
  pointer-events: auto;
  z-index: 10;
  position: relative;
} */
 /* Make arrow link clickable separately from accordion toggle */
.service-arrow-link {
  display: inline-flex;
  align-items: center;
  position: absolute;
  right: 0.2em;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  z-index: 10;
}

.service-arrow-link .service-arrow {
  pointer-events: auto;
}

/* Desktop: Normal stacking - Title, Description, Link */
.services-list li .service-title {
  display: block;
  /* font-family: "Raleway", sans-serif; */
  /* font-weight: 300; */
  /* font-size: var(--text-base); */
  font-size: clamp(0.85rem, 1.9vw, 0.9rem);
  color: #ffffff;
  margin-bottom: 0.25rem;
  text-align: left;
  margin-left: 0.5rem;
}

.services-list li .service-description {
  font-size: var(--text-sm);
  line-height: 1.2;
  color: var(--neutral-white);
  /* font-weight: 250; */
  margin: 1rem 0 0 0;
  padding-left: 0 !important;
  text-align: left !important;
  /* max-width: 800px; */
  display: block !important;
  margin-right: 0.5em;
  margin-left: 0 !important;
}

.services-list li .service-link {
  display: inline;
  margin-top: 0;
  margin-left: 0;
  font-size: 0.875rem;
  line-height: 1.2;
  vertical-align: baseline;
  opacity: 0.7;
  color: var(--neutral-white);
  text-decoration: underline;
  /* transition: opacity 0.2s, color 0.2s; */
}

.services-list li .service-link:hover {
  opacity: 1;
  color: var(--primary-color-light, #4da6ff);
  text-decoration: underline;
  transform: none;
}

/* Title and link inline on all screen sizes */
.services-list li .service-title {
  display: inline;
  margin-bottom: 0;
}

.services-list li .service-link {
  display: inline;
  margin-top: 0;
  margin-left: 0.5rem;
}

/* Hide descriptions on mobile only */
/*
@media (max-width: 768px) {
  .services-list li .service-description {
    display: none;
  }
}
*/

/* Mobile: inline title and link */
/*
@media (max-width: 768px) {
  .services-list li .service-title {
    display: inline;
    margin-bottom: 0;
  }
  
  .services-list li .service-link {
    display: inline;
    margin-top: 0;
    margin-left: 0.5rem;
  }
  
  .services-list li .service-description {
    display: none;
  }
}
*/

.services-summary {
  /* font-size: clamp(0.95rem, 2vw, 1.1rem); */
  color: var(--neutral-light);
  margin-top: var(--space-3);
  margin-bottom: var(--space-4);
  line-height: 1.6;
  text-align: left;
  justify-content: justify;
}

/* Tighter vertical spacing for services section */
.services-glass {
  margin-top: 0.1rem !important;
  margin-bottom: 0 !important;
  padding: 0.5rem 0.5rem 0.08rem 0.5rem !important;
}

/* .services-cta {
  margin-top: 0.5rem !important;
  margin-bottom: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
} */

/* .services-row {
} */

/* Glass card */
.services-glass {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* padding: clamp(0.75rem, 2.5vw, 1rem) clamp(1rem, 3vw, 1.5rem); */
  padding: clamp(1.5rem, 2.5vw, 1rem) clamp(1rem, 3vw, 1.5rem);
  color: #f2f2f2;

  /* flex: 0 1 auto;             */
  width: 100%;
  /* max-width: 1000px;            */
}

@media (min-width: 768px) {
  .services-glass {
    height: 100%;
  }
}

.services-row {
  min-width: 0;
}

.services-carousel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.services-carousel-track {
  position: relative;
  aspect-ratio: 5 / 4;
  min-height: 260px;
}

@media (min-width: 768px) {
  .services-carousel-card {
    height: 100%;
  }

  .services-carousel-track {
    flex: 1 1 auto;
    aspect-ratio: auto;
    min-height: 0;
  }
}

.services-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
}

.services-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.services-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.services-slide figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(14, 30, 46, 0.72);
  color: #fff;
  font-size: var(--text-xs);
  line-height: 1.4;
}

.services-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1rem 1rem;
  background: linear-gradient(to bottom, rgba(255,255,255,0.02), rgba(255,255,255,0.08));
}

.services-carousel-dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  transition: background 240ms ease, transform 240ms ease;
}

.services-carousel-dots span.is-active {
  background: #ffffff;
  transform: scale(1.1);
}

@media (min-width: 768px) {
  .services-carousel-card {
    position: sticky;
    top: calc(var(--navbar-height) + 1.5rem);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .services-aside {
    max-width: none;
  }

  .services-carousel-track {
    min-height: 220px;
  }

  .services-slide figcaption {
    font-size: 0.9rem;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.85rem;
  }
}

@media (min-width: 1024px) {
  .services-carousel-track {
    min-height: 280px;
  }
}

.services-cta-row {
  margin-top: clamp(1rem, 2.5vw, 1.75rem);
  display: flex;
  justify-content: center;
  text-align: center;
}

@media (max-width: 767px) {
  .services-shell {
    padding-inline: clamp(1rem, 6vw, 1.5rem);
  }
}

.services-list {
  margin: 0;
  padding-left: 0 !important;
  display: grid;
  gap: 0.02rem;
}

@media (max-width: 768px) {
  .services-cta {
    max-width: 150px;
    min-width: 130px;
    font-size: 0.875rem;  /* Match hero button text size */
  }
}

/* Ensure Services CTA matches Hero button height and sizing */
.services-cta {
  max-width: 150px;
  min-width: 130px;
  padding: 0.5rem 1.5rem; /* same vertical padding as hero buttons */
  /* font-size: clamp(0.85rem, 2vw, 0.95rem); */
  /* font-weight: 250; */
  display: inline-flex;
  align-items: center;   /* Vertically center both children */
  justify-content: center;
}

@media (max-width: 480px) {
  .services-cta {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin-left: auto !important;
    margin-right: auto !important;
    margin: 0;
    max-width: 150px;
    min-width: 130px;
    padding: 0.5rem 1.5rem;
    font-size: clamp(0.85rem, 1.75vw, 0.95rem);
    font-weight: 250; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  @media (max-width: 900px) {
    .services-cta {
      display: flex;
      margin-left: auto !important;
      margin-right: auto !important;
      margin-top: 0.5rem !important;
      margin-bottom: 0 !important;
      max-width: 150px;
      min-width: 130px;
    }
  }

  @media (max-width: 480px) {
    .services-cta {
      max-width: 120px;
      min-width: 90px;
    }
  }
}


/* .services-who-why p {
  color: var(--neutral-light);
  font-size: var(--text-base);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 0;
  text-align: left;

} */

/* Mobile: stack centered */
/* @media (max-width: 768px) {
  .services-who-why {
    padding-inline: clamp(0.75rem, 6vw, 1rem);
  } */
  
  /* .who-block,
  .why-block {
    align-self: stretch;
    text-align: left;
    max-width: none;
  } */
  
  /* .who-block .services-subheader-who {
    border-right: none;
    border-left: 3px solid var(--primary-color);
    padding-right: 0;
    padding-left: 0.75rem;
  } */
  
  /* .services-who-why h3 {
    font-size: var(--text-xl);
  }
  
  .services-who-why p {
    font-size: var(--text-sm);
  }
} */

/* ===== Collapsible client types ===== */


.client-type p {
  margin: 0.25rem 0 0.75rem 1.5rem;
  font-size: var(--text-sm);
  /* color: var(--neutral-light); */
  color: #c8c8c8;
  line-height: 1.5;
}
/* Explicit text alignment for who/why blocks */
.who-block h3,
.who-block > p {
  text-align: left;
}

.why-block h3,
.why-block > p {
  text-align: right;
}

/* Desktop: more left padding on client types */
@media (min-width: 769px) {
  .who-block .client-type {
    padding-left: 3rem;
  }
}

/* Updated client-type layout: bullet | text | arrow */
.client-type summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.client-type summary::-webkit-details-marker {
  display: none;
}

/* Bullet on the left */
/* .client-type summary::before {
  content: '•';
  font-size: 1.2em;
  flex-shrink: 0;
  width: 1rem;
  transform: none;
  margin-right: 0.5rem;
} */

/* Arrow on the right */
.client-type summary::after {
  content: '▾' !important;
  font-size: 2.2em !important;
  color: var(--primary-color-light, #4da6ff) !important;
  margin-left: 0.5em !important;
  width: 1.5em !important;
  text-align: right !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s ease, color 0.2s ease !important;
  transform: none !important;
  display: inline-block !important;
}

.client-type[open] summary::after {
  transform: rotate(180deg) !important;
  color: var(--secondary-color, #4da6ff) !important;
}

/* Left-align the summary text */
.client-type summary {
  justify-content: flex-start;
  gap: 0.5rem;
}

.client-type summary::after {
  margin-left: auto;
}

/* Arrow: down by default, color change when open */
.client-type summary::after {
  content: '▾';
  transform: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.client-type[open] summary::after {
  transform: rotate(180deg);
  color: var(--secondary-color, #4da6ff);
}

/* Arrow starts with brand color */
.client-type summary::after {
  color: var(--primary-color-light, #4da6ff);
}

/* Eliminate any gap at top of services */
#services.services-section {
  margin-top: 0;
  padding-top: 0;
}

/* Restore proper padding */
#services.services-section {
  padding-top: clamp(1rem, 3vw, 2rem);
}

/* Match client-type spacing to services-list */
.client-type {
  margin-bottom: 0.4rem;
}

.client-type summary {
  padding: 0.2rem 0;
}

.client-type p {
  margin: 0.2rem 0 0.4rem 1.5rem;
}

.services-list,
.services-list ul,
.services-list ol {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

/* Ensure services-list spacing isn't overridden */
/* Add spacing below glass list for DTA button separation */
.services-glass .services-list {
  gap: 0.12rem;
  margin-bottom: var(--space-2);
}

.services-glass .services-list li {
  margin: 0;
  padding: 0.15rem 0;
}

.services-glass .services-list details {
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
}

.services-glass .services-list details:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.services-glass .services-list details > summary {
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 400;
  color: var(--neutral-cream);
  padding: 0.4rem 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  outline: none;
  transition: color 0.2s;
}

.services-glass .services-list details > summary::-webkit-details-marker {
  display: none;
}


/* Remove arrow, add colored line under each service */
.services-glass .services-list details > summary::before {
  content: '';
  display: none;
}

.services-glass .services-list details > summary {
  position: relative;
  padding-bottom: 0.5rem;
}

.services-glass .services-list details > summary::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, #b3e6ff 0%, #00c6fb 50%,  #005bea 100%);
  border-radius: 2px;
  opacity: 0.8;
  transition: background 0.3s, opacity 0.2s;
  z-index: 1;
}

.services-glass .services-list details[open] > summary::after {
  /* background: linear-gradient(90deg, #005bea 0%, #00c6fb 50%, #b3e6ff 100%);; */
  background: linear-gradient(90deg, #b3e6ff 0%, #00c6fb 75%,  #005bea 100%);
  opacity: 1;
}


/* Remove open-state arrow styling */


.services-glass .services-list details > summary:hover {
  color: var(--secondary-color, #4da6ff);
  /* Optionally, increase line opacity on hover */
}

.services-glass .services-list .service-title {
  display: inline;
  font-weight: 300;
  font-size: var(--text-base);
  color: #fff;
  margin-bottom: 0;
}

.services-glass .services-list .service-description {
  display: block;
  margin: 0.25rem 0 0 0;
  padding-left: 0;
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #fff;
  font-weight: 250;
}

.services-glass .services-list .service-link {
  display: inline;
  margin: 0 0 0 0.5rem;
  font-size: 0.875rem;
  line-height: 1.2;
  color: var(--neutral-white);
  text-decoration: underline;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}

.services-glass .services-list .service-link:hover {
  opacity: 1;
  color: var(--primary-color-light, #4da6ff);
}

@media (max-width: 768px) {
  .services-glass .services-list .service-description {
    display: none;
  }
  .services-glass .services-list .service-title,
  .services-glass .services-list .service-link {
    display: inline;
    margin-bottom: 0;
    margin-top: 0;
    font-size: 0.95rem; /*fallback for older devices*/
    font-size: clamp(0.95rem, 2.2vw, 1.1rem); /* modern browsers */
  }
}
/* Service title link styling */
.service-title-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.service-title-link:hover {
  color: var(--primary-color-light, #4da6ff);
}

.service-title-link:hover .service-title {
  color: var(--primary-color-light, #4da6ff);
}

/* Service arrow hover effect - swap to secondary icon */
.service-arrow-link:hover .service-arrow,
.service-title-link:hover + .service-arrow-link .service-arrow,
.services-glass .services-list details > summary:hover .service-arrow {
  content: url("/static/icons/icon-arrow-secondary.png");
  transform: rotate(0deg);
}
