/* =============================================================
   PacificPak Machinery — Global Stylesheet
   Modern minimalist, white base + deep blue accent
   ============================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --brand: #0B2545;
  --brand-2: #13335E;
  --brand-soft: #E8EEF5;
  --brand-pale: #F4F7FB;
  --accent: #FF6B35;
  --accent-hover: #E5562A;
  --bg: #FFFFFF;
  --bg-soft: #F7F8FA;
  --bg-dark: #0B2545;
  --text: #0F1729;
  --text-2: #5A6478;
  --text-3: #8892A4;
  --text-inv: #FFFFFF;
  --border: #E5E7EB;
  --border-strong: #CBD2DB;
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, .06);
  --shadow: 0 4px 16px rgba(11, 37, 69, .08);
  --shadow-lg: 0 24px 48px rgba(11, 37, 69, .12);
  --radius: 8px;
  --radius-lg: 16px;
  --radius-sm: 4px;
  --max-w: 1280px;
  --max-w-narrow: 960px;
  --gap: 24px;
  --gap-sm: 12px;
  --gap-lg: 48px;
  --transition: 220ms cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, "Segoe UI",
               "PingFang SC", "Hiragino Sans GB", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.01em; }
h3 { font-size: clamp(20px, 2vw, 24px); }
h4 { font-size: 18px; }
p  { margin: 0 0 1em; }

/* ---------- 3. Layout primitives ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-sm { padding: clamp(40px, 5vw, 64px) 0; }
.section-dark { background: var(--bg-dark); color: var(--text-inv); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--text-inv); }
.section-soft { background: var(--bg-soft); }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.row { display: flex; gap: var(--gap); align-items: center; flex-wrap: wrap; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: var(--gap); flex-wrap: wrap; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-weight: 600; font-size: 15px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--brand); color: var(--text-inv); }
.btn-primary:hover { background: var(--brand-2); color: var(--text-inv); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: var(--text-inv); }
.btn-accent:hover { background: var(--accent-hover); color: var(--text-inv); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand); color: var(--text-inv); }
.btn-inv { background: transparent; color: var(--text-inv); border-color: rgba(255,255,255,.4); }
.btn-inv:hover { background: var(--text-inv); color: var(--brand); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 18px 36px; font-size: 16px; }

/* ---------- 5. Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 18px; color: var(--brand);
}
.brand__mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--brand); color: var(--text-inv);
  border-radius: 8px;
  font-weight: 800; font-size: 16px;
  letter-spacing: .04em;
}
.brand__name {
  letter-spacing: -.01em;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand__name-line1 { font-weight: 700; font-size: 16px; }
.brand__name-line2 { font-weight: 500; font-size: 12px; opacity: .85; letter-spacing: .02em; }
.brand:hover { color: var(--brand); }

/* ---------- 4.5 Language switcher (10 languages, 5×2 inline grid) ---------- */
.nav-lang { margin-left: 8px; }
.lang-switcher--inline {
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 1px;
  padding: 2px;
  margin: 0; padding-left: 2px;
  list-style: none;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.lang-switcher--inline > li { display: contents; }
.lang-cell--inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 2px 4px;
  min-width: 32px;
  border-radius: 5px;
  text-decoration: none;
  color: var(--text);
  transition: background .15s ease, color .15s ease;
}
.lang-cell--inline:hover {
  background: var(--brand-soft);
  color: var(--brand);
}
.lang-cell--inline[dir="rtl"] { direction: rtl; }
/* hide flag — only ISO 639-1 code is shown (smaller height, semantically clearer) */
.lang-cell--inline .lang-flag { display: none; }
.lang-cell--inline .lang-code {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .04em;
  line-height: 1;
  color: var(--text);
}
.lang-cell--inline:hover .lang-code { color: var(--brand); }

/* legacy class retained for any orphaned references (dropdown cells from old markup) */
.lang-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
  min-width: 56px;
}
.lang-cell:hover { background: var(--brand-soft); color: var(--brand); }
.lang-flag { font-size: 22px; line-height: 1; }
.lang-code { font-weight: 700; font-size: 11px; letter-spacing: .04em; color: var(--text); }
.lang-cell:hover .lang-code { color: var(--brand); }
.lang-name { font-size: 10px; opacity: .65; white-space: nowrap; }

