/* Meridian Frontier — Corporate B2B */
:root {
  --blue: #0087C0;
  --blue-dark: #006994;
  --blue-deep: #0a4f6e;
  --blue-soft: #e6f4f9;
  --blue-mid: #3aa0c8;
  --green: #00735F;
  --green-soft: #e6f3ef;
  --ink: #1a1a1a;
  --ink-2: #333;
  --muted: #5c6670;
  --line: #e2e8ee;
  --bg: #ffffff;
  --bg-alt: #f7f9fb;
  --shadow: 0 12px 40px rgba(14, 74, 130, 0.08);
  --radius: 12px;
  --max: 1120px;
  --header-h: 78px;
  --font: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-dark); }
ul { list-style: none; }
.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px; color: inherit; flex-shrink: 0;
}
.brand img.logo-mark {
  width: 48px; height: 48px; object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text .en {
  font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--ink);
}
.brand-text .zh { font-size: 11px; color: var(--muted); margin-top: 2px; }

.nav-desktop { display: flex; align-items: center; gap: 26px; }
.nav-desktop a {
  color: var(--ink-2); font-size: 14px; font-weight: 500;
  letter-spacing: .02em;
}
.nav-desktop a:hover, .nav-desktop a.active { color: var(--blue); }

.lang-switch {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; font-size: 12px; font-weight: 600;
}
.lang-switch a {
  padding: 6px 12px; color: var(--muted); background: #fff;
}
.lang-switch a.active {
  background: var(--blue); color: #fff;
}
.lang-switch a:not(.active):hover { background: var(--blue-soft); color: var(--blue); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: 14px;
  border: none; cursor: pointer; transition: .2s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-outline {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.7);
}
.btn-outline:hover { background: #fff; color: var(--blue); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #255a42; color: #fff; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 1px;
}

.mobile-nav {
  display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
  background: #fff; border-bottom: 1px solid var(--line); padding: 16px 20px 24px;
  box-shadow: var(--shadow);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 12px 4px; color: var(--ink-2); font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .lang-row { display: flex; gap: 10px; margin-top: 16px; align-items: center; flex-wrap: wrap; }

/* Hero */
.hero {
  position: relative; min-height: clamp(540px, 80vh, 740px);
  display: flex; align-items: center; color: #fff; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: var(--blue-deep) center/cover no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(105deg,
      rgba(10,79,110,.82) 0%,
      rgba(0,135,192,.62) 45%,
      rgba(0,115,95,.48) 100%),
    linear-gradient(to top, rgba(8,40,55,.62) 0%, transparent 45%);
}
.hero-content { position: relative; z-index: 1; padding: 88px 0 76px; max-width: 740px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.9); margin-bottom: 18px;
  text-shadow: 0 1px 8px rgba(0,0,0,.25);
}
.hero-eyebrow::before {
  content: ""; width: 28px; height: 2px; background: #fff; opacity: .85;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 750; line-height: 1.15;
  letter-spacing: -.02em; margin-bottom: 10px;
  text-shadow: 0 2px 18px rgba(0,0,0,.28);
}
.hero .h1-zh {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-weight: 500;
  opacity: .94; margin-bottom: 22px;
  text-shadow: 0 1px 10px rgba(0,0,0,.25);
}
.hero-tagline {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem); font-weight: 500;
  line-height: 1.5; max-width: 34em; margin-bottom: 10px;
  text-shadow: 0 1px 10px rgba(0,0,0,.22);
}
.hero-tagline-zh {
  font-size: .98rem; opacity: .92; margin-bottom: 32px; max-width: 36em;
  text-shadow: 0 1px 8px rgba(0,0,0,.2);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  margin-top: 48px; background: rgba(255,255,255,.15);
  border-radius: var(--radius); overflow: hidden;
  backdrop-filter: blur(10px);
}
.hero-stat {
  background: rgba(255,255,255,.1); padding: 22px 20px; text-align: center;
}
.hero-stat strong {
  display: block; font-size: 1.05rem; font-weight: 700; margin-bottom: 4px;
}
.hero-stat span { font-size: 12px; opacity: .88; }

/* Section chrome */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }
.section-quiet { background: #fafbfc; padding: 64px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head {
  display: grid; grid-template-columns: auto 1fr; gap: 20px 28px;
  align-items: end; margin-bottom: 48px;
}
.section-num {
  font-size: clamp(3.5rem, 7vw, 5.5rem); font-weight: 800; line-height: .85;
  color: var(--blue); letter-spacing: -.04em;
}
.section-titles { border-left: 3px solid var(--blue); padding-left: 20px; }
.section-kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 6px;
}
.section-titles h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 750; letter-spacing: -.02em;
  line-height: 1.2; color: var(--ink);
}
.section-titles .h2-zh {
  font-size: 1.05rem; color: var(--muted); font-weight: 500; margin-top: 6px;
}
.lead { font-size: 1.08rem; color: var(--ink-2); max-width: 52em; }
.lead + .lead { margin-top: 14px; }
.muted { color: var(--muted); }

