:root {
  --om-services-white: #ffffff;
  --om-services-off-white: #f7f7f4;
  --om-services-ink: #111111;
  --om-services-muted: #6f6f6f;
  --om-services-border: #e2e2df;
  --om-services-orange: #f26a21;
  --om-services-orange-dark: #d95512;
  --om-services-container: 1180px;
  --om-services-page-x: 32px;
  --om-services-section-y: 112px;
  --om-services-radius-sm: 12px;
  --om-services-radius-md: 20px;
  --om-services-radius-lg: 28px;
  --om-services-shadow: 0 24px 70px rgba(17, 17, 17, 0.08);
}

body.page-template-overmod-services #page,
body.page-template-overmod-services .site,
body.page-template-overmod-services #content,
body.page-template-overmod-services .site-content {
  width: 100%;
  max-width: none;
}

body.page-template-overmod-services #content > .ast-container {
  display: block;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}

.om-services {
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--om-services-white);
  color: var(--om-services-ink);
  flex: 0 0 100%;
  font-family: Inter, "Noto Sans Thai", "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
}

.om-services * {
  box-sizing: border-box;
}

.om-services-container {
  width: min(100% - calc(var(--om-services-page-x) * 2), var(--om-services-container));
  margin-inline: auto;
}

.om-services h1,
.om-services h2,
.om-services p {
  margin-top: 0;
}

.om-services h1 {
  max-width: 760px;
  margin-bottom: 26px;
  color: var(--om-services-ink);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.07;
}

.om-services h2 {
  margin-bottom: 18px;
  color: var(--om-services-ink);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.14;
}

.om-services p {
  color: var(--om-services-muted);
  font-size: 17px;
  line-height: 1.75;
}

.om-services-eyebrow {
  margin: 0 0 16px;
  color: var(--om-services-orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.om-services-hero {
  position: relative;
  width: 100%;
  min-height: 720px;
  padding-block: 118px;
  background:
    radial-gradient(
      circle 560px at calc(50% + 410px) 24%,
      rgba(242, 106, 33, 0.2),
      transparent 72%
    ),
    linear-gradient(135deg, #ffffff 0%, #f8f7f2 52%, #fff8f2 100%);
}

.om-services-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.om-services-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 72px;
  align-items: center;
}

.om-services-hero__title {
  margin-bottom: 20px;
  color: var(--om-services-ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.om-services-hero__description {
  max-width: 680px;
  margin-bottom: 0;
  color: #4f4f4f;
  font-size: 20px;
  line-height: 1.72;
}

.om-services-visual {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--om-services-radius-lg);
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.9), rgba(43, 43, 43, 0.96)),
    linear-gradient(135deg, rgba(242, 106, 33, 0.18), transparent);
  box-shadow: var(--om-services-shadow);
  overflow: hidden;
}

.om-services-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 38px 38px;
}

.om-services-visual::after {
  content: "";
  position: absolute;
  right: -86px;
  bottom: -86px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(242, 106, 33, 0.34);
  filter: blur(8px);
}

.om-services-visual__core,
.om-services-visual__node {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  color: var(--om-services-white);
}

.om-services-visual__core {
  top: 50%;
  left: 50%;
  width: 190px;
  min-height: 132px;
  padding: 24px;
  border-radius: 22px;
  transform: translate(-50%, -50%);
}

.om-services-visual__core span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.om-services-visual__core strong {
  display: block;
  font-size: 24px;
  line-height: 1.15;
}

.om-services-visual__node {
  width: 168px;
  min-height: 66px;
  padding: 16px 18px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.28;
}

.om-services-visual__node:nth-of-type(2) {
  top: 56px;
  left: 50px;
}

.om-services-visual__node:nth-of-type(3) {
  top: 72px;
  right: 48px;
}

.om-services-visual__node:nth-of-type(4) {
  top: 226px;
  left: 42px;
}

.om-services-visual__node:nth-of-type(5) {
  top: 226px;
  right: 42px;
}

.om-services-visual__node:nth-of-type(6) {
  bottom: 64px;
  left: 72px;
}

.om-services-visual__node:nth-of-type(7) {
  right: 72px;
  bottom: 64px;
}

.om-services-section {
  width: 100%;
  padding-block: var(--om-services-section-y);
}

