/* ================================================================
   Sync Inn Digital — Sub-Services What We Do Section
   Used on: Sub-Services category pages only. Section 5.

   Layout:
     .sid-swwd               — section wrapper (light bg for header area)
     .sid-swwd__header       — constrained: label + heading + description
     .sid-swwd__body         — full-width bg image
     .sid-swwd__body-inner   — constrained flex row
     .sid-swwd__cards-col    — left column (65%): service cards
     .sid-swwd__card         — frosted-glass gradient card
     .sid-swwd__right-col    — right column (35%): vertical text
     .sid-swwd__vertical-wrap— sticky container, anchors to viewport bottom
     .sid-swwd__vertical-text— large text, writing-mode vertical (bottom→top)
   ================================================================ */

/* ── Section wrapper ─────────────────────────────────────────── */

.sid-swwd {
  background-color: var(--sid-light-grayish-blue-bg, #F5F6FA);
}

/* ── Section header — constrained ────────────────────────────── */

.sid-swwd__header {
  max-width: var(--sid-site-width, 1400px);
  margin: 0 auto;
  padding: 110px 20px 64px;
}

/* ── Main heading ────────────────────────────────────────────── */

.sid-swwd__heading {
  font-family: 'Poppins', var(--sid-font-heading, sans-serif);
  font-size: 60px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--sid-black, #000);
  margin: 0 0 24px;
  max-width: 70%;
}

.sid-swwd__heading-muted {
  color: #7E7E81;
}

/* ── Description ─────────────────────────────────────────────── */

.sid-swwd__desc {
  font-family: 'Nunito', var(--sid-font-body, sans-serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--sid-black, #000);
  margin: 0;
  max-width: 50%;
}

/* ── Cards body — full-width bg image ───────────────────────── */

.sid-swwd__body {
  background-image: url('https://syncinndigital.com/wp-content/uploads/2026/02/6867640.webp');
  background-size: cover;
  background-position: center;
  padding: 80px 0 110px;
  min-height: 80vh;
}

/* ── Body inner — constrained + flex row ─────────────────────── */

.sid-swwd__body-inner {
  max-width: var(--sid-site-width, 1400px);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* ── Left: cards column (65%) ────────────────────────────────── */

.sid-swwd__cards-col {
  flex: 0 0 65%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Individual service card ─────────────────────────────────── */

.sid-swwd__card {
  background: linear-gradient(to right, #E6F0FF 32%, #E6F0FF52 100%);
  border-radius: 30px;
  padding: 30px 180px 30px 30px;
}

.sid-swwd__card-title {
  font-family: 'Poppins', var(--sid-font-heading, sans-serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--sid-black, #000);
  margin: 0 0 14px;
}

.sid-swwd__card-desc {
  font-family: 'Nunito', var(--sid-font-body, sans-serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--sid-black, #000);
  margin: 0;
}

/* ── Right column (35%): vertical text ──────────────────────── */

.sid-swwd__right-col {
  flex: 1;
  align-self: stretch;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Sticky container — starts at top-right of the column and
   sticks to the top of the viewport while scrolling through
   the cards area. */
.sid-swwd__vertical-wrap {
  position: sticky;
  top: 100px;
  display: flex;
  justify-content: flex-end;
  padding-right: 10px;
}

/* Large vertical text — reads from bottom to top.
   max-height: 80vh constrains the height to one screen;
   removing white-space: nowrap lets long text wrap into
   multiple side-by-side vertical columns. */
.sid-swwd__vertical-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'Poppins', var(--sid-font-heading, sans-serif);
  font-size: 80px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--sid-white, #fff);
  max-height: 80vh;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 1280px) {
  .sid-swwd__heading {
    font-size: 48px;
  }

  .sid-swwd__vertical-text {
    font-size: 64px;
  }
}

@media (max-width: 1024px) {
  .sid-swwd__heading {
    font-size: 36px;
    max-width: 100%;
  }

  .sid-swwd__desc {
    max-width: 100%;
  }

  .sid-swwd__cards-col {
    flex: 0 0 60%;
  }

  .sid-swwd__vertical-text {
    font-size: 52px;
  }
}

@media (max-width: 768px) {
  .sid-swwd__header {
    padding: 60px 20px 48px;
  }

  .sid-swwd__body {
    padding: 60px 0 60px;
  }

  .sid-swwd__body-inner {
    flex-direction: column;
  }

  .sid-swwd__cards-col {
    flex: none;
    width: 100%;
  }

  /* Hide vertical text on mobile — not enough space */
  .sid-swwd__right-col {
    display: none;
  }

  .sid-swwd__heading {
    font-size: 30px;
  }

  .sid-swwd__card {
    padding: 24px;
  }

  .sid-swwd__card-title {
    font-size: 24px;
  }

  .sid-swwd__card-desc {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .sid-swwd__heading {
    font-size: 30px;
    line-height: 30px;
  }

  .sid-swwd__desc {
    font-size: 16px;
  }

  .sid-swwd__card-title {
    font-size: 26px;
  }

  .sid-swwd__card-desc {
    font-size: 17px;
  }
}
