/*
Theme Name: CNC Precision Hub
Theme URI: https://example.com/cnc-precision-hub
Author: Codex
Author URI: https://example.com
Description: A multilingual WordPress theme for CNC machining technology, tooling, fixtures, inspection, and supporting services.
Version: 1.2.3
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cnc-precision-hub
Tags: blog, custom-logo, featured-images, translation-ready, manufacturing
*/

:root {
  --ink: #17202a;
  --muted: #5c6975;
  --line: #d9e0e7;
  --panel: #ffffff;
  --paper: #f5f7f8;
  --steel: #2d5f73;
  --accent: #d44f32;
  --accent-2: #2e8c67;
  --dark: #12171d;
  --shadow: 0 18px 44px rgba(18, 23, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 247, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
  min-width: 0;
}

.brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--steel);
  border-radius: 8px;
  font-size: 14px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 650;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
  color: var(--ink);
  background: #e9eef1;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: #e9eef1;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.language-switcher button {
  min-width: 42px;
  min-height: 32px;
  padding: 5px 9px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.language-switcher button:hover,
.language-switcher button.is-active {
  color: #fff;
  background: var(--steel);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 620px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/images/hero-cnc-toolholder.jpg") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(18, 23, 29, 0.9), rgba(18, 23, 29, 0.48) 56%, rgba(18, 23, 29, 0.16));
}

.hero-content {
  width: min(760px, 100%);
  padding: 88px 0 118px;
  max-width: 100%;
}

.eyebrow {
  margin: 0 0 14px;
  color: #cddfe6;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.page-title {
  margin: 0;
  font-size: clamp(38px, 6vw, 78px);
  line-height: 1.04;
  letter-spacing: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.hero p {
  width: min(660px, 100%);
  margin: 22px 0 0;
  color: #e6eef2;
  font-size: clamp(17px, 2vw, 21px);
  overflow-wrap: anywhere;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(212, 79, 50, 0.22);
}

.button.is-pressing,
.language-switcher button.is-pressing,
.tree-filter-row button.is-pressing {
  transform: translateY(1px) scale(0.99);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.section {
  padding: 76px 0;
}

.section.white {
  background: #fff;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 30px;
}

.section-head h2,
.archive-title {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.12;
}

.section-head p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(18, 23, 29, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 95, 115, 0.38);
  box-shadow: 0 18px 40px rgba(18, 23, 29, 0.12);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.36) 46%, transparent 62%);
  opacity: 0;
  transform: translateX(-120%);
  transition: opacity 220ms ease, transform 700ms ease;
}

.card:hover::before {
  opacity: 1;
  transform: translateX(120%);
}

.card-body {
  padding: 24px;
}

.card h2,
.card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.24;
}

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

.media-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #dfe5e9;
  transition: transform 500ms ease;
}

.media-card:hover img,
.post-card:hover .post-thumb img {
  transform: scale(1.035);
}

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

.language-panel {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.language-panel strong {
  display: block;
  margin-bottom: 10px;
  color: var(--steel);
}

.language-panel.is-selected {
  border-color: var(--steel);
  box-shadow: 0 14px 34px rgba(45, 95, 115, 0.14);
}

.language-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
}

.home-seo-section {
  background: #f0f4f2;
}

.eyebrow.dark {
  color: var(--steel);
}

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

.seo-topic-card {
  min-height: 210px;
  padding: 22px;
  border: 1px solid rgba(45, 95, 115, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(18, 23, 29, 0.05);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.seo-topic-card:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 95, 115, 0.42);
  box-shadow: 0 16px 34px rgba(18, 23, 29, 0.1);
}

.seo-topic-card h3 {
  margin: 0 0 10px;
  color: var(--steel);
  font-size: 20px;
  line-height: 1.25;
}

.seo-topic-card h2 {
  margin: 0 0 10px;
  color: var(--steel);
  font-size: 20px;
  line-height: 1.25;
}

.seo-topic-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.contact-service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 24px;
}

.article-solution-cta {
  margin: 34px 0 24px;
  padding: 26px;
  color: #fff;
  background: var(--dark);
  border-radius: 8px;
}

.article-solution-cta h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 26px;
  line-height: 1.25;
}

.article-solution-cta p {
  margin: 0 0 18px;
  color: #d3dee5;
}

.spec-band {
  color: #fff;
  background: var(--dark);
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.spec-item {
  min-height: 128px;
  padding: 22px;
  background: var(--dark);
}

.spec-item span {
  display: block;
  color: #a8bac4;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.spec-item b {
  display: block;
  margin-top: 12px;
  font-size: 26px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.post-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.post-card .card-body {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 220px;
  background: #fff;
  opacity: 1;
  visibility: visible;
}

.sample-post-card {
  border-style: dashed;
}

.post-card .post-thumb {
  display: block;
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
  max-height: 260px;
  background: #dfe5e9;
  overflow: hidden;
}

.post-card .post-thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(18, 23, 29, 0.34), transparent);
  opacity: 0;
  transition: opacity 260ms ease;
}

.post-card:hover .post-thumb::after {
  opacity: 1;
}