.om-services-section--soft {
  background:
    linear-gradient(135deg, rgba(242, 106, 33, 0.06), transparent 34%),
    var(--om-services-off-white);
}

.om-services-intro {
  background: var(--om-services-white);
}

.om-services-intro__inner {
  max-width: 880px;
  text-align: center;
}

.om-services-intro p:last-child {
  color: #4f4f4f;
  font-size: 21px;
  line-height: 1.75;
}

.om-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.om-services-card {
  min-height: 330px;
  padding: 34px;
  border: 1px solid var(--om-services-border);
  border-radius: var(--om-services-radius-md);
  background: var(--om-services-white);
  box-shadow: 0 12px 44px rgba(17, 17, 17, 0.04);
}

.om-services-card__kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  border-radius: 999px;
  background: rgba(242, 106, 33, 0.1);
  color: var(--om-services-orange);
  font-size: 13px;
  font-weight: 800;
}

.om-services-card p {
  margin-bottom: 0;
}

.om-services-cta {
  width: 100%;
  padding-block: 82px;
  background: var(--om-services-ink);
}

.om-services-cta__inner {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}

.om-services-cta h2 {
  max-width: 720px;
  color: var(--om-services-white);
}

.om-services-cta p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.7);
}

.om-services-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--om-services-orange);
  color: var(--om-services-white);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 18px 38px rgba(242, 106, 33, 0.24);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.om-services-button:hover,
.om-services-button:focus {
  background: var(--om-services-orange-dark);
  color: var(--om-services-white);
  transform: translateY(-2px);
}

@media (min-width: 1025px) {
  .om-services--th h1 {
    max-width: 720px;
    font-size: clamp(40px, 4.4vw, 58px);
    letter-spacing: 0;
    line-height: 1.16;
    text-wrap: balance;
  }
}

@media (max-width: 1024px) {
  :root {
    --om-services-page-x: 28px;
    --om-services-section-y: 88px;
  }

  .om-services-hero {
    min-height: auto;
    padding-block: 88px;
  }

  .om-services-hero__grid {
    grid-template-columns: 1fr;
  }

  .om-services-visual {
    min-height: 440px;
  }

  .om-services--th h1 {
    max-width: 720px;
    font-size: clamp(38px, 5.8vw, 50px);
    letter-spacing: 0;
    line-height: 1.16;
    text-wrap: balance;
  }

  .om-services-cta__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  :root {
    --om-services-page-x: 20px;
    --om-services-section-y: 68px;
  }

  .om-services-hero {
    padding-block: 72px;
  }

  .om-services h1 {
    font-size: 38px;
    letter-spacing: -0.035em;
    line-height: 1.1;
  }

  .om-services--th h1 {
    max-width: 100%;
    font-size: 34px;
    letter-spacing: 0;
    line-height: 1.18;
  }

  .om-services h2 {
    font-size: 30px;
  }

  .om-services-hero__description,
  .om-services-intro p:last-child {
    font-size: 17px;
  }

  .om-services-visual {
    min-height: 430px;
  }

  .om-services-visual__core {
    width: 160px;
    min-height: 112px;
    padding: 20px;
  }

  .om-services-visual__core strong {
    font-size: 20px;
  }

  .om-services-visual__node {
    width: 138px;
    min-height: 58px;
    padding: 13px 14px;
    font-size: 12px;
  }

  .om-services-visual__node:nth-of-type(2) {
    top: 34px;
    left: 20px;
  }

  .om-services-visual__node:nth-of-type(3) {
    top: 44px;
    right: 18px;
  }

  .om-services-visual__node:nth-of-type(4) {
    top: 168px;
    left: 16px;
  }

  .om-services-visual__node:nth-of-type(5) {
    top: 178px;
    right: 16px;
  }

  .om-services-visual__node:nth-of-type(6) {
    bottom: 44px;
    left: 24px;
  }

  .om-services-visual__node:nth-of-type(7) {
    right: 24px;
    bottom: 44px;
  }

  .om-services-grid {
    grid-template-columns: 1fr;
  }

  .om-services-card {
    min-height: auto;
    padding: 28px;
  }

  .om-services-button {
    width: 100%;
  }
}