/* About */
.about-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: stretch;
}
.about-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.about-card h3 {
  font-size: 1.05rem; margin-bottom: 10px; color: var(--blue-deep);
}
.about-card p, .about-card li { font-size: .96rem; color: var(--ink-2); }
.about-card ul { margin-top: 10px; }
.about-card li {
  padding: 8px 0 8px 18px; position: relative; border-bottom: 1px solid var(--line);
}
.about-card li:last-child { border-bottom: 0; }
.about-card li::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
}
.about-visual {
  border-radius: var(--radius); overflow: hidden; position: relative; min-height: 360px;
  box-shadow: var(--shadow);
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.about-visual .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 22px; background: linear-gradient(transparent, rgba(14,74,130,.9));
  color: #fff; font-size: .92rem;
}
.facts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px;
}
.fact {
  background: var(--blue-soft); border-radius: 10px; padding: 18px 16px;
}
.fact .label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 6px;
}
.fact .value { font-size: .95rem; font-weight: 600; color: var(--ink); line-height: 1.4; }

/* Products */
.products-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s;
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(14,74,130,.12);
}
.product-card .thumb {
  aspect-ratio: 4/3; overflow: hidden; background: var(--bg-alt); position: relative;
}
.product-card .thumb img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease;
}
.product-card:hover .thumb img { transform: scale(1.04); }
.product-card .thumb-note {
  position: absolute; left: 10px; bottom: 10px;
  font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.88); background: rgba(8,53,72,.55);
  padding: 4px 8px; border-radius: 4px; backdrop-filter: blur(4px);
}
.product-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.product-body .idx {
  font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: .12em;
  margin-bottom: 8px;
}
.product-body h3 {
  font-size: 1.2rem; font-weight: 700; margin-bottom: 4px;
}
.product-body .zh-name {
  font-size: .95rem; color: var(--muted); margin-bottom: 12px;
}
.product-body p { font-size: .94rem; color: var(--ink-2); flex: 1; }

