/*
Theme Name: L-LINKE Replica
Theme URI: https://www.sanlincnc.com
Author: L-LINKE
Description: B2B Industrial Manufacturing Theme for Dongguan Sanlin Hardware Products Co., Ltd.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: slcs
*/

/* ===== CSS Variables ===== */
:root {
  --primary: #AB7A58;
  --primary-dark: #8B5E40;
  --primary-light: #C49A7E;
  --dark: #171717;
  --deep-gray: #343A40;
  --gray: #6C757D;
  --light-gray: #E9ECEF;
  --bg-gray: #F8F9FA;
  --white: #FFFFFF;
  --text: #171717;
  --text-light: #6C757D;
  --text-muted: #ADB5BD;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-gray { background: var(--bg-gray); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header .eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-outline-blue {
  background: transparent;
  color: var(--deep-gray);
  border-color: var(--deep-gray);
}
.btn-outline-blue:hover {
  background: var(--deep-gray);
  color: var(--white);
}
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
  transition: var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { height: 56px; width: auto; }
.site-logo .logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
}
.site-logo .logo-sub {
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 11px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--deep-gray);
  border-radius: 6px;
  transition: var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  background: rgba(171,122,88,0.06);
}
.header-quote-btn { margin-left: 16px; }

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--deep-gray) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/images/hero-overlay.png') center/cover;
  opacity: 0.15;
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--primary); }
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  max-width: 560px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Hero Banner Slider ===== */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--dark);
}
.hs-track {
  position: relative;
  width: 100%;
  aspect-ratio: 2048 / 768;
}
.hs-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.hs-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hs-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hs-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.hs-nav:hover { background: rgba(0, 0, 0, 0.55); }
.hs-prev { left: 18px; }
.hs-next { right: 18px; }
.hs-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hs-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.hs-dot.active {
  background: var(--primary);
  transform: scale(1.25);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 768px) {
  .hs-track { aspect-ratio: 3 / 2; }
  .hs-slide img { object-position: left center; }
  .hs-nav { width: 34px; height: 34px; font-size: 22px; }
  .hs-prev { left: 10px; }
  .hs-next { right: 10px; }
  .hs-dots { display: none; }
}

/* ===== Trust Bar ===== */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
  padding: 40px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-item .trust-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.trust-item .trust-label {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 6px;
}

/* ===== Product Cards ===== */
.product-entries {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-entry-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--light-gray);
}
.product-entry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-entry-card .card-img {
  height: 200px;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
}
.product-entry-card .card-body { padding: 20px; }
.product-entry-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--dark);
}
.product-entry-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

/* ===== Manufacturing Process ===== */
.process-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-step {
  text-align: center;
  padding: 24px 16px;
  position: relative;
}
.process-step::after {
  content: '→';
  position: absolute;
  right: -12px;
  top: 30%;
  font-size: 1.2rem;
  color: var(--primary);
}
.process-step:last-child::after { display: none; }
.process-step .step-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  background: var(--bg-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}
.process-step .step-icon svg { width: 26px; height: 26px; display: block; }
.process-step:hover .step-icon {
  background: var(--primary);
  color: var(--white);
}
.process-step h5 {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.process-step p {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ===== Materials ===== */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.material-card {
  text-align: center;
  padding: 24px 12px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--light-gray);
  transition: var(--transition);
}
.material-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.material-card .mat-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}
.material-card h5 {
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--deep-gray) 100%);
  padding: 60px 0;
  text-align: center;
  color: var(--white);
}
.cta-section h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.cta-section p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Footer ===== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}
.footer-col p,
.footer-col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
}
.footer-col a:hover { color: var(--primary); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ===== Page Header ===== */
.page-header {
  position: relative;
  overflow: hidden;
  background: var(--dark) url('assets/images/home/factory-1.jpg') center 42%/cover no-repeat;
  padding: 96px 0 72px;
  text-align: center;
  color: var(--white);
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 15, 0.78) 0%, rgba(10, 12, 15, 0.7) 100%);
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { font-size: 2.2rem; margin-bottom: 12px; text-shadow: 0 2px 12px rgba(0,0,0,0.35); }
.page-header .breadcrumb {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}
.page-header .breadcrumb a { color: rgba(255,255,255,0.7); }
.page-header .breadcrumb a:hover { color: var(--primary); }
@media (max-width: 640px) {
  .page-header { padding: 72px 0 52px; }
  .page-header h1 { font-size: 1.7rem; }
  body:not(.home) .page-content,
  body:not(.home) .pd-section,
  body:not(.home) .contact-section { background-attachment: scroll; }
}

