/* =========================================
   XINHARNESS.COM - PAGES CSS
   ========================================= */

/* =====================
   HOMEPAGE HERO
   ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-bg-primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  top: -150px;
  right: -100px;
  background: radial-gradient(circle, rgba(0,102,255,0.25) 0%, transparent 70%);
  animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  bottom: -80px;
  left: 5%;
  background: radial-gradient(circle, rgba(0,212,255,0.12) 0%, transparent 70%);
  animation: orbFloat 10s ease-in-out infinite reverse;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 140px;
  padding-bottom: 100px;
  width: 100%;
}

.hero-inner {
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(0,102,255,0.12);
  border: 1px solid rgba(0,102,255,0.35);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-cyan-400);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
  animation: fadeInDown 0.6s ease forwards;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-cyan-400);
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--color-cyan-400);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

.hero-title {
  font-size: clamp(var(--text-4xl), 5.5vw, var(--text-7xl));
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.7s ease 0.1s both;
  letter-spacing: -0.03em;
}

.hero-title-line2 {
  display: block;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--color-cyan-400);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-desc {
  font-size: clamp(var(--text-base), 1.5vw, var(--text-xl));
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: var(--space-10);
  max-width: 580px;
  animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-16);
  animation: fadeInUp 0.7s ease 0.3s both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 1px;
  animation: fadeInUp 0.7s ease 0.4s both;
  background: var(--color-border-subtle);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  width: fit-content;
  max-width: 100%;
}

.hero-stat {
  text-align: center;
  padding: var(--space-5) var(--space-6);
  background: rgba(24,33,88,0.75);
  backdrop-filter: blur(10px);
  min-width: 0;
  overflow: hidden;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 900;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeIn 1s ease 1s both;
  z-index: 2;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 11px;
  position: relative;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--color-blue-400);
  border-radius: 2px;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%, 100% { top: 5px; opacity: 1; }
  80% { top: 18px; opacity: 0; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =====================
   TRUSTED BY / MARQUEE
   ===================== */
.trusted-section {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
  background: rgba(0,0,0,0.25);
}

.trusted-label {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

/* =====================
   PRODUCT CATEGORIES (HOME)
   ===================== */
.product-cats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.product-cat-card {
  padding: var(--space-6);
  background: var(--color-bg-light);
  border: 1px solid var(--color-border-onlight);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(11,19,48,0.06);
}

.product-cat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
  transform-origin: left;
}

.product-cat-card:hover {
  border-color: var(--color-blue-400);
  transform: translateY(-4px);
  box-shadow: var(--shadow-blue);
}

.product-cat-card:hover::after {
  transform: scaleX(1);
}

.product-cat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0,102,255,0.12), rgba(0,212,255,0.08));
  border: 1px solid rgba(0,102,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  transition: all var(--transition-base);
  color: var(--color-blue-600);
}

.product-cat-card:hover .product-cat-icon {
  background: linear-gradient(135deg, rgba(0,102,255,0.3), rgba(0,212,255,0.15));
  box-shadow: var(--shadow-blue);
  transform: scale(1.05);
}

.product-cat-info h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  color: var(--color-text-onlight-primary);
}

.product-cat-info h3 a {
  color: inherit;
}

.product-cat-info p {
  font-size: var(--text-sm);
  margin: 0;
  line-height: 1.5;
  color: var(--color-text-onlight-secondary);
}

.product-cat-arrow {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  color: var(--color-blue-400);
  font-size: 1.1rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--transition-base);
}

.product-cat-card:hover .product-cat-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* =====================
   WHY CHOOSE SECTION
   ===================== */
.why-section {
  background: var(--color-bg-secondary);
  position: relative;
}

.why-section::before,
.why-section::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-blue-700), var(--color-cyan-500), var(--color-blue-700), transparent);
}

.why-section::before { top: 0; }
.why-section::after { bottom: 0; }

/* Light variant of the Why-Us section */
.why-section.section--light {
  background: var(--color-bg-light-tint);
}

.why-section.section--light::before,
.why-section.section--light::after {
  background: linear-gradient(90deg, transparent, var(--color-blue-300), var(--color-cyan-300), var(--color-blue-300), transparent);
}

/* =====================
   GLOBAL CTA SECTION
   ===================== */
.global-cta {
  background: linear-gradient(135deg, #020c2a 0%, #001a50 50%, #020c2a 100%);
  position: relative;
  overflow: hidden;
}

.global-cta::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,102,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.global-cta::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: var(--space-12);
  align-items: start;
  position: relative;
  z-index: 1;
}