.post-card .post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.post-meta {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.post-card h2,
.post-card h3 {
  margin: 8px 0 10px;
  font-size: 22px;
}

.post-title-zh {
  margin-bottom: 6px;
}

.post-title-en {
  margin: 0 0 12px;
  color: var(--steel);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
}

.content-area {
  padding: 58px 0 82px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.page-hero .breadcrumbs {
  color: #b9c8d0;
}

.breadcrumbs a {
  color: var(--steel);
}

.page-hero .breadcrumbs a {
  color: #fff;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 38px;
  align-items: start;
}

.article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 48px);
}

.article h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.article-header {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.article-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.article-summary,
.page-intro {
  max-width: 780px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.page-hero .page-intro {
  color: #d9e5eb;
}

.featured-figure {
  margin: 28px 0 0;
}

.featured-figure img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 8px;
}

.article-content {
  margin-top: 28px;
  font-size: 18px;
}

.article-content h2,
.article-content h3 {
  margin-top: 34px;
  line-height: 1.2;
}

.article-content a {
  color: var(--steel);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content img {
  border-radius: 8px;
}

.article-content iframe,
.article-content video {
  max-width: 100%;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  overflow: hidden;
  border: 1px solid var(--line);
}

.article-content th,
.article-content td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
}

.article-content th {
  background: #eef3f5;
}

.article-footer {
  display: grid;
  gap: 18px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.tag-list a {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f9fa;
}

.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.post-nav a {
  display: block;
  min-height: 54px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--steel);
  background: #f7f9fa;
  font-weight: 750;
}

.related-posts {
  grid-column: 1 / -1;
  margin-top: 38px;
}

.sidebar {
  display: grid;
  gap: 18px;
}

.widget,
.sidebar .wp-block-group,
.sidebar section {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.widget h2,
.widget h3 {
  margin-top: 0;
}

.page-hero {
  padding: 70px 0;
  color: #fff;
  background: var(--dark);
}

.contact-hero {
  background:
    linear-gradient(90deg, rgba(15, 20, 25, 0.96), rgba(45, 95, 115, 0.74)),
    url("assets/images/process-detail.jpg") center / cover no-repeat;
}

.technology-hero {
  background:
    linear-gradient(90deg, rgba(15, 20, 25, 0.94), rgba(45, 95, 115, 0.76)),
    url("assets/images/er-toolholder.jpg") center / cover no-repeat;
}

.technology-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.technology-toolbar h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.12;
}

.tree-search {
  display: grid;
  gap: 8px;
  width: min(360px, 100%);
  color: var(--muted);
  font-weight: 800;
}

.tree-search input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafb;
  font: inherit;
}

.tree-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tree-filter-row button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.tree-filter-row button:hover,
.tree-filter-row button.is-active {
  color: #fff;
  background: var(--steel);
  border-color: var(--steel);
}

.skill-tree {
  display: grid;
  gap: 14px;
}

.skill-tree-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skill-tree-compact .skill-node summary {
  min-height: 124px;
}

.skill-tree-compact .parameter-grid {
  grid-template-columns: 1fr;
}

.skill-node {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(18, 23, 29, 0.05);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.skill-node:hover,
.skill-node.is-opened,
.skill-node[open] {
  border-color: rgba(45, 95, 115, 0.36);
  box-shadow: 0 16px 36px rgba(18, 23, 29, 0.09);
}

.skill-node:hover {
  transform: translateY(-2px);
}

.skill-node summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.skill-node summary::-webkit-details-marker {
  display: none;
}

.skill-node summary::after {
  content: "+";
  margin-left: auto;
  color: var(--steel);
  font-size: 28px;
  line-height: 1;
  transition: transform 220ms ease;
}

.skill-node[open] summary::after {
  transform: rotate(45deg);
}

.skill-node[open] > summary {
  border-bottom: 1px solid var(--line);
}

.skill-node summary strong {
  display: block;
  font-size: 21px;
}

.skill-node summary em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-style: normal;
}

.node-index {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  color: #fff;
  background: var(--steel);
  border-radius: 8px;
  font-weight: 900;
}

.subsystem-grid {
  display: grid;
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.subsystem-node {
  background: #f8fbfc;
  transition: background-color 220ms ease;
}

.subsystem-node:hover,
.subsystem-node.is-opened {
  background: #eef6f8;
}

.subsystem-node > summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.subsystem-node > summary::-webkit-details-marker {
  display: none;
}

.subsystem-node > summary::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-right: 2px solid var(--steel);
  border-bottom: 2px solid var(--steel);
  transform: rotate(-45deg);
  transition: transform 180ms ease;
}

.subsystem-node[open] > summary::before {
  transform: rotate(45deg);
}

.subsystem-node > summary strong {
  display: block;
  font-size: 18px;
}

.subsystem-node > summary em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-style: normal;
}

.parameter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.parameter-card {
  min-height: 156px;
  padding: 18px;
  background: #fff;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.parameter-card:hover {
  background: #f6fafb;
  box-shadow: inset 3px 0 0 var(--accent);
  transform: translateY(-2px);
}