/* ===== Page Content ===== */
/* Shared background image for inner-page content (one image, all pages). */
body:not(.home) .page-content,
body:not(.home) .pd-section,
body:not(.home) .contact-section {
  background-color: var(--white);
  background-image: linear-gradient(rgba(255,255,255,0.95), rgba(255,255,255,0.95)), url('assets/images/factory/cnc-machining-workshop.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
.page-content { padding: 60px 0; }

/* ===== FAQ ===== */
.faq-item {
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--primary); }
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-answer {
  padding: 0 20px 16px;
  color: var(--text-light);
  font-size: 0.92rem;
}

/* ===== Contact Form ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info { }
.contact-info h3 { font-size: 1.3rem; margin-bottom: 20px; }
.contact-detail {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.contact-detail .ci-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}
.contact-detail h5 { font-size: 0.92rem; margin-bottom: 2px; }
.contact-detail p { font-size: 0.85rem; color: var(--text-light); }

.rfq-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.rfq-form .form-group { margin-bottom: 0; }
.rfq-form .form-group.full { grid-column: 1 / -1; }
.rfq-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}
.rfq-form label .req { color: var(--primary); }
.rfq-form input,
.rfq-form select,
.rfq-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--light-gray);
  border-radius: 6px;
  font-size: 0.92rem;
  font-family: inherit;
  transition: var(--transition);
}
.rfq-form input:focus,
.rfq-form select:focus,
.rfq-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(171,122,88,0.1);
}
.rfq-form textarea { resize: vertical; min-height: 120px; }
.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== News/Blog ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  transition: var(--transition);
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.news-card .news-img {
  height: 180px;
  background: var(--bg-gray);
}
.news-card .news-body { padding: 20px; }
.news-card .news-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.news-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--dark);
}
.news-card p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ===== Product Listing ===== */
.product-listing {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 32px;
}
.product-sidebar {
  background: var(--bg-gray);
  border-radius: var(--radius);
  padding: 24px;
  height: fit-content;
}
.product-sidebar h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}
.product-sidebar ul { list-style: none; }
.product-sidebar ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--light-gray);
}
.product-sidebar ul li a {
  font-size: 0.88rem;
  color: var(--text);
}
.product-sidebar ul li a:hover,
.product-sidebar ul li a.active {
  color: var(--primary);
  font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px;
    border-bottom: 1px solid var(--light-gray);
    box-shadow: var(--shadow-md);
  }
  .product-entries { grid-template-columns: repeat(2, 1fr); }
  .process-flow { grid-template-columns: repeat(2, 1fr); }
  .process-step::after { display: none; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .materials-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .product-listing { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .section { padding: 50px 0; }
  .section-header h2 { font-size: 1.6rem; }
  .product-entries { grid-template-columns: 1fr; }
  .process-flow { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .materials-grid { grid-template-columns: repeat(2, 1fr); }
  .rfq-form .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
}

/* ===== Standalone Eyebrow ===== */
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 12px;
}

/* ===== Company Profile ===== */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.profile-media {
  position: relative;
}
.profile-media img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.profile-badge {
  position: absolute;
  right: 20px;
  bottom: 20px;
  background: var(--primary);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.profile-badge .num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}
.profile-badge .lbl {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
  opacity: 0.9;
}
.profile-content h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
  margin-bottom: 18px;
}
.profile-content p {
  color: var(--text-light);
  margin-bottom: 14px;
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 26px 0 30px;
  padding: 22px 0;
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
}
.profile-stats strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.profile-stats span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 5px;
}

