:root {
  --navy: #0b1f33;
  --navy-2: #13304c;
  --steel: #48566a;
  --red: #c91f2b;
  --red-dark: #9f1822;
  --ink: #142033;
  --muted: #667386;
  --line: #d9e0ea;
  --line-dark: #c5cfdb;
  --soft: #f5f7fa;
  --soft-2: #eef2f6;
  --white: #ffffff;
  --shadow: 0 14px 34px rgba(11, 31, 51, 0.1);
  --shadow-soft: 0 8px 20px rgba(11, 31, 51, 0.07);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Noto Sans Thai", "Prompt", "Inter", system-ui, sans-serif;
  line-height: 1.62;
  text-rendering: geometricPrecision;
  -webkit-text-size-adjust: 100%;
}

body.menu-open {
  overflow: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

[data-lucide] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.12em;
  height: 1.12em;
  flex: 0 0 auto;
}

.icon-fallback {
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.82em;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 60px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: block;
  width: 82px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
  background: var(--white);
  border-radius: 6px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--navy);
  line-height: 1.1;
  font-family: "Inter", sans-serif;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  color: #2c3849;
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  content: "";
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.header-actions,
.hero-actions,
.section-heading.inline,
.results-bar {
  display: flex;
  align-items: center;
}

.header-actions {
  justify-content: flex-end;
  gap: 10px;
}

.line-add-button,
.line-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: #06c755;
  border: 1px solid #06c755;
  border-radius: 6px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.line-add-button {
  width: 42px;
  height: 42px;
  font-size: 1.34rem;
}

.line-icon-button {
  width: 42px;
  height: 42px;
  font-size: 1.34rem;
}

.mobile-line-shortcut {
  display: none;
}

.line-add-button:hover,
.line-icon-button:hover {
  background: #05b84f;
  border-color: #05b84f;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(6, 199, 85, 0.22);
}

.language-switcher {
  display: inline-flex;
  padding: 3px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.language-switcher button {
  min-width: 38px;
  min-height: 34px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
}

.language-switcher .active {
  color: var(--white);
  background: var(--navy);
}

.cta-button,
.primary-button,
.secondary-button,
.results-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  border-radius: 6px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.cta-button,
.primary-button {
  color: var(--white);
  background: var(--red);
  border: 1px solid var(--red);
}

.cta-button {
  padding: 0 16px;
  white-space: nowrap;
  font-size: 0.9rem;
}

.primary-button {
  padding: 0 20px;
}

.secondary-button,
.results-bar button {
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line-dark);
}

.secondary-button {
  padding: 0 18px;
}

.cta-button:hover,
.primary-button:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(201, 31, 43, 0.22);
}

.secondary-button:hover,
.results-bar button:hover {
  border-color: var(--navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.icon-button {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(70px, 10vh, 116px) clamp(18px, 5vw, 72px) clamp(54px, 8vh, 86px);
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 20, 34, 0.98) 0%, rgba(7, 20, 34, 0.9) 46%, rgba(7, 20, 34, 0.58) 100%),
    var(--navy);
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 72%);
  content: "";
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 170px;
  background: linear-gradient(180deg, rgba(7, 20, 34, 0), rgba(7, 20, 34, 0.84));
  content: "";
}

.hero-media {
  position: absolute;
  inset: 0;
  opacity: 0.34;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  filter: grayscale(0.18) saturate(0.78) contrast(1.05);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
}

.eyebrow,
.section-heading span,
.page-hero span,
.partner-copy span,
.service-detail-grid span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-family: "Inter", "Prompt", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #e9eef5;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 7px 10px;
}

.hero h1,
.page-hero h1 {
  margin: 18px 0 18px;
  max-width: 980px;
  font-size: clamp(2.1rem, 4.6vw, 4.25rem);
  line-height: 1.13;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 910px;
}

.hero p,
.page-hero p {
  max-width: 790px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(780px, 100%);
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.hero-proof div {
  padding: 16px 18px;
  background: rgba(8, 21, 35, 0.56);
}

.hero-proof strong,
.hero-proof span {
  display: block;
}

.hero-proof strong {
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.15;
}

.hero-proof span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
}

.section,
.page-hero {
  padding: clamp(54px, 8vw, 92px) clamp(18px, 5vw, 72px);
}

.section.compact {
  padding-top: clamp(48px, 6vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading.inline {
  justify-content: space-between;
  gap: 22px;
  max-width: none;
}

.section-heading h2,
.partner-copy h2,
.service-detail-grid h2 {
  margin: 8px 0 0;
  color: var(--navy);
  font-size: clamp(1.5rem, 2.8vw, 2.28rem);
  line-height: 1.22;
  letter-spacing: 0;
}

.section-heading.inline a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--red);
  font-weight: 700;
}