.cta-highlights {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.cta-highlight-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.cta-check {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--color-success);
  flex-shrink: 0;
}

/* =====================
   PROCESS TIMELINE
   ===================== */
.process-section {
  position: relative;
  overflow: hidden;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
  padding-top: var(--space-4);
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: calc(var(--space-4) + 24px);
  left: calc(10% + 24px);
  right: calc(10% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--color-blue-700), var(--color-cyan-500), var(--color-blue-700));
  z-index: 0;
}

.process-item {
  text-align: center;
  padding: 0 var(--space-3) var(--space-6);
}

.process-num {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  color: white;
  margin: 0 auto var(--space-4);
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-blue);
}

.process-icon-wrap {
  font-size: 2rem;
  margin-bottom: var(--space-3);
  display: block;
}

.process-item h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: white;
}

.process-item p {
  font-size: var(--text-xs);
  line-height: 1.65;
  color: var(--color-text-muted);
}

/* =====================
   BLOG PREVIEW (HOME)
   ===================== */
.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

/* =====================
   ABOUT PAGE
   ===================== */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.about-intro-img {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  position: relative;
}

.about-intro-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.about-intro-img-badge {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  background: rgba(2,8,24,0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.about-intro-img-badge-icon {
  font-size: 1.5rem;
}

.about-intro-img-badge-text strong {
  display: block;
  font-size: var(--text-sm);
  color: white;
}

.about-intro-img-badge-text span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.about-timeline {
  position: relative;
  padding-left: var(--space-8);
  margin-top: var(--space-8);
}

.about-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-blue-600), var(--color-cyan-400), rgba(0,102,255,0.1));
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-5);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-8) - 5px);
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-blue-600);
  border: 2px solid var(--color-bg-primary);
  box-shadow: 0 0 12px rgba(0,102,255,0.6);
}

.timeline-year {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-cyan-400);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.timeline-item h4 {
  font-size: var(--text-base);
  margin-bottom: 2px;
  color: white;
}

.timeline-item p {
  font-size: var(--text-sm);
  margin: 0;
}

.about-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-border-subtle);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin: var(--space-12) 0;
}

.about-stat-item {
  background: var(--color-bg-card);
  padding: var(--space-8) var(--space-6);
  text-align: center;
}

/* =====================
   CONTACT PAGE
   ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: var(--space-10);
  align-items: start;
}

.map-embed {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  height: 280px;
  background: var(--color-bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.map-embed-icon { font-size: 2.5rem; opacity: 0.4; }

/* =====================
   PRODUCTS HUB
   ===================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.product-item[data-hidden="true"] {
  display: none;
}

/* =====================
   PRODUCT SINGLE
   ===================== */
.product-single-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-10);
  align-items: start;
}

.product-gallery {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
}

.product-gallery-main {
  position: relative;
  overflow: hidden;
}

.product-gallery-main img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.product-gallery-main:hover img {
  transform: scale(1.04);
}

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: var(--space-2);
  background: var(--color-bg-surface);
}

.product-gallery-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.55;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
}

.product-gallery-thumb.active,
.product-gallery-thumb:hover {
  opacity: 1;
  border-color: var(--color-blue-600);
}

.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info h1 {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.product-cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.product-desc {
  font-size: var(--text-base);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.product-spec-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding: var(--space-5);
  background: rgba(0,102,255,0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.spec-quick-item { display: flex; flex-direction: column; gap: 2px; }
.spec-quick-label { font-size: var(--text-xs); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.spec-quick-value { font-size: var(--text-sm); color: white; font-weight: 500; }

.product-cta-buttons {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.product-cta-buttons .btn { flex: 1; min-width: 140px; }

/* =====================
   BLOG HOMEPAGE
   ===================== */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: var(--space-10);
  align-items: start;
}

.blog-featured {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin-bottom: var(--space-8);
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--color-border);
}

.blog-featured-bg {
  position: absolute;
  inset: 0;
  background: var(--color-bg-card);
}

.blog-featured-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-featured:hover .blog-featured-bg img {
  transform: scale(1.04);
}

.blog-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2,8,24,0.97) 0%, rgba(2,8,24,0.5) 55%, transparent 100%);
}

.blog-featured-content {
  position: relative;
  z-index: 1;
  padding: var(--space-8);
}

