/* ==========================================================================
   Home: "What We Can Build for You" — six services around the CodeCurious laptop.
   Wide screens: cards | laptop | cards. Smaller screens: laptop on top, cards below.
   Shared type sizes and section spacing come from css/home-scale.css.
   ========================================================================== */

.wwd-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 96px 0 88px;
  background: linear-gradient(180deg, #F5F8FE 0%, #EEF4FD 100%);
  font-family: var(--font-sans);
}

/* soft light-blue shapes in the top corners */
.wwd-blob {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}

.wwd-blob--left {
  top: -140px;
  left: -200px;
  width: 620px;
  height: 360px;
  background: radial-gradient(closest-side, rgba(191, 219, 254, 0.8), rgba(191, 219, 254, 0));
  transform: rotate(-12deg);
}

.wwd-blob--right {
  top: -160px;
  right: -160px;
  width: 460px;
  height: 460px;
  background: radial-gradient(closest-side, rgba(96, 165, 250, 0.45), rgba(96, 165, 250, 0));
}

/* ---- Heading ---- */
.wwd-header {
  max-width: 820px;
  margin: 0 auto 56px;
  text-align: center;
}

.wwd-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 22px;
  border: 1px solid #93C5FD;
  border-radius: 999px;
  background: #FFFFFF;
  color: #145CA1;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wwd-pill svg {
  width: 18px;
  height: 18px;
}

.wwd-title {
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #071827;
  text-wrap: balance;
}

.wwd-accent {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  color: #1D4ED8;
}

.wwd-swoosh {
  position: absolute;
  right: -2%;
  bottom: -8px;
  width: 64%;
  height: 16px;
}

.wwd-sub {
  max-width: 760px;
  margin: 22px auto 0;
  font-size: 18px;
  line-height: 1.6;
  color: #334155;
  text-wrap: pretty;
}

/* ---- Layout ---- */
.wwd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    'stage stage'
    'left right';
  gap: 20px;
}

.wwd-col {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wwd-col--left { grid-area: left; }
.wwd-col--right { grid-area: right; }

.wwd-stage {
  grid-area: stage;
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 560px);
  margin: -12px auto 8px;
}

.wwd-ring {
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(147, 197, 253, 0.7);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.16) 0%, rgba(59, 130, 246, 0.05) 55%, rgba(59, 130, 246, 0) 70%);
  box-shadow: 0 0 40px rgba(96, 165, 250, 0.35), inset 0 0 40px rgba(96, 165, 250, 0.2);
}

.wwd-stage img {
  position: relative;
  width: 100%;
  height: auto;
}

/* ---- Cards ---- */
.wwd-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 18px 18px 18px 16px;
  border: 1px solid #E3EBF6;
  border-radius: 22px;
  background: #FFFFFF;
  box-shadow: 0 18px 40px -28px rgba(11, 34, 57, 0.4);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* .wwd-section raises specificity above luxury.js's reveal (".lux-js .lux-reveal.lux-in") */
.wwd-section .wwd-card:hover {
  transform: translateY(-3px);
  border-color: #BFDBFE;
  box-shadow: 0 26px 48px -28px rgba(20, 92, 161, 0.5);
}

.wwd-card:focus-visible {
  outline: 3px solid #2563EB;
  outline-offset: 3px;
}

.wwd-icon {
  flex: none;
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(37, 99, 235, 0.18));
}

.wwd-body {
  flex: 1;
  min-width: 0;
}

.wwd-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: #071827;
}

.wwd-card-desc {
  margin: 6px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: #475569;
}

.wwd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.wwd-tags li {
  margin: 0;
  padding: 4px 12px;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  background: #F8FAFC;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.wwd-arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #DBE5F3;
  border-radius: 50%;
  background: #FFFFFF;
  color: #145CA1;
  box-shadow: 0 6px 14px -8px rgba(11, 34, 57, 0.35);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.wwd-arrow svg {
  width: 18px;
  height: 18px;
}

.wwd-card:hover .wwd-arrow {
  background: #145CA1;
  color: #FFFFFF;
  transform: translateX(2px);
}

.wwd-more {
  margin-top: 48px;
  text-align: center;
}

/* ---- Wide screens: cards around the laptop ---- */
@media (min-width: 1280px) {
  .wwd-layout {
    grid-template-columns: minmax(0, 1fr) 360px minmax(0, 1fr);
    grid-template-areas: 'left stage right';
    align-items: center;
    gap: 28px;
  }

  .wwd-stage {
    width: 100%;
    margin: 0;
  }

  /* the laptop is wider than its column; its transparent edges pass behind the cards */
  .wwd-stage img {
    width: 125%;
    max-width: none;
  }

  .wwd-ring {
    width: 108%;
  }

  /* middle cards sit a little further out, so the six cards arc around the laptop */
  .wwd-col--left > li:nth-child(2) { margin-right: 18px; }
  .wwd-col--right > li:nth-child(2) { margin-left: 18px; }
}

/* 1280–1599px: a slimmer centre and smaller icons leave room for the text */
@media (min-width: 1280px) and (max-width: 1599px) {
  .wwd-layout {
    grid-template-columns: minmax(0, 1fr) 320px minmax(0, 1fr);
  }

  .wwd-stage img {
    width: 132%;
  }

  .wwd-icon {
    width: 80px;
    height: 80px;
  }

  .wwd-card {
    gap: 14px;
  }

  .wwd-card-title {
    font-size: 19px;
  }

  .wwd-tags {
    gap: 6px;
  }

  .wwd-tags li {
    padding: 3px 10px;
    font-size: 12.5px;
  }
}

@media (min-width: 1600px) {
  .wwd-layout {
    grid-template-columns: minmax(0, 1fr) 420px minmax(0, 1fr);
    gap: 36px;
  }

  .wwd-icon {
    width: 104px;
    height: 104px;
  }
}

/* Tablets: one column of wide cards under the laptop */
@media (max-width: 899px) {
  .wwd-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'stage'
      'left'
      'right';
    gap: 16px;
  }

  .wwd-col {
    gap: 16px;
  }
}

/* ---- Phones ---- */
@media (max-width: 760px) {
  .wwd-section {
    padding: 72px 0 64px;
  }

  .wwd-header {
    margin-bottom: 32px;
  }

  .wwd-sub {
    font-size: 16px;
  }

  .wwd-icon {
    width: 72px;
    height: 72px;
  }

  .wwd-card-title {
    font-size: 18px;
  }
}

/* small phones: the whole card is the link, so the arrow can go */
@media (max-width: 560px) {
  .wwd-card {
    gap: 12px;
    padding: 16px 14px;
  }

  .wwd-icon {
    width: 64px;
    height: 64px;
  }

  .wwd-arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wwd-card,
  .wwd-arrow {
    transition: none;
  }

  .wwd-section .wwd-card:hover {
    transform: none;
  }
}