.system-overview {
  background: var(--white);
}

.system-visual {
  overflow: hidden;
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow);
}

.system-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.system-explainer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.system-explainer article {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow-soft);
}

.system-explainer strong {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--white);
  background: var(--navy);
  border-radius: 5px;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
}

.system-explainer h3 {
  margin: 12px 0 8px;
  color: var(--navy);
}

.system-explainer p {
  margin: 0;
  color: var(--muted);
}

.value-grid,
.product-grid,
.service-grid,
.reference-grid,
.expertise-grid,
.standards-grid,
.application-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.expertise-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.standards-grid,
.application-grid,
.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.value-card,
.product-card,
.service-grid article,
.document-card,
.contact-card,
.quote-form,
.expertise-grid article,
.standards-grid article,
.application-grid article,
.process-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow-soft);
}

.value-card {
  position: relative;
  padding: 26px;
  overflow: hidden;
}

.value-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--red);
  content: "";
}

.value-card svg {
  width: 34px;
  height: 34px;
  color: var(--navy);
}

.value-card h3,
.product-card h3,
.service-grid h3,
.document-card h3 {
  margin: 14px 0 8px;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: 0;
}

.value-card p,
.product-card p,
.service-grid p,
.document-card p,
.partner-copy p,
.service-detail-grid p,
.contact-card,
.expertise-grid p,
.standards-grid p,
.application-grid p,
.process-grid p {
  color: var(--muted);
}

.muted-section,
.process-section,
.flamro-service-section {
  background: var(--soft);
}

.expertise-grid article,
.standards-grid article,
.application-grid article,
.process-grid article {
  padding: 22px;
}

.expertise-grid strong,
.process-grid strong {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: var(--white);
  background: var(--navy);
  border-radius: 5px;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
}

.expertise-grid h3,
.standards-grid h3,
.application-grid h3,
.process-grid h3 {
  margin: 14px 0 8px;
  color: var(--navy);
  line-height: 1.25;
}

.expertise-grid p,
.standards-grid p,
.application-grid p,
.process-grid p {
  margin: 0;
}

.standards-grid article {
  display: flex;
  min-height: 245px;
  flex-direction: column;
}

.standards-grid span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  margin-top: auto;
  padding: 0 10px;
  color: var(--red);
  background: #fff4f5;
  border: 1px solid #f0c8cc;
  border-radius: 5px;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
}

.about-section {
  background: var(--white);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.about-copy > p {
  max-width: 860px;
  margin: 0 0 14px;
  color: var(--muted);
}

.about-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.about-points article {
  padding: 16px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.about-points strong,
.about-points span {
  display: block;
}

.about-points strong {
  color: var(--navy);
  font-size: 0.92rem;
  line-height: 1.25;
}

.about-points span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.about-visual {
  display: grid;
  gap: 14px;
}

.about-visual-main {
  position: relative;
  min-height: 360px;
  padding: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow);
}

.about-visual-main img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: contain;
  object-position: center;
}

.about-visual-main::before {
  display: none;
}

.about-visual-main::after {
  display: none;
}

.about-visual-main span {
  position: relative;
  z-index: 2;
  width: fit-content;
  padding: 7px 10px;
  color: #e9eef5;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 800;
}

.about-visual-main strong {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1.1;
}

.about-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.about-visual-grid div {
  display: grid;
  place-items: center;
  min-height: 92px;
  padding: 12px;
  color: var(--navy);
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-align: center;
  font-weight: 800;
}

.about-visual-grid svg {
  width: 26px;
  height: 26px;
  margin-bottom: 8px;
  color: var(--red);
}

.partner-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(201, 31, 43, 0.16), transparent 38%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
}

.partner-copy h2,
.partner-copy p {
  color: var(--white);
}

.partner-logos {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(210px, 1.15fr);
  align-items: center;
  gap: 14px;
}

.partner-logo-card {
  display: grid;
  place-items: center;
  min-width: 176px;
  min-height: 128px;
  padding: 16px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
}

.partner-logo-card img {
  max-width: 170px;
  max-height: 68px;
  object-fit: contain;
}

.partner-logo-card span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.partner-logo-stack {
  gap: 9px;
}

.partner-logo-stack img:first-child {
  max-width: 186px;
  max-height: 34px;
}

.partner-logo-stack img:nth-child(2) {
  max-width: 86px;
  max-height: 62px;
}

