:root {
  --bg: #e8eef2;
  --ink: #101820;
  --muted: #4d5c68;
  --line: rgba(16, 24, 32, 0.12);
  --panel: #f7fafb;
  --teal: #0a6b5d;
  --teal-deep: #074f45;
  --steel: #243746;
  --sand: #d7e0e6;
  --ok: #1b6b3c;
  --danger: #9b3418;
  --shadow: 0 30px 70px rgba(16, 24, 32, 0.14);
  --font: "Manrope", "Noto Sans SC", system-ui, sans-serif;
  --display: "Sora", "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
.visual-figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f3f5f6;
  box-shadow: var(--shadow);
}
.visual-figure img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
  object-position: center;
  background: #f3f5f6;
}
/* Catalog montage / factory shots may still fill the frame */
.media-grid .visual-figure img,
.media-stack .visual-figure img {
  max-height: none;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.product-detail .visual-figure,
.visual-figure.product-shot {
  background: #f3f5f6;
}
.product-detail .visual-figure img,
.visual-figure.product-shot img {
  max-height: 400px;
  width: 100%;
  object-fit: contain;
}
.visual-figure figcaption {
  padding: .55rem .8rem .7rem;
  font-size: .8rem;
  color: var(--muted);
  background: var(--panel);
}
.fineprint { margin: .75rem 0 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.tbl-scroll { overflow: auto; border-radius: 12px; }
a { color: inherit; }
.container { width: min(1120px, calc(100% - 2.5rem)); margin-inline: auto; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 4vw;
  color: #f4f8f7;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  background: linear-gradient(145deg, #12a08a, #1d4d63);
}
.brand-logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(240px, 52vw);
  object-fit: contain;
}
.site-header:not(.solid) .brand-logo {
  /* GridLift mark already reads on dark hero; light plate for contrast */
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  padding: 0.4rem 0.65rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.site-header.solid .brand-logo {
  height: 42px;
  background: transparent;
  padding: 0;
  box-shadow: none;
}
.brand strong { display: block; font-family: var(--display); font-size: 1.05rem; letter-spacing: 0.02em; }
.brand small { opacity: 0.78; font-size: 0.78rem; }
.nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.12);
}
.lang-switch button {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
}
.lang-switch button.is-active {
  background: #fff;
  color: var(--teal-deep);
}
.site-header.solid .lang-switch {
  border-color: var(--line);
  background: #fff;
}
.site-header.solid .lang-switch button {
  color: var(--muted);
}
.site-header.solid .lang-switch button.is-active {
  background: var(--teal);
  color: #fff;
}
.nav a {
  text-decoration: none;
  color: rgba(244, 248, 247, 0.88);
  font-size: 0.92rem;
  font-weight: 560;
}
.nav a:hover { color: #fff; }
.nav .cta {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: #f4f8f7;
  color: var(--steel);
}
.site-header.solid {
  position: relative;
  color: var(--ink);
  background: #e8eef2;
  border-bottom: 1px solid var(--line);
}
.site-header.solid .nav a { color: var(--ink); }
.site-header.solid .nav a.active { color: var(--teal); }
.site-header.solid .nav .cta {
  background: var(--ink);
  color: #f4f8f7;
}

/* Hero: one composition, brand-first, full-bleed */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: #f4f8f7;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(8, 18, 24, 0.28) 0%, rgba(8, 18, 24, 0.55) 42%, rgba(8, 18, 24, 0.88) 100%),
    url("../img/machine-surface-grinder.jpg") center/cover no-repeat;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
.hero-gantry .hero-media {
  background:
    linear-gradient(180deg, rgba(8, 18, 24, 0.25) 0%, rgba(8, 18, 24, 0.52) 40%, rgba(8, 18, 24, 0.9) 100%),
    url("../img/factory-line.jpg") center/cover no-repeat;
}
.hero-contact .hero-media {
  background:
    linear-gradient(180deg, rgba(8, 18, 24, 0.35), rgba(8, 18, 24, 0.88)),
    url("../img/factory-exterior.jpg") center/cover no-repeat;
}
.media-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}
.media-grid .visual-figure { margin: 0; }
.media-stack {
  display: grid;
  gap: 1rem;
}
.factory-video {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #0f1c24;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.mode-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.8rem 0 0;
}
.mode-chips span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 107, 93, 0.08);
  color: var(--teal-deep);
}
.float-wa.is-hidden { display: none !important; }
.contact-pending {
  margin-top: 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px dashed rgba(159, 225, 211, 0.35);
  background: rgba(8, 18, 24, 0.25);
  color: rgba(244, 248, 247, 0.9);
  font-size: 0.9rem;
  line-height: 1.55;
}
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.2%, -1%, 0); }
}
.hero-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto 4.5rem;
  max-width: 42rem;
  animation: fadeUp 0.9s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hero-brand {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  font-weight: 560;
  letter-spacing: -0.01em;
  max-width: 28ch;
}
.hero .support {
  margin: 0.9rem 0 1.35rem;
  color: rgba(244, 248, 247, 0.82);
  font-size: 1.02rem;
  max-width: 38ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.82rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--teal);
  color: #f4faf8;
  box-shadow: 0 12px 30px rgba(10, 107, 93, 0.35);
}
.btn-primary:hover { background: var(--teal-deep); }
.btn-ghost {
  background: transparent;
  color: #f4f8f7;
  border-color: rgba(244, 248, 247, 0.4);
}
.btn-dark {
  background: var(--ink);
  color: #f4f8f7;
}
.btn-line {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.section { padding: 4.5rem 0; }
.section.tight { padding: 3.2rem 0; }
.section-head {
  max-width: 40rem;
  margin-bottom: 1.8rem;
}
.section-head h2 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}
.section-head p { margin: 0; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.6rem;
  align-items: center;
}
.split.reverse { grid-template-columns: 0.95fr 1.05fr; }
.split.reverse .copy { order: 2; }
.split.reverse .visual { order: 1; }

