/* ==========================================================================
   Macaw Bytes - Service detail (corporate dark mood)
   Extends home.css tokens via body.page-service
   ========================================================================== */

.sd-hero {
  position: relative;
  min-height: min(62svh, 540px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(7rem, 14vw, 9.5rem) 0 clamp(3.25rem, 6vw, 4.75rem);
  overflow: hidden;
  border-bottom: 1px solid var(--home-line);
  background:
    linear-gradient(165deg, #0a1218 0%, #0b0d10 45%, #0c1410 100%);
}

.sd-hero__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 14% 22%, rgba(74, 168, 224, 0.28), transparent 62%),
    radial-gradient(ellipse 48% 45% at 88% 16%, rgba(46, 174, 78, 0.22), transparent 60%),
    radial-gradient(ellipse 40% 35% at 50% 95%, rgba(240, 180, 41, 0.12), transparent 55%);
}

.sd-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 52rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sd-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 1.35rem;
  font-size: 0.85rem;
  color: var(--home-muted);
}

.sd-breadcrumb a {
  color: var(--home-muted) !important;
  text-decoration: none;
}

.sd-breadcrumb a:hover {
  color: var(--home-green) !important;
}

.sd-hero__icon {
  width: 3.65rem;
  height: 3.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.15rem;
  border-radius: 12px;
  border: 1px solid rgba(46, 174, 78, 0.35);
  background:
    radial-gradient(circle at 30% 25%, rgba(74, 168, 224, 0.18), transparent 55%),
    rgba(46, 174, 78, 0.1);
  color: var(--home-green);
  font-size: 1.55rem;
}

.sd-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.05rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--home-ink);
  margin: 0.55rem auto 1rem;
  max-width: 18ch;
  text-wrap: balance;
}

.sd-hero__lede {
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  line-height: 1.65;
  color: var(--home-muted);
  max-width: 42rem;
  margin: 0 auto 1.75rem;
  text-wrap: pretty;
}

.sd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.sd-hero__actions .btn i {
  margin-left: 0.35rem;
}

/* ------------------------------------------------------------------ */
/* Content layout                                                      */
/* ------------------------------------------------------------------ */
.sd-overview {
  position: relative;
}

.sd-overview::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 45% 30% at 8% 8%, rgba(74, 168, 224, 0.07), transparent 60%),
    radial-gradient(ellipse 40% 28% at 92% 18%, rgba(46, 174, 78, 0.06), transparent 55%);
}

.sd-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
}

.sd-main {
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.35rem);
  border-radius: 14px;
  border: 1px solid var(--home-line);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.025), transparent 42%),
    var(--home-surface);
}

.sd-main__head {
  margin-bottom: clamp(1.35rem, 2.5vw, 1.85rem);
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--home-line);
}

.sd-main__title {
  margin: 0.4rem 0 0;
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--home-ink);
  line-height: 1.2;
}

.sd-image {
  position: relative;
  margin: 0 0 clamp(1.5rem, 3vw, 2rem);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--home-line);
  background: #0b0d10;
  aspect-ratio: 16 / 9;
}

.sd-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sd-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(11, 13, 16, 0.4));
  pointer-events: none;
}

/* ------------------------------------------------------------------ */
/* Editorial body                                                      */
/* ------------------------------------------------------------------ */
.sd-body {
  color: rgba(196, 206, 216, 0.92);
  font-size: clamp(1.05rem, 1.15vw, 1.125rem);
  line-height: 1.8;
  letter-spacing: 0.005em;
}

.sd-body > *:first-child {
  margin-top: 0;
}

.sd-body > h2:first-child {
  margin-top: 0;
}

.sd-body > p:first-of-type {
  font-size: clamp(1.1rem, 1.3vw, 1.2rem);
  line-height: 1.7;
  color: rgba(220, 228, 236, 0.95);
  margin-bottom: 1.65rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sd-body h2,
.sd-body h3,
.sd-body h4 {
  font-family: var(--font-heading);
  color: var(--home-ink);
  letter-spacing: -0.02em;
  line-height: 1.25;
  scroll-margin-top: 6rem;
}

.sd-body h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.7rem);
  font-weight: 700;
  margin: 2.35rem 0 0.9rem;
  padding-top: 0.35rem;
}

.sd-body h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  font-weight: 650;
  margin: 1.85rem 0 0.75rem;
  color: rgba(232, 238, 244, 0.96);
}

.sd-body h4 {
  font-size: 1.05rem;
  font-weight: 650;
  margin: 1.5rem 0 0.65rem;
}

.sd-body p {
  margin: 0 0 1.2rem;
}

.sd-body strong {
  color: var(--home-ink);
  font-weight: 650;
}

.sd-body a {
  color: var(--home-green);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.sd-body a:hover {
  color: var(--home-accent-hover);
}

.sd-body ul,
.sd-body ol {
  list-style: none;
  margin: 0.35rem 0 1.65rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.sd-body li {
  position: relative;
  margin: 0;
  padding: 0.35rem 0 0.35rem 1.45rem;
  color: rgba(196, 206, 216, 0.92);
  line-height: 1.6;
  border: 0;
  background: transparent;
  border-radius: 0;
}

.sd-body ul li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.85rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--home-green);
  box-shadow: none;
}

.sd-body ol {
  counter-reset: sd-step;
}