/* ===== Capability Card Images ===== */
.product-entry-card .card-img {
  position: relative;
  overflow: hidden;
}
.product-entry-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-entry-card:hover .card-img img {
  transform: scale(1.06);
}

/* ===== Factory Tour ===== */
.factory-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 16px;
}
.factory-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--dark);
  margin: 0;
}
.factory-item-lg {
  grid-column: span 2;
  grid-row: span 2;
}
.factory-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.factory-item:hover img {
  transform: scale(1.05);
}
.factory-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 44px 18px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
  color: var(--white);
}
.factory-item figcaption strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}
.factory-item figcaption span {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}

/* ===== Quality Control ===== */
.qc-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.qc-point {
  background: var(--bg-gray);
  border-radius: var(--radius);
  border-top: 3px solid var(--primary);
  padding: 24px 20px;
}
.qc-point .qc-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.qc-point h4 {
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 8px;
}
.qc-point p {
  font-size: 0.84rem;
  color: var(--text-light);
  line-height: 1.55;
}
.qc-cert-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.qc-cert {
  background: var(--bg-gray);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  margin: 0;
}
.qc-cert a { display: block; }
.qc-cert img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.qc-cert figcaption {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  margin-top: 12px;
}
.qc-cert .cert-placeholder {
  height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--white);
  border: 2px dashed var(--light-gray);
  border-radius: var(--radius);
  color: var(--text-muted);
}
.cert-placeholder span { font-size: 2.4rem; line-height: 1; }
.cert-placeholder p { font-size: 0.82rem; line-height: 1.5; }

/* ===== Industries We Serve ===== */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.industry-card {
  position: relative;
  display: block;
  height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.industry-card-wide { grid-column: span 2; }
.industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.industry-card:hover img { transform: scale(1.06); }
.industry-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.28) 48%, rgba(0,0,0,0.04) 100%);
}
.industry-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
  z-index: 2;
  color: var(--white);
}
.industry-overlay h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.industry-overlay p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.82);
  max-width: 460px;
}

/* ===== Product Center ===== */
.pc-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 40px;
  padding: 6px;
  max-width: 1120px;
  margin: 0 auto 40px;
  box-shadow: var(--shadow-sm);
}
.pc-tab {
  border: none;
  background: transparent;
  padding: 10px 22px;
  border-radius: 30px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.pc-tab:hover { color: var(--primary); }
.pc-tab.active {
  background: var(--dark);
  color: var(--white);
  font-weight: 600;
}
.pc-carousel { position: relative; padding: 0 56px; }
.pc-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.pc-track::-webkit-scrollbar { display: none; }
.pc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.pc-grid .pc-card { flex: none; }
.pc-empty {
  text-align: center;
  color: var(--text-light);
  padding: 36px 0 8px;
}
.pc-card {
  flex: 0 0 calc((100% - 60px) / 4);
  scroll-snap-align: start;
  display: block;
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.pc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.pc-card.hide,
.pc-grid .pc-card.hide { display: none; }
.pc-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-gray);
}
.pc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.pc-card:hover .pc-img img { transform: scale(1.06); }
.pc-cap {
  background: var(--deep-gray);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
  padding: 14px 12px;
}
.pc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--light-gray);
  background: var(--white);
  color: var(--primary);
  font-size: 1.6rem;
  line-height: 1;
  padding-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  z-index: 2;
}
.pc-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.pc-prev { left: 0; }
.pc-next { right: 0; }
.pc-footer { text-align: center; margin-top: 36px; }

