/*
 * /development/ and /th/development/ only (loaded by those two pages).
 * Hero showcase of a real client build, consistent CTA buttons, case-card legibility,
 * heading scale and reading width, and Noto Sans Thai for the Thai page.
 */

/* Thai page: one Thai typeface for the whole page instead of the OS fallback */
html[lang="th"] body {
  font-family: "Inter", "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
}

/* ---------- Hero: text + showcase ---------- */
.first-block.development .index-img {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
}
.first-block.development .index-description {
  margin: 0;
}
.first-block.development .dev-showcase {
  display: block;
  min-width: 0;
  width: auto;
  max-width: none;
  margin: 0;
}
.dev-showcase__stage {
  position: relative;
  padding: 0 7% 9% 0;
}
.dev-showcase figure {
  margin: 0;
}
.dev-showcase__browser {
  border-radius: 12px;
  overflow: hidden;
  background: #1d1b22;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.dev-showcase__bar {
  display: flex;
  gap: 7px;
  padding: 11px 14px;
  background: #322e3b;
}
.dev-showcase__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4d4959;
}
.dev-showcase__browser img,
.dev-showcase__phone img {
  display: block;
  width: 100%;
  height: auto;
}
.dev-showcase__phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 23%;
  padding: 6px;
  border-radius: 24px;
  background: #121015;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.dev-showcase__phone img {
  border-radius: 18px;
}
.dev-showcase__caption {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #a7a3b0;
}
.dev-showcase__caption a {
  color: #b9b2f2;
}
.dev-showcase__caption a:hover {
  color: #fff;
}

/* ---------- CTA pair: one button system (purple pill + LINE pill) ---------- */
.dev-cta .purple-dark,
.dev-cta .line-it-big {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}
.dev-cta .line-it-big img {
  width: 26px;
  height: 26px;
  margin: 0;
}
.dev-cta .line-it-big:hover {
  background: #05a648;
}

/* ---------- "What we build": heading scale and reading weight ---------- */
.services-block.development .services-title {
  font-size: 36px;
  line-height: 1.3;
  font-weight: 500;
}
.services-block.development .services-description p {
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: #e4e2ea;
  max-width: 68ch;
}

/* Light text sections: keep lines to a readable length */
.description-block .description-bold {
  max-width: 820px;
}

/* ---------- Case cards: text on a solid side, the work visible on the other ---------- */
.our-works-block.development .our-works-item-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(39, 36, 46, 0.9) 0%, rgba(39, 36, 46, 0.72) 42%, rgba(39, 36, 46, 0.12) 100%);
}
.our-works-block.development .our-works-last-item .our-works-item-img::after {
  content: none;
}
@media screen and (min-width: 750px) {
  .our-works-block.development .our-works-big-item {
    height: 440px;
  }
}
@media screen and (max-width: 749px) {
  /* Phones: cards size to their content instead of a fixed 500px */
  .our-works-block.development .our-works-item {
    height: auto;
    min-height: 340px;
  }
  .our-works-block.development .our-works-item .item-bottom {
    margin-top: auto;
    padding-top: 28px;
  }
  .our-works-block.development .our-works-item-img::after {
    background: linear-gradient(180deg, rgba(39, 36, 46, 0.92) 0%, rgba(39, 36, 46, 0.8) 55%, rgba(39, 36, 46, 0.55) 100%);
  }
}

/* Automation cards: intro on its own row so the three cases sit together */
#automation .formats-item-small.item-no-bg {
  width: calc(100% - 40px);
}

/* Related services: three links in three columns */
.seo-related-links ul:has(> li:nth-child(3):last-child) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---------- Tablet and phone ---------- */
@media screen and (max-width: 1024px) {
  .first-block.development .index-img {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .dev-showcase {
    max-width: 680px;
  }
  .seo-related-links ul:has(> li:nth-child(3):last-child) {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media screen and (max-width: 640px) {
  .services-block.development .services-title {
    font-size: 28px;
  }
  .dev-showcase__stage {
    padding: 0 9% 12% 0;
  }
  .dev-showcase__phone {
    width: 27%;
    padding: 4px;
    border-radius: 16px;
  }
  .dev-showcase__phone img {
    border-radius: 12px;
  }
  .dev-cta {
    width: 100%;
  }
  .dev-cta .purple-dark,
  .dev-cta .line-it-big {
    width: 100%;
  }
}