.product-card {
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: #b8c4d2;
  box-shadow: var(--shadow);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: linear-gradient(180deg, #f8fafc, #e8edf3);
  border-bottom: 1px solid var(--line);
}

.product-card-body {
  padding: 18px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  color: #26364a;
  background: #edf1f5;
  border: 1px solid #dbe3ec;
  border-radius: 5px;
  font-family: "Inter", "Prompt", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
}

.product-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--red);
  font-weight: 800;
}

.service-preview,
.product-layout,
.downloads-layout,
.detail-shell {
  background: var(--soft);
}

.service-grid article {
  overflow: hidden;
}

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.service-preview .service-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.clickable-service-card {
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.clickable-service-card:hover {
  transform: translateY(-3px);
  border-color: #b8c4d2;
  box-shadow: var(--shadow);
}

.clickable-service-card a {
  display: block;
  height: 100%;
  color: inherit;
}

.clickable-service-card strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 18px 20px;
  color: var(--red);
  font-weight: 800;
}

.service-number {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 18px 18px 0;
  padding: 0 9px;
  color: var(--white);
  background: var(--navy);
  border-radius: 5px;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
}

.service-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--soft-2);
  border-bottom: 1px solid var(--line);
}

.service-grid h3,
.service-grid p {
  margin-right: 18px;
  margin-left: 18px;
}

.service-grid p {
  margin-bottom: 20px;
}

.page-hero {
  color: var(--white);
  background:
    linear-gradient(100deg, rgba(7, 20, 34, 0.98), rgba(13, 38, 63, 0.94)),
    var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.76);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(760px, 100%);
  min-height: 54px;
  margin-top: 26px;
  padding: 0 16px;
  color: #7f8ba0;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
}

.product-layout,
.downloads-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 100px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.filter-panel h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 0.98rem;
}

.filter-panel h2:not(:first-child) {
  margin-top: 24px;
}

.filter-stack,
.application-list {
  display: grid;
  gap: 8px;
}

.filter-stack button,
.application-list button,
.filter-panel select {
  min-height: 42px;
  padding: 8px 10px;
  color: var(--ink);
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
}

.filter-stack button.active,
.application-list button.active {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.filter-panel select {
  width: 100%;
}

.results-bar {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--navy);
  font-weight: 800;
}

.results-bar button {
  min-height: 38px;
  padding: 0 12px;
  cursor: pointer;
}

.detail-top {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 28px;
}

.detail-top img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.detail-copy h1 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.detail-copy p {
  color: var(--muted);
}

.source-note {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 4px 0 18px;
  padding: 0 11px;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.feature-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 10px;
}

.feature-list svg {
  flex: 0 0 auto;
  color: var(--red);
  margin-top: 3px;
}

.tabs {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.tab-buttons {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.tab-buttons button {
  flex: 1 0 210px;
  min-height: 52px;
  color: var(--navy);
  background: #fbfcfd;
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
  font-weight: 800;
}

.tab-buttons button.active {
  color: var(--white);
  background: var(--navy);
}

.tab-panel {
  display: none;
  padding: 24px;
}

.tab-panel.active {
  display: block;
}

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

.product-detail-grid section {
  padding: 18px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.product-detail-grid section:first-child:last-child,
.product-detail-grid section:first-child:nth-last-child(3),
.product-detail-grid section:nth-child(3) {
  grid-column: 1 / -1;
}

.product-detail-grid h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1.25;
}

.product-detail-grid p {
  margin: 0 0 10px;
  color: var(--muted);
}

.placeholder-panel {
  background: #fff8f3;
  border-color: #efd5c2;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  width: 34%;
  color: var(--navy);
  background: var(--soft);
}

.document-list {
  display: grid;
  gap: 12px;
}

.document-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
}

.doc-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--white);
  background: var(--navy);
  border-radius: 7px;
  box-shadow: inset 4px 0 0 var(--red);
}

.document-card h3 {
  margin: 0 0 4px;
}

.document-card p {
  margin: 0;
}

.doc-status {
  display: inline-flex;
  margin-top: 7px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 800;
}

.download-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--navy);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.service-detail-grid {
  display: grid;
  gap: 22px;
}

.service-detail-grid article {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow-soft);
}

.service-detail-grid article > a {
  display: grid;
  grid-template-columns: minmax(240px, 0.45fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.service-detail-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  background: var(--soft-2);
  border: 1px solid var(--line);
}

.service-detail-grid .clickable-service-card strong {
  margin: 10px 0 0;
}

.service-detail-top img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
  padding: 18px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.service-detail-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.service-detail-layout section {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow-soft);
}

.service-detail-layout h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.service-detail-layout p {
  margin: 0;
  color: var(--muted);
}

.service-overview-panel,
.service-documents-panel,
.service-cta-panel {
  grid-column: 1 / -1;
}

