:root {
  --om-white: #ffffff;
  --om-off-white: #f7f7f4;
  --om-soft-warm: #fff4ec;
  --om-light-gray: #ececec;
  --om-mid-gray: #777777;
  --om-dark-gray: #2b2b2b;
  --om-near-black: #111111;
  --om-orange: #f26a21;
  --om-orange-dark: #d95512;
  --om-border: #e2e2df;

  --om-container: 1180px;
  --om-container-wide: 1280px;
  --om-section-y: 112px;
  --om-section-y-sm: 80px;
  --om-page-x: 32px;

  --om-radius-sm: 12px;
  --om-radius-md: 20px;
  --om-radius-lg: 28px;

  --om-shadow-soft: 0 24px 70px rgba(17, 17, 17, 0.08);
}

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

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

.om-homepage {
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--om-white);
  color: var(--om-near-black);
  flex: 0 0 100%;
  font-family: Inter, "Noto Sans Thai", "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
}

.om-homepage * {
  box-sizing: border-box;
}

.om-container {
  width: min(100% - calc(var(--om-page-x) * 2), var(--om-container));
  margin-inline: auto;
}

.om-section {
  width: 100%;
  padding-block: var(--om-section-y);
}

.om-section--soft {
  background:
    linear-gradient(135deg, rgba(242, 106, 33, 0.06), transparent 34%),
    var(--om-off-white);
}

.om-section__narrow {
  max-width: 860px;
}

.om-section__header {
  max-width: 760px;
  margin-bottom: 48px;
}

.om-eyebrow {
  margin: 0 0 18px;
  color: var(--om-orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.om-homepage h1,
.om-homepage h2,
.om-homepage h3,
.om-homepage p {
  margin-top: 0;
}

.om-homepage h1 {
  max-width: 760px;
  margin-bottom: 28px;
  color: var(--om-near-black);
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

@media (min-width: 1025px) {
  .om-homepage--th .om-hero h1 {
    max-width: 700px;
    font-size: clamp(42px, 4.8vw, 64px);
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.15;
    text-wrap: balance;
  }
}

.om-homepage h2 {
  margin-bottom: 22px;
  color: var(--om-near-black);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.om-homepage h3 {
  margin-bottom: 14px;
  color: var(--om-near-black);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.28;
}

.om-homepage p {
  color: var(--om-mid-gray);
  font-size: 17px;
  line-height: 1.75;
}

.om-hero {
  position: relative;
  width: 100%;
  min-height: 760px;
  padding-block: 120px;
  background:
    radial-gradient(
      circle 560px at calc(50% + 430px) 24%,
      rgba(242, 106, 33, 0.22),
      transparent 72%
    ),
    linear-gradient(135deg, #ffffff 0%, #f8f7f2 52%, #fff8f2 100%);
}

.om-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-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-hero__description {
  max-width: 650px;
  margin-bottom: 34px;
  color: #4f4f4f;
  font-size: 20px;
  line-height: 1.72;
}

.om-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.om-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.om-button:hover {
  transform: translateY(-2px);
}

.om-button--primary {
  background: var(--om-orange);
  color: var(--om-white);
  box-shadow: 0 18px 38px rgba(242, 106, 33, 0.24);
}

.om-button--primary:hover {
  background: var(--om-orange-dark);
  color: var(--om-white);
}

.om-button--secondary {
  border: 1px solid rgba(17, 17, 17, 0.16);
  background: rgba(255, 255, 255, 0.68);
  color: var(--om-near-black);
}

.om-button--secondary:hover {
  border-color: rgba(242, 106, 33, 0.44);
  color: var(--om-orange-dark);
}

.om-hero__visual {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--om-radius-lg);
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.88), rgba(43, 43, 43, 0.95)),
    linear-gradient(135deg, rgba(242, 106, 33, 0.18), transparent);
  box-shadow: var(--om-shadow-soft);
  overflow: hidden;
}

.om-hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.26;
  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-hero__visual::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: rgba(242, 106, 33, 0.38);
  filter: blur(6px);
}

.om-system-card {
  position: absolute;
  z-index: 1;
  width: 190px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.om-system-card span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.om-system-card strong {
  display: block;
  color: var(--om-white);
  font-size: 20px;
  line-height: 1.25;
}

.om-system-card--main {
  top: 72px;
  left: 56px;
  width: 260px;
}

.om-system-card:not(.om-system-card--main):nth-of-type(2) {
  right: 46px;
  top: 210px;
}

.om-system-card:not(.om-system-card--main):nth-of-type(3) {
  left: 86px;
  bottom: 72px;
}

.om-connection-line {
  position: absolute;
  z-index: 0;
  top: 170px;
  left: 150px;
  width: 260px;
  height: 180px;
  border-top: 1px solid rgba(242, 106, 33, 0.65);
  border-right: 1px solid rgba(242, 106, 33, 0.65);
  border-radius: 0 26px 0 0;
}

.om-philosophy {
  background: var(--om-white);
}

.om-philosophy .om-section__narrow {
  text-align: center;
}

.om-philosophy p:last-child {
  color: #4f4f4f;
  font-size: 21px;
  line-height: 1.75;
}

.om-card-grid {
  display: grid;
  gap: 22px;
}

.om-card-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.om-card {
  position: relative;
  min-height: 260px;
  padding: 34px;
  border: 1px solid var(--om-border);
  border-radius: var(--om-radius-md);
  background: var(--om-white);
  box-shadow: 0 12px 44px rgba(17, 17, 17, 0.04);
}

.om-card__marker {
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 26px;
  border-radius: 999px;
  background: var(--om-orange);
}

.om-capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.om-capability {
  padding: 26px;
  border: 1px solid var(--om-border);
  border-radius: var(--om-radius-sm);
  background:
    linear-gradient(135deg, rgba(242, 106, 33, 0.06), transparent 40%),
    var(--om-white);
  color: var(--om-near-black);
  font-size: 18px;
  font-weight: 650;
}

.om-feature {
  background: var(--om-near-black);
  color: var(--om-white);
}

.om-feature h2,
.om-feature h3 {
  color: var(--om-white);
}

.om-feature p {
  color: rgba(255, 255, 255, 0.72);
}

.om-feature__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1fr);
  gap: 64px;
  align-items: center;
}

