/* ==========================================================================
   Services listing + service detail pages
   Markup: resources/views/frontend/service.blade.php
           resources/views/frontend/service-detail.blade.php
   Design: "Webase — Services Section Redesign" canvas, Services.dc.html / ServiceDetail.dc.html
   ========================================================================== */

.wb-sv {
  --wb-sv-bg: #F4F1EA;
  --wb-sv-dark: #0E0720;
  --wb-sv-navy: #202547;
  --wb-sv-muted: #5B6080;
  --wb-sv-accent: #ED194E;
  --wb-sv-eyebrow: #C8163F;
  --wb-sv-pink: #FF6B8E;
  --wb-sv-lilac: #D5D0EA;
  --wb-sv-ease: cubic-bezier(.2, .8, .2, 1);

  background: var(--wb-sv-bg);
  color: var(--wb-sv-navy);
  font-family: 'Inter', system-ui, sans-serif;
}

.wb-sv a {
  text-decoration: none;
}

/* ---------- Shared bits ---------- */

.wb-sv-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--wb-sv-eyebrow);
}

.wb-sv-eyebrow::before {
  content: '';
  display: block;
  flex: none;
  width: 28px;
  height: 2px;
  background: var(--wb-sv-accent);
}

.wb-sv-eyebrow--light {
  color: var(--wb-sv-pink);
}

.wb-sv-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  box-sizing: border-box;
  padding: 0 28px;
  border-radius: 999px;
  background-color: var(--wb-sv-accent);
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  transition: transform .4s var(--wb-sv-ease), box-shadow .4s ease, background-color .4s ease;
}

.wb-sv-btn svg {
  transition: transform .4s var(--wb-sv-ease);
}

.wb-sv-btn:hover,
.wb-sv-btn:focus-visible {
  color: #FFFFFF;
  background-color: #FF2E62;
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -14px rgba(237, 25, 78, .65);
}

.wb-sv-btn:hover svg {
  transform: translateX(3px);
}

.wb-sv-btn--sm {
  align-self: flex-start;
  margin-top: 8px;
  min-height: 54px;
  padding: 0 26px;
  font-size: 15px;
}

.wb-sv-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  box-sizing: border-box;
  padding: 0 26px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  transition: background-color .35s ease, border-color .35s ease;
}

.wb-sv-ghost:hover,
.wb-sv-ghost:focus-visible {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .4);
}

.wb-sv-h2 {
  margin: 0;
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.05;
  color: var(--wb-sv-navy);
}

/* soft colour glows behind light sections */
.wb-sv-glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.wb-sv-glow span {
  position: absolute;
  display: block;
  border-radius: 50%;
}

.wb-sv-glow__red {
  right: -120px;
  width: 460px;
  height: 420px;
  background: var(--wb-sv-accent);
  opacity: .1;
  filter: blur(120px);
}

.wb-sv-glow__blue {
  left: -160px;
  width: 520px;
  height: 460px;
  background: #3D5AFE;
  opacity: .1;
  filter: blur(130px);
}

.wb-sv-glow--cards .wb-sv-glow__red { top: 240px; }
.wb-sv-glow--cards .wb-sv-glow__blue { top: 600px; }
.wb-sv-glow--offer .wb-sv-glow__red { top: 80px; }
.wb-sv-glow--offer .wb-sv-glow__blue { bottom: 40px; }

@keyframes wbSvFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.wb-sv-swap {
  animation: wbSvFadeUp .6s var(--wb-sv-ease) both;
}

/* ---------- Services listing: cards ---------- */

.wb-sv-cards {
  position: relative;
  padding-bottom: 110px;
}

.wb-sv-grid {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: -90px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.wb-sv-grid > li {
  grid-column: span 2;
  display: flex;
}

.wb-sv-grid > li.wb-sv-grid__wide {
  grid-column: span 3;
}

.wb-sc {
  position: relative;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 280px;
  box-sizing: border-box;
  padding: 30px;
  border-radius: 30px;
  background-color: rgba(255, 255, 255, .66);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 12px 34px -22px rgba(32, 37, 71, .3);
  color: var(--wb-sv-navy);
  transition: transform .5s var(--wb-sv-ease), box-shadow .5s ease, border-color .5s ease;
}

.wb-sc--big {
  min-height: 300px;
}

.wb-sc:hover,
.wb-sc:focus-visible {
  color: var(--wb-sv-navy);
  transform: translateY(-8px);
  border-color: rgba(237, 25, 78, .3);
  box-shadow: 0 34px 60px -30px rgba(32, 37, 71, .45);
}

.wb-sc__glow {
  position: absolute;
  right: -90px;
  bottom: -110px;
  display: block;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--wb-sv-accent);
  opacity: 0;
  filter: blur(80px);
  transition: opacity .6s ease;
}

.wb-sc:hover .wb-sc__glow {
  opacity: .18;
}

.wb-sc__top,
.wb-sc__body,
.wb-sc__foot {
  position: relative;
}

