/* ==========================================================================
   HUIYANG — 主题主样式
   基于静态原型 style.css，设计 token 完全一致（改 :root 一处，全站换色）。
   WordPress 相关补充样式在文件末尾的「WP 适配」段。
   ========================================================================== */
/* ==========================================================================
   HUIYANG 鈥?Expandable Container House
   Theme stylesheet 路 static prototype of the JEEZOO-style B2B layout
   Palette: deep corporate blue #022D66 on white, with a brighter blue accent
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* brand blue ramp (anchored on #022D66) */
  --c-950: #01193A;
  --c-900: #022D66;   /* primary 鈥?reference colour */
  --c-800: #043D87;
  --c-700: #0A53AC;
  --c-600: #0E6BD6;
  --c-500: #2E90FA;   /* accent 鈥?buttons, highlights, hovers */
  --c-400: #63A6FB;
  --c-200: #B9D2F2;
  --c-300: #8EBCF6;   /* between c-200 and c-400 */
  --c-100: #DDE9F9;
  --c-150: #CBDDF5;   /* between c-100 and c-200 */
  --c-50:  #F2F7FD;

  --ink:   #0C1F38;
  --body:  #51647C;
  --muted: #7B8CA1;   /* secondary text */
  --line:  #E2EAF4;
  --white: #FFFFFF;

  --ok-bg: #E7F7EE;
  --ok-fg: #0E7A46;

  --font-head: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 4px 14px rgba(2, 45, 102, .06);
  --shadow:    0 14px 34px rgba(2, 45, 102, .10);
  --shadow-lg: 0 26px 60px rgba(2, 45, 102, .16);

  --pad-section: clamp(64px, 7.5vw, 108px);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
h1, h2, h3, h4 {
  margin: 0 0 .6em;
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.015em;
}
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--c-700); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--c-500); }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
blockquote { margin: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* the [hidden] attribute must beat component display rules (.modal, .form__success, 鈥? */
[hidden] { display: none !important; }
::selection { background: var(--c-500); color: #fff; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px;
}

/* icons */
.icon {
  width: 18px; height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }
.icon--caret { width: 14px; height: 14px; stroke-width: 2.1; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--c-900); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- 3. Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-600);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; opacity: .55;
}
.eyebrow--light { color: var(--c-400); }
.eyebrow--plain::before { display: none; }

.section__title { font-size: clamp(1.7rem, 3.2vw, 2.55rem); }
.section__title--left { text-align: left; }
/* the About headline sits next to a photo column 鈥?keep it a notch smaller */
#about .section__title { font-size: clamp(1.35rem, 2.3vw, 1.95rem); }
.section__text { max-width: 720px; margin-inline: auto; }
.section__text--left { margin-inline: 0; }
.lead { font-size: 1.06rem; color: #3E5269; }
.section--dark .lead { color: rgba(255,255,255,.86); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  color: var(--c-700);
}
.link-arrow .icon { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600; font-size: .95rem;
  text-align: center; white-space: nowrap;
  transition: all .28s var(--ease);
}
.btn .icon { width: 17px; height: 17px; }
.btn--sm { padding: 10px 20px; font-size: .88rem; }
.btn--lg { padding: 15px 32px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--c-900); color: #fff; box-shadow: 0 10px 24px rgba(2, 45, 102, .22); }
.btn--primary:hover { background: var(--c-700); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px rgba(2, 45, 102, .26); }

.btn--accent { background: linear-gradient(135deg, var(--c-500), var(--c-600)); color: #fff; box-shadow: 0 12px 28px rgba(14, 107, 214, .32); }
.btn--accent:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 36px rgba(14, 107, 214, .38); }

.btn--outline { border-color: var(--c-200); background: #fff; color: var(--c-900); }
.btn--outline:hover { border-color: var(--c-900); background: var(--c-900); color: #fff; }

.btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; backdrop-filter: blur(6px); background: rgba(255, 255, 255, .07); }
.btn--ghost:hover { background: #fff; color: var(--c-900); border-color: #fff; }

/* ---------- 5. Top bar ---------- */
.topbar {
  background: var(--c-900);
  color: rgba(255, 255, 255, .85);
  font-size: .84rem;
  position: relative;
  z-index: 60;
}
.topbar.is-hidden { display: none; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 42px; }
.topbar__contact { display: flex; align-items: center; gap: 22px; }
.topbar__contact a { display: inline-flex; align-items: center; gap: 7px; color: inherit; }
.topbar__contact a:hover { color: #fff; }
.topbar__contact .icon { width: 15px; height: 15px; color: var(--c-400); }
.topbar__meta { display: flex; align-items: center; gap: 14px; }
.topbar__cta { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .45); }
.topbar__cta:hover { color: var(--c-400); border-color: var(--c-400); }
.topbar__sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .3); }
.topbar__lang { font-weight: 600; letter-spacing: .06em; }
.topbar__close { display: inline-flex; background: none; border: 0; color: inherit; padding: 4px; opacity: .8; }
.topbar__close:hover { opacity: 1; }
.topbar__close .icon { width: 15px; height: 15px; }

/* ---------- 6. Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 70;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(2, 45, 102, .10); }
.navbar { position: relative; z-index: 85; background: #fff; display: flex; align-items: center; gap: 26px; min-height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--c-900); flex: none; }
.logo:hover { color: var(--c-700); }
.logo__mark svg { width: 38px; height: 38px; display: block; }
.logo__mark img { width: 38px; height: auto; display: block; border-radius: 9px; }
.logo__mark path { fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linejoin: round; }
.logo__mark .logo__inner { fill: var(--c-500); stroke: none; }
.logo__mark .logo__plus { stroke: #fff; stroke-width: 2.6; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text strong { font-family: var(--font-head); font-size: 1.32rem; font-weight: 800; letter-spacing: .04em; }
.logo__text em { font-style: normal; font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; opacity: .7; }
.logo--light { color: #fff; }
.logo--light:hover { color: var(--c-400); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  color: var(--ink);
}
.nav__link:hover, .nav__item:hover > .nav__link, .nav__link.is-current { color: var(--c-700); background: var(--c-50); }
.nav__link.is-current { color: var(--c-900); }
.nav__link .icon--caret { transition: transform .3s var(--ease); }
.nav__item:hover .icon--caret { transform: rotate(180deg); }

/* mega menu */
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translate(-50%, 10px);
  display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr)) 260px;
  gap: 30px;
  width: min(1000px, 92vw);
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
}
.mega--small { width: min(460px, 92vw); grid-template-columns: repeat(2, minmax(160px, 1fr)); }
/* .mega--list（Products 下拉只剩分类）的规则放在文件末尾，
   否则会被后面的 .mega:not(.mega--small) 覆盖 */