.visual {
  min-height: 360px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(transparent, rgba(8, 18, 24, 0.45));
}
.visual-a {
  background-image: url("https://images.unsplash.com/photo-1558449028-b53a11d2baa7?auto=format&fit=crop&w=1400&q=80");
}
.visual-b {
  background-image: url("https://images.unsplash.com/photo-1581092918056-0c4c3acd3789?auto=format&fit=crop&w=1400&q=80");
}

.copy h3 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: 1.45rem;
}
.copy p { color: var(--muted); margin: 0 0 1rem; }
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  display: grid;
  gap: 0.55rem;
}
.feature-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--muted);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--teal);
}

.band {
  background: linear-gradient(180deg, #dfe8ee, #e8eef2);
  border-block: 1px solid var(--line);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.stat {
  padding: 0.2rem 0;
}
.stat strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}
.stat span { color: var(--muted); font-size: 0.95rem; }

.product-rails {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.rail {
  display: block;
  text-decoration: none;
  padding: 1.4rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  min-height: 220px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.rail:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.rail .kicker {
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rail h3 {
  margin: 0.55rem 0 0.5rem;
  font-family: var(--display);
  font-size: 1.35rem;
}
.rail p { margin: 0 0 1rem; color: var(--muted); }
.rail .go { font-weight: 700; color: var(--steel); }

.news-cover {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin: 0.4rem 0 1.2rem;
}
.news-body {
  line-height: 1.7;
  color: var(--ink);
}
.news-body p { margin: 0 0 1rem; }
.news-body h2,
.news-body h3 {
  font-family: var(--display);
  letter-spacing: -0.02em;
  margin: 1.4rem 0 0.6rem;
}
.news-body ul,
.news-body ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.news-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
.news-body a { color: var(--steel); }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.spec-table th,
.spec-table td {
  text-align: left;
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.95rem;
}
.spec-table th {
  width: 34%;
  background: rgba(36, 55, 70, 0.06);
  font-family: var(--display);
}
.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: 0; }

.faq {
  display: grid;
  gap: 0.7rem;
}
.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--display);
}
.faq p { margin: 0.55rem 0 0.15rem; color: var(--muted); }

.inquiry {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.2rem;
  align-items: start;
}
.inquiry-note {
  padding: 1.2rem;
  border-radius: 14px;
  background: var(--steel);
  color: #eef5f3;
}
.inquiry-note h3 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
}
.inquiry-note p { margin: 0 0 0.8rem; color: rgba(238, 245, 243, 0.82); }
.inquiry-note ul { margin: 0; padding-left: 1.1rem; color: rgba(238, 245, 243, 0.82); }

form.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem;
  display: grid;
  gap: 0.8rem;
}
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.88rem; font-weight: 650; }
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.72rem 0.8rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.form-msg {
  display: none;
  margin: 0;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: rgba(27, 107, 60, 0.1);
  color: var(--ok);
  font-weight: 600;
}
.form-msg.show { display: block; }

.page-hero {
  padding: 8rem 0 3rem;
  background:
    radial-gradient(700px 280px at 0% 0%, rgba(10, 107, 93, 0.14), transparent 60%),
    linear-gradient(180deg, #dce6ec, var(--bg));
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
}
.page-hero p {
  margin: 0;
  max-width: 46rem;
  color: var(--muted);
}
.crumbs {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.crumbs a { color: var(--teal); text-decoration: none; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}
.chips span {
  font-size: 0.78rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  color: var(--steel);
}

.site-footer {
  padding: 2rem 4vw;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
  background: #e2eaef;
}
.site-footer a { color: var(--teal); text-decoration: none; }

.float-wa {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 40;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1faa59;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(31, 170, 89, 0.35);
  animation: pulse 2.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Product menu: 2 cards per row */
.product-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.product-menu-group + .product-menu-group {
  margin-top: 2.5rem;
}
.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  text-decoration: none;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(10, 107, 93, 0.35);
  box-shadow: var(--shadow);
}
.product-card-media {
  aspect-ratio: 4 / 3;
  background: #eef1f3;
  overflow: hidden;
}
.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transition: transform 0.3s ease;
}
.product-card:hover .product-card-media img {
  transform: scale(1.03);
}
.product-card-body {
  padding: 0.85rem 1rem 1rem;
  display: grid;
  gap: 0.28rem;
}
.product-card-body .kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}
.product-card-body h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.product-card-body .spec-line {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--steel);
}
.product-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.product-card-body .go {
  margin-top: 0.35rem;
  font-weight: 750;
  color: var(--teal);
  font-size: 0.9rem;
}
.chip-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 650;
}
.chip-link:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.product-detail {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.6rem;
  align-items: start;
}
.product-detail h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 1.35rem;
}

@media (max-width: 900px) {
  .nav a:not(.cta) { display: none; }
  .lang-switch { display: inline-flex; }
  .lang-switch { display: inline-flex; }
  .split, .split.reverse, .product-rails, .inquiry, .stats, .grid-2, .media-grid,
  .product-menu, .product-detail {
    grid-template-columns: 1fr;
  }
  .split.reverse .copy,
  .split.reverse .visual { order: initial; }
  .hero-inner { margin-bottom: 3rem; }
  .visual { min-height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
