/* ===== Inline Group — firmus-inspired theme ===== */
:root {
  --bg:        #0f1c3a;
  --bg-alt:    #14254a;
  --panel:     #1a2f5a;
  --line:      rgba(255,255,255,0.10);
  --text:      #eef2f4;
  --muted:     #a6b4cc;
  --accent:    #d6ab84;
  --accent-2:  #e7c9a8;
  --maxw:      1180px;
  --r:         16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---- Type helpers ---- */
.eyebrow {
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.section__title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -.02em;
}
.lead { font-size: 1.2rem; color: var(--text); margin-bottom: 1rem; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--accent); color: #15284d;
  font-family: "Space Grotesk", sans-serif; font-weight: 600;
  padding: .85rem 1.5rem; border-radius: 100px;
  font-size: .95rem; border: none; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(214,171,132,.28); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--accent); box-shadow: none; color: var(--accent); }
.btn--sm { padding: .6rem 1.15rem; font-size: .85rem; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.05rem; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(13,24,49,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo img { height: 62px; width: auto; display: block; }
.footer .nav__logo img { height: 72px; }
.nav__links { display: flex; gap: 2rem; }
.nav__links a { color: var(--muted); font-size: .92rem; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__burger span { width: 24px; height: 2px; background: var(--text); transition: .3s; }

/* ===== HERO ===== */
.hero { position: relative; padding: 180px 0 90px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05); filter: saturate(1.05);
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 70% 0%, rgba(214,171,132,.18), transparent 60%),
    linear-gradient(180deg, rgba(13,24,49,.72) 0%, rgba(13,24,49,.86) 55%, var(--bg) 100%);
}
.hero__inner { position: relative; z-index: 1; max-width: 940px; }
.hero__title {
  font-family: "Space Grotesk", sans-serif; font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.02;
  letter-spacing: -.03em; margin-bottom: 1.5rem;
}
.hero__lead { font-size: 1.3rem; color: var(--muted); max-width: 640px; margin-bottom: 2.2rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 4.5rem; }
.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  border-top: 1px solid var(--line); padding-top: 2.2rem; }
.stat { display: flex; flex-direction: column; gap: .35rem; }
.stat__num { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--text); }
.stat__label { font-size: .85rem; color: var(--muted); }

/* ===== SECTIONS ===== */
.section { padding: 110px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin-bottom: 3.5rem; }
.section__head .lead { color: var(--muted); margin-top: 1rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3.5rem; align-items: center; }
.grid-2--top { align-items: start; }

/* ---- Cards (What we do) ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); padding: 2rem 1.8rem;
  transition: transform .3s ease, border-color .3s ease, background .3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(214,171,132,.4); background: #161e26; }
.card__no { font-family: "Space Grotesk", sans-serif; color: var(--accent); font-size: .9rem; font-weight: 600; }
.card h3 { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.3rem; margin: .8rem 0 .6rem; }
.card p { color: var(--muted); font-size: .98rem; }

/* ---- Industries ---- */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.industry {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r);
  min-height: 360px; display: flex;
  background-size: cover; background-position: center;
  transition: border-color .3s, transform .3s;
}
.industry::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,24,49,.15) 0%, rgba(13,24,49,.55) 45%, rgba(9,17,36,.94) 100%);
  transition: background .3s;
}
.industry:hover { border-color: rgba(214,171,132,.5); transform: translateY(-6px); }
.industry:hover::after { background: linear-gradient(180deg, rgba(13,24,49,.1) 0%, rgba(13,24,49,.5) 45%, rgba(9,17,36,.92) 100%); }
.industry__body { position: relative; z-index: 1; margin-top: auto; padding: 2.2rem 2rem; display: flex; flex-direction: column; gap: .7rem; }
.industry h3 { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.7rem; }
.industry p { color: #cfd8de; font-size: .98rem; }

/* ---- Clients ---- */
.clients { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.client { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 0; overflow: hidden; transition: transform .3s, border-color .3s; }
.client:hover { transform: translateY(-6px); border-color: rgba(214,171,132,.4); }
.client__logo {
  display: flex; align-items: center; justify-content: center;
  height: 110px; padding: 0 2rem;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.01));
  border-bottom: 1px solid var(--line);
}
.client__logo img { max-height: 38px; max-width: 78%; width: auto; object-fit: contain; opacity: .95; transition: opacity .3s, transform .3s; }
.clients .client:nth-child(2) .client__logo img { max-height: 28px; } /* LIVONE */
.clients .client:nth-child(3) .client__logo img { max-height: 26px; } /* TECCO */
.client:hover .client__logo img { opacity: 1; transform: scale(1.04); }
.client__tag { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin: 1.6rem 1.8rem .6rem; }
.client p { color: var(--muted); font-size: .96rem; margin: 0 1.8rem 2rem; }

