:root {
  --navy: #0b1b2a;
  --navy-deep: #071522;
  --navy-soft: #122e49;
  --card-bg: rgba(14, 34, 54, 0.65);
  --card-hover: rgba(20, 48, 76, 0.85);
  --ink: #111b28;
  --muted: #8393a1;
  --paper: #081522;
  --white: #ffffff;
  --line: rgba(208, 225, 237, 0.12);
  --line-light: rgba(208, 225, 237, 0.2);
  --red: #d60b2f;
  --red-glow: rgba(214, 11, 47, 0.25);
  --blue-accent: #38bdf8;
  --max: 1400px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #e2e8f0;
  background-color: var(--navy-deep);
  font-family: "Noto Sans Thai", "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-shell {
  width: min(calc(100% - 80px), var(--max));
  margin-inline: auto;
}

/* Ambient Lighting */
.ambient-glow {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 0;
  opacity: 0.15;
}

.glow-1 {
  width: 600px;
  height: 600px;
  background: var(--red);
  top: -100px;
  right: -100px;
}

.glow-2 {
  width: 700px;
  height: 700px;
  background: #0284c7;
  bottom: 20%;
  left: -200px;
}

/* Header */
.solutions-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: max(40px, calc((100% - var(--max)) / 2 + 40px));
  background: rgba(7, 21, 34, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  color: var(--white);
}

.solutions-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.solutions-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.solutions-brand span {
  display: grid;
  gap: 3px;
}

.solutions-brand strong {
  font: 700 16px "Space Grotesk", sans-serif;
  letter-spacing: 0.06em;
  color: white;
}

.solutions-brand small {
  color: var(--muted);
  font: 9px "Space Grotesk", sans-serif;
  letter-spacing: 0.2em;
}

.solutions-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.solutions-nav a {
  transition: color 0.2s;
  padding-block: 6px;
}

.solutions-nav a:hover,
.solutions-nav a.active {
  color: white;
}

.solutions-nav a.active {
  border-bottom: 2px solid var(--red);
}

.solutions-nav-cta {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.solutions-nav-cta:hover {
  background: var(--red);
  border-color: var(--red);
  color: white !important;
}

.solutions-language {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 20px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: rgba(11, 27, 42, 0.6);
  font: 12px "Space Grotesk", sans-serif;
  color: var(--muted);
}

.solutions-language button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font-weight: 500;
}

.solutions-language button.active {
  color: white;
  font-weight: 700;
}

.solutions-language button:hover {
  color: var(--red);
}

.solutions-menu {
  display: none;
  margin-left: 16px;
  border: 0;
  background: transparent;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.solutions-hero {
  width: 100%;
  min-height: max(620px, 82svh);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: white;
  background: var(--navy-deep);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
}

/* Keep the overview hero compact so the department image cards appear sooner. */
body.all-divisions-view .solutions-hero {
  min-height: 440px;
}

body.all-divisions-view .solutions-hero-grid {
  padding-block: 42px 38px;
}

body.all-divisions-view .solutions-hero h1 {
  font-size: clamp(42px, 5vw, 68px);
  margin-bottom: 14px;
}

body.all-divisions-view .hero-desc {
  max-width: 520px;
  font-size: 14px;
}

.solutions-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.38;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgba(191,216,232,.18) 25%, transparent calc(25% + 1px)),
              repeating-linear-gradient(0deg, transparent 0, transparent 118px, rgba(191,216,232,.11) 119px, transparent 120px);
}

.solutions-hero-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.solutions-hero-visual .hero-image-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #081522;
}

.solutions-hero-visual .hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  filter: saturate(0.9) contrast(1.04);
  transform: translateX(160px) scale(1.18);
  transform-origin: center right;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity .3s ease;
}

.hero-department-grid {
  display: none;
}

body.all-divisions-view .solutions-hero-visual .hero-image-wrap > img {
  opacity: 0;
}

body.all-divisions-view .solutions-hero-visual {
  z-index: 3;
}