.service-overview-panel {
  display: grid;
  gap: 8px;
  background:
    linear-gradient(120deg, rgba(11, 31, 51, 0.96), rgba(19, 48, 76, 0.92)),
    var(--navy) !important;
}

.service-overview-panel span {
  color: rgba(255, 255, 255, 0.68);
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.service-overview-panel h2,
.service-overview-panel p {
  color: var(--white);
}

.service-overview-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.service-cta-panel {
  display: grid;
  gap: 12px;
  background: #fff8f3 !important;
  border-color: #efd5c2 !important;
}

.service-cta-panel .primary-button {
  width: fit-content;
}

.service-documents-panel {
  display: grid;
  gap: 14px;
}

.service-documents-panel > p {
  max-width: 760px;
}

.service-tabs {
  margin-top: 24px;
}

.service-tabs .tab-panel {
  background: #fbfcfd;
}

.service-tabs .service-detail-layout section,
.service-download-layout section {
  background: var(--white);
}

.service-download-layout {
  display: grid;
  gap: 20px;
}

.service-technical-panel.featured {
  grid-column: 1 / -1;
  background: #fbfcfd !important;
  border-left: 4px solid var(--red) !important;
}

.client-section {
  background: var(--white);
  padding-bottom: clamp(34px, 5vw, 58px);
}

.client-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.client-logo-card {
  display: grid;
  place-items: center;
  min-height: 116px;
  padding: 18px;
  color: var(--navy);
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow-soft);
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(1.28rem, 2.4vw, 2rem);
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.client-logo-card.scg {
  color: #d71920;
}

.client-logo-card.thaibev {
  color: #123f7a;
}

.client-logo-card.central {
  color: #111827;
}

.client-logo-card.mbk {
  color: #0067a6;
}

.client-logo-card.mea {
  color: #6b2a86;
}

.client-logo-card.pea {
  color: #6f2c8f;
}

.reference-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow-soft);
}

.reference-grid figure::after {
  position: absolute;
  right: 12px;
  bottom: 52px;
  z-index: 1;
  padding: 5px 9px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(7, 20, 34, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(0.72rem, 1.4vw, 0.92rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  content: "www.serifp.com";
}

.reference-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: zoom-in;
  filter: saturate(0.82) contrast(0.98);
  transition: transform 180ms ease, filter 180ms ease;
}

.reference-grid figure:hover img {
  transform: scale(1.02);
  filter: saturate(0.98) contrast(1);
}

.reference-grid figcaption {
  padding: 14px 16px 18px;
  color: var(--navy);
  font-weight: 700;
}

.reference-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(7, 20, 34, 0.88);
}

.reference-lightbox.active {
  display: grid;
}

.reference-lightbox figure {
  position: relative;
  width: min(1100px, 100%);
  margin: 0;
}

.reference-lightbox figure::after {
  position: absolute;
  right: 16px;
  bottom: 58px;
  z-index: 1;
  padding: 7px 11px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(7, 20, 34, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(0.82rem, 1.6vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  content: "www.serifp.com";
}

.reference-lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #071422;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.reference-lightbox figcaption {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  text-align: center;
}

.reference-lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 7px;
  cursor: pointer;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
}

.quote-form label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-weight: 800;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
}

.quote-form input:focus,
.quote-form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(201, 31, 43, 0.1);
}

.wide {
  grid-column: 1 / -1;
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.contact-card h2 {
  margin: 0 0 6px;
  color: var(--navy);
}

.contact-address-list {
  display: grid;
  gap: 10px;
}

.contact-address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: #495057;
  line-height: 1.5;
}

.contact-card a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
}

.contact-card .map-link {
  color: var(--red);
}

.contact-card svg {
  flex-shrink: 0;
  color: var(--red);
}

.contact-address svg {
  margin-top: 0.2rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: #071422;
}

.site-footer strong {
  color: var(--white);
}

