.es-page-hero {
  padding: 78px 0 48px;
  background: linear-gradient(180deg, #f5fbff 0%, #ffffff 80%);
}

.es-page-hero--alt {
  background: linear-gradient(180deg, #eff7ff 0%, #ffffff 80%);
}

.es-page-content {
  padding-top: 36px;
}

.es-content-wrap {
  margin-top: 24px;
  border: 1px solid #e5ebf2;
  border-radius: 14px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 8px 28px rgba(13, 42, 67, 0.05);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.es-content > *:first-child {
  margin-top: 0;
}

.es-content > *:last-child {
  margin-bottom: 0;
}

.es-content h2,
.es-content h3 {
  color: #0d2a43;
}

.es-content p,
.es-content li {
  color: #4b5563;
}

.es-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.es-post-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 18px;
}

.es-project-thumb img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin-bottom: 12px;
}

.es-project-card h2 {
  font-size: 20px;
}

.es-project-hero-image img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}

.es-post-card h2 {
  font-size: 22px;
  margin-top: 4px;
  margin-bottom: 10px;
}

.es-post-meta {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 6px;
}

.es-post-readmore {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
}

.es-pagination {
  margin-top: 18px;
}

.es-page-cta {
  margin-top: 20px;
  border: 1px solid #d8e6f3;
  background: linear-gradient(180deg, #f4f9ff 0%, #ffffff 100%);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.es-page-cta p {
  margin: 0;
  color: #1f2937;
  max-width: 680px;
}

.es-page-cta__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.es-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.es-filter__item {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #d6e2ee;
  border-radius: 999px;
  background: #fff;
  color: #0d2a43;
  font-weight: 600;
  font-size: 13px;
}

.es-filter__item.is-active {
  background: #0a6fae;
  border-color: #0a6fae;
  color: #fff;
}

.es-product-index {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.es-product-index a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid #d9e5f0;
  border-radius: 8px;
  background: #fff;
  color: #0d2a43;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.es-product-index a:hover,
.es-product-index a:focus-visible {
  border-color: #0a6fae;
  color: #0a6fae;
}

.es-product-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.es-product-family-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-margin-top: 96px;
}

.es-product-family-panel__head,
.es-product-family-panel__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.es-product-family-panel__head h2 {
  margin: 2px 0 0;
  font-size: clamp(22px, 2.4vw, 30px);
}

.es-product-family-panel__desc {
  margin: 0;
  color: #4b5563;
  line-height: 1.65;
}

.es-product-family-panel__body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 16px;
}

.es-product-family-panel__body h3 {
  margin: 0 0 10px;
  color: #0d2a43;
  font-size: 16px;
}

.es-mini-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.es-mini-list--columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.es-mini-list li {
  position: relative;
  padding-left: 16px;
  color: #4b5563;
  line-height: 1.45;
}

.es-mini-list li::before {
  content: "";
  position: absolute;
  top: 0.66em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #0a6fae;
}

.es-product-selection-note {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid #d8e6f3;
  border-radius: 10px;
  background: #f6fbff;
  color: #374151;
}

.es-product-selection-note strong {
  color: #0d2a43;
}

.es-product-page-matrix,
.es-product-application-block,
.es-product-faq-block {
  margin-top: clamp(28px, 4vw, 42px);
}

.es-product-application-block .es-section-head,
.es-product-faq-block .es-section-head {
  margin-bottom: 18px;
}

.es-application-card strong {
  display: block;
  margin-top: 12px;
  color: #0d2a43;
  line-height: 1.55;
}

.es-faq--page details {
  border: 1px solid #dfe8f1;
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px;
}

.es-faq--page details + details {
  margin-top: 10px;
}

.es-single-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  align-items: start;
}

.es-single-sidebar h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.es-side-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.es-side-posts li + li {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e6edf5;
}

@media (max-width: 640px) {
  .es-page-hero {
    padding: 60px 0 34px;
  }

  .es-content-wrap {
    padding: 16px;
  }
}