body.all-divisions-view .solutions-hero-grid {
  z-index: 4;
}

body.all-divisions-view .orbit-card,
body.all-divisions-view .vertical-note {
  display: none;
}

body.all-divisions-view .hero-department-grid {
  position: absolute;
  z-index: 1;
  inset: 14px 2.2% 14px auto;
  width: min(62%, 850px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hero-department-image {
  min-width: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(191, 216, 232, .3);
  background-color: #0b1b2b;
  background-position: center;
  background-size: cover;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .22);
}

.hero-department-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 17, 29, .78), rgba(5, 17, 29, .03) 75%);
}

.hero-department-image span {
  position: absolute;
  left: 12px;
  bottom: 10px;
  color: white;
  font: 700 9px "Space Grotesk", sans-serif;
  letter-spacing: .15em;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .7);
}

.hero-department-image--glass { background-image: url("solutions-arkema-bg.png"); }
.hero-department-image--cement { background-image: url("solutions-cement-elevator-bg.png"); }
.hero-department-image--ceramic { background-image: url("solutions-ceramic-section-bg.png"); }
.hero-department-image--foundry { background-image: url("solutions-foundry-section-bg.png"); }
.hero-department-image--conveyor { background-image: url("solutions-conveyor-section-bg.png"); }
.hero-department-image--services { background-image: url("solutions-services-section-bg.png"); }

.solutions-hero:hover .solutions-hero-visual .hero-image-wrap img {
  transform: translateX(140px) scale(1.22);
}

.solutions-hero-visual .image-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 21, 34, 0.98) 0%, rgba(7, 21, 34, 0.92) 42%, rgba(7, 21, 34, 0.45) 75%, rgba(7, 21, 34, 0.88) 100%),
              linear-gradient(0deg, rgba(7, 21, 34, 0.8) 0%, transparent 40%);
}

body.all-divisions-view .solutions-hero-visual .image-overlay {
  background: linear-gradient(90deg, rgba(7, 21, 34, .98) 0%, rgba(7, 21, 34, .90) 34%, rgba(7, 21, 34, .54) 47%, rgba(7, 21, 34, .04) 70%);
}

.solutions-hero-visual .image-label {
  display: none;
}

.solutions-hero-grid {
  position: relative;
  z-index: 3;
  width: min(calc(100% - 80px), var(--max));
  margin-inline: auto;
  padding-block: 80px 70px;
}

.hero-copy {
  max-width: 680px;
}

.hero-default-copy[hidden] {
  display: none;
}

.hero-copy.has-division-copy {
  max-width: 860px;
}

.hero-division-copy {
  width: 100%;
}

.hero-division-copy:empty {
  display: none;
}

.hero-division-copy .division-header {
  margin-bottom: 0;
}

.hero-division-copy .division-header h2 {
  font-size: clamp(34px, 4vw, 56px);
}

.hero-division-copy .division-header > p {
  max-width: 860px;
}

.hero-division-copy .brand-pills {
  max-width: 100%;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--red);
  font: 700 11px "Space Grotesk", sans-serif;
  letter-spacing: 0.22em;
  margin: 0 0 16px;
}

.kicker-line {
  width: 32px;
  height: 2px;
  background: var(--red);
}

.solutions-hero h1 {
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin: 0 0 24px;
  color: white;
  font-weight: 800;
}

.solutions-hero h1 span {
  color: var(--red);
}

.hero-desc {
  max-width: 580px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15.5px;
  line-height: 1.85;
  margin: 0;
}

.orbit-card {
  position: absolute;
  right: max(40px, calc((100vw - var(--max)) / 2 + 40px));
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 28px;
  background: rgba(9, 25, 39, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.orbit-stat {
  display: grid;
  gap: 2px;
}

.orbit-stat strong {
  font: 700 32px "Space Grotesk", sans-serif;
  color: white;
  line-height: 1;
}

.orbit-stat span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
}

.orbit-divider {
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, 0.15);
}

