/* ==========================================================================
   SB THEME — SERVICES PAGE ONLY
   ==========================================================================
   All selectors require .services-page as the outer page wrapper.
   This guarantees:
   - Only SB theme is affected (this file is only loaded for themeType === 'sb')
   - Only the Services page is affected (only services.component.html has .services-page)
   - Home page, other SB pages, and all other themes are completely unaffected.
   ========================================================================== */

/* -----------------------------------------------------------------------
   BASE: Page-level width and section spacing
   ----------------------------------------------------------------------- */

.services-page {
  --sb-svc-max-width: 1440px;
  --sb-svc-section-gap: 88px;
}

.services-page .aboutus-page-main-container {
  max-width: var(--sb-svc-max-width);
  padding: 0 clamp(28px, 4vw, 56px);
  margin: 0 auto;
}

/* Section spacing: add gap between sibling dynamic sections */
.services-page .dynamic-section-host + .dynamic-section-host {
  margin-top: var(--sb-svc-section-gap);
}

/* -----------------------------------------------------------------------
   1. WEBSITE & ONLINE PRESENCE — Item Cards (layout="cards")
   ----------------------------------------------------------------------- */

.services-page .item-cards {
  padding: clamp(72px, 8vw, 110px) 0;
  background-color: var(--background-color, #F5F3E7);
}

.services-page .item-cards-inner {
  max-width: var(--sb-svc-max-width);
  margin: 0 auto;
}

.services-page .item-cards-header {
  max-width: 860px;
  margin-bottom: 60px;
}

.services-page .item-cards-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dark-background-color, #4C6A56);
  margin: 0 0 16px;
  line-height: 1.3;
}

.services-page .item-cards-header > h2 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-color, #2F2F2F);
  margin: 0 0 22px;
  letter-spacing: -0.025em;
}

.services-page .item-cards-copy {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-color, #2F2F2F);
  max-width: 700px;
  opacity: 0.82;
}

/* 4-column grid on desktop */
.services-page .item-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  min-width: 0;
}

/* Individual card — premium styling with more breathing room */
.services-page .item-card {
  background-color: #ffffff;
  border: 1px solid rgba(36, 57, 69, 0.08);
  border-radius: 16px;
  padding: 40px 32px 32px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  box-shadow: 0 6px 20px rgba(36, 57, 69, 0.06);
}

.services-page .item-card:hover {
  transform: translateY(-3px);
  border-color: rgba(36, 57, 69, 0.15);
  box-shadow: 0 12px 30px rgba(36, 57, 69, 0.1);
}

/* Top accent line */
.services-page .item-card:not(.item-card-with-media)::before {
  width: 28px;
  height: 2px;
  background-color: var(--accent-color, #F0C987);
  margin-bottom: 24px;
  border-radius: 1px;
}

.services-page .item-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.services-page .item-card-icon {
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background-color: color-mix(in srgb, var(--dark-background-color) 8%, white);
  color: var(--dark-background-color, #4C6A56);
  font-size: 20px;
  margin-bottom: 20px;
}

.services-page .item-card h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.28;
  color: var(--text-color, #2F2F2F);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.services-page .item-card .item-card-intro {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-color, #2F2F2F);
  opacity: 0.78;
  margin: 0 0 14px;
}

/* Feature list */
.services-page .item-card .item-card-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.services-page .item-cards .item-card .item-card-features li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  column-gap: 8px;
  align-items: start;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-color, #2F2F2F);
  opacity: 0.75;
}

.services-page .item-cards .item-card .item-card-features li::before {
  content: '✓';
  position: static;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  color: #F0C987;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  transform: none;
}

.services-page .item-card-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 20px;
  color: var(--button-color, var(--dark-background-color));
  text-decoration-color: color-mix(in srgb, var(--button-color, var(--dark-background-color)) 40%, transparent);
  font-size: 14px;
  font-weight: 600;
}

.services-page .item-card-link:hover {
  text-decoration-color: currentColor;
}