.blog-featured-cat {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
  text-decoration: none;
}

.blog-featured-title {
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl));
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-3);
  text-decoration: none;
  display: block;
  line-height: 1.25;
}

.blog-featured-title:hover { color: var(--color-blue-300); }

.blog-featured-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: rgba(255,255,255,0.55);
  font-size: var(--text-sm);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

/* Wider 3-column variant used when the blog index has no sidebar
   (see index.php) so cards fill the full container width. */
.blog-grid--wide {
  grid-template-columns: repeat(3, 1fr);
}

/* =====================
   BLOG ARTICLE
   ===================== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: var(--space-10);
  align-items: start;
}

.article-sidebar {
  position: sticky;
  top: 100px;
}

.article-header { margin-bottom: var(--space-8); }

.article-cats {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.article-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 900;
  margin-bottom: var(--space-5);
  line-height: 1.15;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.article-featured-img {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin: var(--space-8) 0;
  border: 1px solid var(--color-border);
}

.article-featured-img img {
  width: 100%;
  display: block;
}

/* Article Content */
.article-content {
  line-height: 1.85;
  color: var(--color-text-secondary);
  font-size: var(--text-base);
}

.article-content h2 {
  font-size: var(--text-2xl);
  color: white;
  margin: var(--space-10) 0 var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border-subtle);
}

.article-content h2:first-child { border-top: none; padding-top: 0; }

.article-content h3 {
  font-size: var(--text-xl);
  color: white;
  margin: var(--space-8) 0 var(--space-3);
}

.article-content h4 {
  font-size: var(--text-lg);
  color: white;
  margin: var(--space-6) 0 var(--space-3);
}

.article-content p { margin-bottom: var(--space-5); }

.article-content ul,
.article-content ol {
  margin: var(--space-5) 0;
  padding-left: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.article-content ul li { list-style: disc; color: var(--color-text-secondary); }
.article-content ol li { list-style: decimal; color: var(--color-text-secondary); }
.article-content li::marker { color: var(--color-blue-400); }

.article-content img {
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  margin: var(--space-6) 0;
  width: 100%;
}

.article-content table {
  margin: var(--space-6) 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: var(--text-sm);
}

.article-content th {
  background: rgba(0,102,255,0.1);
  color: var(--color-blue-400);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-3) var(--space-4);
  text-align: left;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-content td {
  padding: var(--space-3) var(--space-4);
  color: var(--color-text-secondary);
  border-top: 1px solid var(--color-border-subtle);
}

.callout {
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-xl);
  border-left: 3px solid var(--color-blue-600);
  margin: var(--space-6) 0;
  background: rgba(0,102,255,0.06);
}

.callout-title {
  font-weight: 700;
  color: var(--color-blue-400);
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}

.callout p { margin: 0; font-size: var(--text-sm); color: var(--color-text-primary); }

.article-tags {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.article-tags-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
}

.article-share {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: var(--color-bg-light);
  border: 1px solid var(--color-border-onlight);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.article-share-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-onlight-secondary);
  margin-right: auto;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid;
  transition: all var(--transition-fast);
}

.share-btn--twitter { color: #1da1f2; border-color: rgba(29,161,242,0.3); }
.share-btn--linkedin { color: #0a66c2; border-color: rgba(10,102,194,0.3); }
.share-btn--copy { color: var(--color-text-onlight-secondary); border-color: var(--color-border-onlight); }
.share-btn:hover { opacity: 0.8; transform: translateY(-1px); }

.author-bio {
  margin-top: var(--space-8);
  padding: var(--space-6);
  background: var(--color-bg-light);
  border: 1px solid var(--color-border-onlight);
  border-radius: var(--radius-2xl);
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}

.author-bio-avatar {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  box-shadow: var(--shadow-blue);
}

.author-bio-info h4 { font-size: var(--text-base); margin-bottom: 2px; }
.author-bio-role { font-size: var(--text-sm); color: var(--color-blue-400); margin-bottom: var(--space-3); display: block; }
.author-bio-text { font-size: var(--text-sm); margin: 0; }

/* Light background variant for single blog article pages — .article-content
   hardcodes white h2/h3/h4 and light-gray list/table text for the default
   dark page background, so it needs its own override when the article page
   sits on a .section--light background. */
.section--light .breadcrumb a { color: var(--color-text-onlight-secondary); }
.section--light .breadcrumb-current { color: var(--color-blue-600); }
.section--light .article-meta { border-color: rgba(11, 19, 48, 0.08); }
.section--light .article-content h2,
.section--light .article-content h3,
.section--light .article-content h4 {
  color: var(--color-text-onlight-primary);
}
.section--light .article-content h2 { border-top-color: rgba(11, 19, 48, 0.08); }
.section--light .article-content ul li,
.section--light .article-content ol li,
.section--light .article-content td {
  color: var(--color-text-onlight-secondary);
}
.section--light .article-content strong {
  color: var(--color-text-onlight-primary);
}
.section--light .article-tags { border-color: rgba(11, 19, 48, 0.08); }
.section--light .article-tags-label { color: var(--color-text-onlight-secondary); }
.section--light .callout p { color: var(--color-text-onlight-primary); }
.section--light .comments-title { color: var(--color-text-onlight-primary); }
/* .comment-reply-title and comment author name sit inside a dark
   gradient-card box (see comments.php), so they must stay white even
   though .section--light h3 would otherwise force dark text here. */
.section--light .comment-reply-title { color: var(--color-text-primary); }

/* TOC */
.toc-widget {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border-onlight);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-6);
  box-shadow: 0 1px 4px rgba(11,19,48,0.06);
}