/* ===== OEM & ODM Custom Block ===== */
.custom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* Hide the trailing arrow at the end of each desktop process row */
.process-step:nth-child(4n)::after { display: none; }

/* ===== New Sections Responsive ===== */
@media (max-width: 1024px) {
  .pc-card { flex-basis: calc((100% - 40px) / 3); }
  .pc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pc-carousel { padding: 0 48px; }
  .profile-grid { grid-template-columns: 1fr; gap: 32px; }
  .custom-grid { grid-template-columns: 1fr; gap: 32px; }
  .profile-media img { height: 360px; }
  .factory-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .factory-item-lg { grid-column: span 2; grid-row: span 1; }
  .qc-points { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .pc-tabs { border-radius: 20px; padding: 5px; gap: 4px; }
  .pc-tab { padding: 8px 14px; font-size: 0.82rem; }
  .pc-carousel { padding: 0 38px; }
  .pc-track { gap: 14px; }
  .pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .pc-card { flex-basis: calc((100% - 14px) / 2); }
  .pc-arrow { width: 34px; height: 34px; font-size: 1.2rem; padding-bottom: 2px; }
  .pc-cap { font-size: 0.8rem; padding: 11px 8px; }
  .profile-media img { height: 300px; }
  .profile-content h2 { font-size: 1.5rem; }
  .factory-gallery { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .factory-item-lg { grid-column: span 1; }
  .qc-points { grid-template-columns: 1fr; }
  .qc-cert-row { grid-template-columns: 1fr; }
  .qc-cert img,
  .qc-cert .cert-placeholder { height: 320px; }
  .industry-grid { grid-template-columns: 1fr; }
  .industry-card-wide { grid-column: span 1; }
  .industry-card { height: 220px; }
}

/* ===== Products dropdown menu ===== */
.main-nav .nav-item { position: relative; display: flex; align-items: center; }
.main-nav .nav-item > a.nav-parent { display: inline-flex; align-items: center; }
.main-nav .nav-item.current > a.nav-parent { color: var(--primary); background: rgba(171,122,88,0.06); }
.main-nav .caret {
  width: 6px; height: 6px; margin-left: 6px; margin-top: -3px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg); transition: transform .2s ease;
}
.main-nav .has-dropdown:hover .caret,
.main-nav .has-dropdown.open .caret { transform: rotate(225deg); margin-top: 2px; }
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 224px; padding: 8px;
  background: var(--white); border: 1px solid var(--light-gray); border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0,0,0,.14);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 1200;
}
.has-dropdown::after { content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 12px; }
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.has-dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: block; padding: 10px 14px; border-radius: 6px;
  font-size: 0.88rem; font-weight: 500; color: var(--deep-gray); white-space: nowrap;
}
.dropdown-menu a:hover { background: rgba(171,122,88,.09); color: var(--primary); }

/* ===== Products archive grid ===== */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.products-grid .pc-card { flex: none; }

