:root {
  --bg: #f5f8fc;
  --surface: #ffffff;
  --text: #112039;
  --muted: #4a5d7a;
  --primary: #0d4cb5;
  --primary-dark: #0a3885;
  --primary-soft-border: rgba(13, 76, 181, 0.45);
  --border: #d8e1ef;
  --brand-green: #2d8c3e;
  --product-card-image-height: 188px;
  --customer-card-image-height: 130px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

html.i18n-pending [data-i18n] {
  visibility: hidden;
}

html.i18n-ready [data-i18n] {
  visibility: visible;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.2rem;
}

.logo span {
  color: var(--brand-green);
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  color: var(--muted);
  font-weight: 500;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary-soft-border);
}

.nav-links a[aria-current="page"] {
  color: var(--primary);
  font-weight: 500;
  border-bottom-color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switcher {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.42rem 0.72rem;
  cursor: pointer;
}

.lang-btn:hover {
  color: var(--primary);
}

.lang-btn.is-active {
  background: var(--primary);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font-weight: 600;
  transition: 0.2s ease;
}

.btn:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: rgba(13, 76, 181, 0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: #fff;
}

.hero {
  background: linear-gradient(145deg, #eff5ff 0%, #f9fbff 60%, #edf4ff 100%);
  padding: 4rem 0;
}

.hero-carousel {
  border-radius: 20px;
  border: 1px solid #d3e1f7;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 16px 36px rgba(17, 32, 57, 0.08);
  overflow: hidden;
}

.carousel-track {
  position: relative;
  min-height: 380px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  padding: 2.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s linear 0.5s;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.tag {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-products .tag {
  font-size: 1rem;
}

.hero-title {
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.2;
  margin: 0;
}

.lead {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 62ch;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 12px 28px rgba(17, 32, 57, 0.08);
}

.hero-card img {
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 0.85rem;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.hero-card h2 {
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
}

.hero-card li {
  color: var(--muted);
  margin-top: 0.7rem;
}

.hero-card strong {
  color: var(--text);
  margin-right: 0.35rem;
}

.raw-materials-card {
  padding: 1rem;
}

.raw-materials-carousel {
  display: grid;
  gap: 0.8rem;
}

.raw-materials-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #b5c7e5 #edf3ff;
}

.raw-material-item {
  flex: 0 0 100%;
  scroll-snap-align: start;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.raw-material-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.raw-material-item figcaption {
  padding: 0.6rem 0.75rem;
  text-align: center;
  font-weight: 700;
  color: var(--text);
}

.raw-materials-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

/* ---- Standalone raw-materials section on Home page ---- */
.raw-materials-standalone .container {
  display: block;
}

.rm-section-head {
  text-align: left;
  margin-bottom: 0.8rem;
}

.rm-section-head h2 {
  margin: 0;
}

.raw-materials-standalone .raw-materials-track {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.raw-materials-standalone .raw-materials-track::-webkit-scrollbar {
  display: none;
}

.raw-materials-standalone .raw-material-item {
  flex: 0 0 100%;
}

.raw-materials-standalone .raw-material-item img {
  width: 100%;
  height: clamp(240px, 38vw, 460px);
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: #eef2f8;
}

.raw-materials-standalone .raw-materials-controls {
  margin-top: 1rem;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0 1.2rem 1.3rem;
}

.carousel-control {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s ease;
}

.carousel-control:hover {
  border-color: var(--primary);
  background: #f2f7ff;
}

.carousel-dots {
  display: flex;
  gap: 0.45rem;
}

.carousel-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  border: 0;
  background: #a8b6cc;
  opacity: 0.7;
  cursor: pointer;
  transition: 0.2s ease;
}

.carousel-dot.is-active {
  width: 1.8rem;
  background: var(--primary);
  opacity: 1;
}

.section {
  padding: 4rem 0;
}

.section-muted {
  background: #eef3fb;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head.compact {
  margin-top: 2rem;
}

.section-head h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.section-head p {
  color: var(--muted);
}

.card-grid {
  display: grid;
  gap: 1rem;
}

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

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

#customers .card-grid.cols-5 {
  gap: 0.75rem;
  align-items: stretch;
}

#customers .image-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem;
}

#customers .image-card img {
  height: var(--customer-card-image-height);
  margin-bottom: 0.65rem;
}

#customers .image-card h3 {
  line-height: 1.35;
}

#customers .image-card p {
  margin-top: 0.4rem;
  flex: 1;
}

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