/* Capabilities */
.cap-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.trust-band {
  margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.trust-item {
  background: linear-gradient(145deg, var(--blue-deep), var(--blue));
  color: #fff; border-radius: var(--radius); padding: 24px 22px;
}
.trust-item.green {
  background: linear-gradient(145deg, #1f4d38, var(--green));
}
.trust-item strong { display: block; font-size: 1rem; margin-bottom: 6px; }
.trust-item span { font-size: .9rem; opacity: .9; }

.cap-grid.cap-photos {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.cap-photo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 240px; color: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow); display: flex; align-items: flex-end;
}
.cap-photo .cap-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .45s ease;
}
.cap-photo:hover .cap-bg { transform: scale(1.05); }
.cap-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,53,72,.92) 0%, rgba(8,53,72,.4) 55%, rgba(8,53,72,.18) 100%);
}
.cap-photo .cap-body {
  position: relative; z-index: 1; padding: 24px 24px 26px; width: 100%;
}
.cap-photo h3 { font-size: 1.15rem; margin-bottom: 4px; color: #fff; }
.cap-photo .zh { font-size: .88rem; opacity: .85; margin-bottom: 10px; color: #fff; }
.cap-photo p { font-size: .94rem; opacity: .94; color: #fff; max-width: 40em; line-height: 1.55; }

/* Photo strip under products */
.photo-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 40px;
}
.photo-strip figure {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/10; position: relative; box-shadow: var(--shadow);
}
.photo-strip img { width: 100%; height: 100%; object-fit: cover; }
.photo-strip figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 12px 14px; font-size: .8rem; color: #fff;
  background: linear-gradient(transparent, rgba(8,53,72,.85));
}

/* SOE Partnership — designed logo background */
.cap-bg.cap-bg-soe {
  background:
    linear-gradient(145deg, #0a4f6e 0%, #0087C0 48%, #00735F 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: none !important;
}
.cap-photo:hover .cap-bg.cap-bg-soe { transform: none; }
.cap-bg-soe .soe-logos {
  position: relative; z-index: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 22px;
  width: min(92%, 520px);
  padding: 28px 20px 72px;
  align-items: center;
  justify-items: center;
}
.cap-bg-soe .soe-logos img {
  width: 100%;
  max-width: 96px;
  height: 58px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.35) contrast(.85);
  opacity: .38;
  mix-blend-mode: screen;
}

/* Contact — compact two-column */
.contact-band {
  background: linear-gradient(120deg, var(--blue-deep) 0%, var(--blue) 55%, var(--green) 100%);
  color: #fff; padding: 72px 0; position: relative; overflow: hidden;
}
.contact-band::before {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.contact-band .section-head { margin-bottom: 32px; }
.contact-band .section-num { color: rgba(255,255,255,.35); }
.contact-band .section-titles { border-left-color: rgba(255,255,255,.5); }
.contact-band .section-kicker,
.contact-band .section-titles h2,
.contact-band .h2-zh { color: #fff; }
.contact-band .h2-zh { opacity: .85; }

.contact-layout {
  display: grid; grid-template-columns: .95fr 1.05fr; gap: 18px; align-items: start;
}
.contact-info {
  display: grid; gap: 12px;
}
.office-card, .inquiry-card {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius); padding: 28px; backdrop-filter: blur(6px);
}
.office-card.compact, .inquiry-card.compact {
  padding: 16px 18px 18px;
}
.office-card h3, .inquiry-card h3 {
  font-size: 1.02rem; margin-bottom: 2px;
}
.office-card .zh-label, .inquiry-card .zh-label {
  font-size: .84rem; opacity: .85; margin-bottom: 10px;
}
.contact-row {
  display: grid; gap: 3px; margin-bottom: 10px; font-size: .9rem;
}
.contact-row:last-child { margin-bottom: 0; }
.contact-row .label {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  opacity: .7;
}
.contact-row a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.contact-row a:hover { opacity: .85; }

.inquiry-form { display: grid; gap: 10px; }
.inquiry-form .form-row-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.inquiry-form label {
  display: grid; gap: 4px; font-size: 11px; font-weight: 600; letter-spacing: .04em;
}
.inquiry-form input,
.inquiry-form textarea,
.inquiry-form select {
  width: 100%; padding: 9px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12); color: #fff; font: inherit; font-size: .92rem;
}
.inquiry-form input::placeholder,
.inquiry-form textarea::placeholder { color: rgba(255,255,255,.55); }
.inquiry-form input:focus,
.inquiry-form textarea:focus,
.inquiry-form select:focus {
  outline: 2px solid rgba(255,255,255,.45); border-color: transparent;
}
.inquiry-form select option { color: var(--ink); }
.inquiry-form .hint { font-size: .76rem; opacity: .75; font-weight: 400; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; }

/* Footer */
.site-footer {
  background: #083548; color: rgba(255,255,255,.78); padding: 48px 0 28px;
  font-size: .9rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 36px;
}
.footer-brand .name {
  color: #fff; font-weight: 700; letter-spacing: .08em; font-size: .95rem;
  margin-bottom: 6px;
}
.footer-brand .zh-name { margin-bottom: 0; }
.footer-brand p { max-width: 36em; line-height: 1.6; }
.footer-col h4 {
  color: #fff; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col a, .footer-col p {
  display: block; color: rgba(255,255,255,.75); margin-bottom: 8px;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-size: .82rem;
}
.footer-brand-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.footer-brand-row img { width: 40px; height: 40px; object-fit: contain; }

/* Language chooser (root index) */
.chooser {
  min-height: 100vh; display: grid; place-items: center;
  background:
    linear-gradient(135deg, rgba(10,79,110,.88), rgba(0,115,95,.70)),
    url("../img/hero-skyline.jpg") center/cover;
  color: #fff; text-align: center; padding: 40px 20px;
}
.chooser-box { max-width: 520px; }
.chooser-logo { width: 88px; height: 88px; margin: 0 auto 18px; object-fit: contain; }
.chooser h1 {
  font-size: 1.6rem; letter-spacing: .12em; font-weight: 750; margin-bottom: 6px;
}
.chooser .zh { opacity: .9; margin-bottom: 18px; }
.chooser .tag { font-size: 1rem; opacity: .9; margin-bottom: 32px; line-height: 1.5; }
.chooser-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.chooser-actions a {
  min-width: 160px; padding: 14px 24px; border-radius: 8px; font-weight: 700;
  background: #fff; color: var(--blue-deep);
}
.chooser-actions a.secondary {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.7);
}
.chooser-actions a:hover { transform: translateY(-2px); }

/* Utilities */
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

@media (max-width: 960px) {
  .about-grid, .contact-layout,
  .footer-grid, .facts, .trust-band, .products-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-layout { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .cap-bg-soe .soe-logos { gap: 12px 14px; padding-bottom: 64px; }
}
@media (max-width: 820px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .about-grid, .contact-layout, .products-grid,
  .footer-grid, .facts, .trust-band, .cap-grid {
    grid-template-columns: 1fr;
  }
  .inquiry-form .form-row-2 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .section-quiet { padding: 48px 0; }
  .contact-band { padding: 56px 0; }
  .section-head { grid-template-columns: 1fr; gap: 8px; }
  .section-num { font-size: 3rem; }
  .about-visual { min-height: 260px; }
  .cap-grid.cap-photos { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: 1fr; }
  .cap-photo { min-height: 210px; }
  .cap-bg-soe .soe-logos { grid-template-columns: repeat(2, 1fr); }
  .brand img.logo-mark { width: 42px; height: 42px; }
}