.vertical-note {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  color: rgba(255, 255, 255, 0.35);
  font: 10px "Space Grotesk", sans-serif;
  letter-spacing: 0.18em;
  z-index: 3;
}

/* Department Sticky Nav */
.dept-nav-wrapper {
  position: sticky;
  top: 100px;
  z-index: 90;
  margin-top: 10px;
  background: rgba(11, 27, 42, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-light);
  padding: 12px 0;
}

.dept-nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.dept-nav-inner::-webkit-scrollbar {
  display: none;
}

.dept-nav-title {
  font: 700 12px "Space Grotesk", sans-serif;
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: 0.1em;
}

.dept-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dept-tab {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
}

.dept-tab:hover {
  color: white;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
}

.dept-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: white;
  font-weight: 700;
  box-shadow: 0 4px 14px var(--red-glow);
}

/* Division Sections */
.division-section {
  padding: 95px 0 110px;
  position: relative;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.division-section.is-hidden {
  display: none;
}

body.all-divisions-view .division-section {
  padding-top: 64px;
}

body.all-divisions-view .division-header {
  margin-bottom: 28px;
}

.division-alt {
  background: rgba(8, 25, 41, 0.4);
}

.division-header {
  margin-bottom: 48px;
}

.division-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.division-num {
  font: 700 11px "Space Grotesk", sans-serif;
  color: var(--red);
  letter-spacing: 0.18em;
}

.division-tag {
  font: 600 10px "Space Grotesk", sans-serif;
  background: rgba(56, 189, 248, 0.12);
  color: var(--blue-accent);
  padding: 3px 8px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  letter-spacing: 0.12em;
}

.division-header h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: white;
  margin: 0 0 16px;
  font-weight: 700;
}

.division-header h2 span {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.72em;
}

.division-header > p {
  max-width: 860px;
  font-size: 15px;
  color: #a0aec0;
  line-height: 1.8;
  margin: 0 0 24px;
}

.brand-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.pill-label {
  font: 600 12px "Space Grotesk", sans-serif;
  color: var(--muted);
  margin-right: 6px;
}

.pill {
  font: 500 12px "Space Grotesk", sans-serif;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: #cbd5e1;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(390px, 1fr));
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

/* Keep every product image full-card while fading the left side for readable copy. */
.product-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 21, 34, .98) 0%, rgba(7, 21, 34, .94) 48%, rgba(7, 21, 34, .72) 63%, rgba(7, 21, 34, .30) 80%, rgba(7, 21, 34, .06) 100%);
}

.product-card > * { position: relative; z-index: 3 !important; }

.product-card:hover {
  background: var(--card-hover);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

/* AI concept backgrounds for the six Glass cards; keep all card copy readable. */
.product-card--arkema,
.product-card--kleenmold,
.product-card--duratemp,
.product-card--ramsey,
.product-card--putsch,
.product-card--psr {
  isolation: isolate;
  overflow: hidden;
  background: #0b1b2b;
  backdrop-filter: none;
}

.product-card[data-detail] { cursor: pointer; }
.product-card[data-detail]:focus-visible { outline: 2px solid #39b1da; outline-offset: 4px; }

.product-card--arkema::before,
.product-card--kleenmold::before,
.product-card--duratemp::before,
.product-card--ramsey::before,
.product-card--putsch::before,
.product-card--psr::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 21, 34, .88) 0%, rgba(7, 21, 34, .64) 34%, rgba(7, 21, 34, .26) 70%, rgba(7, 21, 34, .10) 100%),
    linear-gradient(0deg, rgba(7, 21, 34, .60) 0%, rgba(7, 21, 34, .10) 100%),
    var(--product-card-image) 68% center / cover no-repeat;
  transform: scale(1);
  transition: transform .65s cubic-bezier(.16, 1, .3, 1);
}