@media (max-width: 992px) {
  .es-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .es-single-layout {
    grid-template-columns: 1fr;
  }

  .es-product-page-grid,
  .es-product-family-panel__body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .es-post-grid {
    grid-template-columns: 1fr;
  }

  .es-page-cta {
    padding: 14px;
  }

  .es-mini-list--columns {
    grid-template-columns: 1fr;
  }

  .es-product-family-panel__actions .es-btn {
    width: 100%;
  }
}

/* Inner pages: reference-style polish + motion targets (see main.js + main.css) */
.es-page-hero .es-kicker {
  position: relative;
  padding-bottom: 12px;
}

.es-page-hero .es-kicker::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(52px, 26vw);
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--color-primary), rgba(10, 111, 174, 0.25));
}

.es-page-hero h1 {
  letter-spacing: -0.025em;
}

.es-page-hero .es-lead {
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.65;
}

.es-content-wrap:hover {
  border-color: #d6e4f0;
  box-shadow: 0 14px 40px rgba(13, 42, 67, 0.08);
}

.es-post-card,
.es-project-card {
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .es-post-card:hover,
  .es-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 44px rgba(13, 42, 67, 0.11);
    border-color: #d0dce8;
  }

  .es-project-thumb img {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .es-project-card:hover .es-project-thumb img {
    transform: scale(1.04);
  }
}

.es-project-thumb {
  overflow: hidden;
  border-radius: 12px;
}

.es-filter__item {
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .es-filter__item:hover {
    transform: translateY(-1px);
    border-color: #b9cce0;
    box-shadow: 0 8px 20px rgba(13, 42, 67, 0.08);
  }
}

.es-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  margin: 3px;
  border-radius: 10px;
  border: 1px solid #dbe6f1;
  background: #fff;
  font-weight: 600;
  font-size: 14px;
  color: #0d2a43;
  text-decoration: none;
}

.es-pagination a.page-numbers:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: #f4faff;
}

.es-pagination span.page-numbers.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

@media (prefers-reduced-motion: no-preference) {
  .es-page-cta:hover {
    box-shadow: 0 16px 44px rgba(13, 42, 67, 0.1);
    border-color: #c9daf0;
  }
}

.es-faq--page details {
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.es-faq--page details:hover {
  border-color: #c5d7eb;
  box-shadow: 0 10px 26px rgba(13, 42, 67, 0.06);
}

.es-single-head h1 {
  letter-spacing: -0.03em;
}

.es-page-content .es-grid > .es-card:not(.es-card--link) {
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .es-page-content .es-grid > .es-card:not(.es-card--link):hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(13, 42, 67, 0.1);
    border-color: #d0dce8;
  }
}

/* Location map (About / Contact) */
.es-location-map {
  margin: clamp(32px, 4vw, 48px) 0;
  padding: clamp(28px, 4vw, 40px);
  background: linear-gradient(180deg, #f6fafd 0%, #eef4f9 100%);
  border: 1px solid #e5eaf0;
  border-radius: 16px;
}

.es-location-map__title {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.4vw, 28px);
  color: #0d2a43;
}

.es-location-map__address {
  margin: 0 0 18px;
  color: #5a6b7d;
  font-size: 15px;
}

.es-location-map__frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d8e2ec;
  background: #e8eef3;
  aspect-ratio: 16 / 9;
  min-height: 280px;
}

.es-location-map__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.es-location-map__actions {
  margin: 16px 0 0;
  text-align: center;
}

/* Global offices (About / Contact) */
.es-global-offices {
  margin: clamp(32px, 4vw, 48px) 0;
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid #e2ebf3;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbfe 0%, #fff 100%);
}

.es-global-offices__title {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.6vw, 30px);
  color: #0d2a43;
}

.es-global-offices__lead {
  margin: 0 0 clamp(20px, 3vw, 28px);
}

.es-global-offices__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(20px, 4vw, 32px);
  align-items: start;
}