.om-feature__panel {
  position: relative;
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--om-radius-lg);
  background:
    radial-gradient(
      circle at 70% 35%,
      rgba(242, 106, 33, 0.34),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.02)
    );
  overflow: hidden;
}

.om-feature__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 42px 42px;
}

.om-panel-line {
  position: absolute;
  top: 50%;
  left: 12%;
  width: 74%;
  height: 1px;
  background: rgba(242, 106, 33, 0.8);
}

.om-panel-node {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 4px solid rgba(242, 106, 33, 0.9);
  border-radius: 999px;
  background: var(--om-near-black);
}

.om-panel-node--one {
  top: 32%;
  left: 22%;
}

.om-panel-node--two {
  top: 50%;
  left: 52%;
}

.om-panel-node--three {
  top: 68%;
  left: 76%;
}

.om-split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 54px;
  align-items: start;
}

.om-highlight-card {
  padding: 42px;
  border: 1px solid rgba(242, 106, 33, 0.22);
  border-radius: var(--om-radius-lg);
  background:
    linear-gradient(135deg, rgba(242, 106, 33, 0.12), transparent 44%),
    var(--om-soft-warm);
}

.om-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.om-process__step {
  padding: 30px;
  border-top: 3px solid var(--om-orange);
  border-radius: 0 0 var(--om-radius-md) var(--om-radius-md);
  background: var(--om-off-white);
}