.product-card--arkema { --product-card-image: url("solutions-arkema-bg.png"); }
.product-card--kleenmold { --product-card-image: url("solutions-kleenmold-bg.png"); }
.product-card--duratemp { --product-card-image: url("solutions-duratemp-bg.png"); }
.product-card--ramsey { --product-card-image: url("solutions-ramsey-bg.png"); }
.product-card--putsch { --product-card-image: url("solutions-putsch-bg.png"); }
.product-card--psr { --product-card-image: url("solutions-psr-bg.png"); }

.product-card--arkema::before {
  background:
    linear-gradient(90deg, rgba(7, 21, 34, .98) 0%, rgba(7, 21, 34, .96) 48%, rgba(7, 21, 34, .78) 62%, rgba(7, 21, 34, .34) 78%, rgba(7, 21, 34, .08) 100%),
    linear-gradient(0deg, rgba(7, 21, 34, .64) 0%, rgba(7, 21, 34, .10) 100%),
    var(--product-card-image) 68% center / cover no-repeat;
}

.product-card--arkema > *,
.product-card--kleenmold > *,
.product-card--duratemp > *,
.product-card--ramsey > *,
.product-card--putsch > *,
.product-card--psr > * {
  position: relative;
  z-index: 1;
}

.product-card--arkema:hover,
.product-card--kleenmold:hover,
.product-card--duratemp:hover,
.product-card--ramsey:hover,
.product-card--putsch:hover,
.product-card--psr:hover {
  background: #0b1b2b;
  border-color: rgba(139, 187, 222, .46);
}

.product-card--arkema:hover::before,
.product-card--kleenmold:hover::before,
.product-card--duratemp:hover::before,
.product-card--ramsey:hover::before,
.product-card--putsch:hover::before,
.product-card--psr:hover::before {
  transform: scale(1.045);
}

/* AI concept backgrounds for the Cement & Bulk Handling product cards. */
.product-card--cement-elevator,
.product-card--cement-matrox,
.product-card--cement-rexnord,
.product-card--cement-hawiflex,
.product-card--cement-ringfeder,
.product-card--cement-rollers {
  isolation: isolate;
  overflow: hidden;
  background: #0b1b2b;
  backdrop-filter: none;
}

.product-card--cement-elevator::before,
.product-card--cement-matrox::before,
.product-card--cement-rexnord::before,
.product-card--cement-hawiflex::before,
.product-card--cement-ringfeder::before,
.product-card--cement-rollers::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 21, 34, .54) 0%, rgba(7, 21, 34, .34) 52%, rgba(7, 21, 34, .18) 100%),
    linear-gradient(0deg, rgba(7, 21, 34, .60) 0%, rgba(7, 21, 34, .10) 100%),
    var(--cement-card-image) 68% center / cover no-repeat;
  transform: scale(1);
  transition: transform .65s cubic-bezier(.16, 1, .3, 1);
}

.product-card--cement-elevator { --cement-card-image: url("solutions-cement-elevator-bg.png"); }
.product-card--cement-matrox { --cement-card-image: url("solutions-cement-matrox-bg.png"); }
.product-card--cement-rexnord { --cement-card-image: url("solutions-cement-rexnord-bg.png"); }
.product-card--cement-hawiflex { --cement-card-image: url("solutions-cement-hawiflex-bg.png"); }
.product-card--cement-ringfeder { --cement-card-image: url("solutions-cement-ringfeder-bg.png"); }
.product-card--cement-rollers { --cement-card-image: url("solutions-cement-rollers-bg.png"); }

.product-card--cement-elevator > *,
.product-card--cement-matrox > *,
.product-card--cement-rexnord > *,
.product-card--cement-hawiflex > *,
.product-card--cement-ringfeder > *,
.product-card--cement-rollers > * {
  position: relative;
  z-index: 1;
}

.product-card--cement-elevator:hover,
.product-card--cement-matrox:hover,
.product-card--cement-rexnord:hover,
.product-card--cement-hawiflex:hover,
.product-card--cement-ringfeder:hover,
.product-card--cement-rollers:hover {
  background: #0b1b2b;
  border-color: rgba(139, 187, 222, .46);
}