.wb-sc__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wb-sc__icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background-color: rgba(32, 37, 71, .06);
  color: var(--wb-sv-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .45s ease, color .45s ease, transform .45s var(--wb-sv-ease);
}

.wb-sc:hover .wb-sc__icon {
  background-color: var(--wb-sv-accent);
  color: #FFFFFF;
  transform: rotate(-6deg);
}

.wb-sc__num {
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: rgba(32, 37, 71, .32);
}

.wb-sc__body {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wb-sc__title {
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.12;
  transition: color .4s ease;
}

.wb-sc--big .wb-sc__title {
  font-size: 30px;
}

.wb-sc:hover .wb-sc__title {
  color: var(--wb-sv-eyebrow);
}

.wb-sc__text {
  max-width: 440px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--wb-sv-muted);
}

.wb-sc__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(32, 37, 71, .08);
  font-size: 14px;
  font-weight: 600;
}

.wb-sc__go {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(32, 37, 71, .06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .4s ease, color .4s ease, transform .45s var(--wb-sv-ease);
}

.wb-sc:hover .wb-sc__go {
  background-color: var(--wb-sv-navy);
  color: #FFFFFF;
  transform: rotate(-45deg);
}

/* ---------- Hero additions (the hero itself is <x-page-hero>, components/page-hero.css) ---------- */

/* listing: room for the service cards that overlap the hero */
.wb-sv-hero--overlap .wb-page-hero__body {
  padding-top: 84px;
  padding-bottom: 150px;
}

/* detail: tabs + split row + jump bar make it taller than the default */
.wb-sv-hero--detail .wb-page-hero__body {
  gap: 40px;
  padding-top: 20px;
  padding-bottom: 72px;
}

/* detail: the "What We Offer" card stays on the right down to tablet landscape */
@media (min-width: 992px) {
  .wb-sv-hero--detail .wb-page-hero__row--split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 40px;
  }
}

.wb-sv-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: 'Inter', sans-serif;
}

.wb-sv-tab {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  color: var(--wb-sv-lilac);
  font-size: 13px;
  font-weight: 600;
  transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}

.wb-sv-tab:hover,
.wb-sv-tab:focus-visible {
  color: var(--wb-sv-lilac);
  border-color: rgba(255, 255, 255, .45);
}

.wb-sv-tab.is-current {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
  color: var(--wb-sv-navy);
}

/* offer index card */
.wb-sv-index {
  position: relative;
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  font-family: 'Inter', sans-serif;
}

.wb-sv-index__icon {
  position: absolute;
  right: 24px;
  top: 24px;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--wb-sv-accent);
  box-shadow: 0 16px 34px -12px rgba(237, 25, 78, .7);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wb-sv-index__label {
  display: block;
  padding-right: 80px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #B8B3D0;
}

.wb-sv-index__count {
  display: block;
  margin: 8px 0 18px;
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
}

.wb-sv-index__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.wb-sv-index__list li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 15px;
  color: #E6E3F5;
}

.wb-sv-index__list li span {
  flex: none;
  font-weight: 700;
  color: var(--wb-sv-pink);
}

/* in-page jump links */
.wb-sv-jumpbar {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: rgba(14, 7, 32, .45);
}

.wb-sv-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  padding-bottom: 16px;
  font-family: 'Inter', sans-serif;
}

.wb-sv-jump {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 14px;
  font-weight: 500;
  color: var(--wb-sv-lilac);
  transition: color .35s ease, border-color .35s ease, background-color .35s ease;
}

.wb-sv-jump:hover,
.wb-sv-jump:focus-visible {
  color: #FFFFFF;
  border-color: var(--wb-sv-accent);
  background-color: var(--wb-sv-accent);
}

/* ---------- What we offer ---------- */

.wb-sv-offer {
  position: relative;
  padding: 110px 0;
  scroll-margin-top: var(--wb-header-height, 108px);
}

.wb-sv-offer__wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.wb-sv-offer__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
}

.wb-sv-of-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.wb-of {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px;
  border-radius: 28px;
  background-color: rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 12px 34px -22px rgba(32, 37, 71, .3);
  transition: transform .5s var(--wb-sv-ease), box-shadow .5s ease, border-color .5s ease;
}

.wb-of--span-2 { grid-column: span 2; }
.wb-of--span-3 { grid-column: span 3; }
.wb-of--span-6 { grid-column: span 6; }

.wb-of:hover {
  transform: translateY(-6px);
  border-color: rgba(237, 25, 78, .3);
  box-shadow: 0 30px 56px -30px rgba(32, 37, 71, .45);
}

.wb-of__num {
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  font-size: 54px;
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(32, 37, 71, .22);
  transition: color .45s ease, -webkit-text-stroke-color .45s ease;
}

.wb-of:hover .wb-of__num {
  color: var(--wb-sv-accent);
}

.wb-of__title {
  margin: 0;
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  color: var(--wb-sv-navy);
  transition: color .4s ease;
}

.wb-of:hover .wb-of__title {
  color: var(--wb-sv-eyebrow);
}

