/* =========================================================
   CUSTOM DEVELOPMENT PAGE
   Page layout follows the shared hero and service-card system.
   ========================================================= */

.dev-page {
  overflow: hidden;
  color: var(--ink);
}

.dev-page a {
  text-decoration: none;
}

.dev-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  gap: 10px !important;
}

/* The hero uses the shared .hero, .hero-copy and .hero-visual rules. */
.dev-hero-visual {
  overflow: visible;
}

/* Code editor visual */
.dev-window {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow:
    0 30px 65px rgba(24, 58, 48, 0.22),
    0 5px 15px rgba(23, 58, 48, 0.06);
  transform: rotate(1.5deg);
}

.dev-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 37px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  color: #87958f;
  font:
    9px "DM Mono",
    monospace;
}

.hero-price strong {
  color: var(--coral);
}

.headline-cursor {
  display: inline-flex;
  align-items: flex-end;

  width: 18px;
  height: 26px;

  margin-left: 4px;

  vertical-align: baseline;

  transform: translateY(12px) translateX(-18px) rotate(-20deg);
}

.dev-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

.dev-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;

  min-width: 215px;

  padding: 15px 18px 15px 20px;

  background: var(--mint);
  color: var(--ink);

  border-radius: 7px;

  font-size: 12px;
  font-weight: 800;

  text-decoration: none;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    gap 0.25s ease;
}

.dev-hero-cta:hover {
  transform: translateY(-2px);
}

.dev-hero-cta span {
  font-size: 14px;
  line-height: 1;

  transition: transform 0.2s ease;
}

.dev-hero-cta:hover span {
  transform: translateX(3px);
}

.dev-hero-link {
  color: var(--muted);

  font:
    600 8px "DM Mono",
    monospace;

  letter-spacing: 0.08em;
  text-transform: uppercase;

  text-decoration: none;

  border-bottom: 1px solid var(--line, #d6e1db);

  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.dev-hero-link:hover {
  color: var(--coral);
  border-color: var(--coral);
}

.headline-cursor svg {
  display: block;

  width: 100%;
  height: 100%;

  fill: var(--coral);

  filter: drop-shadow(0 2px 3px rgba(23, 36, 33, 0.12));
}

.dev-window-bar i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--coral);
}

.dev-window-bar i:nth-child(2) {
  background: var(--yellow);
}

.dev-window-bar i:nth-child(3) {
  background: var(--green-soft);
}

.dev-window-bar span {
  margin-left: auto;
}

.dev-code {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  padding: 18px 18px 22px 0;
  background: linear-gradient(90deg, var(--paper) 0 42px, var(--white) 42px);
  font:
    12px/2 "DM Mono",
    monospace;
}

.dev-lines {
  padding-right: 12px;
  color: #aab4ae;
  text-align: right;
  user-select: none;
}

.dev-code-lines {
  overflow: hidden;
  color: #35544a;
  white-space: nowrap;
}

.dev-code-lines b {
  color: var(--green-dark);
  font-weight: 500;
}

.dev-code-lines i {
  color: var(--coral);
  font-style: normal;
}

.dev-code-lines em {
  color: #9871c3;
  font-style: normal;
}

/* Shared floating-card appearance, used in the hero and image showcase. */
.dev-page .page-float-card {
  border-radius: 7px;
  box-shadow: 0 10px 25px rgba(23, 58, 48, 0.08);
}

/* Centered placeholder visual, echoing the testimonials image treatment. */
.dev-image-showcase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 35px 28px 55px;
  overflow: hidden;
}

.dev-image-showcase .testimonials-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 470px;
  height: 470px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(57, 230, 164, 0.13) 0%,
    rgba(57, 230, 164, 0.06) 35%,
    rgba(57, 230, 164, 0) 72%
  );
  pointer-events: none;
}

.dev-image-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid #d4e3dc;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.dev-image-orbit-one {
  width: 420px;
  height: 420px;
}

.dev-image-orbit-two {
  width: 535px;
  height: 535px;
  border-style: dashed;
}

.dev-placeholder-image {
  position: relative;
  z-index: 2;
  display: block;
  width: min(480px, 70vw);
  max-height: 520px;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 20px 30px rgba(23, 36, 33, 0.12));
}

.dev-image-float {
  position: absolute;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 11px 14px;
  border: 1px solid rgba(219, 225, 220, 0.8);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 25px rgba(23, 58, 48, 0.08);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  pointer-events: none;
}