.fade-in {
  animation: fade-in 300ms ease both;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto auto;
  }

  .menu-toggle {
    display: grid;
    justify-self: end;
  }

  .mobile-line-shortcut {
    display: inline-flex;
    justify-self: end;
  }

  .site-nav,
  .header-actions {
    display: none;
  }

  .site-header.open .site-nav,
  .site-header.open .header-actions {
    display: flex;
  }

  .site-header.open {
    align-items: start;
  }

  .site-header.open .site-nav {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    order: 3;
    padding-top: 10px;
  }

  .site-header.open .header-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 4;
    padding-bottom: 12px;
  }

  .value-grid,
  .product-grid,
  .service-grid,
  .reference-grid,
  .system-explainer,
  .product-detail-grid,
  .service-detail-layout,
  .expertise-grid,
  .standards-grid,
  .application-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .partner-band,
  .about-layout,
  .product-layout,
  .downloads-layout,
  .contact-layout,
  .detail-top {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 680px;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .section-heading.inline,
  .results-bar,
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .value-grid,
  .product-grid,
  .service-grid,
  .reference-grid,
  .about-points,
  .about-visual-grid,
  .system-explainer,
  .product-detail-grid,
  .service-detail-layout,
  .expertise-grid,
  .standards-grid,
  .application-grid,
  .process-grid,
  .service-detail-grid article > a,
  .quote-form {
    grid-template-columns: 1fr;
  }

  .service-preview .service-grid {
    grid-template-columns: 1fr;
  }

  .client-logo-grid {
    grid-template-columns: 1fr;
  }

  .partner-logos {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .partner-logo-card {
    width: 100%;
  }

  .document-card {
    grid-template-columns: auto 1fr;
  }

  .download-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .cta-button,
  .primary-button,
  .secondary-button,
  .service-cta-panel .primary-button {
    width: 100%;
  }
}
/* ปรับขนาดรูปภาพ LINE QR Code ให้เล็กพองามและอยู่กึ่งกลาง */
.line-contact-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* จัดให้ชิดซ้ายเรียงตามหัวข้ออื่น */
  gap: 8px;
  margin: 10px 0;
  scroll-margin-top: 96px;
}

.line-qr-image {
  width: 150px;          /* ปรับความกว้างของ QR Code เหลือ 150 พิกเซล (แก้ตัวเลขนี้ได้ตามใจชอบ) */
  height: 150px;         /* ปรับความสูงให้เท่ากันเป็นสี่เหลี่ยมจัตุรัส */
  object-fit: contain;
  border-radius: 8px;    /* ลบมุมรูปภาพให้มนนิดๆ ดูสวยงาม */
  border: 1px solid #eee; /* เพิ่มเส้นขอบบางๆ ให้รูปภาพดูเด่นขึ้น */
}

.line-contact-container p {
  margin: 0;
  font-size: 0.9rem;     /* ปรับขนาดตัวหนังสือคำอธิบายให้เล็กลงนิดนึง */
  color: #666;           /* เปลี่ยนตัวหนังสือเป็นสีเทาจะได้ไม่แย่งซีนหัวข้อหลัก */
}
/* ===================================================
   ชุดโค้ดปรับรูปภาพหน้าบริการ: ล็อกขนาดเท่ากัน เห็นภาพเต็ม 100% ไม่ Crop ไม่ล้นจอ
   =================================================== */

/* สั่งล็อกขนาดของรูปภาพทั้งหมดที่อยู่ภายใต้การ์ดบริการ */
.clickable-service-card img,
#services article img {
  width: 100% !important;
  max-width: 100% !important;
  
  /* 🌟 ล็อกความสูงกล่องรูปภาพให้อยู่ในสัดส่วนมาตรฐานที่ 180 พิกเซล (ภาพไม่หนาเทอะทะแน่นอน) */
  height: 180px !important;            
  
  /* 🌟 หัวใจสำคัญ: บังคับย่อขนาดรูปให้พอดีกรอบ มองเห็นเนื้อหาเต็มๆ 100% ห้าม Crop ตัดขอบภาพเด็ดขาด */
  object-fit: contain !important;       
  
  /* ใส่พื้นหลังสีนวลนิ่มตา เพื่ออุดช่องว่างส่วนที่รูปภาพสั้นยาวไม่เท่ากัน */
  background-color: #f8fafc !important;    
  
  /* ใส่เส้นขอบบางๆ สีเทา เพื่อจัดกลุ่มให้รูปภาพดูเป็นมาตรฐานระเบียบเดียวกัน */
  border: 1px solid #e2e8f0 !important; 
  border-radius: 6px !important;        /* ลบมุมภาพให้โค้งมนดูสวยงาม */
  
  display: block !important;
  margin: 0 auto 1.2rem auto !important; /* จัดรูปภาพให้อยู่กึ่งกลางกล่องพอดี */
}

.service-preview .clickable-service-card img {
  height: 180px !important;
  object-fit: cover !important;
  padding: 0 !important;
  background-color: var(--soft-2) !important;
  margin: 0 0 1.2rem 0 !important;
}

.service-preview .clickable-service-card img[src$="diagram-fire-wall.svg"] {
  object-position: center center;
}

.service-detail-grid .clickable-service-card img {
  height: 220px !important;
  object-fit: cover !important;
  padding: 0 !important;
}