/* Media card (with image) — controlled aspect ratio */
.services-page .item-card-with-media .item-card-body {
  padding: 30px 32px 32px;
}

.services-page .item-card-media {
  aspect-ratio: 16 / 10;
  background-color: color-mix(in srgb, var(--primary-color) 12%, white);
}

.services-page .item-card-image {
  min-height: 0;
  max-height: none;
}

/* Callout */
.services-page .item-cards-callout {
  margin-top: 56px;
  padding: 34px 38px;
  background-color: rgba(36, 57, 69, 0.03);
  border: 1px solid rgba(36, 57, 69, 0.10);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.services-page .item-cards-callout .item-cards-eyebrow {
  margin-bottom: 4px;
}

.services-page .item-cards-callout h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: var(--text-color, #2F2F2F);
}

.services-page .item-cards-callout-copy {
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  color: var(--text-color, #2F2F2F);
  opacity: 0.78;
}

.services-page .item-cards-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-background-color, #4C6A56);
  text-decoration: none;
  border-bottom: 1px solid rgba(36, 57, 69, 0.25);
  padding-bottom: 1px;
  transition: border-color 0.2s ease;
}

.services-page .item-cards-link:hover {
  border-color: var(--dark-background-color, #4C6A56);
}

/* -----------------------------------------------------------------------
   2. PHOTOGRAPHY & VIDEO — Left Text (SB themeType)
   -----------------------------------------------------------------------
   DOM structure:
     <section class="content-container">
       <div class="content-area">
         <div class="row">
           <div class="text-container" [style.padding.px]="contentPadding">
             <h2>...</h2>
             <h3>...</h3>
             <div class="separator2"></div>
             <p class="center-text-description">...</p>
           </div>
           <div class="left-image-container">
             <img src="..." alt="..." />
           </div>
         </div>
       </div>
     </section>
   ----------------------------------------------------------------------- */

.services-page .content-container {
  padding: clamp(72px, 8vw, 110px) 0;
}

.services-page .content-container .row {
  display: flex;
  flex-wrap: nowrap;
  gap: 52px;
  align-items: stretch;
}

/* Left Text (Photography): text on left, image on right */
.services-page .content-container .text-container {
  flex: 1 1 50%;
  min-width: 0;
  padding: 0 !important;
}

.services-page .content-container .left-image-container {
  flex: 1 1 50%;
  min-width: 0;
}

/* Image: controlled aspect ratio, not full-height dominant */
.services-page .content-container .left-image-container img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  max-height: 520px;
}

/* Text content styling */
.services-page .content-container .text-container h2 {
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--text-color, #2F2F2F);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.services-page .content-container .text-container h3 {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-color, #2F2F2F);
  opacity: 0.8;
  margin: 0 0 18px;
}

.services-page .content-container .separator2 {
  height: 2px;
  width: 50px;
  margin: 0 0 26px;
  background: var(--accent-color, #F0C987);
}

.services-page .content-container .center-text-description {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-color, #2F2F2F);
  opacity: 0.85;
  max-width: 620px;
  margin: 0 0 0;
  padding: 0 !important;
}

/* -----------------------------------------------------------------------
   3. LOCAL SEARCH — Right Text (SB themeType)
   -----------------------------------------------------------------------
   DOM structure (same as Left Text, but image is first in DOM):
     <section class="content-container reverse-on-mobile">
       <div class="content-area">
         <div class="row">
           <div class="left-image-container">
             <img src="..." alt="..." />
           </div>
           <div class="text-container" [style.padding.px]="contentPadding">
             <h2>...</h2>
             <h3>...</h3>
             <div class="separator2"></div>
             <p class="center-text-description">...</p>
           </div>
         </div>
       </div>
     </section>
   ----------------------------------------------------------------------- */

/* Right Text: image on left, text on right (same 2-col treatment) */
.services-page .content-container.reverse-on-mobile .row {
  display: flex;
  gap: 52px;
  align-items: stretch;
}

.services-page .content-container.reverse-on-mobile .left-image-container {
  flex: 1 1 50%;
  min-width: 0;
}

.services-page .content-container.reverse-on-mobile .left-image-container img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  max-height: 520px;
}

.services-page .content-container.reverse-on-mobile .text-container {
  flex: 1 1 50%;
  min-width: 0;
  padding: 0 !important;
}

.services-page .content-container.reverse-on-mobile .text-container h2 {
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--text-color, #2F2F2F);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.services-page .content-container.reverse-on-mobile .text-container h3 {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-color, #2F2F2F);
  opacity: 0.8;
  margin: 0 0 18px;
}

.services-page .content-container.reverse-on-mobile .separator2 {
  height: 2px;
  width: 50px;
  margin: 0 0 26px;
  background: var(--accent-color, #F0C987);
}

.services-page .content-container.reverse-on-mobile .center-text-description {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-color, #2F2F2F);
  opacity: 0.85;
  max-width: 620px;
  margin: 0 0 0;
  padding: 0 !important;
}

/* -----------------------------------------------------------------------
   4. BRANDING & MARKETING — Item Cards (layout="cards")
   ----------------------------------------------------------------------- */
   /* Already handled by the general .services-page .item-cards rules above.
      Branding typically has 3 cards — they fill 3 of 4 columns.
      If branding uses settings.columns=3, it gets 3 columns.
   ----------------------------------------------------------------------- */

/* -----------------------------------------------------------------------
   5. COMMUNICATION & SUPPORT — Item Cards (AFHJobs community card)
   ----------------------------------------------------------------------- */

/* AFHJobs card: make it span full width as a community callout */
.services-page .item-cards-grid .item-card:last-child {
  grid-column: 1 / -1;
}

.services-page .item-cards-grid .item-card:last-child .item-card-body {
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

.services-page .item-cards-grid .item-card:last-child h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

/* -----------------------------------------------------------------------
   6. PROCESS — Item Steps (layout="steps")
   ----------------------------------------------------------------------- */

.services-page .item-steps {
  padding: clamp(72px, 8vw, 110px) 0;
  background-color: var(--background-color, #F5F3E7);
}

.services-page .item-steps-inner {
  max-width: var(--sb-svc-max-width);
  margin: 0 auto;
}

.services-page .item-steps-header {
  max-width: 800px;
  margin-bottom: 64px;
}

.services-page .item-steps-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dark-background-color, #4C6A56);
  margin: 0 0 16px;
  line-height: 1.3;
}

.services-page .item-steps-header > h2 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-color, #2F2F2F);
  margin: 0 0 22px;
  letter-spacing: -0.025em;
}

.services-page .item-steps-copy {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-color, #2F2F2F);
  max-width: 660px;
  opacity: 0.82;
}

/* 4-column step grid */
.services-page .item-steps-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Individual step */
.services-page .item-step {
  position: relative;
  padding: 40px 36px 36px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

/* Horizontal connector between steps (desktop) */
.services-page .item-steps .item-step::before {
  content: none;
}

.services-page .item-step:not(:last-child)::after {
  content: '';
  position: absolute;
  z-index: 0;
  top: 76px;
  left: 72px;
  width: 100%;
  height: 1px;
  background-color: rgba(36, 57, 69, 0.12);
  pointer-events: none;
}

/* Step marker: larger, more prominent */
.services-page .item-steps .item-step-marker {
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  max-width: 72px;
  max-height: 72px;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  flex: 0 0 72px;
  flex-shrink: 0;
  place-items: center;
  border: 2.5px solid var(--dark-background-color, #4C6A56);
  border-radius: 50%;
  background: var(--background-color, #ffffff);
  color: var(--dark-background-color, #4C6A56);
  box-shadow: 0 0 0 7px var(--background-color, #F5F3E7);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Step content */
.services-page .item-steps .item-step-content {
  min-width: 0;
  padding-top: 28px;
}

.services-page .item-step-content h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.28;
  color: var(--text-color, #2F2F2F);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.services-page .item-step-intro {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-color, #2F2F2F);
  opacity: 0.8;
  margin: 0 0 16px;
}

/* Step features */
.services-page .item-steps .item-step-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.services-page .item-steps .item-step .item-step-features li {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  column-gap: 9px;
  align-items: start;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-color, #2F2F2F);
  opacity: 0.75;
}

.services-page .item-steps .item-step .item-step-features li::before {
  content: '';
  position: static;
  width: 7px;
  height: 7px;
  margin-top: 0.48em;
  border: 0;
  border-radius: 50%;
  background-color: #2575a9;
  transform: none;
}

/* Step link */
.services-page .item-step-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-background-color, #4C6A56);
  text-decoration: none;
  border-bottom: 1px solid rgba(36, 57, 69, 0.25);
  padding-bottom: 1px;
  margin-top: auto;
  padding-top: 18px;
  transition: border-color 0.2s ease;
}

.services-page .item-step-link:hover {
  border-color: var(--dark-background-color, #4C6A56);
}

/* -----------------------------------------------------------------------
   7. FINAL CTA — Call to Action
   -----------------------------------------------------------------------
   The CTA component renders TWO layouts:
   
   FLAT (no image):
     <div class="cta-split-container flat-style">
       <div class="left-pane">
         <div class="cta-inner">
           <h2>{{ title }}</h2>
           <h3>{{ subTitle }}</h3>
           <p>{{ content }}</p>
           <button class="cta-btn">{{ buttonText }}</button>
         </div>
       </div>
     </div>
   
   SPLIT (with image):
     <div class="cta-split-container with-image">
       <div class="left-pane">
         <div class="cta-inner">
           <h2>{{ title }}</h2>
           <h3>{{ subTitle }}</h3>
           <p>{{ content }}</p>
           <button class="cta-btn">{{ buttonText }}</button>
         </div>
       </div>
       <div class="right-pane" [style.background-image]="'url(' + sectionImageUrl + ')'"></div>
     </div>
   ----------------------------------------------------------------------- */

/* FLAT CTA: full-width dark background, centered */
.services-page .cta-split-container.flat-style {
  padding: clamp(76px, 10vw, 120px) clamp(44px, 6vw, 72px);
  border-radius: 24px;
  background-color: var(--dark-background-color, #4C6A56);
  color: var(--primary-color, #fffaf2);
  text-align: center;
  margin-top: 0;
}

.services-page .cta-split-container.flat-style .left-pane {
  padding: 0;
  border-radius: 0;
  width: 100%;
  background-color: transparent;
  align-items: center;
}

.services-page .cta-split-container.flat-style .cta-inner {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
  align-items: center;
}

.services-page .cta-split-container.flat-style .cta-inner h2 {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--primary-color, #fffaf2);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.services-page .cta-split-container.flat-style .cta-inner h3 {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--primary-color, #fffaf2);
  opacity: 0.85;
  margin: 0 0 18px;
}

.services-page .cta-split-container.flat-style .cta-inner p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--primary-color, #fffaf2);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* CTA button: prominent, clear hover */
.services-page .cta-btn {
  margin-top: 26px;
  padding: 16px 38px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  border: 2px solid var(--primary-color, #fffaf2);
  background-color: transparent;
  color: var(--cta-btn-color, var(--primary-color, #fffaf2));
  transition: all 0.3s ease;
}

.services-page .cta-btn:hover {
  background-color: var(--primary-color, #fffaf2);
  color: var(--dark-background-color, #4C6A56);
}

.services-page .cta-btn:focus-visible {
  outline: 3px solid var(--accent-color, #F0C987);
  outline-offset: 3px;
}

/* Hide right pane (image) for flat-style CTA on services page */
.services-page .cta-split-container.flat-style .right-pane {
  display: none !important;
}

/* SPLIT CTA (with image): styled for services page */
.services-page .cta-split-container.with-image {
  border-radius: 24px;
  overflow: hidden;
  min-height: 520px;
}

.services-page .cta-split-container.with-image .left-pane {
  padding: clamp(56px, 8vw, 80px) clamp(40px, 5vw, 56px);
  background-color: var(--dark-background-color, #4C6A56);
  color: var(--primary-color, #fffaf2);
  align-items: flex-start;
}

.services-page .cta-split-container.with-image .cta-inner {
  max-width: 560px;
}

.services-page .cta-split-container.with-image .cta-inner h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--primary-color, #fffaf2);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.services-page .cta-split-container.with-image .cta-inner h3 {
  font-size: clamp(17px, 2.5vw, 22px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--primary-color, #fffaf2);
  opacity: 0.85;
  margin: 0 0 14px;
}

.services-page .cta-split-container.with-image .cta-inner p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--primary-color, #fffaf2);
  opacity: 0.8;
  margin: 0 0 24px;
}

.services-page .cta-split-container.with-image .right-pane {
  min-height: 520px;
  background-size: cover;
  background-position: center;
}

/* -----------------------------------------------------------------------
   RESPONSIVE — TABLET (768px–899px)
   ----------------------------------------------------------------------- */

/* Keep the SB Services split sections two-column until the mobile breakpoint.
   The component stylesheet sets flex-direction: column !important at 980px. */
@media (min-width: 768px) and (max-width: 980px) {
  .services-page app-left-text .content-container .content-area .row,
  .services-page app-right-text .content-container.reverse-on-mobile .content-area .row {
    flex-direction: row !important;
  }
}

@media (max-width: 900px) {
  .services-page .item-step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 899px) {
  .services-page {
    --sb-svc-section-gap: 60px;
  }

  .services-page .aboutus-page-main-container {
    padding: 0 clamp(20px, 4vw, 40px);
  }

  /* Cards: 2 columns */
  .services-page .item-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  /* AFHJobs: still full width */
  .services-page .item-cards-grid .item-card:last-child {
    grid-column: 1 / -1;
  }

  /* Steps: 2 columns */
  .services-page .item-steps-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 56px;
  }

  /* Hide horizontal connectors on tablet */
  /* Content sections: still 2-col if fits, but reduce gap */
  .services-page .content-container .row,
  .services-page .content-container.reverse-on-mobile .row {
    gap: 36px;
  }

  .services-page .content-container .text-container,
  .services-page .content-container .left-image-container,
  .services-page .content-container.reverse-on-mobile .text-container,
  .services-page .content-container.reverse-on-mobile .left-image-container {
    flex: 1 1 50%;
  }

  /* Image: reduce max-height for tablet */
  .services-page .content-container .left-image-container img,
  .services-page .content-container.reverse-on-mobile .left-image-container img {
    max-height: 420px;
    aspect-ratio: 4 / 3;
  }

  /* Header margins */
  .services-page .item-cards-header,
  .services-page .item-steps-header {
    margin-bottom: 48px;
  }

  /* Card padding */
  .services-page .item-card {
    padding: 32px 26px 26px;
  }

  .services-page .item-card h3 {
    font-size: 18px;
  }

  /* Step padding */
  .services-page .item-step {
    padding: 32px 28px 28px;
  }

  .services-page .item-steps .item-step-marker {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    max-width: 60px;
    max-height: 60px;
    flex-basis: 60px;
    font-size: 20px;
  }

  .services-page .item-step-content h3 {
    font-size: 18px;
  }

  /* CTA */
  .services-page .cta-split-container.flat-style {
    padding: clamp(56px, 10vw, 80px) clamp(28px, 5vw, 44px);
  }

  .services-page .cta-split-container.flat-style .cta-inner h2 {
    font-size: 26px;
  }

  .services-page .cta-btn {
    padding: 14px 30px;
    font-size: 16px;
  }
}

/* -----------------------------------------------------------------------
   RESPONSIVE — MOBILE (up to 768px)
   ----------------------------------------------------------------------- */

@media (max-width: 768px) {
  .services-page {
    --sb-svc-section-gap: 48px;
  }

  .services-page .aboutus-page-main-container {
    padding: 0 18px;
  }

  /* Cards: 1 column */
  .services-page .item-cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .services-page .item-card {
    padding: 28px 24px 24px;
  }

  .services-page .item-card::before {
    width: 22px;
    margin-bottom: 18px;
  }

  .services-page .item-card h3 {
    font-size: 18px;
  }

  .services-page .item-card-icon {
    width: 40px;
    height: 40px;
    font-size: 17px;
    margin-bottom: 16px;
  }

  .services-page .item-card-intro {
    font-size: 14px;
  }

  /* Steps: 1 column, vertical sequence */
  .services-page .item-steps-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .services-page .item-step {
    padding: 28px 24px 24px;
  }

  .services-page .item-steps .item-step-marker {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    max-width: 52px;
    max-height: 52px;
    flex-basis: 52px;
    font-size: 18px;
  }

  .services-page .item-step-content h3 {
    font-size: 17px;
  }

  .services-page .item-step-intro {
    font-size: 14px;
  }

  /* Vertical connector */
  .services-page .item-step:not(:last-child) {
    border-bottom: 1px solid rgba(36, 57, 69, 0.08);
    margin-bottom: 0;
  }

  /* Content sections: stack */
  .services-page .content-container .row,
  .services-page .content-container.reverse-on-mobile .row {
    flex-direction: column;
    gap: 28px;
  }

  .services-page .content-container .text-container,
  .services-page .content-container .left-image-container,
  .services-page .content-container.reverse-on-mobile .text-container,
  .services-page .content-container.reverse-on-mobile .left-image-container {
    flex: 1 1 100%;
    width: 100%;
  }

  .services-page .content-container .left-image-container img,
  .services-page .content-container.reverse-on-mobile .left-image-container img {
    aspect-ratio: 16 / 10;
    max-height: none;
    border-radius: 12px;
  }

  .services-page .content-container .text-container h2,
  .services-page .content-container.reverse-on-mobile .text-container h2 {
    font-size: 28px;
  }

  .services-page .content-container .text-container h3,
  .services-page .content-container.reverse-on-mobile .text-container h3 {
    font-size: 18px;
  }

  .services-page .content-container .center-text-description,
  .services-page .content-container.reverse-on-mobile .center-text-description {
    font-size: 16px;
  }

  /* CTA */
  .services-page .cta-split-container.flat-style {
    padding: clamp(48px, 10vw, 72px) clamp(20px, 5vw, 32px);
  }

  .services-page .cta-split-container.flat-style .cta-inner h2 {
    font-size: 26px;
  }

  .services-page .cta-split-container.flat-style .cta-inner h3 {
    font-size: 17px;
  }

  .services-page .cta-split-container.flat-style .cta-inner p {
    font-size: 15px;
  }

  .services-page .cta-btn {
    padding: 14px 28px;
    font-size: 16px;
  }
}

/* -----------------------------------------------------------------------
   RESPONSIVE — SMALL MOBILE (480px and below)
   ----------------------------------------------------------------------- */

@media (max-width: 480px) {
  .services-page .aboutus-page-main-container {
    padding: 0 14px;
  }

  .services-page .item-cards,
  .services-page .item-steps {
    padding: 44px 0;
  }

  .services-page .item-cards-header > h2,
  .services-page .item-steps-header > h2 {
    font-size: 26px;
  }

  .services-page .item-cards-eyebrow,
  .services-page .item-steps-eyebrow {
    font-size: 12px;
    letter-spacing: 2px;
  }

  .services-page .item-card,
  .services-page .item-step {
    padding: 22px 20px 20px;
  }

  .services-page .item-card::before {
    width: 18px;
    margin-bottom: 14px;
  }

  .services-page .item-steps .item-step-marker {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    max-height: 44px;
    flex-basis: 44px;
    font-size: 16px;
  }

  .services-page .item-step-content h3 {
    font-size: 15px;
  }

  .services-page .cta-split-container.flat-style {
    padding: 44px 16px;
  }

  .services-page .cta-split-container.flat-style .cta-inner h2 {
    font-size: 22px;
  }
}