.es-global-offices__map-panel {
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(165deg, #0a1f33 0%, #061522 55%, #0d2a43 100%);
  border: 1px solid rgba(13, 42, 67, 0.12);
  box-shadow: inset 0 0 40px rgba(78, 184, 232, 0.08);
}

.es-global-map--compact {
  aspect-ratio: 1000 / 760;
  max-width: 100%;
  min-height: 240px;
}

.es-global-map--compact .es-global-map__world {
  opacity: 0.95;
  mix-blend-mode: normal;
  filter: drop-shadow(0 0 20px rgba(78, 184, 232, 0.25));
}

.es-global-offices__map-panel .es-global-map--compact .es-global-map__pin-label--callout {
  font-size: 11px;
  padding: 4px 8px;
}

.es-global-offices__cards {
  display: grid;
  gap: 12px;
}

.es-global-offices__card {
  padding: 14px 16px;
  border: 1px solid #e2ebf3;
  border-radius: 12px;
  background: #fff;
}

.es-global-offices__card--hq {
  border-color: #b9d4eb;
  background: linear-gradient(180deg, #f4faff 0%, #fff 100%);
}

.es-global-offices__card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #0d2a43;
}

.es-global-offices__addr {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.55;
  color: #374151;
}

.es-global-offices__addr-en {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
}

.es-global-offices__hq-map {
  margin-top: clamp(24px, 3vw, 32px);
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid #e2ebf3;
}

@media (max-width: 900px) {
  .es-global-offices__layout {
    grid-template-columns: 1fr;
  }
}

/* About page: factory video + photo grid (ACF-driven) */
.es-about-factory {
  padding-top: clamp(28px, 4vw, 44px);
  padding-bottom: clamp(36px, 5vw, 56px);
}

.es-about-factory__title {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em;
  color: #0d2a43;
  text-align: center;
}

.es-about-factory__lead {
  margin: 0 auto clamp(24px, 3.5vw, 36px);
  max-width: min(720px, 100%);
  text-align: center;
}

.es-about-factory__video {
  display: flex;
  flex-direction: column;
  margin: 0 auto clamp(28px, 4vw, 44px);
  padding: 0;
  max-width: min(960px, 100%);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(13, 42, 67, 0.08);
  background: #0c1824;
  box-shadow:
    0 2px 6px rgba(13, 42, 67, 0.06),
    0 22px 48px rgba(13, 42, 67, 0.1);
}

.es-about-factory__video-shell {
  position: relative;
  min-width: 0;
  background: #061522;
}

.es-about-factory__video-shell--paused .es-about-factory__video-el {
  pointer-events: none;
}

.es-about-factory__video-shell--playing .es-about-factory__video-el {
  pointer-events: auto;
}

.es-about-factory__video-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(6, 21, 34, 0.38);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.25s ease,
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.es-about-factory__video-play:hover {
  background: rgba(6, 21, 34, 0.48);
}

.es-about-factory__video-play:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -6px;
}

.es-about-factory__video-shell--playing .es-about-factory__video-play {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.es-about-factory__video-play-icon {
  display: flex;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.35));
}

.es-about-factory__video-el {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #061522;
  vertical-align: middle;
}

.es-about-factory__video-caption {
  flex-shrink: 0;
  margin: 0;
  padding: 15px 22px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #0d2a43;
  letter-spacing: 0.01em;
  line-height: 1.45;
  text-align: left;
  background: linear-gradient(180deg, #f6fafd 0%, #e8f2f9 100%);
  border-top: 1px solid rgba(13, 42, 67, 0.07);
}

.es-about-factory__video-link-wrap {
  margin: 0 auto clamp(20px, 3vw, 32px);
  max-width: min(960px, 100%);
  text-align: center;
}

.es-about-factory__photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(14px, 2vw, 20px);
  margin-top: clamp(8px, 1.5vw, 16px);
}

.es-about-factory__photo {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e4ebf2;
  background: #fff;
  box-shadow: 0 8px 28px rgba(13, 42, 67, 0.06);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.28s ease;
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .es-about-factory__photo:hover {
    transform: translateY(-3px);
    border-color: #d0dce8;
    box-shadow: 0 16px 40px rgba(13, 42, 67, 0.1);
  }
}

.es-about-factory__photo-link {
  display: block;
  line-height: 0;
  background: #f1f5f9;
}

.es-about-factory__photo-img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.es-about-factory__photo-cap {
  margin: 0;
  padding: 10px 14px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #4b5563;
  border-top: 1px solid #e8eff5;
}