.wb-of__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--wb-sv-muted);
}

.wb-of__subs {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wb-of__subs--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wb-of__sub {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  background-color: rgba(32, 37, 71, .04);
  border: 1px solid rgba(32, 37, 71, .06);
  transition: background-color .35s ease, border-color .35s ease, transform .35s var(--wb-sv-ease);
}

.wb-of__sub:hover {
  background-color: #FFFFFF;
  border-color: rgba(237, 25, 78, .3);
  transform: translateY(-2px);
}

.wb-of__sub strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--wb-sv-navy);
}

.wb-of__sub span {
  font-size: 14px;
  line-height: 1.55;
  color: var(--wb-sv-muted);
}

/* tech chips */
.wb-sv-tech {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 22px 26px;
  border-radius: 24px;
  background: #FFFFFF;
  border: 1px solid rgba(32, 37, 71, .08);
}

.wb-sv-tech__label {
  margin-right: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--wb-sv-muted);
}

.wb-sv-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background-color: var(--wb-sv-bg);
  border: 1px solid rgba(32, 37, 71, .1);
  font-size: 14px;
  font-weight: 600;
  transition: background-color .35s ease, color .35s ease, transform .35s var(--wb-sv-ease), border-color .35s ease;
}

.wb-sv-chip:hover {
  background-color: var(--wb-sv-navy);
  border-color: var(--wb-sv-navy);
  color: #FFFFFF;
  transform: translateY(-3px);
}

/* ---------- Why choose ---------- */

.wb-sv-why {
  position: relative;
  overflow: hidden;
  padding: 110px 0;
  /* light sand: sits between the cream offer section and the navy testimonials */
  background: #EDE9E0;
  color: var(--wb-sv-navy);
  scroll-margin-top: var(--wb-header-height, 108px);
}

.wb-sv-why__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  pointer-events: none;
}

.wb-sv-why__glow--red {
  right: -180px;
  top: -160px;
  width: 600px;
  height: 560px;
  background: var(--wb-sv-accent);
  opacity: .08;
}

.wb-sv-why__glow--violet {
  left: -200px;
  bottom: -220px;
  width: 640px;
  height: 600px;
  background: #8B5CF6;
  opacity: .1;
}

.wb-sv-why__wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: start;
}

.wb-sv-why__side {
  position: sticky;
  top: calc(var(--wb-header-height, 108px) + 20px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wb-sv-why__title {
  margin: 0;
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.08;
  color: var(--wb-sv-navy);
}

.wb-sv-why__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wb-wy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border-radius: 24px;
  background-color: #FFFFFF;
  border: 1px solid rgba(32, 37, 71, .08);
  box-shadow: 0 12px 34px -24px rgba(32, 37, 71, .3);
  transition: border-color .4s ease, box-shadow .4s ease, transform .4s var(--wb-sv-ease);
}

.wb-wy:hover {
  border-color: rgba(237, 25, 78, .35);
  box-shadow: 0 26px 50px -30px rgba(32, 37, 71, .45);
  transform: translateX(6px);
}

.wb-wy__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wb-wy__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--wb-sv-accent);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .45s var(--wb-sv-ease);
}

.wb-wy:hover .wb-wy__icon {
  transform: scale(1.12) rotate(-8deg);
}

.wb-wy__num {
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: rgba(32, 37, 71, .35);
}

.wb-wy__text {
  font-family: 'Kanit', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
}

#feedback {
  scroll-margin-top: var(--wb-header-height, 108px);
}

/* ---------- Responsive ---------- */

@media (max-width: 1060px) {
  .wb-sv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wb-sv-grid > li,
  .wb-sv-grid > li.wb-sv-grid__wide {
    grid-column: span 1;
  }

  .wb-sv-why__wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .wb-sv-of-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .wb-of--span-2,
  .wb-of--span-3,
  .wb-of--span-6 {
    grid-column: auto;
  }

  .wb-sv-why__side {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .wb-sv-hero--overlap .wb-page-hero__body {
    padding-top: 40px;
    padding-bottom: 130px;
  }

  .wb-sv-cards {
    padding-bottom: 70px;
  }

  .wb-sv-offer,
  .wb-sv-why {
    padding: 70px 0;
  }

  .wb-sv-offer__wrap {
    gap: 32px;
  }

  .wb-sc--big .wb-sc__title {
    font-size: 26px;
  }
}

@media (max-width: 640px) {
  .wb-sv-grid,
  .wb-of__subs,
  .wb-of__subs--3,
  .wb-sv-why__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .wb-sc,
  .wb-sc--big {
    min-height: 0;
  }

  .wb-of {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wb-sv-btn, .wb-sv-btn svg, .wb-sv-ghost, .wb-sv-tab, .wb-sv-jump,
  .wb-sc, .wb-sc *, .wb-of, .wb-of *, .wb-sv-chip, .wb-wy, .wb-wy *,
  .wb-sv-swap {
    transition: none !important;
    animation: none !important;
  }
}