.toc-header {
  padding: var(--space-4) var(--space-5);
  background: rgba(0,102,255,0.07);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.toc-title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-onlight-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.toc-toggle-icon {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  transition: transform var(--transition-fast);
}

.toc-widget.collapsed .toc-toggle-icon { transform: rotate(180deg); }

.toc-content {
  padding: var(--space-3) var(--space-2);
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-blue-700) transparent;
}

.toc-widget.collapsed .toc-content { display: none; }

.toc-item {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-onlight-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  border-left: 2px solid transparent;
  transition: all var(--transition-fast);
  line-height: 1.45;
}

.toc-item:hover {
  background: rgba(0,102,255,0.08);
  color: var(--color-blue-600);
  border-left-color: var(--color-blue-600);
}

.toc-item.active {
  background: rgba(0,102,255,0.12);
  color: var(--color-blue-600);
  border-left-color: var(--color-blue-600);
  font-weight: 600;
}

.toc-item--h3 { padding-left: var(--space-6); font-size: 11px; }

/* =====================
   SEARCH PAGE
   ===================== */
.search-input-bar {
  display: flex;
  align-items: center;
  background: var(--gradient-card);
  border: 1px solid var(--color-border-bright);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-blue);
}

.search-input-bar input {
  flex: 1;
  padding: var(--space-4) var(--space-5);
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: var(--text-xl);
  font-family: var(--font-heading);
}

.search-input-bar input::placeholder { color: var(--color-text-muted); }

.search-input-bar button {
  padding: var(--space-4) var(--space-6);
  background: var(--gradient-primary);
  color: white;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.search-input-bar button:hover { opacity: 0.85; }

.search-filter-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  overflow-x: auto;
  scrollbar-width: none;
}

.search-filter-tabs::-webkit-scrollbar { display: none; }

.search-results-count {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

.search-results-count span { color: var(--color-blue-400); font-weight: 600; }

.search-result-item {
  padding: var(--space-5);
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-3);
  transition: all var(--transition-base);
  text-decoration: none;
  display: block;
}

.search-result-item:hover {
  border-color: var(--color-border-bright);
  transform: translateX(4px);
  box-shadow: var(--shadow-blue);
}

.search-result-type {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-cyan-400);
  margin-bottom: var(--space-2);
}

.search-result-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-2);
}

.search-result-title mark {
  background: rgba(0,102,255,0.3);
  color: var(--color-cyan-400);
  padding: 1px 3px;
  border-radius: 2px;
}

.search-result-excerpt { font-size: var(--text-sm); color: var(--color-text-secondary); line-height: 1.6; }
.search-result-excerpt mark { background: rgba(0,102,255,0.2); color: white; padding: 1px 2px; border-radius: 2px; }

.search-no-results { text-align: center; padding: var(--space-20) 0; }
.search-no-results-icon { font-size: 4rem; margin-bottom: var(--space-4); opacity: 0.35; }

/* =====================
   INDUSTRY SINGLE
   ===================== */
.industry-hero {
  min-height: 480px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.industry-hero-bg { position: absolute; inset: 0; }
.industry-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.industry-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(2,8,24,0.95), rgba(0,30,80,0.88));
}

.industry-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 140px;
  padding-bottom: var(--space-12);
}