.om-process__step span {
  display: block;
  margin-bottom: 28px;
  color: var(--om-orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.om-why {
  background:
    linear-gradient(135deg, rgba(242, 106, 33, 0.08), transparent 32%),
    var(--om-white);
}

.om-contact {
  padding-block: 82px;
  background: var(--om-near-black);
}

.om-contact__inner {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}

.om-contact h2 {
  max-width: 720px;
  color: var(--om-white);
}

.om-contact p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.7);
}

.om-contact__email {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.om-contact__email a {
  color: var(--om-orange);
  text-decoration: none;
}

.om-contact__email a:hover,
.om-contact__email a:focus {
  color: var(--om-white);
}

@media (max-width: 1024px) {
  :root {
    --om-section-y: 88px;
    --om-page-x: 28px;
  }

  .om-hero__grid,
  .om-feature__grid,
  .om-split {
    grid-template-columns: 1fr;
  }

  .om-hero {
    min-height: auto;
    padding-block: 88px;
  }

  .om-hero__visual {
    min-height: 420px;
  }

  .om-homepage--th .om-hero h1 {
    max-width: 680px;
    font-size: clamp(40px, 6vw, 54px);
    letter-spacing: 0;
    line-height: 1.16;
    text-wrap: balance;
  }

  .om-card-grid--3,
  .om-capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .om-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .om-contact__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  :root {
    --om-section-y: 68px;
    --om-page-x: 20px;
  }

  .om-hero {
    padding-block: 72px;
  }

  .om-homepage h1 {
    font-size: 42px;
    letter-spacing: -0.04em;
  }

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

  .om-homepage h2 {
    font-size: 32px;
  }

  .om-hero__description {
    font-size: 17px;
  }

  .om-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .om-button {
    width: 100%;
  }

  .om-card-grid--3,
  .om-capability-grid,
  .om-process {
    grid-template-columns: 1fr;
  }

  .om-card {
    min-height: auto;
    padding: 26px;
  }

  .om-hero__visual {
    min-height: 360px;
  }

  .om-system-card {
    width: 168px;
    padding: 16px;
  }

  .om-system-card--main {
    top: 44px;
    left: 24px;
    width: 220px;
  }

  .om-system-card:not(.om-system-card--main):nth-of-type(2) {
    right: 24px;
    top: 172px;
  }

  .om-system-card:not(.om-system-card--main):nth-of-type(3) {
    left: 28px;
    bottom: 42px;
  }

  .om-connection-line {
    display: none;
  }
}

/* Minimal premium Astra header for the custom homepage template. */
@media (min-width: 922px) {
  body.page-template-overmod-homepage #masthead,
  body.page-template-overmod-homepage #ast-desktop-header {
    background: rgba(255, 255, 255, 0.96);
  }

  body.page-template-overmod-homepage #ast-desktop-header .ast-primary-header-bar {
    min-height: 72px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    background: rgba(255, 255, 255, 0.96);
    color: var(--om-near-black);
    backdrop-filter: blur(16px);
  }

  body.page-template-overmod-homepage #ast-desktop-header .site-primary-header-wrap,
  body.page-template-overmod-homepage #ast-desktop-header .ast-builder-grid-row {
    min-height: 72px;
  }

  body.page-template-overmod-homepage #ast-desktop-header .site-primary-header-wrap {
    width: min(100% - 64px, var(--om-container-wide));
    padding-inline: 0;
  }

  body.page-template-overmod-homepage #ast-desktop-header .site-branding {
    min-height: 72px;
    padding-block: 0;
  }

  body.page-template-overmod-homepage #ast-desktop-header .custom-logo {
    width: auto;
    max-width: 142px;
    max-height: 44px;
  }

  body.page-template-overmod-homepage #ast-desktop-header .ast-site-title-wrap {
    display: none;
  }

  body.page-template-overmod-homepage #ast-desktop-header .ast-header-social-wrap {
    display: none;
  }

  body.page-template-overmod-homepage #ast-desktop-header .site-header-primary-section-right {
    gap: 0;
  }

  body.page-template-overmod-homepage #ast-desktop-header .main-header-menu {
    gap: 6px;
    height: 72px;
    align-items: center;
  }

  body.page-template-overmod-homepage #ast-desktop-header .main-header-menu > .menu-item > .menu-link {
    position: relative;
    height: 72px;
    padding-inline: 14px;
    color: rgba(17, 17, 17, 0.72);
    font-size: 14px;
    font-weight: 650;
    letter-spacing: 0;
    line-height: 72px;
    transition:
      color 180ms ease,
      background-color 180ms ease;
  }

  body.page-template-overmod-homepage #ast-desktop-header .main-header-menu > .menu-item > .menu-link::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 18px;
    left: 14px;
    height: 2px;
    border-radius: 999px;
    background: var(--om-orange);
    opacity: 0;
    transform: scaleX(0.45);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  body.page-template-overmod-homepage #ast-desktop-header .main-header-menu > .menu-item:hover > .menu-link,
  body.page-template-overmod-homepage #ast-desktop-header .main-header-menu > .menu-item:focus-within > .menu-link,
  body.page-template-overmod-homepage #ast-desktop-header .main-header-menu > .current-menu-item > .menu-link,
  body.page-template-overmod-homepage #ast-desktop-header .main-header-menu > .current_page_item > .menu-link,
  body.page-template-overmod-homepage #ast-desktop-header .main-header-menu > .current-lang > .menu-link {
    color: var(--om-orange-dark);
    background: transparent;
  }

  body.page-template-overmod-homepage #ast-desktop-header .main-header-menu > .menu-item:hover > .menu-link::after,
  body.page-template-overmod-homepage #ast-desktop-header .main-header-menu > .menu-item:focus-within > .menu-link::after,
  body.page-template-overmod-homepage #ast-desktop-header .main-header-menu > .current-menu-item > .menu-link::after,
  body.page-template-overmod-homepage #ast-desktop-header .main-header-menu > .current_page_item > .menu-link::after,
  body.page-template-overmod-homepage #ast-desktop-header .main-header-menu > .current-lang > .menu-link::after {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* Keep Astra mobile header visible on the custom homepage template. */