@media (max-width: 1024px) {
  .nav-lang { margin-left: 4px; }
  .lang-switcher--inline { padding: 1px; gap: 0; }
  .lang-cell--inline { min-width: 28px; padding: 2px 3px; }
  .lang-cell--inline .lang-code { font-size: 10px; }
}
@media (max-width: 600px) {
  /* mobile: lang switcher shows at the bottom of the hamburger menu drawer */
  .nav-lang { margin: 8px 0 0; width: 100%; display: block; }
  .lang-switcher--inline {
    grid-template-columns: repeat(5, 1fr);
    width: 100%; padding: 4px; gap: 2px;
  }
  .lang-cell--inline { min-width: 0; padding: 6px 4px; }
  .lang-cell--inline .lang-code { font-size: 12px; }
}

.main-nav { display: flex; gap: 4px; align-items: center; }
.main-nav > li > a {
  display: block; padding: 10px 16px;
  font-weight: 500; font-size: 15px;
  color: var(--text); border-radius: 6px;
}
.main-nav > li > a:hover { color: var(--brand); background: var(--brand-pale); }
.main-nav > li > a.active { color: var(--brand); background: var(--brand-pale); }
.main-nav > li { position: relative; }
.main-nav .has-sub > a::after {
  content: ""; display: inline-block;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); margin-left: 6px;
  vertical-align: middle;
  transition: transform var(--transition);
}
.main-nav .has-sub:hover > a::after { transform: rotate(-135deg); }
.sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 260px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all var(--transition);
  box-shadow: var(--shadow-lg);
  max-height: 70vh; overflow-y: auto;
}
.has-sub:hover .sub-menu,
.has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a {
  display: block; padding: 10px 14px;
  font-size: 14px; color: var(--text);
  border-radius: 6px;
}
.sub-menu a:hover { background: var(--brand-pale); color: var(--brand); }

.nav-cta { margin-left: 12px; }

.menu-toggle { display: none; }
@media (max-width: 980px) {
  .menu-toggle {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border: 1px solid var(--border); border-radius: 6px;
    background: var(--bg);
  }
  .menu-toggle span {
    display: block; width: 18px; height: 2px;
    background: var(--text);
    box-shadow: 0 -6px 0 var(--text), 0 6px 0 var(--text);
  }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch;
    padding: 16px 24px;
    display: none;
  }
  .site-nav-open .main-nav { display: flex; }
  .main-nav > li > a { padding: 12px; }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding-left: 16px; }
}

/* ---------- 6. Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--brand-2) 100%);
  color: var(--text-inv);
  padding: clamp(32px, 4vw, 56px) 0 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 107, 53, .15), transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(255, 255, 255, .05), transparent 60%);
  pointer-events: none;
}
.hero__banner {
  position: relative;
  margin-top: clamp(40px, 5vw, 72px);
  line-height: 0;
}
.hero__banner img {
  width: 100%;
  height: auto;
  display: block;
  /* slight rounded top corners to soften against dark hero background */
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}
.hero__inner { position: relative; max-width: 1180px; }
.hero__eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 107, 53, .15);
  border: 1px solid rgba(255, 107, 53, .3);
  color: var(--accent);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: .04em;
}
.hero h1 {
  color: var(--text-inv);
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 100%; /* use full .hero__inner width */
}
.hero p {
  font-size: clamp(16px, 1.2vw, 18px);
  color: rgba(255,255,255,.82);
  max-width: 920px;
  margin-bottom: 32px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__meta {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 32px;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 28px;
}
.hero__meta-item b { display: block; font-size: 32px; font-weight: 700; color: var(--text-inv); }
.hero__meta-item span { color: rgba(255,255,255,.6); font-size: 14px; }
@media (max-width: 768px) {
  .hero__meta { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
}

/* ---------- 7. Page header (for inner pages) ---------- */
.page-header {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--brand-2) 100%);
  color: var(--text-inv);
  padding: 100px 0 56px;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(255,107,53,.12), transparent 60%);
}
.page-header__inner { position: relative; }
.page-header h1 {
  color: var(--text-inv);
  font-size: clamp(36px, 5vw, 52px);
  margin-bottom: 12px;
}
.page-header p {
  font-size: 18px;
  color: rgba(255,255,255,.78);
  max-width: 720px;
}
.breadcrumbs {
  display: flex; gap: 8px; align-items: center;
  font-size: 14px; color: rgba(255,255,255,.6);
  margin-top: 24px;
}
.breadcrumbs a { color: rgba(255,255,255,.6); }
.breadcrumbs a:hover { color: var(--text-inv); }
.breadcrumbs__sep { color: rgba(255,255,255,.4); }