.sd-body ol li {
  counter-increment: sd-step;
  padding-left: 2.1rem;
}

.sd-body ol li::before {
  content: counter(sd-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.35rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--home-blue);
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sd-body h3 + ul,
.sd-body h3 + ol {
  margin-top: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(11, 13, 16, 0.28);
}

.sd-body img {
  border-radius: 10px;
  max-width: 100%;
  margin: 1.25rem 0;
  border: 1px solid var(--home-line);
}

.sd-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem 1rem 1.25rem;
  border-left: 3px solid var(--home-green);
  border-radius: 0 10px 10px 0;
  background: rgba(46, 174, 78, 0.06);
  color: rgba(220, 228, 236, 0.95);
  font-size: 1.05rem;
}

/* ------------------------------------------------------------------ */
/* Scope list                                                          */
/* ------------------------------------------------------------------ */
.sd-features {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--home-line);
}

.sd-features__head {
  margin-bottom: 1.25rem;
}

.sd-features__head h2 {
  margin: 0.4rem 0 0.55rem;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.2vw, 1.6rem);
  letter-spacing: -0.02em;
  color: var(--home-ink);
}

.sd-features__head p {
  margin: 0;
  color: var(--home-muted);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 42rem;
}

.sd-features__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.sd-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(11, 13, 16, 0.4);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.sd-feature:hover {
  border-color: rgba(74, 168, 224, 0.3);
  background: rgba(74, 168, 224, 0.05);
}

.sd-feature__num {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--home-blue);
  line-height: 1.4;
  margin-top: 0.12rem;
}

.sd-feature__text {
  color: rgba(220, 228, 236, 0.95);
  font-size: 0.96rem;
  line-height: 1.45;
  font-weight: 500;
}

/* ------------------------------------------------------------------ */
/* Inline CTA                                                          */
/* ------------------------------------------------------------------ */
.sd-inline-cta {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding: clamp(1.35rem, 2.5vw, 1.75rem);
  border-radius: 12px;
  border: 1px solid rgba(46, 174, 78, 0.28);
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%, rgba(46, 174, 78, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 60% at 100% 100%, rgba(74, 168, 224, 0.08), transparent 50%),
    rgba(11, 13, 16, 0.55);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem 1.5rem;
  align-items: center;
}

.sd-inline-cta__copy .home-kicker {
  display: inline-block;
  margin-bottom: 0.35rem;
}

.sd-inline-cta h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  letter-spacing: -0.02em;
  color: var(--home-ink);
  margin: 0 0 0.45rem;
}

.sd-inline-cta p {
  color: var(--home-muted);
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
}

.sd-inline-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.sd-inline-cta__actions .btn i {
  margin-left: 0.35rem;
}

.sd-inline-cta__actions .btn-outline i {
  margin-left: 0;
  margin-right: 0.35rem;
}

/* ------------------------------------------------------------------ */
/* Sidebar                                                             */
/* ------------------------------------------------------------------ */
.sd-sidebar {
  position: sticky;
  top: 6.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.sd-widget {
  padding: 1.25rem 1.2rem 1.3rem;
  border-radius: 12px;
  border: 1px solid var(--home-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%),
    var(--home-surface);
}

.sd-widget--accent {
  border-color: rgba(46, 174, 78, 0.32);
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(46, 174, 78, 0.16), transparent 55%),
    var(--home-surface);
}

.sd-widget__eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--home-blue);
}

.sd-widget h3 {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--home-ink);
  margin: 0 0 0.65rem;
}

.sd-widget p {
  margin: 0 0 1rem;
  color: var(--home-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.sd-widget__cta {
  width: 100%;
  justify-content: center;
}

.sd-widget__links {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--home-line);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sd-widget__links li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
}

.sd-widget__links i {
  color: var(--home-green);
  font-size: 1.05rem;
  width: 1.1rem;
  text-align: center;
}

.sd-widget__links a {
  color: var(--home-muted) !important;
  text-decoration: none;
}

.sd-widget__links a:hover {
  color: var(--home-green) !important;
}

.sd-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.sd-trust li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--home-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  padding: 0.35rem 0;
}

.sd-trust i {
  color: var(--home-green);
  margin-top: 0.15rem;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.sd-related {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
}

.sd-related li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sd-related li:last-child {
  border-bottom: none;
}

.sd-related a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  color: var(--home-muted) !important;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.sd-related a:hover {
  color: var(--home-green) !important;
}

.sd-related i {
  color: var(--home-green);
  font-size: 0.8rem;
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.sd-related a:hover i {
  opacity: 1;
  transform: translateX(2px);
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .sd-layout {
    grid-template-columns: 1fr;
  }

  .sd-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .sd-widget--accent {
    grid-column: 1 / -1;
  }

  .sd-hero h1 {
    max-width: none;
  }

  .sd-inline-cta {
    grid-template-columns: 1fr;
  }

  .sd-inline-cta__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .sd-sidebar {
    grid-template-columns: 1fr;
  }

  .sd-features__list {
    grid-template-columns: 1fr;
  }

  .sd-main {
    padding: 1.25rem 1.1rem 1.4rem;
  }
}

@media (max-width: 640px) {
  .sd-hero {
    min-height: auto;
    padding-top: 6.5rem;
  }

  .sd-hero__actions .btn,
  .sd-inline-cta__actions .btn {
    width: 100%;
    justify-content: center;
  }
}
