/*
Theme Name: Huayan Stone Bilingual
Theme URI: http://43.156.97.198/
Author: Huayan Stone
Description: A focused export website for Macheng Huayan Stone Co., Ltd.
Version: 1.6.2
Text Domain: huayan-stone
*/

:root {
  --ink: #17191c;
  --muted: #60656b;
  --line: #d9dcdf;
  --paper: #ffffff;
  --soft: #f3f4f4;
  --charcoal: #22262a;
  --red: #d91518;
  --red-dark: #ab1012;
  --green: #2f5d50;
  --content: 1200px;
  --header-height: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.container { width: min(calc(100% - 40px), var(--content)); margin: 0 auto; }
.section { padding: 92px 0; scroll-margin-top: var(--header-height); }
.section-soft { background: var(--soft); }
.section-dark { color: #fff; background: var(--charcoal); }
.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
.section-dark .eyebrow { color: #ff6a6c; }
.section-heading { max-width: 760px; margin-bottom: 38px; }
.section-heading h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}
.section-heading p { margin: 0; color: var(--muted); font-size: 18px; }
.section-dark .section-heading p { color: #c8cccf; }
.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 200;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
}
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(23, 25, 28, 0.1);
}
.admin-bar .site-header { top: 32px; }
.admin-bar .primary-nav.is-open { top: calc(var(--header-height) + 32px); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.site-brand { flex: 0 0 auto; width: 178px; }
.site-brand img { max-height: 54px; object-fit: contain; object-position: left center; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 21px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { font-size: 14px; font-weight: 700; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--red); }
.language-switch { flex: 0 0 auto; min-width: 76px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; font-weight: 700; text-align: center; }
.language-switch:hover { color: var(--red); border-color: var(--red); }
.header-action,
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  color: #fff;
  background: var(--red);
  border: 1px solid var(--red);
  border-radius: 4px;
  font-weight: 700;
  line-height: 1.2;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.header-action:hover, .button:hover { background: var(--red-dark); border-color: var(--red-dark); }
.button-secondary { color: var(--ink); background: #fff; border-color: #fff; }
.button-secondary:hover { color: #fff; background: transparent; border-color: #fff; }
.button-outline { color: var(--ink); background: transparent; border-color: var(--ink); }
.button-outline:hover { color: #fff; background: var(--ink); border-color: var(--ink); }
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 11px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--ink); }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(860px, 100vh);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-height) + 90px) 0 88px;
  color: #fff;
  background: #202326;
}
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(12, 14, 16, 0.55); }
.hero-media, .hero-slide, .hero-slide img, .hero-slide video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: 0; }
.hero-slide { margin: 0; opacity: 0; transition: opacity 1100ms ease; }
.hero-slide.is-active { z-index: 1; opacity: 1; }
.hero-slide img, .hero-slide video { object-fit: cover; }
.hero-slide img { transform: scale(1.035); }
.hero-slide.is-active img { animation: hero-image-motion 7.4s ease-out both; }
.hero-slide video { background: #202326; }
.hero-inner { position: relative; z-index: 2; max-width: 860px; animation: hero-copy-in 760ms ease-out both; }
.hero-badge { display: inline-block; margin-bottom: 18px; padding: 6px 10px; color: #fff; background: var(--green); font-size: 13px; font-weight: 700; }
.hero h1 { margin: 0 0 22px; font-size: clamp(43px, 7vw, 78px); line-height: 1.02; letter-spacing: 0; }
.hero p { max-width: 740px; margin: 0 0 32px; color: #eef0f1; font-size: clamp(18px, 2.2vw, 23px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-controls { position: absolute; left: max(24px, calc((100vw - var(--content)) / 2)); bottom: 32px; z-index: 3; display: flex; gap: 8px; }
.hero-dot { width: 48px; height: 34px; padding: 0; color: rgba(255,255,255,0.7); background: rgba(17,19,21,0.5); border: 1px solid rgba(255,255,255,0.35); border-radius: 3px; cursor: pointer; font-size: 11px; font-weight: 700; }
.hero-dot:hover, .hero-dot:focus-visible { color: #fff; border-color: #fff; outline: none; }
.hero-dot.is-active { color: #fff; background: var(--red); border-color: var(--red); }
.hero-stats { position: relative; z-index: 2; margin-top: -1px; color: #fff; background: var(--charcoal); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 34px 32px; border-right: 1px solid rgba(255,255,255,0.13); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 34px; line-height: 1.1; }
.stat span { color: #bdc2c5; font-size: 14px; }

.film-section { padding: 88px 0; color: #fff; background: #15181a; }
.film-layout { display: grid; grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.45fr); gap: 62px; align-items: center; }
.film-copy .eyebrow { color: #ff6a6c; }
.film-copy h2 { margin: 0 0 20px; font-size: clamp(32px, 4vw, 52px); line-height: 1.08; }
.film-copy > p:not(.eyebrow) { margin: 0; color: #c7cccf; font-size: 17px; }
.film-facts { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.film-facts span { padding: 8px 11px; border: 1px solid rgba(255,255,255,0.26); font-size: 12px; font-weight: 700; }
.film-media { min-width: 0; }
.film-media video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #050607; }
.film-meta { display: flex; justify-content: space-between; gap: 18px; padding-top: 12px; color: #9ca3a7; font-size: 12px; font-weight: 700; text-transform: uppercase; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.product-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.product-card img { aspect-ratio: 5 / 4; object-fit: cover; }
.product-content { padding: 22px; }
.product-content h3 { margin: 0 0 5px; font-size: 21px; line-height: 1.25; }
.product-content p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--red); font-weight: 700; }
.text-link:hover { color: var(--red-dark); }

.source-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: stretch; }
.source-image { min-height: 590px; object-fit: cover; }
.source-copy { display: flex; flex-direction: column; justify-content: center; padding: 70px max(40px, calc((100vw - var(--content)) / 2)); padding-left: 70px; background: var(--soft); }
.source-copy h2 { margin: 0 0 20px; font-size: clamp(32px, 4vw, 50px); line-height: 1.12; }
.source-copy p { margin: 0 0 26px; color: var(--muted); }
.check-list { margin: 0 0 30px; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line); }
.check-list li::before { content: ''; position: absolute; left: 0; top: 18px; width: 10px; height: 10px; background: var(--red); }

.capability-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.capability { min-height: 220px; padding: 30px; background: #fff; }
.capability-number { color: var(--red); font-size: 13px; font-weight: 700; }
.capability h3 { margin: 38px 0 12px; font-size: 21px; }
.capability p { margin: 0; color: var(--muted); font-size: 14px; }

.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.gallery-item { position: relative; overflow: hidden; min-height: 280px; }
.gallery-item:nth-child(1), .gallery-item:nth-child(4) { grid-column: span 7; }
.gallery-item:nth-child(2), .gallery-item:nth-child(3) { grid-column: span 5; }
.gallery-item img { height: 100%; object-fit: cover; transition: transform 220ms ease; }
.gallery-item:hover img { transform: scale(1.025); }
.gallery-caption { position: absolute; inset: auto 0 0; padding: 28px 20px 16px; color: #fff; background: rgba(0,0,0,0.68); font-weight: 700; }

.showcase-section { padding: 92px 0 0; scroll-margin-top: var(--header-height); }
.showcase-intro { padding-bottom: 44px; }
.showcase-band { overflow: hidden; padding: 66px 0 76px; border-top: 1px solid var(--line); background: #fff; }
.showcase-band.is-soft { background: #eef1ef; }
.showcase-band.is-dark { color: #fff; background: var(--charcoal); border-top-color: rgba(255,255,255,0.12); }
.showcase-band-header { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 28px; align-items: end; margin-bottom: 30px; }
.showcase-number { color: var(--red); font-size: 14px; font-weight: 700; }
.showcase-copy { max-width: 720px; }
.showcase-copy .eyebrow { margin-bottom: 8px; }
.showcase-copy h3 { margin: 0 0 10px; font-size: clamp(28px, 3.5vw, 44px); line-height: 1.12; }
.showcase-copy p { margin: 0; color: var(--muted); font-size: 17px; }
.showcase-band.is-dark .showcase-copy p { color: #c8cccf; }
.showcase-controls { display: flex; align-items: center; gap: 8px; }
.showcase-progress { min-width: 62px; color: var(--muted); font-size: 13px; font-weight: 700; text-align: center; }
.showcase-band.is-dark .showcase-progress { color: #c8cccf; }
.showcase-control { display: grid; width: 44px; height: 44px; place-items: center; padding: 0; color: var(--ink); background: transparent; border: 1px solid #aeb4b6; border-radius: 3px; cursor: pointer; font-size: 21px; line-height: 1; }
.showcase-control:hover, .showcase-control:focus-visible { color: #fff; background: var(--red); border-color: var(--red); outline: none; }
.showcase-band.is-dark .showcase-control { color: #fff; border-color: rgba(255,255,255,0.45); }
.showcase-track { display: flex; gap: 18px; overflow-x: auto; padding: 0 max(20px, calc((100vw - var(--content)) / 2)) 12px; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; }
.showcase-track::-webkit-scrollbar { display: none; }
.showcase-slide { position: relative; flex: 0 0 min(920px, 72vw); aspect-ratio: 4 / 3; margin: 0; overflow: hidden; background: #d9dcdf; scroll-snap-align: center; }
.showcase-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms ease; }
.showcase-slide:hover img { transform: scale(1.02); }
.showcase-slide figcaption { position: absolute; inset: auto 0 0; display: flex; align-items: center; gap: 12px; padding: 44px 22px 18px; color: #fff; background: linear-gradient(to bottom, transparent, rgba(10,12,13,0.82)); font-weight: 700; }
.showcase-slide figcaption span { color: #ff6a6c; font-size: 12px; }

.showcase-focus .showcase-track { width: min(calc(100% - 40px), 920px); margin: 0 auto; padding: 0; gap: 0; }
.showcase-focus .focus-slide { flex-basis: 100%; aspect-ratio: 16 / 9; }
.showcase-focus .focus-slide figcaption { padding: 56px 24px 18px; font-size: 16px; }
.showcase-focus .focus-slide figcaption span { min-width: 34px; }

.showcase-product-flow { padding-bottom: 92px; }
.showcase-product-flow .showcase-band-header { grid-template-columns: 76px minmax(0, 1fr); }
.product-flow-window { overflow: hidden; padding: 8px 0 24px; }
.product-flow-track { display: flex; width: max-content; gap: 14px; animation: product-flow 34s linear infinite; will-change: transform; }
.product-flow-window:hover .product-flow-track { animation-play-state: paused; }
.product-flow-slide { position: relative; flex: 0 0 clamp(260px, 25vw, 340px); aspect-ratio: 4 / 3; margin: 0; overflow: hidden; background: #d9dcdf; border: 1px solid var(--line); }
.product-flow-slide img { width: 100%; height: 100%; object-fit: cover; }
.product-flow-slide figcaption,
.inspection-tile figcaption { position: absolute; inset: auto 0 0; display: flex; align-items: center; gap: 10px; padding: 42px 16px 14px; color: #fff; background: linear-gradient(to bottom, transparent, rgba(10,12,13,0.72)); font-size: 13px; font-weight: 700; }
.product-flow-slide figcaption span,
.inspection-tile figcaption span { color: #ff6a6c; font-size: 11px; }

.showcase-filmstrip { padding-bottom: 94px; }
.showcase-filmstrip .showcase-band-header,
.showcase-mosaic .showcase-band-header { grid-template-columns: 76px minmax(0, 1fr); }
.inspection-grid { display: grid; grid-template-columns: 1.45fr repeat(2, 1fr); grid-template-rows: repeat(2, 210px); gap: 12px; }
.inspection-tile { position: relative; margin: 0; overflow: hidden; background: #d9dcdf; }
.inspection-tile:first-child { grid-row: 1 / 3; }
.inspection-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 320ms ease; }
.inspection-tile:hover img { transform: scale(1.02); }

.packing-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 170px; gap: 12px; }
.packing-tile { position: relative; grid-column: span 4; margin: 0; overflow: hidden; background: #282c2f; }
.packing-tile:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.packing-tile:nth-child(2), .packing-tile:nth-child(3) { grid-column: span 5; }
.packing-tile:nth-child(7), .packing-tile:nth-child(8) { grid-column: span 6; }
.packing-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 320ms ease; }
.packing-tile:hover img { transform: scale(1.025); }
.packing-tile figcaption { position: absolute; inset: auto 0 0; display: flex; gap: 10px; padding: 34px 14px 12px; color: #fff; background: linear-gradient(to bottom, transparent, rgba(9,11,12,0.8)); font-size: 13px; font-weight: 700; }
.packing-tile figcaption span { color: #ff6a6c; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.process-step { padding-top: 18px; border-top: 3px solid var(--red); }
.process-step span { color: #adb3b7; font-size: 13px; font-weight: 700; }
.process-step h3 { margin: 22px 0 9px; font-size: 20px; }
.process-step p { margin: 0; color: #c8cccf; font-size: 14px; }

.application-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.application { position: relative; min-height: 340px; overflow: hidden; background: #222; border-radius: 4px; }
.application img { height: 100%; object-fit: cover; }
.application::after { content: ''; position: absolute; inset: 66% 0 0; background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.66)); }
.application h3 { position: absolute; z-index: 1; inset: auto 22px 18px; margin: 0; color: #fff; font-size: 21px; }
.section-action { margin-top: 32px; }

.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 80px; align-items: start; }
.about-grid h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.12; }
.about-copy p { margin-top: 0; color: var(--muted); font-size: 17px; }
.about-note { margin-top: 28px; padding: 22px 24px; border-left: 4px solid var(--red); background: var(--soft); }
.about-note strong { display: block; margin-bottom: 5px; }

.inner-site-page { padding-top: var(--header-height); }
.page-hero { position: relative; isolation: isolate; display: flex; min-height: 430px; align-items: center; color: #fff; background-color: var(--charcoal); background-position: center; background-size: cover; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(11,13,15,0.62); }
.page-hero-about { background-image: url('assets/images/showcase/quarry-01.jpg'); }
.page-hero-projects { background-image: url('assets/images/app-commercial.jpg'); }
.page-hero-certificates { background-image: url('assets/images/certifications-overview.jpg'); background-position: center 58%; }
.page-hero-certificates::before { background: rgba(11,13,15,0.7); }
.page-hero-inner { text-align: center; }
.page-hero-inner p { margin: 0 0 10px; color: #e3e6e7; font-size: 14px; font-weight: 700; text-transform: uppercase; }
.page-hero-inner h1 { margin: 0; font-size: clamp(42px, 6vw, 70px); line-height: 1.05; }
.page-breadcrumb { padding: 18px 0; color: var(--muted); background: var(--soft); font-size: 14px; }
.page-breadcrumb .container { display: flex; align-items: center; gap: 10px; }
.page-breadcrumb a:hover { color: var(--red); }
.page-breadcrumb strong { color: var(--ink); }

.profile-layout { display: grid; grid-template-columns: 0.86fr 1.14fr; gap: 82px; align-items: start; }
.profile-heading { position: sticky; top: calc(var(--header-height) + 34px); }
.profile-heading h2 { margin: 0 0 36px; font-size: clamp(34px, 4vw, 52px); line-height: 1.12; }
.profile-facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.profile-facts div { padding: 18px 20px; background: #fff; }
.profile-facts strong, .profile-facts span { display: block; }
.profile-facts strong { color: var(--red); font-size: 28px; line-height: 1.2; }
.profile-facts span { margin-top: 3px; color: var(--muted); font-size: 13px; }
.profile-article p { margin: 0 0 20px; color: var(--muted); font-size: 17px; }
.profile-article p:first-child { color: var(--ink); font-size: 20px; font-weight: 700; }
.about-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.about-photo-grid figure { position: relative; min-height: 360px; margin: 0; overflow: hidden; }
.about-photo-grid img { height: 100%; object-fit: cover; }
.about-photo-grid figcaption { position: absolute; inset: auto 0 0; padding: 36px 20px 18px; color: #fff; background: linear-gradient(to bottom, transparent, rgba(10,12,13,0.78)); font-weight: 700; }

.project-page-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.project-page-item { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.project-page-item img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform 240ms ease; }
.project-page-item:hover img { transform: scale(1.025); }
.project-page-item div { padding: 22px; }
.project-page-item h2 { margin: 0 0 8px; font-size: 21px; line-height: 1.25; }
.project-page-item p { margin: 0; color: var(--muted); font-size: 14px; }

.certificate-layout { display: grid; grid-template-columns: 0.76fr 1.24fr; gap: 64px; align-items: center; }
.certificate-copy h2 { margin: 0 0 18px; font-size: clamp(34px, 4vw, 50px); line-height: 1.12; }
.certificate-copy p { margin: 0 0 18px; color: var(--muted); }
.certificate-copy .button { margin-top: 10px; }
.certificate-overview { margin: 0; }
.certificate-overview img { border: 1px solid var(--line); }
.certificate-overview figcaption { padding-top: 10px; color: var(--muted); font-size: 12px; }
.documentation-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.documentation-grid article { min-height: 220px; padding: 28px; background: #fff; }
.documentation-grid span { color: var(--red); font-size: 13px; font-weight: 700; }
.documentation-grid h2 { margin: 40px 0 10px; font-size: 20px; }
.documentation-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.trust-preview { background: #eef1ef; }
.trust-preview-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.trust-preview-grid img { border: 1px solid var(--line); }
.trust-preview-grid h2 { margin: 0 0 16px; font-size: clamp(32px, 4vw, 48px); line-height: 1.12; }
.trust-preview-grid p:not(.eyebrow) { margin: 0 0 26px; color: var(--muted); }

.contact-band { padding: 76px 0; color: #fff; background: var(--red); }
.contact-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.contact-band h2 { margin: 0 0 10px; font-size: clamp(32px, 4vw, 50px); line-height: 1.1; }
.contact-band p { margin: 0; color: rgba(255,255,255,0.86); font-size: 18px; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.contact-actions .button:not(.button-secondary) { border-color: #fff; }

.site-footer { padding: 56px 0 28px; color: #d2d5d8; background: #111315; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.7fr 1fr; gap: 50px; }
.footer-logo { width: 190px; margin-bottom: 18px; padding: 10px; background: #fff; border-radius: 4px; }
.site-footer h2 { margin: 0 0 16px; color: #fff; font-size: 16px; }
.site-footer p { margin: 0 0 10px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); color: #8f969b; font-size: 13px; }

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  color: #fff;
  background: #168b4b;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
  font-weight: 700;
}
.whatsapp-float:hover { background: #11723d; }
.wa-mark { display: grid; width: 28px; height: 28px; place-items: center; color: #168b4b; background: #fff; border-radius: 50%; font-size: 14px; }

.entry-page { min-height: 70vh; padding: calc(var(--header-height) + 70px) 0 80px; }
.entry-page h1 { font-size: 44px; line-height: 1.15; }

@media (max-width: 1050px) {
  .primary-nav, .header-action { display: none; }
  .menu-toggle { display: block; }
  .primary-nav.is-open {
    position: fixed;
    inset: var(--header-height) 0 0;
    display: block;
    padding: 32px 20px;
    background: #fff;
  }
  .primary-nav.is-open ul { display: grid; gap: 0; }
  .primary-nav.is-open a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .product-grid, .application-grid { grid-template-columns: repeat(2, 1fr); }
  .capability-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .source-grid { grid-template-columns: 1fr; }
  .source-image { min-height: 480px; }
  .source-copy { padding: 60px max(30px, calc((100vw - var(--content)) / 2)); }
  .about-grid { gap: 45px; }
  .profile-layout { gap: 46px; }
  .project-page-grid { grid-template-columns: repeat(2, 1fr); }
  .certificate-layout { grid-template-columns: 1fr; }
  .trust-preview-grid { grid-template-columns: 1fr; gap: 38px; }
  .documentation-grid { grid-template-columns: repeat(2, 1fr); }
  .film-layout { grid-template-columns: 1fr; gap: 34px; }
  .film-copy { max-width: 760px; }
  .packing-grid { grid-auto-rows: 150px; }
}

@media (max-width: 720px) {
  :root { --header-height: 68px; }
  .container { width: min(calc(100% - 28px), var(--content)); }
  .section { padding: 68px 0; }
  .site-brand { width: 150px; }
  .language-switch { min-width: 66px; padding-inline: 8px; }
  .hero { min-height: 760px; padding-bottom: 104px; }
  .hero h1 { font-size: 44px; }
  .hero-actions .button { width: 100%; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { padding: 24px 16px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.13); }
  .stat:last-child { border-bottom: 0; }
  .film-section { padding: 64px 0; }
  .film-layout { gap: 28px; }
  .film-copy h2 { font-size: 34px; }
  .film-copy > p:not(.eyebrow) { font-size: 16px; }
  .film-meta { flex-wrap: wrap; }
  .product-grid, .application-grid, .capability-grid, .process-grid { grid-template-columns: 1fr; }
  .capability { min-height: auto; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item, .gallery-item:nth-child(n) { grid-column: span 1; min-height: 260px; }
  .showcase-section { padding-top: 68px; }
  .showcase-intro { padding-bottom: 28px; }
  .showcase-band { padding: 48px 0 54px; }
  .showcase-band-header { grid-template-columns: 42px 1fr; gap: 14px; align-items: start; margin-bottom: 24px; }
  .showcase-controls { grid-column: 2; }
  .showcase-slide { flex-basis: 86vw; aspect-ratio: 4 / 5; }
  .showcase-slide figcaption { padding: 42px 16px 14px; }
  .showcase-focus .showcase-track { width: calc(100% - 28px); }
  .showcase-focus .focus-slide { aspect-ratio: 4 / 5; }
  .showcase-product-flow .showcase-band-header { grid-template-columns: 42px 1fr; }
  .product-flow-slide { flex-basis: 72vw; }
  .showcase-filmstrip .showcase-band-header,
  .showcase-mosaic .showcase-band-header { grid-template-columns: 42px 1fr; }
  .inspection-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: 250px repeat(2, 150px); gap: 8px; }
  .inspection-tile:first-child { grid-column: 1 / 3; grid-row: auto; }
  .packing-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .packing-tile,
  .packing-tile:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .packing-tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .page-hero { min-height: 350px; }
  .profile-layout { grid-template-columns: 1fr; gap: 36px; }
  .profile-heading { position: static; }
  .about-photo-grid, .project-page-grid, .documentation-grid { grid-template-columns: 1fr; }
  .about-photo-grid figure { min-height: 300px; }
  .certificate-layout { gap: 34px; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-actions { justify-content: flex-start; }
  .contact-actions .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .whatsapp-float { right: 14px; bottom: 14px; width: 54px; padding: 0; justify-content: center; border-radius: 50%; }
.whatsapp-float .wa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .primary-nav.is-open { top: calc(var(--header-height) + 46px); }
}

.contact-rail {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 92;
  display: flex;
  flex-direction: column;
  transform: translateY(-50%);
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
}
.rail-item {
  position: relative;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  padding: 0;
  color: #fff;
  background: var(--charcoal);
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.16);
  cursor: pointer;
}
.rail-item:first-child { border-radius: 4px 0 0 0; }
.rail-item:last-child { border-bottom: 0; border-radius: 0 0 0 4px; }
.rail-item:hover, .rail-item:focus-visible { background: var(--red); outline: none; }
.rail-glyph { font-size: 17px; font-weight: 700; line-height: 1; }
.rail-top-icon { position: relative; width: 18px; height: 18px; }
.rail-top-icon::before { content: ''; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-left: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); }
.rail-top-icon::after { content: ''; position: absolute; left: 3px; top: 2px; width: 12px; border-top: 2px solid currentColor; }
.rail-popover {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  width: 220px;
  padding: 14px 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.16);
  opacity: 0;
  pointer-events: none;
  transform: translate(10px, -50%);
  transition: opacity 160ms ease, transform 160ms ease;
}
.rail-popover strong { display: block; margin-bottom: 3px; font-size: 14px; }
.rail-popover small { display: block; color: var(--muted); font-size: 12px; line-height: 1.45; }
.rail-qr-popover { width: 286px; padding: 16px; }
.rail-qr-popover img { width: 100%; margin: 9px 0; border: 1px solid var(--line); border-radius: 4px; }
.rail-item:hover .rail-popover,
.rail-item:focus-visible .rail-popover { opacity: 1; transform: translate(0, -50%); }

.service-widget { position: fixed; right: 76px; bottom: 22px; z-index: 94; }
.service-launcher {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  color: #fff;
  background: #168b4b;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
  cursor: pointer;
  font-weight: 700;
}
.service-launcher:hover { background: #11723d; }
.service-launcher-icon { display: grid; width: 28px; height: 28px; place-items: center; color: #168b4b; background: #fff; border-radius: 50%; font-size: 14px; }
.service-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: min(350px, calc(100vw - 32px));
  overflow: hidden;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.24);
}
.service-panel[hidden] { display: none; }
.service-panel.is-open { animation: service-panel-in 220ms ease both; }
.service-panel-header { position: relative; padding: 22px 52px 20px 22px; color: #fff; background: var(--charcoal); }
.service-status { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: #b8e2c9; font-size: 12px; font-weight: 700; }
.status-dot { width: 9px; height: 9px; background: #3ad67f; border-radius: 50%; box-shadow: 0 0 0 4px rgba(58,214,127,0.16); }
.service-panel-header h2 { margin: 0; font-size: 21px; line-height: 1.25; }
.service-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; padding: 0; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,0.28); border-radius: 4px; cursor: pointer; font-size: 23px; line-height: 1; }
.service-close:hover { background: rgba(255,255,255,0.12); }
.service-panel-body { padding: 22px; }
.service-panel-body p { margin: 0 0 18px; color: var(--muted); }
.service-actions { display: grid; gap: 9px; }
.service-actions .button { width: 100%; }
.service-wechat { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.service-wechat img { width: 92px; border: 1px solid var(--line); border-radius: 4px; }
.service-wechat strong, .service-wechat span { display: block; }
.service-wechat strong { margin-bottom: 4px; font-size: 14px; }
.service-wechat span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.footer-address { max-width: 360px; font-size: 14px; line-height: 1.65; }

.mobile-contact-dock { display: none; }

@keyframes service-panel-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-image-motion {
  from { transform: scale(1.035); }
  to { transform: scale(1.105); }
}

@keyframes hero-copy-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes inspection-flow {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes product-flow {
  from { transform: translateX(calc(-50% - 7px)); }
  to { transform: translateX(0); }
}

@media (max-width: 900px) {
  body { padding-bottom: 64px; }
  .contact-rail { display: none; }
  .service-widget { right: 14px; bottom: 76px; }
  .service-launcher { width: 54px; min-height: 54px; justify-content: center; padding: 0; border-radius: 50%; }
  .service-launcher-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .service-panel { bottom: 66px; }
  .hero-controls { left: 20px; bottom: 42px; }
  .mobile-contact-dock {
    position: fixed;
    inset: auto 0 0;
    z-index: 93;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 64px;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(0,0,0,0.12);
  }
  .mobile-contact-dock a { display: grid; place-items: center; align-content: center; gap: 2px; color: var(--ink); font-size: 11px; font-weight: 700; }
  .mobile-contact-dock a:hover { color: var(--red); }
  .dock-glyph { font-size: 18px; line-height: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .service-panel.is-open { animation: none; }
  .rail-popover { transition: none; }
  .hero-slide { transition: none; }
  .hero-slide.is-active img, .hero-inner { animation: none; }
  .showcase-track { scroll-behavior: auto; }
  .showcase-slide img { transition: none; }
  .inspection-track { animation: none; }
  .product-flow-track { animation: none; }
}