@media (max-width: 1024px) {
  .main-nav.open { align-items: stretch; }
  .main-nav.open > a { text-align: left; }
  .main-nav .nav-item { display: block; width: 100%; }
  .main-nav .nav-item > a.nav-parent { display: flex; justify-content: space-between; width: 100%; }
  .main-nav .caret { margin-right: 4px; }
  .dropdown-menu {
    position: static; display: none; min-width: 0; margin: 2px 0 6px;
    padding: 4px 0 4px 14px; background: transparent; border: none; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .has-dropdown::after { display: none; }
  .has-dropdown:hover .dropdown-menu,
  .has-dropdown:focus-within .dropdown-menu { display: none; }
  .has-dropdown.open .dropdown-menu { display: block; }
  .dropdown-menu a { padding: 8px 12px; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* Compact header nav on smaller desktop widths */
@media (min-width: 1025px) and (max-width: 1200px) {
  .main-nav { gap: 2px; }
  .main-nav a { padding: 8px 9px; font-size: 0.86rem; }
  .header-quote-btn { margin-left: 8px; }
}

.main-nav a { white-space: nowrap; }

/* ===== Third-level flyout submenu ===== */
.dropdown-menu .has-submenu { position: relative; }
.dropdown-menu .has-submenu > a.submenu-parent { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dropdown-menu .caret-right { margin-left: auto; margin-top: 0; transform: rotate(-45deg); }
.dropdown-menu .has-submenu:hover .caret-right,
.dropdown-menu .has-submenu.open .caret-right { transform: rotate(45deg); }
.submenu {
  position: absolute; top: -8px; left: 100%; margin-left: 6px; min-width: 300px; padding: 8px;
  background: var(--white); border: 1px solid var(--light-gray); border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0,0,0,.14);
  opacity: 0; visibility: hidden; transform: translateX(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 1300;
}
.has-submenu::after { content: ''; position: absolute; top: 0; left: 100%; width: 10px; height: 100%; }
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu,
.has-submenu.open .submenu { opacity: 1; visibility: visible; transform: translateX(0); }
.submenu a {
  display: block; padding: 10px 14px; border-radius: 6px;
  font-size: 0.88rem; font-weight: 500; color: var(--deep-gray); white-space: nowrap;
}
.submenu a:hover { background: rgba(171,122,88,.09); color: var(--primary); }

@media (max-width: 1024px) {
  .dropdown-menu .has-submenu > a.submenu-parent { width: 100%; }
  .submenu {
    position: static; display: none; min-width: 0; margin: 2px 0 4px; padding: 2px 0 2px 14px;
    background: transparent; border: none; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .has-submenu::after { display: none; }
  .has-submenu:hover .submenu,
  .has-submenu:focus-within .submenu { display: none; }
  .has-submenu.open .submenu { display: block; }
  .dropdown-menu .caret-right { margin-top: -2px; }
  .dropdown-menu .has-submenu.open .caret-right { transform: rotate(225deg); margin-top: 2px; }
  .submenu a { white-space: normal; }
}

/* ===== Product Detail Layout ===== */
.pd-section { padding: 34px 0 70px; background: var(--bg-gray); }
.pd-breadcrumb { font-size: 0.86rem; color: var(--text-muted); margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pd-breadcrumb a { color: var(--text-light); }
.pd-breadcrumb a:hover { color: var(--primary); }
.pd-breadcrumb strong { color: var(--deep-gray); font-weight: 600; }
.pd-layout { display: flex; gap: 24px; align-items: flex-start; }
.pd-sidebar { flex: 0 0 250px; background: var(--white); border: 1px solid var(--light-gray); border-radius: 10px; overflow: hidden auto; position: sticky; top: 90px; align-self: flex-start; max-height: calc(100vh - 170px); scrollbar-width: thin; scrollbar-color: #cfd3d7 transparent; }
.pd-sidebar::-webkit-scrollbar { width: 6px; }
.pd-sidebar::-webkit-scrollbar-thumb { background: #cfd3d7; border-radius: 3px; }
.pd-sidebar::-webkit-scrollbar-track { background: transparent; }
.pd-sidebar-title { background: var(--primary); color: #fff; font-weight: 600; padding: 16px 18px; font-size: 1rem; }
.pd-cats { list-style: none; margin: 0; padding: 0; }
.pd-cat { border-top: 1px solid var(--light-gray); }
.pd-cat:first-child { border-top: 0; }
.pd-cat > a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; font-size: 0.9rem; font-weight: 500; color: var(--deep-gray); }
.pd-cats > .pd-cat > a { font-weight: 600; }
.pd-cat > a:hover, .pd-cat.current > a { color: var(--primary); }
.pd-caret { flex: 0 0 auto; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; cursor: pointer; }
.pd-cat.collapsed > a .pd-caret { transform: rotate(-45deg); }
/* Second and third levels of the product tree */
.pd-sub { list-style: none; margin: 0; padding: 0; background: #fafbfc; }
.pd-sub > .pd-cat { border-top: 1px solid var(--light-gray); }
.pd-sub > .pd-cat:first-child { border-top: 0; }
.pd-sub > .pd-cat > a { padding: 9px 16px 9px 28px; font-size: 0.86rem; font-weight: 500; }
.pd-sub-products { background: var(--white); }
.pd-sub-products > .pd-leaf { border-top: 1px dashed #eceef0; }
.pd-sub-products > .pd-leaf:first-child { border-top: 0; }
.pd-sub-products a { display: block; padding: 7px 16px 7px 42px; font-size: 0.8rem; line-height: 1.45; color: var(--text-light); }
.pd-sub-products a:hover, .pd-sub-products .pd-leaf.current a { color: var(--primary); }
.pd-cat.collapsed > .pd-sub { display: none; }
.pd-products { list-style: none; margin: 0 0 8px; padding: 0 0 0 12px; }
.pd-products a { display: block; padding: 7px 14px; font-size: 0.84rem; color: var(--text-light); border-left: 2px solid var(--light-gray); }
.pd-products a:hover { color: var(--primary); border-left-color: var(--primary); }
.pd-products li.current a { color: var(--primary); font-weight: 600; border-left-color: var(--primary); }
.pd-main { flex: 1 1 auto; min-width: 0; display: flex; gap: 24px; align-items: flex-start; }
.pd-gallery { flex: 1 1 auto; min-width: 0; display: flex; gap: 14px; align-items: flex-start; }
.pd-thumbs { flex: 0 0 90px; display: flex; flex-direction: column; gap: 10px; }
.pd-thumb { padding: 0; border: 1px solid var(--light-gray); border-radius: 8px; background: var(--white); overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb.active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(171,122,88,.2); }
.pd-stage { flex: 1 1 auto; min-width: 0; background: var(--white); border: 1px solid var(--light-gray); border-radius: 10px; padding: 14px; }
.pd-stage img { width: 100%; height: auto; display: block; border-radius: 6px; }
.pd-info { flex: 0 0 320px; background: var(--white); border: 1px solid var(--light-gray); border-radius: 10px; padding: 24px; }
.pd-title { font-size: 1.5rem; line-height: 1.32; margin: 0 0 16px; color: var(--deep-gray); }
.pd-meta { border-top: 1px dashed #e3e5e8; border-bottom: 1px dashed #e3e5e8; padding: 12px 0; margin-bottom: 16px; font-size: 0.88rem; color: var(--text-light); display: flex; flex-direction: column; gap: 6px; }
.pd-meta span { color: var(--text-muted); }
.pd-meta a { color: var(--primary); }
.pd-desc { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; }
.pd-desc p { margin-bottom: 10px; }
.pd-desc ul { margin: 8px 0 0; padding-left: 18px; }
.pd-desc li { margin-bottom: 5px; }
.pd-inquiry { margin-top: 20px; }
.pd-contact-lines { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; font-size: 0.86rem; }
.pd-contact-lines a { color: var(--text-light); word-break: break-all; }
.pd-contact-lines a:hover { color: var(--primary); }
.pd-share { margin-top: 20px; border-top: 1px dashed #e3e5e8; padding-top: 14px; }
.pd-share-label { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 9px; }
.pd-share-links { display: flex; gap: 8px; }
.pd-share-links a { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--deep-gray); color: #fff; font-size: 0.78rem; font-weight: 600; line-height: 1; }
.pd-share-links a:hover { background: var(--primary); }

@media (max-width: 1100px) {
  .pd-main { flex-direction: column; }
  .pd-info { flex: 0 0 auto; width: 100%; }
}
@media (max-width: 1024px) {
  .pd-layout { flex-direction: column; }
  .pd-sidebar { flex: 0 0 auto; width: 100%; position: static; max-height: none; overflow: visible; }
}
@media (max-width: 640px) {
  .pd-section { padding: 22px 0 50px; }
  .pd-gallery { flex-direction: column-reverse; }
  .pd-thumbs { flex-direction: row; flex-wrap: wrap; width: 100%; }
  .pd-thumb { flex: 0 0 74px; }
  .pd-stage { padding: 8px; }
  .pd-info { padding: 18px; }
  .pd-title { font-size: 1.22rem; }
  .pd-breadcrumb { font-size: 0.78rem; }
}

/* ===== Product Detail refinements ===== */
.pd-container { max-width: 1400px; }
.pd-description { background: var(--white); border: 1px solid var(--light-gray); border-radius: 10px; padding: 28px 30px; margin-top: 24px; }
.pd-description h2 { font-size: 1.2rem; margin: 0 0 14px; color: var(--deep-gray); }
.pd-description p { color: var(--text-light); font-size: 0.94rem; line-height: 1.8; margin-bottom: 10px; }
.pd-description ul { margin: 8px 0 0; padding-left: 20px; color: var(--text-light); }
.pd-description li { margin-bottom: 6px; }
@media (max-width: 640px) {
  .pd-description { padding: 20px 18px; }
}

/* ===== Products listing layout ===== */
.pl-content { flex: 1 1 auto; min-width: 0; }
.pl-content .section-header { text-align: left; margin-bottom: 28px; }
.pl-content .products-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) {
  .pl-content .products-grid { grid-template-columns: repeat(2, 1fr); }
  .pl-content .section-header { margin-bottom: 20px; }
}

/* ===== Products listing pagination ===== */
.pl-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 36px; }
.pl-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--light-gray); border-radius: 6px; background: var(--white); color: var(--text); font-size: 0.9rem; line-height: 1; text-decoration: none; transition: var(--transition); }
.pl-pagination .page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.pl-pagination .page-numbers.current { background: var(--primary); border-color: var(--primary); color: var(--white); }
.pl-pagination .page-numbers.dots { border: none; background: transparent; color: var(--text-muted); }
.pl-empty { color: var(--text-light); }
@media (max-width: 640px) {
  .pl-pagination { margin-top: 26px; gap: 6px; }
  .pl-pagination .page-numbers { min-width: 34px; height: 34px; padding: 0 8px; font-size: 0.82rem; }
}

/* ===== Contact page ===== */
.page-header .page-header-sub {
  max-width: 640px;
  margin: 0 auto;
  color: rgba(255,255,255,0.84);
  font-size: 0.98rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  line-height: 1.7;
}
.contact-section { padding: 64px 0 88px; background: var(--bg-gray); }
.contact-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

/* Left: contact details panel */
.contact-panel {
  background: linear-gradient(160deg, #1b1b1b 0%, #2c2f33 100%);
  border-radius: 16px;
  padding: 38px 34px 34px;
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.contact-panel h3 { font-size: 1.35rem; color: var(--white); margin-bottom: 10px; }
.contact-panel .contact-lead {
  color: rgba(255,255,255,0.62);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 28px;
}
.contact-list { list-style: none; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ci-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
}
.contact-list .ci-icon svg { width: 19px; height: 19px; }
.contact-list .ci-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 3px;
}
.contact-list .ci-value {
  display: block;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
}
a.ci-value:hover { color: var(--primary-light); }
.contact-panel .contact-foot {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* Right: quote form card */
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 16px;
  padding: 38px 40px 36px;
  box-shadow: var(--shadow-sm);
}
.contact-form-card h3 { font-size: 1.35rem; margin-bottom: 8px; }
.contact-form-card .form-lead {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 26px;
}
.contact-form-card .rfq-form .form-row {
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  margin-bottom: 18px;
}
.contact-form-card .rfq-form .form-group { margin-bottom: 0; }
.contact-form-card .rfq-form .form-group-full { margin-bottom: 18px; }
.contact-form-card .rfq-form label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--deep-gray);
  margin-bottom: 7px;
}
.contact-form-card .rfq-form input,
.contact-form-card .rfq-form select,
.contact-form-card .rfq-form textarea {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #E1E5E8;
  border-radius: 8px;
  background: var(--white);
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text);
  transition: var(--transition);
}
.contact-form-card .rfq-form textarea {
  height: auto;
  min-height: 132px;
  padding: 12px 14px;
  line-height: 1.6;
  resize: vertical;
}
.contact-form-card .rfq-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236C757D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
}
.contact-form-card .rfq-form input::placeholder,
.contact-form-card .rfq-form textarea::placeholder { color: var(--text-muted); }
.contact-form-card .rfq-form input:focus,
.contact-form-card .rfq-form select:focus,
.contact-form-card .rfq-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(171,122,88,0.12);
}
.contact-form-card .rfq-form input[type="file"] {
  height: auto;
  padding: 12px 14px;
  border: 1.5px dashed #D5DADE;
  background: var(--bg-gray);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text-light);
  cursor: pointer;
}
.contact-form-card .rfq-form input[type="file"]:hover { border-color: var(--primary); }
.contact-form-card .rfq-form input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 16px;
  border: 0;
  border-radius: 6px;
  background: var(--primary);
  color: var(--white);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.contact-form-card .rfq-form input[type="file"]::file-selector-button:hover { background: var(--primary-dark); }
.contact-form-card .form-hint { margin-top: 6px; }
.contact-form-card .form-privacy {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 2px 0 22px;
}
.contact-form-card .rfq-submit { width: 100%; }

@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-panel { padding: 32px 28px; }
}
@media (max-width: 640px) {
  .contact-section { padding: 44px 0 60px; }
  .contact-form-card { padding: 28px 20px 26px; }
  .contact-panel { padding: 28px 22px; }
  .contact-form-card .rfq-form .form-row { grid-template-columns: 1fr; }
}

/* ===== News / blog ===== */
.news-intro {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
  color: var(--text-light);
  font-size: 1.02rem;
}
.news-card .news-img { display: block; overflow: hidden; }
.news-card .news-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card .news-body p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.entry-content h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--dark);
  margin: 36px 0 14px;
}
.entry-content h3 {
  font-size: 1.15rem;
  color: var(--dark);
  margin: 28px 0 10px;
}
.entry-content p { margin-bottom: 18px; }
.entry-content ul, .entry-content ol { margin: 0 0 18px 24px; }
.entry-content li { margin-bottom: 8px; }
.entry-content img { width: 100%; height: auto; border-radius: var(--radius-lg); }
.entry-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 4px 0 4px 18px;
  color: var(--text-light);
  margin: 24px 0;
}
.entry-content .btn { margin-top: 6px; }

/* Custom file upload control (avoids browser-native locale text) */
.contact-form-card .rfq-form .rfq-upload {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1.5px dashed #D5DADE;
  background: var(--bg-gray);
  border-radius: 10px;
  transition: var(--transition);
  cursor: pointer;
}
.contact-form-card .rfq-form .rfq-upload:hover,
.contact-form-card .rfq-form .rfq-upload:focus-within {
  border-color: var(--primary);
}
.contact-form-card .rfq-form .rfq-upload input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  opacity: 0;
  cursor: pointer;
}
.contact-form-card .rfq-form .rfq-upload-btn {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 6px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
}
.contact-form-card .rfq-form .rfq-upload-name {
  font-size: 0.85rem;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Home product grid: stretch the caption so every card has the same
   dark bar height and no white gap is left below shorter captions. */
.pc-grid .pc-card { display: flex; flex-direction: column; }
.pc-grid .pc-cap { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; }

/* Keep the logo lockup on one line now that the main nav has more items */
.site-logo { flex-shrink: 0; }
.site-logo .logo-text,
.site-logo .logo-sub { white-space: nowrap; }