/* ลบและป้องกันเอฟเฟกต์การซูมแตกทุกชนิดออกไป */
.clickable-service-card img:hover,
#services article img:hover {
  transform: none !important;
  object-fit: contain !important;
}

/* Service image frames: keep every service visual the same size and filled. */
.service-grid .clickable-service-card img,
#services .service-detail-grid .clickable-service-card img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 10;
  object-fit: cover !important;
  object-position: center center;
  padding: 0 !important;
  margin: 0 !important;
  background: var(--soft-2) !important;
  border: 1px solid var(--line) !important;
  border-radius: 6px 6px 0 0 !important;
}

#services .service-detail-grid .clickable-service-card img {
  align-self: center;
  height: 220px !important;
  min-height: 0;
  border-radius: 6px !important;
}

.service-grid .clickable-service-card img:hover,
#services .service-detail-grid .clickable-service-card img:hover {
  object-fit: cover !important;
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
    line-height: 1.72;
  }

  .site-header {
    min-height: 64px;
    padding: 10px 16px;
    gap: 12px;
  }

  .brand {
    min-width: 0;
    gap: 9px;
  }

  .brand-mark {
    width: 64px;
    height: 34px;
  }

  .brand strong {
    font-size: 0.98rem;
  }

  .brand small {
    font-size: 0.66rem;
    line-height: 1.25;
  }

  .icon-button {
    width: 42px;
    height: 42px;
  }

  .site-header.open {
    box-shadow: 0 16px 36px rgba(11, 31, 51, 0.14);
  }

  .site-header.open .site-nav {
    gap: 6px;
    padding-top: 12px;
  }

  .site-nav a {
    min-height: 44px;
    padding: 10px 12px;
    background: #f7f9fb;
    border: 1px solid var(--line);
    border-radius: 6px;
  }

  .site-nav a::after {
    display: none;
  }

  .site-header.open .header-actions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    width: 100%;
  }

  .language-switcher {
    width: fit-content;
  }

  .header-actions .cta-button {
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding: 46px 18px 36px;
    background:
      linear-gradient(180deg, rgba(7, 20, 34, 0.98) 0%, rgba(7, 20, 34, 0.9) 62%, rgba(7, 20, 34, 0.78) 100%),
      var(--navy);
  }

  .hero::before {
    background-size: 54px 54px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  }

  .hero-media {
    opacity: 0.24;
  }

  .hero-media img {
    object-position: center;
  }

  .hero .eyebrow,
  .eyebrow,
  .section-heading span,
  .page-hero span,
  .partner-copy span,
  .service-detail-grid span {
    font-size: 0.72rem;
    line-height: 1.45;
    letter-spacing: 0.04em;
  }

  .hero h1,
  .page-hero h1 {
    margin: 14px 0;
    font-size: 1.82rem;
    line-height: 1.22;
  }

  .hero p,
  .page-hero p {
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 22px;
  }

  .hero-proof {
    margin-top: 24px;
    border-radius: 7px;
  }

  .hero-proof div {
    padding: 13px 15px;
  }

  .hero-proof strong {
    font-size: 1.2rem;
  }

  .section,
  .page-hero {
    padding: 42px 18px;
  }

  .section.compact {
    padding-top: 38px;
  }

  .section-heading {
    margin-bottom: 20px;
  }

  .section-heading h2,
  .partner-copy h2,
  .service-detail-grid h2 {
    font-size: 1.42rem;
    line-height: 1.28;
  }

  .value-card,
  .expertise-grid article,
  .standards-grid article,
  .application-grid article,
  .process-grid article,
  .system-explainer article,
  .quote-form,
  .contact-card {
    padding: 18px;
  }

  .product-card-body {
    padding: 16px;
  }

  .product-card h3,
  .service-grid h3,
  .document-card h3 {
    font-size: 1.04rem;
    line-height: 1.34;
  }

  .product-card p,
  .service-grid p,
  .document-card p,
  .partner-copy p,
  .service-detail-grid p,
  .expertise-grid p,
  .standards-grid p,
  .application-grid p,
  .process-grid p {
    font-size: 0.94rem;
  }

  .product-card img {
    aspect-ratio: 16 / 10;
    object-fit: contain;
    padding: 10px;
  }

  .clickable-service-card img,
  #services article img {
    height: 150px !important;
    margin-bottom: 0 !important;
  }

  .service-preview .clickable-service-card img,
  .service-detail-grid .clickable-service-card img {
    height: 170px !important;
  }

  .filter-panel {
    padding: 14px;
    box-shadow: var(--shadow-soft);
  }

  .filter-stack,
  .application-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .filter-stack button,
  .application-list button {
    flex: 0 0 auto;
    min-height: 40px;
    max-width: 220px;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .filter-panel h2:not(:first-child) {
    margin-top: 18px;
  }

  .results-bar {
    gap: 8px;
    margin-bottom: 14px;
  }

  .results-bar button {
    width: 100%;
  }

  .search-box {
    min-height: 50px;
    margin-top: 20px;
    padding: 0 13px;
  }

  .detail-top {
    gap: 20px;
    margin-bottom: 20px;
  }

  .detail-top img {
    max-height: 300px;
    object-fit: contain;
  }

  .detail-copy h1 {
    font-size: 1.72rem;
    line-height: 1.22;
  }

  .detail-copy p {
    font-size: 0.96rem;
  }

  .source-note {
    display: flex;
    align-items: flex-start;
    min-height: 0;
    padding: 8px 10px;
    line-height: 1.45;
  }

  .feature-list {
    gap: 8px;
    margin: 14px 0;
  }

  .feature-list li {
    gap: 9px;
  }

  .tabs {
    border-radius: 7px;
  }

  .tab-buttons button {
    flex-basis: 160px;
    min-height: 48px;
    padding: 0 12px;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .tab-panel {
    padding: 14px;
  }

  .product-detail-grid,
  .service-detail-layout {
    gap: 14px;
  }

  .product-detail-grid section,
  .service-detail-layout section {
    padding: 15px;
  }

  .product-detail-grid h2,
  .service-detail-layout h2 {
    font-size: 1.04rem;
  }

  .spec-table,
  .spec-table tbody,
  .spec-table tr,
  .spec-table th,
  .spec-table td {
    display: block;
    width: 100%;
  }

  .spec-table tr {
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--white);
  }

  .spec-table th,
  .spec-table td {
    padding: 10px 12px;
    border-bottom: 0;
  }

  .spec-table th {
    color: var(--navy);
    background: #eef2f6;
    font-size: 0.88rem;
  }

  .spec-table td {
    color: var(--muted);
    overflow-wrap: anywhere;
  }

  .document-card {
    align-items: start;
    gap: 12px;
    padding: 14px;
  }

  .doc-icon {
    width: 42px;
    height: 42px;
  }

  .download-button {
    min-height: 42px;
  }

  .about-visual-main {
    min-height: 260px;
  }

  .about-visual-main img {
    min-height: 260px;
  }

  .partner-band {
    gap: 24px;
  }

  .partner-logo-card {
    min-height: 112px;
  }

  .client-logo-card {
    min-height: 92px;
  }

  .reference-grid figcaption {
    padding: 12px 14px 15px;
    font-size: 0.94rem;
  }

  .quote-form label {
    font-size: 0.92rem;
  }

  .quote-form input,
  .quote-form textarea {
    min-height: 46px;
    font-size: 1rem;
  }

  .line-contact-container {
    align-items: center;
    padding: 14px;
    background: #fbfcfd;
    border: 1px solid var(--line);
    border-radius: 7px;
  }
}