.product-card--cement-elevator:hover::before,
.product-card--cement-matrox:hover::before,
.product-card--cement-rexnord:hover::before,
.product-card--cement-hawiflex:hover::before,
.product-card--cement-ringfeder:hover::before,
.product-card--cement-rollers:hover::before {
  transform: scale(1.045);
}

/* AI concept backgrounds for the Ceramic division cards. */
.product-card--ceramic-kiln,
.product-card--ceramic-raw-materials,
.product-card--ceramic-refractories,
.product-card--ceramic-diamond-tools,
.product-card--ceramic-belts,
.product-card--ceramic-alumina-lining {
  isolation: isolate;
  overflow: hidden;
  background: #0b1b2b;
  backdrop-filter: none;
}

.product-card--ceramic-kiln::before,
.product-card--ceramic-raw-materials::before,
.product-card--ceramic-refractories::before,
.product-card--ceramic-diamond-tools::before,
.product-card--ceramic-belts::before,
.product-card--ceramic-alumina-lining::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 21, 34, .54) 0%, rgba(7, 21, 34, .34) 52%, rgba(7, 21, 34, .18) 100%),
    linear-gradient(0deg, rgba(7, 21, 34, .60) 0%, rgba(7, 21, 34, .10) 100%),
    var(--ceramic-card-image) 68% center / cover no-repeat;
  transform: scale(1);
  transition: transform .65s cubic-bezier(.16, 1, .3, 1);
}

.product-card--ceramic-kiln { --ceramic-card-image: url("solutions-ceramic-kiln-bg.png"); }
.product-card--ceramic-raw-materials { --ceramic-card-image: url("solutions-ceramic-raw-materials-bg.png"); }
.product-card--ceramic-refractories { --ceramic-card-image: url("solutions-ceramic-refractories-bg.png"); }
.product-card--ceramic-diamond-tools { --ceramic-card-image: url("solutions-ceramic-diamond-tools-bg.png"); }
.product-card--ceramic-belts { --ceramic-card-image: url("solutions-ceramic-belts-bg.png"); }
.product-card--ceramic-alumina-lining { --ceramic-card-image: url("solutions-ceramic-alumina-lining-bg.png"); }

.product-card--ceramic-kiln > *,
.product-card--ceramic-raw-materials > *,
.product-card--ceramic-refractories > *,
.product-card--ceramic-diamond-tools > *,
.product-card--ceramic-belts > *,
.product-card--ceramic-alumina-lining > * {
  position: relative;
  z-index: 1;
}

.product-card--ceramic-kiln:hover,
.product-card--ceramic-raw-materials:hover,
.product-card--ceramic-refractories:hover,
.product-card--ceramic-diamond-tools:hover,
.product-card--ceramic-belts:hover,
.product-card--ceramic-alumina-lining:hover {
  background: #0b1b2b;
  border-color: rgba(139, 187, 222, .46);
}

.product-card--ceramic-kiln:hover::before,
.product-card--ceramic-raw-materials:hover::before,
.product-card--ceramic-refractories:hover::before,
.product-card--ceramic-diamond-tools:hover::before,
.product-card--ceramic-belts:hover::before,
.product-card--ceramic-alumina-lining:hover::before {
  transform: scale(1.045);
}

/* AI concept backgrounds for Foundry and Conveyor division cards. */
.product-card[class*="product-card--foundry-"],
.product-card[class*="product-card--conveyor-"] {
  isolation: isolate;
  overflow: hidden;
  background: #0b1b2b;
  backdrop-filter: none;
}