.nav__item:hover > .mega, .nav__item:focus-within > .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega__title {
  margin: 0 0 12px; font-family: var(--font-head); font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--c-600);
}
.mega__col ul { display: flex; flex-direction: column; gap: 2px; }
.mega__col a { display: block; padding: 7px 10px; margin-left: -10px; border-radius: 8px; color: var(--body); font-size: .92rem; }
.mega__col a:hover { background: var(--c-50); color: var(--c-900); }
.mega__promo { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--c-50); }
.mega__promo img { width: 100%; height: 160px; object-fit: cover; }
.mega__promo-body { padding: 16px 18px 20px; }
.mega__promo-title { margin: 0 0 4px; font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.mega__promo-text { font-size: .86rem; margin: 0 0 10px; }

.navbar__actions { display: flex; align-items: center; gap: 12px; flex: none; }
@media (min-width: 1025px) {
  /* right-most mega menu opens aligned to the right edge so it never overflows */
  .nav__item:nth-child(5) > .mega { left: auto; right: -40px; transform: translate(0, 10px); }
  .nav__item:nth-child(5):hover > .mega,
  .nav__item:nth-child(5):focus-within > .mega { transform: translate(0, 0); }
}
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  transition: all .25s var(--ease);
}
.icon-btn:hover { color: var(--c-700); border-color: var(--c-200); background: var(--c-50); }
.icon-btn .icon { width: 19px; height: 19px; stroke-width: 1.9; }

.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 42px; padding: 0 9px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
/* width: 100% is required 鈥?an empty flex item does not stretch to the cross
   axis here, which left the three bars 0px wide (an invisible button). */
.hamburger span { display: block; width: 100%; height: 2px; border-radius: 2px; background: var(--c-900); transition: .3s var(--ease); }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* search overlay */
.searchbar { border-top: 1px solid var(--line); background: var(--c-50); }
.searchbar__inner { display: flex; align-items: center; gap: 14px; padding-block: 16px; }
.searchbar .icon { width: 20px; height: 20px; color: var(--c-600); }
.searchbar input {
  flex: 1; border: 0; background: transparent; outline: none;
  font-size: 1rem; color: var(--ink); padding: 6px 0;
}
.searchbar input::placeholder { color: #93A6BC; }
.searchbar__close { border: 0; background: none; color: var(--ink); display: inline-flex; padding: 6px; }
.searchbar__close .icon { width: 18px; height: 18px; }
.searchbar__results { max-width: 1240px; margin: 0 auto; padding: 0 22px 18px; display: flex; flex-direction: column; gap: 2px; }
.searchbar__result {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  color: var(--ink); font-size: .94rem;
}
.searchbar__result:hover { background: #fff; color: var(--c-700); box-shadow: var(--shadow-sm); }
.searchbar__result .icon { width: 16px; height: 16px; color: var(--c-500); }
.searchbar__empty { padding: 11px 2px; font-size: .92rem; color: var(--body); margin: 0; }
section[id], div[id], span[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

/* ---------- 7. Hero slider ---------- */
.hero { position: relative; background: var(--c-950); overflow: hidden; }
.hero__slides { position: relative; height: clamp(560px, 84vh, 820px); }
.slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .9s var(--ease), visibility .9s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.07); transition: transform 8s linear;
}
.slide.is-active .slide__img { transform: scale(1); }
.slide__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(1, 20, 48, .94) 0%, rgba(2, 45, 102, .86) 42%, rgba(2, 45, 102, .38) 68%, rgba(2, 45, 102, .12) 100%),
    linear-gradient(0deg, rgba(1, 20, 48, .55), rgba(1, 20, 48, 0) 55%);
}
.slide__content { position: relative; z-index: 3; padding-block: 90px 130px; }
.slide__title {
  color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.7rem);
  font-weight: 800;
  max-width: 16ch;
  margin-bottom: .35em;
}
.slide__text { color: rgba(255, 255, 255, .88); font-size: clamp(1rem, 1.4vw, 1.16rem); max-width: 54ch; margin-bottom: 2em; }
.slide__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.slide__marks { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; }
.slide__marks li { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .9); font-size: .92rem; }
.slide__marks .icon { width: 17px; height: 17px; color: var(--c-500); stroke-width: 2.4; }