.dev-image-float span {
  color: #7a8983;
  font:
    600 7px "DM Mono",
    monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dev-image-float strong {
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.dev-image-float-top {
  top: 95px;
  right: max(calc((100% - 640px) / 2), 28px);
  transform: rotate(-2deg);
  animation: pageFloatTopRight 4s ease-in-out infinite;
}

.dev-image-float-bottom {
  bottom: 100px;
  left: max(calc((100% - 640px) / 2), 28px);
  transform: rotate(-2deg);
  animation: pageFloatBottomLeft 4.5s ease-in-out infinite;
}

/* Development toolkit */
.dev-stack {
  padding: 100px 0 110px;
  background: var(--white);
}

.dev-eyebrow {
  margin: 0 0 18px;
  color: #567068;
  font:
    500 11px "DM Mono",
    monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dev-eyebrow i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 9px 1px 1px;
  border-radius: 1px;
  background: var(--coral);
  transform: rotate(45deg);
}

.dev-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr);
  align-items: end;
  gap: 60px;
  margin-bottom: 45px;
}

.dev-section-head h2 {
  max-width: 600px;
  margin: 0;
  font-size: clamp(42px, 4.5vw, 62px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.dev-section-head h2 em {
  color: var(--green-soft);
  font-style: normal;
}

.dev-section-head > p {
  max-width: 360px;
  margin: 0 0 4px auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.dev-stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dev-stack-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 17px;
  min-height: 118px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(23, 36, 33, 0.035);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.dev-stack-card:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 36, 33, 0.15);
  box-shadow: 0 18px 40px rgba(23, 36, 33, 0.08);
}

.dev-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  color: var(--ink);
  background: var(--mint);
}

.dev-logo img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  object-position: center;
}

.dev-logo--php {
  background: #f0f0fa;
}
.dev-logo--react {
  background: #e9f7fb;
}
.dev-logo--sql {
  background: #eaf3f8;
}
.dev-logo--android {
  background: #e7f8ef;
}
.dev-logo--wp {
  background: #eaf4f8;
}
.dev-logo--crm {
  background: #fff0e9;
}

.dev-stack-card h3 {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.dev-stack-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

/* Starting-price information block. Footer CTA styling lives in shared CSS. */
.dev-starting-price {
  padding: 76px 28px;
  background: var(--ink);
  color: var(--white);
  text-align: center;
}

.dev-starting-price-inner {
  max-width: 760px;
  margin: 0 auto;
}

.dev-starting-price .dev-eyebrow {
  color: #a9cfc0;
}

.dev-starting-price h2 {
  margin: 0 0 18px;
  font-size: clamp(42px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.dev-starting-price h2 em {
  color: var(--mint);
  font-style: normal;
}

.dev-starting-price-inner > p:last-child {
  max-width: 560px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 950px) {
  .dev-hero-visual {
    height: 440px;
  }

  .dev-window {
    width: min(480px, 90%);
  }

  .dev-section-head {
    gap: 35px;
  }
}

@media (max-width: 760px) {
  .dev-shell {
    width: calc(100% - 40px);
  }

  .dev-image-showcase {
    min-height: 500px;
  }

  .dev-image-orbit-one {
    width: 360px;
    height: 360px;
  }

  .dev-image-orbit-two {
    width: 450px;
    height: 450px;
  }

  .dev-section-head {
    display: block;
    margin-bottom: 32px;
  }

  .dev-section-head > p {
    margin: 17px 0 0;
  }

  .dev-stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .dev-hero-visual {
    height: 340px;
    margin-top: 12px;
  }

  .dev-window {
    width: 88%;
  }

  .dev-code {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 14px 12px 16px 0;
    background: linear-gradient(90deg, var(--paper) 0 30px, var(--white) 30px);
    font-size: 8px;
    line-height: 2;
  }

  .dev-lines {
    padding-right: 8px;
  }

  .dev-image-showcase {
    min-height: 410px;
    padding: 20px 16px 35px;
  }

  .dev-image-orbit-one {
    width: 270px;
    height: 270px;
  }

  .dev-image-orbit-two {
    width: 350px;
    height: 350px;
  }

  .dev-placeholder-image {
    width: min(310px, 78vw);
    max-height: 350px;
  }

  .dev-image-float-top {
    top: 28px;
    right: 12px;
  }

  .dev-image-float-bottom {
    bottom: 20px;
    left: 12px;
  }

  .dev-stack {
    padding: 72px 0 78px;
  }

  .dev-stack-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .dev-stack-card {
    min-height: 96px;
    padding: 18px;
  }

  .dev-starting-price {
    padding: 60px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dev-stack-card,
  .dev-image-float {
    transition: none;
    animation: none;
  }
}