.product-card:is(
  .product-card--foundry-monolithic,
  .product-card--foundry-raw-minerals,
  .product-card--foundry-precast,
  .product-card--foundry-engineering,
  .product-card--conveyor-tabletop,
  .product-card--conveyor-heavy-chain,
  .product-card--conveyor-coupling,
  .product-card--conveyor-guides
)::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 21, 34, .54) 0%, rgba(7, 21, 34, .34) 52%, rgba(7, 21, 34, .18) 100%),
    linear-gradient(0deg, rgba(7, 21, 34, .60) 0%, rgba(7, 21, 34, .10) 100%),
    var(--division-card-image) 68% center / cover no-repeat;
  transform: scale(1);
  transition: transform .65s cubic-bezier(.16, 1, .3, 1);
}

.product-card--foundry-monolithic { --division-card-image: url("solutions-foundry-monolithic-bg.png"); }
.product-card--foundry-raw-minerals { --division-card-image: url("solutions-foundry-raw-minerals-bg.png"); }
.product-card--foundry-precast { --division-card-image: url("solutions-foundry-precast-bg.png"); }
.product-card--foundry-engineering { --division-card-image: url("solutions-foundry-engineering-bg.png"); }
.product-card--conveyor-tabletop { --division-card-image: url("solutions-conveyor-tabletop-bg.png"); }
.product-card--conveyor-heavy-chain { --division-card-image: url("solutions-conveyor-heavy-chain-bg.png"); }
.product-card--conveyor-coupling { --division-card-image: url("solutions-conveyor-coupling-bg.png"); }
.product-card--conveyor-guides { --division-card-image: url("solutions-conveyor-guides-bg.png"); }

.product-card[class*="product-card--foundry-"] > *,
.product-card[class*="product-card--conveyor-"] > * {
  position: relative;
  z-index: 1;
}

.product-card[class*="product-card--foundry-"]:hover,
.product-card[class*="product-card--conveyor-"]:hover {
  background: #0b1b2b;
  border-color: rgba(139, 187, 222, .46);
}

.product-card:is(
  .product-card--foundry-monolithic,
  .product-card--foundry-raw-minerals,
  .product-card--foundry-precast,
  .product-card--foundry-engineering,
  .product-card--conveyor-tabletop,
  .product-card--conveyor-heavy-chain,
  .product-card--conveyor-coupling,
  .product-card--conveyor-guides
):hover::before {
  transform: scale(1.045);
}

/* Subtle photo backgrounds for the four engineering-service tiles. */
.service-box[class*="service-box--"] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0b1b2b;
  backdrop-filter: none;
}

.service-box[class*="service-box--"]::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 21, 34, .30) 0%, rgba(7, 21, 34, .72) 100%),
    var(--service-card-image) center / cover no-repeat;
  transition: transform .65s cubic-bezier(.16, 1, .3, 1);
}

.service-box--furnace { --service-card-image: url("solutions-services-furnace-bg.png"); }
.service-box--ball-mill { --service-card-image: url("solutions-services-ball-mill-bg.png"); }
.service-box--conveyor-chain { --service-card-image: url("solutions-services-conveyor-chain-bg.png"); }
.service-box--thermal-engineering { --service-card-image: url("solutions-services-thermal-engineering-bg.png"); }

.service-box[class*="service-box--"] > * {
  position: relative;
  z-index: 1;
}

.service-box[class*="service-box--"]:hover {
  background: #0b1b2b;
}