.industry-solutions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}

/* =====================
   404 PAGE
   ===================== */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.error-code {
  font-family: var(--font-heading);
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 900;
  line-height: 1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.15;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
}

.error-content { position: relative; z-index: 1; }
.error-content h1 { font-size: var(--text-4xl); margin-bottom: var(--space-4); }
.error-content p { font-size: var(--text-lg); margin-bottom: var(--space-8); }

/* =====================
   THANK YOU PAGE
   ===================== */
.thank-you-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.thank-you-icon {
  font-size: 5rem;
  margin-bottom: var(--space-6);
  animation: bounceIn 0.8s ease;
}

@keyframes bounceIn {
  0% { transform: scale(0) rotate(-15deg); opacity: 0; }
  70% { transform: scale(1.15) rotate(5deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* =====================
   RESPONSIVE BREAKPOINTS
   ===================== */
/* Same min-width:auto grid-item quirk as .contact-layout above: without
   this, long intrinsic content deep inside any of these 2-col grids can
   force the column (and the page, since body has overflow-x:hidden) wider
   than the viewport once they collapse to a single column on mobile. */
.about-intro > *,
.split-grid > *,
.industry-solutions-grid > *,
.product-spec-quick > *,
.cta-inner > *,
.contact-grid > *,
.product-single-layout > *,
.blog-layout > *,
.article-layout > * {
  min-width: 0;
}

@media (max-width: 1024px) {
  .product-single-layout,
  .article-layout,
  .blog-layout,
  .cta-inner,
  .contact-grid,
  .about-intro,
  .split-grid,
  .industry-solutions-grid { grid-template-columns: 1fr; }

  .article-sidebar { position: static; }

  .process-timeline { grid-template-columns: repeat(3, 1fr); }
  .process-timeline::before { display: none; }

  .product-cats-grid,
  .products-grid,
  .blog-preview-grid { grid-template-columns: repeat(2, 1fr); }

  .blog-grid--wide { grid-template-columns: repeat(2, 1fr); }

  .about-stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); width: 100%; margin: 0 auto; }
  .hero-stat { padding: var(--space-4) var(--space-3); }
  .hero-stat-label { white-space: normal; }
  .hero-content { padding-top: 110px; padding-bottom: 60px; }

  .process-timeline { grid-template-columns: repeat(2, 1fr); }

  .product-cats-grid,
  .products-grid,
  .blog-preview-grid,
  .blog-grid,
  .blog-grid--wide { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); width: 100%; margin: 0 auto; }
  .hero-stat { padding: var(--space-4) var(--space-3); }
  .hero-stat-label { white-space: normal; }
  .process-timeline { grid-template-columns: 1fr; }
  .about-stats-bar { grid-template-columns: 1fr; }
}

/* Nested 2×2 mini-grids (quick stats, "why us" mini cards) inside
   .split-grid sections — stay 2 columns down to phone width, then
   stack so numbers/labels don't get squeezed unreadably narrow. */
.split-grid-mini { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 480px) {
  .split-grid-mini { grid-template-columns: 1fr; }
}

/* Floating corner badges on .split-grid images use a negative
   left/right offset on desktop so they overlap the image edge. On
   narrow viewports that offset pushes them past the container and
   they get clipped/off-center (body has overflow-x:hidden), so pull
   them back to a safe inset instead. */
@media (max-width: 640px) {
  .badge-iso { right: 12px !important; bottom: 12px !important; }
  .badge-passrate { left: 12px !important; }
  .badge-factory { right: 12px !important; }
}

/* About page milestone timeline: desktop uses an alternating
   left/right zigzag around a centered vertical line. On narrow
   viewports that leaves each card only ~50% width with a large empty
   gap on the other side, which reads as broken/off-center — so
   collapse it to a single left-aligned track instead. */
@media (max-width: 640px) {
  .about-timeline-line { left: 20px !important; transform: none !important; }
  .about-timeline-item {
    justify-content: flex-start !important;
    padding-left: calc(20px + var(--space-8)) !important;
    padding-right: 0 !important;
  }
  .about-timeline-card { max-width: 100% !important; }
  .about-timeline-dot { left: -28px !important; right: auto !important; }
}

/* =====================================================
   WORDPRESS THEME SUPPLEMENT — SVG Icon + New Layouts
   ===================================================== */