.parameter-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.parameter-card strong {
  display: block;
  margin-top: 8px;
  font-size: 19px;
  line-height: 1.22;
}

.parameter-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.workflow-strip > div {
  min-height: 180px;
  padding: 22px;
  background: #fff;
}

.workflow-strip span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.workflow-strip strong {
  display: block;
  margin-top: 10px;
  font-size: 22px;
}

.workflow-strip p {
  margin: 10px 0 0;
  color: var(--muted);
}

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

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.inquiry-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.inquiry-form .full {
  grid-column: 1 / -1;
}

.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.inquiry-form textarea {
  resize: vertical;
}

.inquiry-widget .button {
  margin-top: 14px;
}

.site-footer {
  padding: 58px 0 28px;
  color: #dce5ea;
  background:
    linear-gradient(135deg, rgba(45, 95, 115, 0.28), rgba(212, 79, 50, 0.1) 38%, rgba(15, 20, 25, 0) 68%),
    #0f1419;
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}

.footer-cta h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
}

.footer-cta p:not(.eyebrow) {
  max-width: 720px;
  margin: 12px 0 0;
  color: #bfd0d8;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(180px, 0.7fr) minmax(180px, 0.7fr);
  gap: 34px;
  padding: 42px 0 34px;
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand p {
  max-width: 560px;
  margin: 18px 0 0;
  color: #b9c8d0;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-column h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 16px;
}

.footer-column a,
.footer-links a {
  color: #b9c8d0;
}

.footer-column a:hover,
.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: #aebdc5;
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
}

.footer-links ul,
.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition: opacity 620ms ease var(--reveal-delay, 0ms), transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reduce-motion .reveal-on-scroll,
.reduce-motion .card,
.reduce-motion .button,
.reduce-motion img,
.reduce-motion .skill-node,
.reduce-motion .parameter-card {
  transition: none;
  transform: none;
}

@media (max-width: 1180px) {
  .language-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .post-grid,
  .grid.three,
  .seo-topic-grid,
  .skill-tree-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero h1,
  .page-title {
    font-size: clamp(36px, 6.2vw, 64px);
  }
}

@media (max-width: 900px) {
  .header-inner,
  .section-head,
  .footer-cta,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-tools {
    width: 100%;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .site-nav ul {
    width: max-content;
    min-width: 100%;
  }

  .language-switcher {
    max-width: 100%;
    overflow-x: auto;
  }

  .grid.two,
  .language-grid,
  .seo-topic-grid,
  .skill-tree-compact,
  .spec-list,
  .content-layout,
  .contact-layout,
  .inquiry-form,
  .post-nav,
  .footer-main,
  .technology-toolbar,
  .parameter-grid,
  .workflow-strip {
    grid-template-columns: 1fr;
  }

  .technology-toolbar {
    display: grid;
    align-items: start;
  }

  .hero {
    min-height: 520px;
  }

  .hero-content {
    padding: 72px 0 92px;
  }

  .site-nav ul {
    gap: 2px;
  }

  .section {
    padding: 58px 0;
  }

  .content-area {
    padding: 42px 0 58px;
  }

  .footer-main {
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    min-height: auto;
    gap: 14px;
    padding: 12px 0;
  }

  .brand {
    width: 100%;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  .site-nav a {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 14px;
  }

  .language-switcher button {
    min-width: 38px;
    min-height: 30px;
    padding: 5px 8px;
  }

  .hero {
    min-height: 500px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(18, 23, 29, 0.88), rgba(18, 23, 29, 0.62));
  }

  .hero-content {
    padding: 58px 0 74px;
    width: 100%;
  }

  .hero h1,
  .page-title {
    font-size: clamp(30px, 8.6vw, 36px);
    line-height: 1.12;
  }

  .hero .eyebrow {
    max-width: 100%;
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .hero p,
  .article-summary,
  .page-intro {
    font-size: 17px;
  }

  .hero-actions,
  .footer-cta {
    width: 100%;
  }

  .hero-actions .button,
  .footer-cta .button,
  .inquiry-widget .button {
    width: 100%;
  }

  .grid.three,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .card-body,
  .language-panel,
  .spec-item,
  .parameter-card,
  .workflow-strip > div,
  .widget,
  .sidebar section {
    padding: 18px;
  }

  .article {
    padding: 20px;
  }

  .article h1 {
    font-size: 32px;
  }

  .article-content {
    font-size: 16px;
  }

  .post-card h2,
  .post-card h3,
  .card h2,
  .card h3 {
    font-size: 20px;
  }

  .spec-item {
    min-height: auto;
  }

  .spec-item b {
    font-size: 22px;
  }

  .page-hero {
    padding: 48px 0;
  }

  .inquiry-form input,
  .inquiry-form textarea {
    font-size: 16px;
  }

  .footer-cta {
    padding: 22px;
  }

  .footer-bottom {
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .hero h1,
  .page-title {
    font-size: 32px;
  }

  .language-switcher {
    width: 100%;
  }

  .language-switcher button {
    flex: 1 0 auto;
  }
}