/* ---------- 8. Cards & product grid ---------- */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--brand-soft); }

.product-card {
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--brand-soft);
}
.product-card__media {
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  position: relative; overflow: hidden;
}
.product-card__media svg, .product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.product-card__cat {
  font-size: 12px; color: var(--accent);
  text-transform: uppercase; letter-spacing: .08em;
  font-weight: 600;
  margin-bottom: 8px;
}
.product-card__title {
  font-size: 18px; font-weight: 600;
  margin: 0 0 12px;
  color: var(--text);
  line-height: 1.35;
}
.product-card:hover .product-card__title { color: var(--brand); }
.product-card__desc {
  font-size: 14px; color: var(--text-2);
  margin: 0 0 16px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.product-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 14px; color: var(--brand);
  margin-top: auto;
}
.product-card__link::after {
  content: "→"; transition: transform var(--transition);
}
.product-card:hover .product-card__link::after { transform: translateX(4px); }

.product-card__badge {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255, 107, 53, .95);
  color: var(--text-inv);
  font-size: 11px; font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .04em;
  z-index: 2;
}

/* ---------- 9. Feature list ---------- */
.feature-list { display: grid; gap: 16px; }
.feature-list li {
  position: relative; padding-left: 32px;
  color: var(--text); font-size: 15px; line-height: 1.6;
}
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 18px; height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- 10. Spec table ---------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.spec-table th, .spec-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--text-2);
  width: 35%;
}
.spec-table td { color: var(--text); }

/* ---------- 11. Stats strip ---------- */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-strip__item b { display: block; font-size: 36px; font-weight: 700; color: var(--brand); }
.stat-strip__item span { color: var(--text-2); font-size: 14px; }
@media (max-width: 768px) {
  .stat-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ---------- 12. CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: var(--text-inv);
  padding: 64px 0;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 50%, rgba(255,107,53,.18), transparent 50%);
}
.cta-band__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  position: relative;
}
.cta-band h2 { color: var(--text-inv); margin: 0 0 12px; }
.cta-band p  { color: rgba(255,255,255,.78); margin: 0; }

/* ---------- 13. Forms ---------- */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.form label {
  display: block; font-size: 14px; font-weight: 500;
  color: var(--text); margin-bottom: 6px;
}
.form input, .form textarea, .form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.form textarea { min-height: 120px; resize: vertical; }

/* ---------- 14. Footer ---------- */
.site-footer {
  background: #061B36;
  color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
  font-size: 14px;
}
.site-footer h4 { color: var(--text-inv); font-size: 15px; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: var(--text-inv); }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-links li { margin-bottom: 10px; }
.footer-contact li { margin-bottom: 10px; line-height: 1.6; }
.footer-contact b { display: block; color: var(--text-inv); font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.social-row { display: flex; gap: 8px; }
.social-row a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08);
  border-radius: 6px;
  transition: background var(--transition);
}
.social-row a:hover { background: var(--accent); }

/* ---------- 15. Floating contact ---------- */
.floating-contact {
  position: fixed; right: 20px; bottom: 24px;
  display: flex; flex-direction: column; gap: 12px;
  z-index: 90;
}
.floating-contact .fc-btn {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--brand);
  color: var(--text-inv);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
  text-decoration: none;
}
.floating-contact .fc-btn:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.floating-contact .fc-btn svg { width: 26px; height: 26px; }