.contact-info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.info-card {
  padding: 1.2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.info-card p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.image-card,
.gallery-card,
.certificate-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.image-card:hover,
.gallery-card:hover,
.certificate-card:hover {
  transform: translateY(-3px);
  border-color: #bfd1ec;
  box-shadow: 0 12px 24px rgba(17, 32, 57, 0.08);
}

.image-card img,
.gallery-card img,
.certificate-card img {
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 0.9rem;
  width: 100%;
  object-fit: cover;
}

.image-card img {
  height: 160px;
  object-fit: cover;
}

.gallery-card img {
  height: 180px;
  object-fit: cover;
}

.certificate-card img {
  height: 100px;
  object-fit: contain;
}

.split-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.split-grid p {
  color: var(--muted);
  margin-top: 0.6rem;
}

.about-profile-full .about-profile-content {
  max-width: 920px;
}

.about-profile-full p {
  color: var(--muted);
  margin-top: 0.6rem;
  max-width: 72ch;
}

.about-profile-full .bullet-list {
  margin-top: 1rem;
}

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

.bullet-list {
  display: grid;
  gap: 0.7rem;
}

.bullet-list li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--muted);
}

.about-gallery-wrap {
  margin-top: 1.2rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.metrics-grid article {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.metrics-grid span {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
}

.metrics-grid p {
  color: var(--muted);
}

.cta-box {
  background: #102647;
  color: #fff;
  border-radius: 16px;
  padding: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-box .tag {
  color: #8fb6ff;
}

.cta-box p {
  color: #d8e4ff;
  margin-top: 0.5rem;
}

.page-hero {
  background: linear-gradient(145deg, #eef4ff 0%, #f8fbff 60%, #edf3ff 100%);
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  line-height: 1.2;
}

.page-hero p {
  margin-top: 0.8rem;
  color: var(--muted);
  max-width: 68ch;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.hero-banner-card {
  margin-top: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.hero-banner-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-tab {
  appearance: none;
  cursor: pointer;
  font: inherit;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.filter-tab.is-active {
  border-color: var(--primary);
  color: var(--primary);
  background: #eef4ff;
}

.filter-tab:focus-visible {
  outline: 2px solid rgba(13, 76, 181, 0.3);
  outline-offset: 1px;
}

.search-card {
  margin-top: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.search-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1.2fr 1fr 1fr auto;
}

.search-grid input,
.search-grid select,
.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.search-grid input::placeholder,
.inquiry-form input::placeholder,
.inquiry-form textarea::placeholder {
  color: #7c8ea8;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.product-card[hidden] {
  display: none !important;
}

.product-card h3 {
  font-size: 1.05rem;
}

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-list span {
  background: #eef4ff;
  color: var(--primary);
  border: 1px solid #d3e1f7;
  border-radius: 999px;
  font-size: 0.8rem;
  padding: 0.2rem 0.65rem;
  font-weight: 600;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
}

.card-actions .btn {
  padding: 0.6rem 0.95rem;
}

.empty-state-card {
  margin-top: 1rem;
  border: 1px dashed #bfd1ec;
  border-radius: 12px;
  background: #f7faff;
  padding: 1rem;
  text-align: center;
}

.empty-state-card p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

.detail-image {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.detail-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.detail-summary {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem;
}

.detail-summary p {
  color: var(--muted);
  margin-top: 0.6rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.94rem;
}

.spec-table th,
.spec-table td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.65rem;
  text-align: left;
}

.spec-table th {
  width: 34%;
  background: #f4f8ff;
}

.timeline {
  display: grid;
  gap: 0.75rem;
}

.timeline article {
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 10px;
  background: #fff;
  padding: 0.85rem 1rem;
}

.timeline p {
  color: var(--muted);
  margin-top: 0.3rem;
}

.process-grid {
  display: grid;
  gap: 0.85rem;
}

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

.process-step {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 1rem;
}

.process-step strong {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: var(--primary);
}

.process-step p {
  color: var(--muted);
}

.doc-note {
  margin-top: 0.8rem;
  padding: 0.85rem 1rem;
  border: 1px dashed #bfd1ec;
  border-radius: 10px;
  background: #f7faff;
  color: var(--muted);
}

.inquiry-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1rem;
}

.inquiry-form {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

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

.inquiry-form textarea {
  min-height: 120px;
  resize: vertical;
}

.inquiry-note {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.office-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 1rem;
}

.office-card p {
  color: var(--muted);
  margin-top: 0.4rem;
}

.contact-info-title {
  text-align: left;
  margin-bottom: 1rem;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.products-hero-slogan {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--text);
  max-width: 40ch;
}

.page-products .page-hero {
  padding: 1.5rem 0 1.2rem;
}

.page-products .section.section-muted {
  padding: 3rem 0;
}

.page-products .section-head {
  margin-bottom: 1.1rem;
}

.page-products .card-grid.cols-4 {
  gap: 0.85rem;
}

.page-products .product-card {
  gap: 0.5rem;
  padding: 1rem;
}

.page-products .product-card h3 {
  font-size: 1rem;
}

.page-products .product-card p {
  margin-top: 0.25rem;
}

.page-products .product-card img {
  height: var(--product-card-image-height);
  margin-bottom: 0.55rem;
}

.page-products .tag-list {
  display: none;
}

.contact-info-card {
  text-align: center;
  padding: 1.8rem 1.35rem;
  box-shadow: 0 10px 24px rgba(17, 32, 57, 0.05);
}

.contact-info-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.contact-card-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 1rem;
  border: 1.5px solid #cfd8e7;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-card-icon svg {
  width: 32px;
  height: 32px;
  display: block;
  fill: none;
  stroke: #1f2a44;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-info-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.contact-info-content {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
  color: var(--muted);
}

.contact-info-content a {
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-info-content a:hover {
  color: var(--primary);
}

.contact-map-block {
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(17, 32, 57, 0.05);
}

.contact-map-head h3 {
  font-size: 1.08rem;
}

.contact-map-head p {
  margin-top: 0.45rem;
  color: var(--muted);
}

.contact-map-shell {
  margin-top: 0.9rem;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #f6f9ff;
  min-height: 360px;
}

.contact-map-canvas {
  width: 100%;
  min-height: 360px;
}

.contact-map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.4rem;
  background: linear-gradient(145deg, rgba(238, 244, 255, 0.96) 0%, rgba(248, 251, 255, 0.98) 70%, rgba(237, 243, 255, 0.98) 100%);
}

.contact-map-fallback-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.contact-map-fallback .contact-map-link {
  margin-top: 0;
}

.contact-map-info-window {
  color: var(--text);
}

.contact-map-info-address {
  margin-top: 0.35rem;
  line-height: 1.6;
}

.contact-method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.contact-method-stack {
  grid-template-columns: 1fr;
  width: 100%;
}

.contact-method-stack .contact-method-item {
  width: 100%;
  min-width: 0;
}

.contact-method-stack .contact-method-item a,
.contact-method-stack .contact-method-item span {
  word-break: break-word;
}

.contact-method-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}

.contact-method-item strong {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.contact-method-item a,
.contact-method-item span {
  font-size: 0.9rem;
  color: var(--text);
  word-break: break-all;
}

.contact-method-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-method-list a {
  display: block;
  overflow-wrap: anywhere;
}

.site-footer {
  background: #0a1528;
  color: #d2d9ea;
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-grid h3 {
  color: #fff;
  margin-bottom: 0.65rem;
}

.footer-grid li,
.footer-grid p {
  margin-top: 0.45rem;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2rem;
  padding: 1rem 0;
  text-align: center;
  color: #b5bfd6;
  font-size: 0.9rem;
}

@media (max-width: 960px) {
  .raw-materials-standalone .container {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .rm-section-head {
    text-align: left;
    margin-bottom: 0.2rem;
  }

  .nav-wrap {
    flex-wrap: wrap;
    padding: 0.8rem 0;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    padding-top: 0.2rem;
  }

  .carousel-track {
    min-height: 460px;
  }

  .hero-slide {
    padding: 1.5rem;
  }

  .hero-grid,
  .split-grid,
  .detail-grid,
  .inquiry-layout {
    grid-template-columns: 1fr;
  }

  .hero-card {
    display: none;
  }

  .hero-card.raw-materials-card {
    display: block;
    margin-top: 0.2rem;
  }

  .cols-4,
  .cols-3,
  .metrics-grid,
  .footer-grid,
  .process-grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  #customers .card-grid.cols-5 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

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

  .search-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    justify-content: flex-start;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }

  .carousel-track {
    min-height: auto;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .raw-material-item {
    flex-basis: 100%;
  }

  .cols-4,
  .cols-5,
  .cols-3,
  .metrics-grid,
  .footer-grid,
  .process-grid.cols-4,
  .contact-info-grid,
  .contact-info-card-grid,
  .contact-method-grid,
  .profile-bullet-grid {
    grid-template-columns: 1fr;
  }

  #customers .card-grid.cols-5 {
    grid-template-columns: 1fr;
  }

  .hero,
  .section {
    padding: 3rem 0;
  }

  .contact-map-shell,
  .contact-map-canvas {
    min-height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-slide {
    transform: none !important;
  }
}

/* ---- Yidejian Eco-Brand theme overrides ---- */
:root {
  --eco-green: #2e7d32;
  --eco-green-dark: #1b5e20;
  --eco-green-mid: #388e3c;
  --eco-green-soft: #e8f5e9;
  --eco-green-border: rgba(46, 125, 50, 0.3);
  --eco-accent: #66bb6a;
}

/* Use eco-green as primary for branding elements */
.logo .brand-name { color: var(--eco-green); }
.logo-img {
  height: 42px;
  width: auto;
  max-width: 76px;
  object-fit: contain;
  vertical-align: middle;
}

/* Product image consistent sizing */
.image-card img,
.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px 6px 0 0;
}

.product-card img,
#products .image-card img {
  background: #f7faff;
  object-fit: contain;
  padding: 0.5rem;
}

.certificate-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  padding: 1rem;
}

.detail-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
}

.hero-card img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 6px;
}

.factory-banner {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 1.5rem;
}
.factory-banner img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}