@media (max-width: 420px) {
  .site-header.open .header-actions {
    grid-template-columns: 1fr;
  }

  .language-switcher {
    width: 100%;
  }

  .language-switcher button {
    flex: 1;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 1.58rem;
  }

  .hero .eyebrow {
    align-items: flex-start;
  }

  .section,
  .page-hero {
    padding-right: 16px;
    padding-left: 16px;
  }

  .primary-button,
  .secondary-button,
  .cta-button {
    min-height: 46px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .pill {
    min-height: 26px;
    font-size: 0.72rem;
  }

  .tab-buttons button {
    flex-basis: 148px;
  }
}

/* Mobile readability refinements */
@media (max-width: 720px) {
  html {
    scroll-padding-top: 76px;
  }

  body {
    background: #fbfcfe;
    color: #162235;
    overflow-wrap: break-word;
  }

  p,
  li,
  td,
  input,
  textarea {
    font-size: 1rem;
    line-height: 1.78;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .brand span {
    min-width: 0;
  }

  .site-header.open .site-nav a {
    font-size: 1rem;
    font-weight: 700;
  }

  .hero {
    padding: 36px 18px 32px;
  }

  .hero-content {
    width: 100%;
  }

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    text-wrap: balance;
  }

  .hero h1 {
    max-width: 16ch;
    font-size: 1.72rem;
    line-height: 1.32;
  }

  .hero p,
  .page-hero p {
    max-width: 68ch;
    color: rgba(255, 255, 255, 0.84);
  }

  .detail-copy p {
    max-width: 68ch;
    color: var(--muted);
  }

  .hero .eyebrow {
    width: fit-content;
    max-width: 100%;
  }

  .hero-proof {
    gap: 0;
    border-radius: 7px;
  }

  .hero-proof div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .section,
  .page-hero {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .section-heading {
    margin-bottom: 18px;
  }

  .section-heading h2,
  .partner-copy h2,
  .service-detail-grid h2 {
    font-size: 1.34rem;
    line-height: 1.38;
    text-wrap: balance;
  }

  .section-heading.inline a {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    padding: 0 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
  }

  .primary-button,
  .secondary-button,
  .cta-button,
  .results-bar button,
  .download-button {
    min-height: 48px;
    line-height: 1.35;
    text-align: center;
  }

  .product-card,
  .document-card,
  .clickable-service-card,
  .value-card,
  .expertise-grid article,
  .standards-grid article,
  .application-grid article,
  .process-grid article,
  .contact-card,
  .quote-form,
  .filter-panel {
    border-color: #d6deea;
    box-shadow: 0 8px 18px rgba(11, 31, 51, 0.06);
  }

  .clickable-service-card a {
    display: grid;
    align-content: start;
  }

  .service-grid h3,
  .service-grid p,
  .clickable-service-card strong {
    margin-right: 16px;
    margin-left: 16px;
  }

  .clickable-service-card strong {
    margin-top: 4px;
    margin-bottom: 18px;
  }

  .service-detail-grid article > a {
    gap: 16px;
  }

  .service-detail-grid h2 {
    margin-top: 6px;
  }

  .service-detail-layout section,
  .product-detail-grid section {
    padding: 16px;
  }

  .service-overview-panel {
    gap: 10px;
  }

  .service-overview-panel p {
    color: rgba(255, 255, 255, 0.84);
  }

  .feature-list li {
    align-items: flex-start;
  }

  .feature-list span {
    min-width: 0;
  }

  .product-meta {
    gap: 7px;
  }

  .pill {
    white-space: normal;
    text-align: left;
  }

  .tab-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
    scrollbar-width: thin;
  }

  .tab-buttons button {
    width: 100%;
    min-width: 0;
    flex: initial;
    border-right: 1px solid var(--line);
  }

  .tab-panel {
    background: #fbfcfe;
  }

  .document-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .document-card h3,
  .document-card p {
    overflow-wrap: anywhere;
  }

  .contact-card a {
    align-items: flex-start;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 480px) {
  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 1.5rem;
    line-height: 1.34;
  }

  .hero p,
  .page-hero p,
  .detail-copy p {
    font-size: 0.98rem;
  }

  .section-heading h2,
  .partner-copy h2,
  .service-detail-grid h2 {
    font-size: 1.22rem;
  }

  .document-card {
    grid-template-columns: 1fr;
  }

  .doc-icon {
    width: 38px;
    height: 38px;
  }

  .tab-buttons button {
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .product-layout,
  .downloads-layout {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 18px;
    overflow-x: clip;
  }

  .product-layout > *,
  .downloads-layout > *,
  .filter-panel,
  .results-bar,
  .product-grid,
  .document-list,
  .product-card,
  .document-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .filter-panel {
    overflow: hidden;
  }

  .filter-panel select {
    min-width: 0;
    max-width: 100%;
    text-overflow: ellipsis;
  }

  .filter-stack,
  .application-list {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .filter-stack button,
  .application-list button {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    text-align: center;
  }

  .results-bar {
    gap: 10px;
  }

  .results-bar span {
    width: 100%;
    min-width: 0;
  }

  .product-card img {
    max-height: 240px;
  }

  .document-card {
    align-items: start;
  }

  .document-card > div:not(.doc-icon) {
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .product-layout,
  .downloads-layout {
    gap: 16px;
  }

  .filter-panel {
    padding: 14px;
  }

  .filter-stack,
  .application-list {
    grid-template-columns: 1fr;
  }

  .document-card {
    gap: 10px;
  }
}

/* Final service image normalization. Keep this after mobile overrides. */
.service-grid .clickable-service-card img,
#services .service-detail-grid .clickable-service-card img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 10;
  object-fit: cover !important;
  object-position: center center;
  padding: 0 !important;
  margin: 0 !important;
  background: var(--soft-2) !important;
  border: 1px solid var(--line) !important;
}

.service-grid .clickable-service-card img {
  border-radius: 6px 6px 0 0 !important;
}

#services .service-detail-grid .clickable-service-card img {
  align-self: center;
  height: 220px !important;
  min-height: 0;
  border-radius: 6px !important;
}

.service-grid .clickable-service-card img:hover,
#services .service-detail-grid .clickable-service-card img:hover {
  object-fit: cover !important;
}

@media (max-width: 720px) {
  #services .service-detail-grid .clickable-service-card img,
  .service-grid .clickable-service-card img {
    height: auto !important;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}