/* Brand-specific colors */
.floating-contact .fc-whatsapp { background: #25D366; }                     /* WhatsApp official green */
.floating-contact .fc-whatsapp:hover { background: #1FB855; }
.floating-contact .fc-email     { background: #EA4335; }                     /* Gmail / mail red */
.floating-contact .fc-email:hover { background: #D33426; }
.floating-contact .fc-contact   { background: var(--accent); }              /* Site orange CTA */
.floating-contact .fc-contact:hover { background: #e85a25; }
.floating-contact .fc-top       { background: var(--brand); }               /* Site brand blue */
.floating-contact .fc-top:hover { background: var(--accent); }

@media (max-width: 600px) {
  .floating-contact { right: 14px; bottom: 16px; gap: 10px; }
  .floating-contact .fc-btn { width: 46px; height: 46px; }
  .floating-contact .fc-btn svg { width: 22px; height: 22px; }
}

/* ---------- 16. Tag ---------- */
.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: .04em;
}
.tag-accent { background: rgba(255,107,53,.12); color: var(--accent); }

/* ---------- 17. Section heading ---------- */
.section-head { margin-bottom: 48px; }
.section-head__eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  color: var(--accent);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 { margin: 0 0 12px; }
.section-head p  { color: var(--text-2); font-size: 17px; max-width: 680px; margin: 0; }
.section-head--center { text-align: center; }
.section-head--center p { margin-left: auto; margin-right: auto; }

/* ---------- 18. Two-column hero split ---------- */
.hero-split {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 64px; align-items: center;
}
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- 19. Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: all .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 20. Misc ---------- */
.divider { height: 1px; background: var(--border); margin: 48px 0; }
.text-center { text-align: center; }
.text-muted  { color: var(--text-2); }
.text-small  { font-size: 14px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.mt-4 { margin-top: 32px; }

.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

/* ---------- 21. News list ---------- */
.news-item {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 24px; padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 600px) { .news-item { grid-template-columns: 1fr; } }
.news-item__date { color: var(--text-3); font-size: 13px; }
.news-item__date b { display: block; font-size: 28px; font-weight: 700; color: var(--brand); }
.news-item__title { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.news-item__excerpt { color: var(--text-2); font-size: 14px; }

/* ---------- 22. Case grid ---------- */
.case-card {
  display: flex; flex-direction: column;
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.case-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.case-card__media { aspect-ratio: 16 / 10; background: var(--bg-soft); }
.case-card__body { padding: 24px; }
.case-card__title { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.case-card__desc  { font-size: 14px; color: var(--text-2); }

/* ---------- 23. Process step ---------- */
.process-step { display: flex; gap: 16px; align-items: flex-start; }
.process-step__num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--brand); color: var(--text-inv);
  border-radius: 50%;
  font-weight: 700;
}
.process-step__body h4 { font-size: 16px; margin-bottom: 4px; }
.process-step__body p  { font-size: 14px; color: var(--text-2); margin: 0; }

/* ---------- 24. In-page anchor spacing ---------- */
section[id] { scroll-margin-top: 80px; }
/* ---------- Floating QR popovers ---------- */
.floating-contact .fc-item { position: relative; display: flex; justify-content: flex-end; }
.floating-contact .fc-item .fc-btn { border: none; cursor: pointer; font: inherit; padding: 0; }
.floating-contact .fc-wechat { background: #07C160; }
.floating-contact .fc-wechat:hover { background: #06AD56; }
.floating-contact .fc-pop {
  position: absolute; right: 64px; top: 50%;
  width: 176px; /* explicit: shrink-to-fit collapses with img max-width:100% */
  transform: translateY(-50%) scale(.94);
  background: #fff; color: var(--text);
  border-radius: 12px; padding: 12px 12px 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,.22);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: all var(--transition); text-align: center; white-space: nowrap;
}
.floating-contact .fc-pop::after {
  content: ""; position: absolute; right: -6px; top: 50%;
  width: 12px; height: 12px; background: #fff;
  transform: translateY(-50%) rotate(45deg); border-radius: 2px;
}
.floating-contact .fc-item:hover .fc-pop,
.floating-contact .fc-item:focus-within .fc-pop {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(-50%) scale(1);
}
.floating-contact .fc-pop img { display: block; width: 148px; height: 148px; border-radius: 8px; }
.floating-contact .fc-pop b { display: block; margin-top: 6px; font-size: 12px; color: var(--text); }
@media (max-width: 600px) {
  .floating-contact .fc-pop { right: 58px; padding: 10px 10px 7px; width: 152px; }
  .floating-contact .fc-pop img { width: 132px; height: 132px; }
}


/* ---- model detail image gallery (no upscaling) ---- */
.detail-gallery {
  display: flex; flex-wrap: wrap; gap: 20px 24px;
  align-items: flex-end; justify-content: flex-start;
  margin: 28px 0 4px;
}
.detail-gallery figure { margin: 0; flex: 0 0 auto; max-width: 300px; }
.detail-gallery img {
  display: block; width: auto; height: auto; max-width: 100%; max-height: 260px;
  border-radius: 10px; border: 1px solid var(--border); background: #fff;
}
@media (max-width: 700px) {
  .detail-gallery { gap: 16px; justify-content: center; }
  .detail-gallery figure { max-width: 46%; }
  .detail-gallery img { max-height: 180px; }
}