/* Contact page 2-col layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

/* Grid items default to min-width:auto, sized to their content's intrinsic
   minimum. Without this, that intrinsic size (e.g. a long word/line deep
   inside the form or process/cert boxes) can force these columns — and the
   whole page, since body has overflow-x:hidden — wider than the viewport
   on mobile. Same root cause already fixed for .form-group/.form-control
   (see components.css), applied here to the grid columns themselves. */
.contact-layout > * {
  min-width: 0;
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* Contact page — light panel variant for the inquiry form and the
   right-column (process / direct-contact / cert) boxes */
.contact-panel-light {
  background: var(--color-bg-light-tint);
  border: 1px solid rgba(11, 19, 48, 0.08);
}

.contact-panel-light h2,
.contact-panel-light h3,
.contact-panel-light h4,
.contact-panel-light h5 {
  color: var(--color-text-onlight-primary);
}

.contact-panel-light p {
  color: var(--color-text-onlight-secondary);
}

.contact-panel-light .form-label {
  color: var(--color-text-onlight-primary);
}

.contact-panel-light .form-control {
  background: #ffffff;
  border-color: rgba(11, 19, 48, 0.15);
  color: var(--color-text-onlight-primary);
}

.contact-panel-light select.form-control option {
  background: #ffffff;
  color: var(--color-text-onlight-primary);
}

/* Hero subtitle (used in front-page.php) */
.hero-subtitle {
  font-size: clamp(var(--text-base), 1.8vw, var(--text-xl));
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  line-height: 1.75;
  margin-bottom: var(--space-8);
}

/* WordPress native search form overrides */
.search-form {
  display: flex;
  gap: var(--space-2);
}
.search-form label { flex: 1; }
.search-form .search-field {
  width: 100%;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-primary);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  transition: border-color var(--transition-fast);
}
.search-form .search-field:focus {
  outline: none;
  border-color: var(--color-blue-600);
  box-shadow: 0 0 0 3px rgba(0,102,255,0.15);
}
.search-form .search-submit {
  padding: var(--space-3) var(--space-5);
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity var(--transition-fast);
}
.search-form .search-submit:hover { opacity: .88; }

/* WordPress pagination */
.nav-links {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  background: rgba(255,255,255,0.09);
  border: 1px solid var(--color-border-subtle);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.page-numbers:hover,
.page-numbers.current {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-blue);
}

/* WordPress tag cloud (overrides) */
.tag-cloud-link {
  display: inline-block;
  padding: 3px var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs) !important;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: rgba(255,255,255,0.09);
  border: 1px solid var(--color-border-subtle);
  text-decoration: none;
  margin: 2px;
  transition: all var(--transition-fast);
}
.tag-cloud-link:hover {
  color: var(--color-blue-400);
  border-color: var(--color-border);
  background: rgba(0,102,255,0.08);
}

/* WordPress avatar (used in single.php author bio) */
.author-bio-avatar.avatar,
.blog-author-avatar.avatar {
  border-radius: 50% !important;
  object-fit: cover;
}

/* Product category badge on product cards */
.product-cat-card:hover .product-cat-icon .xin-icon {
  color: var(--color-cyan-400);
}

/* feature-card-icon: numbered index badge (no icon graphic) */
.feature-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: rgba(0,102,255,0.1);
  border: 1px solid rgba(0,102,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  margin: 0 auto var(--space-4);
  color: var(--color-blue-400);
  transition: all var(--transition-base);
}
.feature-card:hover .feature-card-icon {
  background: rgba(0,102,255,0.2);
  border-color: rgba(0,102,255,0.4);
  box-shadow: var(--shadow-blue);
  transform: scale(1.1);
}

/* Industry card icon — SVG sizing */
.industry-card-icon .xin-icon {
  width: 44px !important;
  height: 44px !important;
  color: white;
}

/* Hero badge with SVG */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-cyan-400);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-6);
}
.hero-badge .xin-icon { color: var(--color-cyan-400); }

/* Cert badge icon SVG sizing */
.cert-badge-icon .xin-icon {
  width: 32px !important;
  height: 32px !important;
  color: var(--color-cyan-400);
}

/* Back to top with SVG (was text ↑) */
#back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
}
#back-to-top .xin-icon { color: white; }

/* Search overlay close button SVG */
.search-close .xin-icon { pointer-events: none; }

/* Nav chevron container */
.nav-chevron {
  display: inline-flex;
  align-items: center;
}

/* Mobile breakpoint tweaks for contact */
@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; gap: var(--space-8); }
}
