/* ============================================================
   AIOTHUB — Embedded Service Detail Pages
   Shared CSS for all inner service pages
   Namespaced under .esd to prevent collision
   ============================================================ */

.esd * {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

.esd {
  --blue: #2465e8;
  --blue-dark: #1a4fc4;
  --blue-soft: #eaf1fe;
  --navy: #0e1b33;
  --ink: #26344b;
  --slate: #5a6a82;
  --line: #e5ebf4;
  --card: #f4f7fc;
  --card-2: #f9fbfe;
  --accent: #00d4ff;
  --green: #22c55e;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(20, 45, 90, .14);
  --shadow-sm: 0 4px 14px -8px rgba(20, 45, 90, .18);
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--slate);
  line-height: 1.6;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.esd h2,
.esd h3,
.esd h4,
.esd .eyebrow {
  font-family: 'Poppins', sans-serif;
  color: var(--navy)
}

.esd .wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px
}

.esd section {
  padding: 72px 0
}

.esd .alt {
  background: var(--card-2)
}

/* --- Hero Section --- */
.esd-hero {
  position: relative;
  padding: 160px 0 80px 0;
  text-align: center;
  background: radial-gradient(ellipse at top, #0f132e 0%, #070913 100%);
  border-bottom: 1px solid rgba(0, 102, 255, 0.1);
  overflow: hidden;
  color: #fff;
}

.esd-hero canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.65;
}

.esd-hero .wrap {
  position: relative;
  z-index: 5;
}

.esd-hero .breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin-bottom: 28px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.esd-hero .breadcrumbs a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.esd-hero .breadcrumbs a:hover {
  color: #00d4ff;
}

.esd-hero .breadcrumbs i {
  font-size: 0.6rem;
}

.esd-hero .hero-tag {
  display: inline-block;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: #00d4ff;
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 22px;
}

.esd-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.15;
  background: linear-gradient(135deg, #ffffff 30%, #a5c2f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.esd-hero .hero-desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 36px auto;
}

.esd-hero .hero-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.esd-hero .btn-hero-primary {
  background: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
  color: #ffffff !important;
  padding: 13px 28px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
}

.esd-hero .btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
}

.esd-hero .btn-hero-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  padding: 13px 28px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
}

.esd-hero .btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* --- Section Headers --- */
.esd .eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.esd .head {
  max-width: 720px;
  margin-bottom: 44px
}

.esd .head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center
}

.esd h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.01em
}

.esd h2 .accent {
  color: var(--blue)
}

.esd .head p {
  margin-top: 14px;
  font-size: 16.5px
}

/* --- Service Overview (2-col split) --- */
.esd .overview-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.esd .overview-split.reverse {
  direction: rtl;
}

.esd .overview-split.reverse>* {
  direction: ltr;
}

.esd .overview-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.esd .overview-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.esd .overview-img-wrap:hover img {
  transform: scale(1.03);
}

.esd .overview-text h2 {
  margin-bottom: 18px;
}

.esd .overview-text p {
  font-size: 16px;
  line-height: 1.72;
  margin-bottom: 14px;
  color: var(--slate);
}

.esd .overview-text p:last-child {
  margin-bottom: 0;
}

.esd .overview-text strong {
  color: var(--navy);
  font-weight: 600;
}

/* --- Key Benefits --- */
.esd .benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px
}

.esd .benefit {
  display: flex;
  gap: 18px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 26px;
  border: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}

.esd .benefit:hover {
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow-sm)
}

.esd .benefit .ic {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.esd .benefit:hover .ic {
  background: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
  color: #ffffff !important;
  transform: translateY(-3px) scale(1.12) rotate(-5deg);
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.35);
}

.esd .benefit:hover .ic i {
  color: #ffffff !important;
}

.esd .benefit h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px
}

.esd .benefit p {
  font-size: 14.5px
}

/* --- How We Deliver (Steps) --- */
.esd .steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.esd .steps::after {
  content: "";
  position: absolute;
  top: 53px;
  left: 50px;
  right: 50px;
  height: 2px;
  background: var(--line);
  z-index: 0;
}

.esd .step {
  position: relative;
  display: block;
  padding: 30px 28px;
  z-index: 1;
}

.esd .step .num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 8px 20px -8px rgba(36, 101, 232, .6);
}

.esd .step h3 {
  font-size: 16.5px;
  font-weight: 600;
  margin-bottom: 10px
}

.esd .step p {
  font-size: 14px;
  line-height: 1.6
}

/* --- Industries --- */
.esd .inds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

.esd .ind {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.esd .ind:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow)
}

.esd .ind .ic {
  color: var(--blue);
  margin-bottom: 16px
}

.esd .ind h3 {
  font-size: 16.5px;
  font-weight: 600;
  margin-bottom: 8px
}

.esd .ind p {
  font-size: 14px
}

/* --- Deliverables --- */
.esd .deliverables {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.esd .deliverable {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}

.esd .deliverable:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow)
}

.esd .deliverable .ic {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px auto;
  font-size: 1.3rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.esd .deliverable:hover .ic {
  background: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%) !important;
  color: #ffffff !important;
  transform: translateY(-3px) scale(1.12) rotate(-5deg);
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.35);
}