@media (max-width: 921px) {
  body.page-template-overmod-homepage #masthead,
  body.page-template-overmod-homepage #ast-mobile-header,
  body.page-template-overmod-homepage #ast-mobile-header .ast-main-header-wrap {
    height: auto !important;
    min-height: 72px;
  }

  body.page-template-overmod-homepage #ast-mobile-header .ast-primary-header-bar {
    display: block !important;
    min-height: 72px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    background: rgba(255, 255, 255, 0.98);
  }

  body.page-template-overmod-homepage #ast-mobile-header .ast-builder-grid-row {
    display: grid !important;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 72px;
  }

  body.page-template-overmod-homepage #ast-mobile-header .site-header-section,
  body.page-template-overmod-homepage #ast-mobile-header .ast-builder-layout-element,
  body.page-template-overmod-homepage #ast-mobile-header .site-branding,
  body.page-template-overmod-homepage #ast-mobile-header .ast-button-wrap,
  body.page-template-overmod-homepage #ast-mobile-header .mobile-menu-toggle-icon {
    width: auto !important;
    height: auto !important;
  }

  body.page-template-overmod-homepage #ast-mobile-header .site-header-primary-section-left {
    align-items: center;
    min-width: 0;
  }

  body.page-template-overmod-homepage #ast-mobile-header .site-branding {
    display: flex !important;
    align-items: center;
    max-width: 100%;
    min-width: 0;
    padding-block: 0 !important;
  }

  body.page-template-overmod-homepage #ast-mobile-header .custom-logo {
    width: auto !important;
    max-width: 132px;
    max-height: 48px;
  }

  body.page-template-overmod-homepage #ast-mobile-header .ast-site-title-wrap {
    display: none;
  }

  body.page-template-overmod-homepage #ast-mobile-header .menu-toggle {
    min-width: 44px;
    min-height: 44px;
  }
}