/* ---- Sourcing strength ---- */
.bignum { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: clamp(4rem, 11vw, 8rem); line-height: 1; letter-spacing: -.04em; color: var(--accent); margin: 1.5rem 0 1rem; }
.featurelist { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }
.feature { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.feature h4 { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.15rem; margin-bottom: .5rem; }
.feature p { color: var(--muted); font-size: .95rem; }

/* ---- Value list ---- */
.value { display: grid; gap: 0; }
.value__row { display: grid; grid-template-columns: 80px 1fr; gap: 1.5rem; padding: 1.8rem 0; border-top: 1px solid var(--line); align-items: baseline; transition: padding-left .3s; }
.value__row:last-child { border-bottom: 1px solid var(--line); }
.value__row:hover { padding-left: 12px; }
.value__no { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.4rem; color: var(--accent); }
.value__row h3 { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.4rem; margin-bottom: .3rem; }
.value__row p { color: var(--muted); }

/* ===== CTA ===== */
.cta { position: relative; padding: 130px 0; text-align: center; overflow: hidden; border-top: 1px solid var(--line); }
.cta__glow { position: absolute; bottom: -40%; left: 50%; transform: translateX(-50%); width: 1200px; height: 800px; background: radial-gradient(ellipse at center, rgba(214,171,132,.14), transparent 60%); pointer-events: none; }
.cta__inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.cta__title { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.12; letter-spacing: -.02em; margin-bottom: 2.5rem; }
.cta__contacts { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.contactline { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.8rem; text-align: left; min-width: 240px; transition: border-color .3s, transform .3s; }
.contactline:hover { border-color: var(--accent); transform: translateY(-3px); }
.contactline__label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.contactline__value { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.15rem; }

/* ===== FOOTER ===== */
.footer { padding: 48px 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer__tag { color: var(--muted); font-size: .9rem; margin-top: .5rem; }
.footer__right { text-align: right; }
.footer__copy { color: var(--muted); font-size: .85rem; }
.footer__addr { display: inline-block; margin-top: .45rem; color: var(--muted); font-size: .85rem; transition: color .2s; }
.footer__addr:hover { color: var(--accent); }
@media (max-width: 720px) { .footer__right { text-align: left; } }

/* ===== Media images ===== */
.grid-2--media { align-items: center; }
.media { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media--inset { margin-top: 2rem; max-height: 260px; }

/* ===== Cargo / Logistics band ===== */
.cargo { position: relative; padding: 120px 0 110px; overflow: hidden; }
.cargo__bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.cargo__overlay { position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(13,24,49,.78) 30%, rgba(13,24,49,.82) 100%); }
.cargo__inner { position: relative; z-index: 1; max-width: 760px; margin-bottom: 3rem; }
.cargo__inner .lead { color: #d3dce2; margin-top: 1rem; }
.cargo__gallery { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.shot { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); margin: 0; aspect-ratio: 4/3; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.shot:hover img { transform: scale(1.06); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.2rem 1.3rem .9rem;
  font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.02rem;
  background: linear-gradient(180deg, transparent, rgba(9,17,36,.9));
}

/* ===== Nav right + language switcher ===== */
.nav__right { display: flex; align-items: center; gap: 1rem; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 100px; overflow: hidden; }
.lang__btn {
  background: transparent; border: none; cursor: pointer;
  color: var(--muted); font-family: "Space Grotesk", sans-serif; font-weight: 600;
  font-size: .82rem; padding: .42rem .7rem; transition: color .2s, background .2s; line-height: 1;
}
.lang__btn:hover { color: var(--text); }
.lang__btn.is-active { background: var(--accent); color: #15284d; }

/* ===== Chinese typography ===== */
html[data-lang="sc"] body { font-family: "Noto Sans SC", "Inter", system-ui, sans-serif; }
html[data-lang="tc"] body { font-family: "Noto Sans TC", "Inter", system-ui, sans-serif; }
html[data-lang="sc"] .section__title, html[data-lang="sc"] .hero__title, html[data-lang="sc"] .cta__title,
html[data-lang="sc"] .card h3, html[data-lang="sc"] .industry h3, html[data-lang="sc"] .value__row h3,
html[data-lang="sc"] .feature h4, html[data-lang="sc"] .shot figcaption { font-family: "Noto Sans SC", sans-serif; letter-spacing: 0; }
html[data-lang="tc"] .section__title, html[data-lang="tc"] .hero__title, html[data-lang="tc"] .cta__title,
html[data-lang="tc"] .card h3, html[data-lang="tc"] .industry h3, html[data-lang="tc"] .value__row h3,
html[data-lang="tc"] .feature h4, html[data-lang="tc"] .shot figcaption { font-family: "Noto Sans TC", sans-serif; letter-spacing: 0; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav__links, .nav .btn--sm { display: none; }
  .nav__burger { display: flex; }
  .nav__links.open {
    display: flex; flex-direction: column; position: absolute; top: 74px; left: 0; right: 0;
    background: rgba(13,24,49,.97); backdrop-filter: blur(14px);
    padding: 1.5rem 28px; gap: 1.2rem; border-bottom: 1px solid var(--line);
  }
  .grid-2, .cards, .industries, .clients, .featurelist, .cargo__gallery { grid-template-columns: 1fr; }
  .grid-2--media .media { order: -1; max-height: 320px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
  .section { padding: 80px 0; }
  .hero { padding: 130px 0 36px; }
  #about { padding-top: 28px; }
}
@media (max-width: 520px) {
  .hero__stats { grid-template-columns: 1fr; }
  .value__row { grid-template-columns: 56px 1fr; gap: 1rem; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