.esd .deliverable:hover .ic i {
  color: #ffffff !important;
}

.esd .deliverable h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.esd .deliverable p {
  font-size: 14px;
}

/* --- FAQ --- */
.esd .faq {
  max-width: 820px;
  margin: 0 auto
}

.esd .qa {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden
}

.esd .qa button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}

.esd .qa .sign {
  flex: none;
  width: 24px;
  height: 24px;
  position: relative;
  transition: transform .25s ease
}

.esd .qa .sign::before,
.esd .qa .sign::after {
  content: "";
  position: absolute;
  background: var(--blue);
  border-radius: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%)
}

.esd .qa .sign::before {
  width: 14px;
  height: 2px
}

.esd .qa .sign::after {
  width: 2px;
  height: 14px;
  transition: transform .25s ease
}

.esd .qa.open .sign::after {
  transform: translate(-50%, -50%) scaleY(0)
}

.esd .qa .ans {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease
}

.esd .qa .ans p {
  padding: 0 24px 22px;
  font-size: 15px
}

/* --- CTA Band --- */
.esd .cta-band {
  background: linear-gradient(115deg, #12245a 0%, #1c3f9e 55%, #2465e8 100%);
  border-radius: 24px;
  padding: 52px 48px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.esd .cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 85% -20%, rgba(255, 255, 255, .14), transparent);
  pointer-events: none
}

.esd .cta-band h2 {
  color: #fff;
  position: relative
}

.esd .cta-band p {
  color: rgba(255, 255, 255, .82);
  max-width: 560px;
  margin: 14px auto 30px;
  position: relative
}

.esd .cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative
}

.esd .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 9px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  border: none;
  max-width: 100%;
  box-sizing: border-box;
}

.esd .btn:hover {
  transform: translateY(-2px)
}

.esd .btn-white {
  background: #fff;
  color: var(--blue)
}

.esd .btn-green {
  background: var(--green);
  color: #fff
}

.esd .btn-blue {
  background: linear-gradient(135deg, #0066ff 0%, #2465e8 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(36, 101, 232, 0.35);
}

.esd .btn-blue:hover {
  background: linear-gradient(135deg, #0052cc 0%, #1a4fc4 100%);
  box-shadow: 0 10px 28px rgba(36, 101, 232, 0.5);
}

.esd .btn-white:hover {
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .4)
}

/* --- Reveal Animation --- */
.esd .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease
}

.esd .reveal.in {
  opacity: 1;
  transform: none
}

@media (prefers-reduced-motion:reduce) {
  .esd .reveal {
    opacity: 1;
    transform: none;
    transition: none
  }
}

/* --- Responsive Enhancements --- */
@media (max-width: 960px) {
  .esd .wrap {
    padding-left: 24px;
    padding-right: 24px;
  }

  .esd .overview-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .esd .overview-split.reverse {
    direction: ltr;
  }

  .esd .inds {
    grid-template-columns: repeat(2, 1fr);
  }

  .esd .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 0;
  }

  .esd .steps::after {
    display: none;
  }

  .esd .deliverables {
    grid-template-columns: repeat(2, 1fr);
  }

  .esd-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .esd-compare-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .esd-tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .esd-hero {
    padding: 120px 20px 50px 20px;
  }

  .esd-hero h1 {
    font-size: clamp(1.75rem, 6.5vw, 2.5rem);
    line-height: 1.25;
  }

  .esd-hero .hero-desc {
    font-size: 1rem;
  }

  .esd-hero .hero-ctas {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .esd-hero .btn-hero-primary,
  .esd-hero .btn-hero-secondary {
    width: 100%;
    max-width: 340px;
    justify-content: center;
  }

  .esd section {
    padding: 44px 0;
  }

  .esd .head h2 {
    font-size: 1.75rem;
  }

  .esd .cta-band {
    padding: 36px 20px;
    border-radius: 18px;
  }

  .esd .cta-band h2 {
    font-size: 1.6rem;
  }

  .esd .cta-btns {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .esd .cta-btns .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .esd .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .esd section {
    padding: 36px 0;
  }

  .esd .benefits,
  .esd .inds,
  .esd .steps,
  .esd .deliverables,
  .esd-stats-bar,
  .esd-tech-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .esd .qa button {
    padding: 16px 18px;
    font-size: 15px;
  }

  .esd .qa .ans p {
    padding: 0 18px 18px;
    font-size: 14px;
  }

  .esd-hero .breadcrumbs {
    flex-wrap: wrap;
    font-size: 0.75rem;
    gap: 4px 8px;
  }
}

@media (max-width: 480px) {
  .esd-hero {
    padding: 105px 16px 40px 16px;
  }

  .esd-hero h1 {
    font-size: 1.65rem;
  }

  .esd .btn {
    padding: 13px 22px;
    font-size: 14px;
  }

  .esd .benefit,
  .esd .deliverable {
    padding: 20px;
  }

  .esd .overview-img-wrap img {
    border-radius: 12px;
  }
}