/* ═══════════════════════════════════════════════════════════════════════════════
   ODDAK — Homepage Services / Creative Texture
   Loaded after components.css. All classes are namespaced with "odsrv-" to
   prevent collisions with the rest of the site.
   ═══════════════════════════════════════════════════════════════════════════════ */

.odsrv {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 8vw, 112px) var(--section-pad);
  background: var(--bg);
}

.odsrv::before {
  content: "";
  position: absolute;
  top: -260px;
  left: -220px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 59, 31, 0.07), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

.odsrv-in {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
}

.odsrv-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(38px, 5vw, 58px);
}

.odsrv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--r);
  font-family: var(--fd);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.odsrv-eyebrow::before {
  content: "✦";
  font-size: 12px;
}

.odsrv-title {
  max-width: 820px;
  color: var(--ink);
  font-family: var(--fd);
  font-size: clamp(46px, 6vw, 88px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.odsrv-title em {
  color: var(--r);
  font-style: normal;
}

.odsrv-copy {
  max-width: 500px;
  padding-bottom: 4px;
  color: var(--ink2);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.78;
}

.odsrv-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.odsrv-card {
  --odsrv-c1: #7d68df;
  --odsrv-c2: #5d49c1;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(140deg, var(--odsrv-c1), var(--odsrv-c2));
  box-shadow: 0 18px 48px rgba(26, 21, 16, 0.08);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.odsrv-card:hover {
  transform: translateY(-6px) rotate(-0.2deg);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 30px 70px rgba(26, 21, 16, 0.14);
}

.odsrv-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.55;
  mix-blend-mode: soft-light;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

.odsrv-blob {
  position: absolute;
  z-index: -2;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 44% 56% 52% 48% / 46% 40% 60% 54%;
  pointer-events: none;
}

.odsrv-blob--one {
  top: -65px;
  right: -55px;
  width: 190px;
  height: 190px;
  background: rgba(255, 255, 255, 0.06);
  transform: rotate(24deg);
}

.odsrv-blob--two {
  right: 80px;
  bottom: -48px;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.05);
  transform: rotate(-18deg);
}

.odsrv-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.odsrv-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.odsrv-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.odsrv-number {
  color: rgba(255, 255, 255, 0.56);
  font-family: var(--fd);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.12em;
}

.odsrv-card-body {
  display: grid;
  gap: 9px;
  padding-right: 56px;
}

.odsrv-kicker {
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--fd);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.odsrv-card-title {
  color: #fff;
  font-family: var(--fd);
  font-size: clamp(29px, 2.1vw, 43px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}

.odsrv-desc {
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.80);
  font-size: 14px;
  line-height: 1.65;
}

.odsrv-arrow {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s, transform 0.3s var(--spring);
}

.odsrv-arrow svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.odsrv-card:hover .odsrv-arrow {
  background: rgba(255, 255, 255, 0.22);
  transform: rotate(45deg) scale(1.05);
}

.odsrv-span-4 { grid-column: span 4; }
.odsrv-span-5 { grid-column: span 5; }
.odsrv-span-7 { grid-column: span 7; }
.odsrv-span-12 { grid-column: span 12; }

.odsrv-seo        { --odsrv-c1: #7d68df; --odsrv-c2: #5d49c1; }
.odsrv-ads        { --odsrv-c1: #ff6b4c; --odsrv-c2: #ec472a; }
.odsrv-web        { --odsrv-c1: #42aee3; --odsrv-c2: #188dca; }
.odsrv-design     { --odsrv-c1: #d5b44b; --odsrv-c2: #a88418; }
.odsrv-content    { --odsrv-c1: #36bf87; --odsrv-c2: #179e69; }
.odsrv-social     { --odsrv-c1: #e875a2; --odsrv-c2: #ca4b80; }
.odsrv-commerce   { --odsrv-c1: #f1a04a; --odsrv-c2: #dc7924; }
.odsrv-strategy   { --odsrv-c1: #31b8ad; --odsrv-c2: #158f89; }
.odsrv-automation { --odsrv-c1: #9886ec; --odsrv-c2: #725ed6; }

[data-theme="dark"] .odsrv-card {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] .odsrv-card:hover {
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

@media (max-width: 1050px) {
  .odsrv-head {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .odsrv-copy {
    max-width: 680px;
  }

  .odsrv-span-4,
  .odsrv-span-5,
  .odsrv-span-7 {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  .odsrv {
    padding: 68px 18px;
  }

  .odsrv-head {
    margin-bottom: 34px;
  }

  .odsrv-grid {
    gap: 12px;
  }

  .odsrv-span-4,
  .odsrv-span-5,
  .odsrv-span-7,
  .odsrv-span-12 {
    grid-column: span 12;
  }

  .odsrv-card {
    min-height: 225px;
    padding: 23px;
    border-radius: 24px;
  }

  .odsrv-card-title {
    font-size: 32px;
  }

  .odsrv-desc {
    max-width: none;
  }

  .odsrv-arrow {
    right: 22px;
    bottom: 22px;
  }
}

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

  .odsrv-card:hover {
    transform: none;
  }
}