.service-box[class*="service-box--"]:hover::before {
  transform: scale(1.045);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.prod-badge {
  font: 700 11px "Space Grotesk", sans-serif;
  color: var(--red);
  letter-spacing: 0.12em;
}

.prod-cat {
  font-size: 11px;
  color: var(--muted);
}

.product-card h3 {
  font-size: 20px;
  line-height: 1.35;
  margin: 0 0 10px;
  color: white;
  font-weight: 700;
}

.product-card > p {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.65;
  margin: 0 0 20px;
}

.prod-features {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  display: grid;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.prod-features li {
  font-size: 12.5px;
  line-height: 1.6;
  color: #cbd5e1;
  position: relative;
  padding-left: 14px;
}

.prod-features li::before {
  content: "▪";
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 14px;
  line-height: 1.4;
}

.prod-features strong {
  color: white;
  font-weight: 600;
}

.product-source {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 18px;
  color: #39b1da;
  font: 600 12px "Space Grotesk", "Noto Sans Thai", sans-serif;
  text-decoration: underline;
  text-decoration-color: rgba(57, 177, 218, .5);
  text-underline-offset: 4px;
}

.product-source:hover {
  color: white;
  text-decoration-color: white;
}

/* Services Row */
.services-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-box {
  padding: 32px 28px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.service-box:hover {
  background: var(--card-hover);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-4px);
}

.service-icon {
  display: inline-block;
  font-size: 32px;
  margin-bottom: 18px;
}

.service-box h3 {
  font-size: 19px;
  margin: 0 0 12px;
  color: white;
}

.service-box p {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.7;
  margin: 0;
}

.service-box[data-detail] {
  cursor: pointer;
}

.service-source {
  display: inline-block;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Contact Card */
.solutions-contact {
  padding: 100px 0;
  background: var(--navy-deep);
}

.contact-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  padding: 56px 60px;
  background: linear-gradient(135deg, rgba(14, 34, 54, 0.9) 0%, rgba(8, 21, 34, 0.95) 100%);
  border: 1px solid var(--line-light);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.contact-copy .section-kicker {
  color: var(--red);
  font: 700 11px "Space Grotesk", sans-serif;
  letter-spacing: 0.2em;
  margin-bottom: 14px;
  display: block;
}

.contact-copy h2 {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.15;
  margin: 0 0 16px;
  color: white;
}

.contact-copy h2 span {
  color: var(--muted);
}

.contact-desc {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.75;
  margin: 0 0 32px;
  max-width: 520px;
}

.contact-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-red {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  background: var(--red);
  color: white;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.25s ease;
}

.btn-red:hover {
  background: #b90826;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--red-glow);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid var(--line-light);
  color: white;
  font-weight: 600;
  font-size: 14px;
  font-family: "Space Grotesk", sans-serif;
  transition: all 0.25s ease;
}

.btn-outline:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.05);
}

.contact-info-panel {
  display: grid;
  gap: 24px;
  padding-left: 36px;
  border-left: 1px solid var(--line);
}

.info-block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-icon {
  font-size: 20px;
  color: var(--red);
}

.info-block strong {
  display: block;
  font-size: 14px;
  color: white;
  margin-bottom: 4px;
}

.info-block p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* Footer */
.solutions-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0 50px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer-brand span {
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.back-top {
  transition: color 0.2s ease;
}

.back-top:hover {
  color: var(--red);
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active-reveal {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.24s;
}

.reveal-delay-3 {
  transition-delay: 0.36s;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .solutions-header {
    padding-inline: 24px;
  }
  .page-shell {
    width: calc(100% - 48px);
  }
  .solutions-hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-stat-box {
    justify-content: flex-start;
  }
  .products-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-card {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 36px;
  }
  .contact-info-panel {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }
}

@media (max-width: 768px) {
  body.all-divisions-view .solutions-hero {
    min-height: 600px;
    align-items: flex-start;
  }
  body.all-divisions-view .hero-department-grid {
    inset: auto 16px 16px;
    width: auto;
    height: 230px;
    gap: 6px;
  }
  .hero-department-image span {
    left: 7px;
    bottom: 7px;
    font-size: 7px;
    letter-spacing: .08em;
  }
  .solutions-nav {
    display: none;
    position: fixed;
    top: 90px;
    inset-inline: 0;
    flex-direction: column;
    background: rgba(7, 21, 34, 0.98);
    padding: 30px 24px;
    border-bottom: 1px solid var(--line);
    gap: 20px;
    backdrop-filter: blur(16px);
  }
  .solutions-nav.open {
    display: flex;
  }
  .solutions-menu {
    display: block;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .services-row {
    grid-template-columns: 1fr;
  }
  .dept-nav-wrapper {
    top: 100px;
  }
  .solutions-footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