.hero__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; z-index: 5;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .38); border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff;
  backdrop-filter: blur(8px);
  transition: all .28s var(--ease);
}
.hero__nav:hover { background: #fff; color: var(--c-900); }
.hero__nav--prev { left: 26px; }
.hero__nav--next { right: 26px; }
.hero__nav--prev .icon { transform: rotate(90deg); }
.hero__nav--next .icon { transform: rotate(-90deg); }
.hero__nav .icon { width: 20px; height: 20px; stroke-width: 2; }

.hero__controls {
  position: absolute; left: 0; right: 0; bottom: 30px; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.hero__dots { display: flex; align-items: center; gap: 10px; }
.hero__dot {
  width: 11px; height: 11px; padding: 0; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .7); background: transparent;
  transition: all .3s var(--ease);
}
.hero__dot.is-active { width: 34px; background: var(--c-500); border-color: var(--c-500); }
.hero__counter { margin: 0; display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .85); font-family: var(--font-head); font-size: .9rem; letter-spacing: .08em; }
.hero__counter [data-hero-current] { color: #fff; font-weight: 700; }
.hero__counter-sep { opacity: .5; }

/* ---------- 8. Stats strip ---------- */
.stats-strip { position: relative; z-index: 6; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: -66px 0 0;
  padding: 32px 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.stats li { text-align: center; padding: 6px 0; border-right: 1px solid var(--line); }
.stats li:last-child { border-right: 0; }
.stats strong { display: block; font-family: var(--font-head); font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 800; color: var(--c-900); line-height: 1.1; }
.stats strong span { font-size: .62em; color: var(--c-500); margin-left: 2px; }
.stats em { font-style: normal; font-size: .86rem; color: var(--body); }

/* ---------- 9. Sections & layout ---------- */
.section { padding: var(--pad-section) 0; }
.section--tight { padding: calc(var(--pad-section) * .62) 0; }
.section--tint { background: var(--c-50); }
.section--dark { background: linear-gradient(160deg, var(--c-900) 0%, var(--c-950) 62%, #010F26 100%); color: rgba(255, 255, 255, .8); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a { color: var(--c-400); }
.section--dark .btn--primary { background: #fff; color: var(--c-900); box-shadow: none; }
.section--dark .btn--primary:hover { background: var(--c-500); color: #fff; }

.section__head { max-width: 860px; margin: 0 auto clamp(38px, 4vw, 60px); text-align: center; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; text-align: left; }
.section__head--row > div { max-width: 720px; }
.section__head-action { flex: none; }
.section__head--split { max-width: none; display: grid; grid-template-columns: 1.35fr auto; align-items: end; gap: 40px; text-align: left; }
.section__head--split > div { max-width: 760px; }

.subhead { max-width: 820px; margin-bottom: 42px; }
.subhead__title { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-bottom: .4em; }

.split { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(36px, 5vw, 74px); align-items: center; }
.split--aside { grid-template-columns: .85fr 1.15fr; align-items: start; }
.split--form { grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(36px, 4.4vw, 64px); }
.split__body .btn { margin-top: 6px; }
.split__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 30px; }

.split__media { position: relative; }
/* photos keep their native aspect ratio 鈥?no forced crop */
.split__img { width: 100%; height: auto; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.split__img-sub {
  position: absolute; right: -18px; bottom: -26px; width: 44%;
  object-fit: cover;
  border: 7px solid #fff; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split__img-sub--left { right: auto; left: -22px; bottom: -30px; }
/* stacked variant (About): both photos full width, one under the other.
   The source photos are very wide (~2.0-2.3), so they are cropped to 16/9
   here to give the column some height and keep it level with the copy. */
.split__media--stacked .split__img { aspect-ratio: 16 / 9; object-fit: cover; }
.split__media--stacked .split__img-sub {
  position: static;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 20px;
  border-width: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.media-badge {
  position: absolute; left: -22px; bottom: 42px;
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px; background: var(--c-900); color: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
/* with two stacked photos the badge would land on the lower one 鈥?pin it to the top */
.split__media--stacked .media-badge { bottom: auto; top: 26px; }
.media-badge strong { font-family: var(--font-head); font-size: 2rem; font-weight: 800; line-height: 1; color: #fff; }
.media-badge strong sup { font-size: .5em; color: var(--c-400); }
.media-badge span { font-size: .8rem; line-height: 1.35; color: rgba(255, 255, 255, .82); }
.media-fact {
  position: absolute; right: -14px; bottom: 22px;
  display: flex; gap: 26px;
  padding: 16px 22px; background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.media-fact span { display: flex; flex-direction: column; }
.media-fact strong { font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; color: var(--c-900); line-height: 1.15; }
.media-fact em { font-style: normal; font-size: .74rem; color: var(--body); }

/* ticks / pills / quote */
.ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 26px; margin: 26px 0 0; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; color: #3E5269; }
.ticks .icon { width: 19px; height: 19px; margin-top: 3px; color: var(--c-500); stroke-width: 2.4; }
.ticks--light li { color: rgba(255, 255, 255, .88); }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.pill-list li {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--c-50); border: 1px solid var(--line);
  font-size: .88rem; color: #33475E;
}
.pill-list .icon { width: 17px; height: 17px; color: var(--c-600); }
.pill-list--light li { background: #fff; }

.quote-block {
  display: flex; gap: 16px;
  margin: 28px 0 6px; padding: 22px 24px;
  background: var(--c-50); border-left: 3px solid var(--c-500);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.quote-block .icon { width: 26px; height: 26px; color: var(--c-400); fill: var(--c-400); stroke: none; }
.quote-block p { margin: 0; font-size: .97rem; color: #33475E; }

/* ---------- 10. Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature {
  padding: 32px 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--c-200); }
.feature__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; margin-bottom: 20px;
  border-radius: 16px; color: var(--c-900);
  background: linear-gradient(150deg, var(--c-100), var(--c-50));
}
.feature__icon .icon { width: 26px; height: 26px; stroke-width: 1.6; }
.feature h3 { font-size: 1.09rem; margin-bottom: .5em; }
.feature p { font-size: .93rem; margin: 0; }

/* ---------- 11. Cards (models / blog / testimonials) ---------- */
.card-grid { display: grid; gap: 26px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--c-200); }
.card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__tag {
  position: absolute; left: 14px; top: 14px;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(2, 45, 102, .88); color: #fff;
  font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
.card__title { font-size: 1.14rem; margin-bottom: .45em; }
.card__title a { color: inherit; }
.card__title a:hover { color: var(--c-600); }
.card__body p { font-size: .93rem; }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 14px 0 18px; font-size: .84rem; color: #6D7F94; }
.card__meta li { position: relative; }
.card__meta li + li::before { content: ""; position: absolute; left: -11px; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--c-200); }
.card__body .link-arrow { margin-top: auto; }

/* blog post */
.post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--c-200); }
.post__media { display: block; overflow: hidden; aspect-ratio: 7 / 5; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post:hover .post__media img { transform: scale(1.05); }
.post__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 26px; }
.post__date { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 10px; font-size: .8rem; color: #7B8CA1; letter-spacing: .02em; }
.post__date .icon { width: 15px; height: 15px; }
.post__title { font-size: 1.02rem; line-height: 1.4; margin-bottom: .55em; }
.post__title a { color: inherit; }
.post__title a:hover { color: var(--c-600); }
.post__body p { font-size: .9rem; }
.post__body .link-arrow { margin-top: auto; padding-top: 6px; }

/* testimonials */
.testimonial {
  display: flex; flex-direction: column; gap: 18px;
  padding: 32px 30px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.stars { display: flex; gap: 4px; color: #F2A93B; }
.stars .icon { width: 17px; height: 17px; }
.testimonial > p { font-size: .96rem; color: #3E5269; }
.testimonial__foot { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.testimonial__foot strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: .98rem; }
.testimonial__foot em { font-style: normal; font-size: .82rem; color: #7B8CA1; }
.avatar {
  width: 54px; height: 54px; flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--c-50);
  border: 2px solid #fff;
  box-shadow: 0 6px 16px rgba(2, 45, 102, .18);
}
/* country flag sitting right after the country name */
.flag {
  display: inline-block;
  width: 24px; height: auto;
  margin-left: 7px;
  vertical-align: -3px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(2, 45, 102, .12);
}

/* ---------- 12. Applications ---------- */
.filterbox {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; min-width: 260px;
  background: #fff; border-radius: 999px; box-shadow: var(--shadow);
}
.filterbox .icon { width: 18px; height: 18px; color: var(--c-600); stroke-width: 2; }
.filterbox input { flex: 1; border: 0; outline: none; background: transparent; color: var(--ink); font-size: .95rem; min-width: 0; }
.filterbox input::placeholder { color: #93A6BC; }

.app-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.app {
  padding: 26px 22px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  transition: all .3s var(--ease);
}
.app:hover { background: rgba(255, 255, 255, .13); border-color: var(--c-400); transform: translateY(-4px); }
.app.is-filtered-out { display: none; }
.app__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-bottom: 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .12); color: var(--c-400);
}
.app__icon .icon { width: 23px; height: 23px; }
.app h3 { font-size: 1rem; margin-bottom: .25em; }
.app p { margin: 0; font-size: .84rem; color: rgba(255, 255, 255, .66); }
.app-grid__empty { margin-top: 26px; color: rgba(255, 255, 255, .8); }

/* ---------- 13. Projects gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery li { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 9; }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery li:hover img { transform: scale(1.06); }
.gallery li span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 16px 14px;
  background: linear-gradient(0deg, rgba(1, 20, 48, .85), rgba(1, 20, 48, 0));
  color: #fff; font-family: var(--font-head); font-size: .84rem; font-weight: 600;
}

/* ---------- 14. FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s var(--ease), border-color .3s var(--ease); }
.faq__item.is-open { border-color: var(--c-200); box-shadow: var(--shadow-sm); }
.faq__q {
  display: flex; align-items: center; gap: 16px; width: 100%;
  padding: 20px 22px; border: 0; background: none; text-align: left;
}
.faq__num { font-family: var(--font-head); font-size: .84rem; font-weight: 700; color: var(--c-400); }
.faq__label { flex: 1; font-family: var(--font-head); font-size: 1.01rem; font-weight: 600; color: var(--ink); }
.faq__sign { position: relative; width: 20px; height: 20px; flex: none; }
.faq__sign::before, .faq__sign::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 2px;
  border-radius: 2px; background: var(--c-700); transform: translate(-50%, -50%);
  transition: transform .3s var(--ease);
}
.faq__sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open .faq__sign::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq__a p { padding: 0 22px 22px 58px; margin: 0; font-size: .95rem; }
/* no-JS fallback: an item marked "is-open" stays readable before main.js runs */
.faq__item.is-open .faq__a { max-height: none; }

/* ---------- 15. Quote form ---------- */
.quote-section .contact-lines { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.contact-lines li { display: flex; align-items: center; gap: 12px; font-size: .95rem; color: rgba(255, 255, 255, .88); }
.contact-lines .icon { width: 19px; height: 19px; color: var(--c-400); }
.contact-lines a { color: #fff; }
.contact-lines a:hover { color: var(--c-400); }

.form-card {
  padding: clamp(26px, 3vw, 38px);
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.form-card__title { font-size: 1.35rem; margin-bottom: .3em; }
.form-card__sub { font-size: .92rem; margin-bottom: 24px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-family: var(--font-head); font-size: .82rem; font-weight: 600; color: #33475E; letter-spacing: .01em; }
.field > span i { font-style: normal; color: #E2574C; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 15px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--c-50); color: var(--ink); font-size: .94rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  outline: none;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #97A9BD; }
.field input:focus, .field select:focus, .field textarea:focus {
  background: #fff; border-color: var(--c-500); box-shadow: 0 0 0 3px rgba(46, 144, 250, .18);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23022D66' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9.5 12 15.5 18 9.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 42px; }
.field.has-error input, .field.has-error textarea { border-color: #E2574C; background: #FEF5F4; }

.upload {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; border: 1px dashed var(--c-200); border-radius: var(--radius-sm);
  background: var(--c-50); color: #5A6E85; font-size: .88rem; cursor: pointer;
  transition: all .25s var(--ease);
}
.upload:hover { border-color: var(--c-500); color: var(--c-700); }
.upload .icon { width: 19px; height: 19px; color: var(--c-600); }
.upload input[type="file"] { display: none; }
.upload.is-filled { border-style: solid; border-color: var(--c-500); color: var(--c-900); font-weight: 500; }

.form__note { margin: 0; font-size: .78rem; color: #8296AB; text-align: center; }
.form__success {
  display: flex; align-items: center; gap: 10px; margin: 0;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--ok-bg); color: var(--ok-fg); font-size: .9rem; font-weight: 500;
}
.form__success .icon { width: 20px; height: 20px; stroke-width: 2; }

/* ---------- 16. Video grid ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.video { position: relative; display: block; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.video img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .7s var(--ease); }
.video:hover img { transform: scale(1.05); }
.video__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(2, 45, 102, .82); color: #fff;
  backdrop-filter: blur(4px);
  transition: all .3s var(--ease);
}
.video:hover .video__play { background: var(--c-500); transform: translate(-50%, -50%) scale(1.08); }
.video__play .icon { width: 22px; height: 22px; margin-left: 2px; }

/* ---------- 17. Footer ---------- */
.site-footer { background: var(--c-950); color: rgba(255, 255, 255, .66); font-size: .92rem; }
.footer__top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(52px, 6vw, 78px) 22px 46px;
}
.footer__brand p { margin: 20px 0 22px; font-size: .9rem; max-width: 38ch; }
.socials { display: flex; gap: 10px; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .78);
  transition: all .28s var(--ease);
}
.socials a:hover { background: var(--c-500); border-color: var(--c-500); color: #fff; transform: translateY(-3px); }
.socials .icon { width: 19px; height: 19px; }
.footer__col h3 {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: #fff; margin-bottom: 18px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: rgba(255, 255, 255, .68); }
.footer__col a:hover { color: var(--c-400); }
.footer__contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer__contact .icon { width: 17px; height: 17px; margin-top: 3px; color: var(--c-400); }
.footer__addr { margin: 16px 0 0; font-size: .86rem; color: rgba(255, 255, 255, .58); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; }
.footer__bottom p { margin: 0; font-size: .84rem; }
.footer__legal { display: flex; gap: 22px; }
.footer__legal a { font-size: .84rem; color: rgba(255, 255, 255, .6); }
.footer__legal a:hover { color: var(--c-400); }

/* ---------- 18. Floating UI ---------- */
.float-stack { position: fixed; right: 20px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.float-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 50%;
  border: 0; color: #fff; background: var(--c-900);
  box-shadow: 0 12px 26px rgba(2, 45, 102, .3);
  transition: transform .28s var(--ease), background .28s var(--ease), opacity .3s var(--ease);
}
.float-btn:hover { transform: translateY(-3px) scale(1.04); color: #fff; }
.float-btn .icon { width: 23px; height: 23px; }
.float-btn--wa { background: #25D366; }
.float-btn--wa:hover { background: #1EB757; }
.float-btn--quote { background: var(--c-500); }
.float-btn--quote:hover { background: var(--c-600); }
.float-btn--top { background: #fff; color: var(--c-900); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(10px); }
.float-btn--top.is-visible { opacity: 1; visibility: visible; transform: none; }
.float-btn--top:hover { background: var(--c-900); color: #fff; }
.float-btn__tip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  padding: 7px 13px; border-radius: 8px; white-space: nowrap;
  background: var(--c-950); color: #fff; font-size: .8rem;
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease);
}
.float-btn:hover .float-btn__tip { opacity: 1; visibility: visible; }

/* ---------- 19. Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(1, 18, 42, .68); backdrop-filter: blur(3px); }
.modal__dialog {
  position: relative; z-index: 2; width: min(620px, 100%);
  max-height: 92vh; overflow-y: auto;
  padding: clamp(26px, 3.4vw, 40px);
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: modal-in .34s var(--ease);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__close {
  position: absolute; right: 16px; top: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.modal__close:hover { background: var(--c-50); color: var(--c-700); }
.modal__close .icon { width: 18px; height: 18px; }
.modal__title { font-size: 1.5rem; margin-bottom: .35em; }
.modal__sub { font-size: .93rem; margin-bottom: 24px; }

/* ---------- 20. Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-inview { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .slide__img, .card__media img, .post__media img, .gallery img, .video img { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 21. Fallback image placeholder ---------- */
img.is-fallback { object-fit: cover; background: var(--c-900); }

/* ==========================================================================
   22. Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav__link { padding: 10px 11px; font-size: .92rem; }
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .app-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  :root { --header-h: 70px; }
  /* Keep the full layout declaration: `display: flex` alone would drop the
   base rule's flex-direction: column, collapsing the three bars into an
   invisible 0-height row. */
.hamburger { display: flex; flex-direction: column; justify-content: center; gap: 5px; }
  .nav {
    position: fixed; inset: 0; z-index: 80;
    margin: 0; padding: calc(var(--header-h) + 26px) 22px 40px;
    background: var(--c-900);
    overflow-y: auto;
    transform: translateX(100%); transition: transform .35s var(--ease);
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { color: #fff; padding: 15px 4px; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); justify-content: space-between; font-size: 1.02rem; }
  .nav__link:hover, .nav__link.is-current { background: none; color: var(--c-400); }
  .nav__item:hover .icon--caret { transform: none; }
  .nav__item.is-expanded .icon--caret { transform: rotate(180deg); }
  .mega, .mega--small {
    position: static; transform: none; opacity: 1; visibility: visible;
    display: none; width: 100%; padding: 12px 0 20px;
    background: none; border: 0; box-shadow: none;
    grid-template-columns: 1fr; gap: 18px;
  }
  .nav__item.is-expanded > .mega { display: grid; }
  .mega__title { color: var(--c-400); }
  .mega__col a { color: rgba(255, 255, 255, .82); padding: 8px 0; margin: 0; }
  .mega__col a:hover { color: var(--c-400); background: none; }
  .mega__promo { display: none; }
  .split, .split--aside, .split--form { grid-template-columns: 1fr; }
  .split--aside .split__body { margin-bottom: 8px; }
  .split__media { max-width: 620px; }
  .split__img-sub { width: 42%; right: 0; bottom: -22px; }
  .split__img-sub--left { left: 0; }
  .media-badge { left: 0; bottom: auto; top: 18px; }
  .media-fact { position: static; margin-top: 16px; }
  .section__head--row { flex-direction: column; align-items: flex-start; gap: 26px; }
  .section__head--split { grid-template-columns: 1fr; align-items: start; gap: 26px; }
  .hero__nav { display: none; }
}

@media (max-width: 820px) {
  :root { --pad-section: 60px; }
  .topbar__contact li:nth-child(2) { display: none; }
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 26px 22px; margin-top: -40px; }
  .stats li:nth-child(2) { border-right: 0; }
  .stats li:nth-child(-n+2) { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
  .stats li:nth-child(n+3) { padding-top: 16px; }
  .ticks { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: repeat(2, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 620px) {
  .topbar__inner { justify-content: center; }
  .topbar__contact li:nth-child(1) a span { font-size: .8rem; }
  .topbar__cta, .topbar__sep, .topbar__lang { display: none; }
  .navbar { min-height: 64px; }
  .logo__text em { display: none; }
  .navbar__quote { display: none; }
  .hero__slides { height: auto; min-height: 520px; }
  .slide { position: relative; display: none; }
  .slide.is-active { display: flex; }
  .slide__content { padding-block: 70px 120px; }
  .slide__marks { margin-top: 26px; }
  .btn { width: 100%; }
  .slide__actions, .split__actions { flex-direction: column; align-items: stretch; }
  .split__actions .link-arrow { justify-content: center; }
  .section__head-action { width: 100%; }
  .card-grid--3, .card-grid--4, .feature-grid, .app-grid, .gallery, .video-grid, .form__row, .footer__top { grid-template-columns: 1fr; }
  .gallery li:nth-child(n+5) { display: none; }
  .split__img-sub { position: static; width: 100%; margin-top: 14px; border-width: 0; }
  .media-fact { position: static; margin-top: 16px; }
  .stats { grid-template-columns: 1fr; }
  .stats li { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 0; }
  .stats li:last-child { border-bottom: 0; }
  .float-btn__tip { display: none; }
  .float-stack { right: 14px; bottom: 14px; }
  .float-btn { width: 46px; height: 46px; }
}

/* ==========================================================================
   23. Masonry photo wall (Gallery block)
   ========================================================================== */
.masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 215px;
  gap: 12px;
  margin: 0;
}
.masonry li {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c-50);
  box-shadow: var(--shadow-sm);
}
/* portrait shots span two rows so the grid closes into a perfect rectangle */
.masonry li.is-tall { grid-row: span 2; }
.masonry img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.masonry li:hover img { transform: scale(1.045); }

/* ==========================================================================
   24. Fact bar 鈥?white data strip under the Manufacturing split
   ========================================================================== */
.factbar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 22px 30px;
  margin: clamp(38px, 4.6vw, 64px) 0 0;
  padding: 30px clamp(24px, 3vw, 38px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 26px 60px rgba(1, 18, 42, .28);
}
.factbar__item { display: flex; align-items: center; gap: 15px; }
.factbar__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; flex: none; border-radius: 15px;
  background: var(--c-50); color: var(--c-700);
}
.factbar__icon .icon { width: 25px; height: 25px; stroke-width: 1.6; }
.factbar__text { display: block; min-width: 0; }
.factbar__text strong {
  display: block; font-family: var(--font-head); font-weight: 800; line-height: 1.15;
  font-size: clamp(1.2rem, 1.7vw, 1.5rem); color: var(--c-900);
}
.factbar__text strong span { font-size: .6em; margin-left: 2px; color: var(--c-600); }
.factbar__text em { font-style: normal; font-size: .84rem; color: var(--body); }

/* ==========================================================================
   25. Two-column feature cards with leading icons (Built for Real Homes)
   ========================================================================== */
.feature-grid--2 { grid-template-columns: repeat(2, 1fr); }
.feature--row { display: flex; align-items: flex-start; gap: 20px; padding: 28px 26px; }
.feature--row .feature__icon { margin-bottom: 0; }
.feature__text { min-width: 0; }
.feature--row h3 { font-size: 1.06rem; margin-bottom: .45em; }
.feature--row p { font-size: .93rem; }

/* Key Features grid uses dark cards (matches the reference screenshot) */
.feature-grid--2 .feature {
  background: linear-gradient(150deg, var(--c-800) 0%, var(--c-950) 100%);
  border-color: transparent;
  color: rgba(255, 255, 255, .8);
  box-shadow: 0 16px 36px rgba(2, 45, 102, .18);
}
.feature-grid--2 .feature:hover { border-color: var(--c-500); box-shadow: 0 22px 46px rgba(2, 45, 102, .26); }
.feature-grid--2 .feature h3 { color: #fff; }
.feature-grid--2 .feature__icon { background: rgba(255, 255, 255, .12); color: var(--c-400); }
/* want white cards instead? keep only `background` on .feature-grid--2 .feature and drop the two colour rules */

/* dark-section overrides used by the Manufacturing block */
.section--dark .quote-block { background: rgba(255, 255, 255, .07); border-left-color: var(--c-400); }
.section--dark .quote-block p { color: rgba(255, 255, 255, .88); }
.section--dark .pill-list li { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .9); }
.section--dark .pill-list .icon { color: var(--c-400); }

/* ==========================================================================
   26. Spec grid (Structure & Material Quality)
   ========================================================================== */
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.spec {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 26px 28px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius);
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.spec:hover { background: rgba(255, 255, 255, .11); border-color: var(--c-400); transform: translateY(-4px); }
.spec__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; flex: none; border-radius: 15px;
  background: rgba(255, 255, 255, .1); color: var(--c-400);
}
.spec__icon .icon { width: 25px; height: 25px; stroke-width: 1.6; }
.spec__text { min-width: 0; }
.spec h3 { color: #fff; font-size: 1.04rem; margin-bottom: .4em; }
.spec p { margin: 0; color: rgba(255, 255, 255, .74); font-size: .91rem; }
.spec-cta { margin-top: clamp(32px, 3.6vw, 48px); text-align: center; }

/* ==========================================================================
   27. Visit points (Global Client Visits)
   ========================================================================== */
.visit-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0 0 clamp(34px, 4vw, 52px); }
.visit-point {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.visit-point__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; flex: none; border-radius: 16px;
  background: linear-gradient(150deg, var(--c-100), var(--c-50));
  color: var(--c-900);
}
.visit-point__icon .icon { width: 26px; height: 26px; stroke-width: 1.6; }
.visit-point__text { display: flex; flex-direction: column; min-width: 0; }
.visit-point__text strong { font-family: var(--font-head); font-size: 1.01rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.visit-point__text em { font-style: normal; font-size: .86rem; color: var(--body); }

@media (max-width: 1024px) {
  .factbar { grid-template-columns: repeat(2, 1fr); }
  .masonry { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; }
}
@media (max-width: 820px) {
  .masonry { grid-template-columns: repeat(2, 1fr); }
  .feature-grid--2 { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .visit-points { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .factbar { grid-template-columns: 1fr; }
  .masonry { gap: 10px; grid-auto-rows: 170px; }
}


/* Products 下拉：按用户要求去掉 By Application / By Layout 两列后，
   只剩 By Size 一列 —— 原规则是「3 列 + 260px 推广卡」，这里覆盖成
   「1 列 + 推广卡」，否则会留出两个空白列。 */
.mega:not(.mega--small) {
  grid-template-columns: minmax(220px, 1fr) 260px;
}

@media (max-width: 1024px) {
  .mega:not(.mega--small) {
    grid-template-columns: minmax(0, 1fr) 220px;
  }
}


/* Products 下拉：去掉 By Application / By Layout 后只剩 By Size 一列 + 推广卡。
   原来的 .mega 是「3 列 + 260px 推广卡，宽 1000px」，只改列数会让右侧留一大片空白，
   所以宽度、间距、内边距都要按单列重算：
     200(列) + 240(推广卡) + 24(gap) + 48(padding) ≈ 512 → 取 560 留余量 */
.mega:not(.mega--small) {
  grid-template-columns: minmax(200px, 1fr) 240px;
  width: min(560px, 92vw);
  gap: 24px;
  padding: 24px;
  /* 靠右对齐而不是居中：Products 在导航偏左位置，居中时右侧会顶到视口边缘 */
  left: auto;
  right: -80px;
  transform: translate(0, 10px);
}

.nav__item:hover > .mega:not(.mega--small),
.nav__item:focus-within > .mega:not(.mega--small) {
  transform: translate(0, 0);
}

@media (max-width: 1024px) {
  .mega:not(.mega--small) {
    grid-template-columns: minmax(0, 1fr) 200px;
    width: min(520px, 94vw);
    gap: 18px;
    padding: 20px;
    right: -20px;
  }
}

/* 窄屏：推广卡换到下面，避免两列挤在一起 */
@media (max-width: 620px) {
  .mega:not(.mega--small) {
    grid-template-columns: 1fr;
    width: 94vw;
  }
}



/* ============ 产品列表分页（页码 ±4 + 跳页） ============ */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  justify-content: center;
  margin-top: clamp(30px, 3.4vw, 48px);
}
.pagination__list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pagination__list li { margin: 0; }
.pagination__list a,
.pagination__list .current,
.pagination__list .pagination__dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 0.22s var(--ease), color 0.22s var(--ease), background 0.22s var(--ease);
}
.pagination__list a:hover {
  border-color: var(--c-500);
  color: var(--c-700);
  background: var(--c-50);
}
.pagination__list .current {
  background: var(--c-900);
  border-color: var(--c-900);
  color: #fff;
}
.pagination__list .pagination__dots {
  border-color: transparent;
  background: none;
  color: var(--muted);
  min-width: 28px;
  padding: 0 4px;
}
.pagination__step {
  gap: 6px;
  padding: 0 16px !important;
}
.pagination__step span { font-size: 0.85rem; }

.pagination__jump {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}
.pagination__jump label { white-space: nowrap; }
.pagination__jump input {
  width: 68px;
  height: 42px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  text-align: center;
}
.pagination__jump input:focus {
  outline: 2px solid var(--c-500);
  outline-offset: 1px;
  border-color: var(--c-500);
}
.pagination__jump button {
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--c-900);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.22s var(--ease);
}
.pagination__jump button:hover { background: var(--c-700); }

@media (max-width: 640px) {
  .pagination { gap: 12px; }
  .pagination__list a,
  .pagination__list .current { min-width: 38px; height: 38px; font-size: 0.84rem; }
  .pagination__step span { display: none; }
}

/* ============================================================
   买家类型标签 / 图标圆盘
   首页「How Our Houses Are Used」与分类页共用（原先只在 product.css）
   ============================================================ */
.testimonial__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--c-50);
  border: 1px solid var(--c-150);
  color: var(--c-700);
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.testimonial__tag .icon {
  width: 15px;
  height: 15px;
  stroke: var(--c-600);
  fill: none;
  stroke-width: 1.6;
}

.testimonial__icon {
  width: 54px;
  height: 54px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--c-50) 0%, var(--c-100) 100%);
  border: 2px solid #fff;
  box-shadow: 0 6px 16px rgba(2, 45, 102, .14);
}
.testimonial__icon .icon {
  width: 24px;
  height: 24px;
  stroke: var(--c-600);
  fill: none;
  stroke-width: 1.5;
}

@media (max-width: 560px) {
  .testimonial { padding: 26px 22px; }
  .testimonial__icon { width: 46px; height: 46px; }
  .testimonial__icon .icon { width: 21px; height: 21px; }
}

/* ============================================================
   Products 下拉：只剩分类列表（去掉了 By Size 标题和推广卡）
   必须放在所有 .mega 覆盖规则之后，否则会被 .mega:not(.mega--small) 盖掉
   ============================================================ */
.mega.mega--list {
  grid-template-columns: minmax(0, 1fr);
  width: min(320px, 92vw);
  gap: 0;
  padding: 16px;
  left: 50%;
  right: auto;
  transform: translate(-50%, 10px);
}
.nav__item:hover > .mega.mega--list,
.nav__item:focus-within > .mega.mega--list {
  transform: translate(-50%, 0);
}
.mega.mega--list .mega__col ul { gap: 2px; }
.mega.mega--list .mega__col a {
  padding: 9px 12px;
  margin-left: 0;
  font-size: .94rem;
}
@media (max-width: 1024px) {
  .mega.mega--list { width: min(300px, 94vw); }
}
