/* ===== Xe nâng Trường Giang – UN Forklift ===== */
:root {
  --yellow: #e5a81f;
  --yellow-dark: #b98410;
  --yellow-soft: #fdd478;
  --ink: #17191c;
  --ink-2: #20160b;
  --text: #55585e;
  --muted: #83868c;
  --line: #dbdcdf;
  --bg: #f3f5f6;
  --bg-2: #edeef0;
  --dark: #1b1e24;
  --dark-2: #15171c;
  --white: #fff;
  --container: 1280px;
  --font-body: "Be Vietnam Pro", system-ui, sans-serif;
  --font-head: "Bricolage Grotesque", "Be Vietnam Pro", sans-serif;
  --font-display: "Phudu", "Be Vietnam Pro", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-family: var(--font-head); }
p { margin: 0; }

.container { width: 100%; max-width: calc(var(--container) + 32px); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { max-width: calc(var(--container) + 80px); padding: 0 40px; } }

.icon { width: 1em; height: 1em; flex: none; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(237, 238, 240, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 73px; }
.logo img { width: 119px; height: 50px; object-fit: contain; }

.nav { display: flex; gap: 32px; }
.nav a { font-size: 14.4px; font-weight: 500; color: var(--ink); position: relative; padding: 4px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 13.6px;
  padding: 12px 20px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--yellow { background: var(--yellow); color: var(--ink-2); border-color: #000; }
.btn--yellow:hover { background: #f0b52d; box-shadow: 0 6px 16px rgba(229, 168, 31, .35); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #000; }
.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }

.menu-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink);
}
.menu-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .header .btn--yellow { display: none; }
  .nav {
    position: absolute; top: 73px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.is-open { max-height: 320px; }
  .nav a { padding: 14px 23px; border-top: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .nav__cta { display: block; background: var(--yellow); color: var(--ink-2); font-weight: 600; }
}
@media (min-width: 861px) { .nav .nav__cta { display: none; } }

/* ---------- Eyebrow + section headings ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--yellow); }
.section { padding: 88px 0; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }
.h2 { font-size: clamp(28px, 4vw, 38.4px); font-weight: 800; line-height: 1.07; margin-top: 18px; letter-spacing: -.01em; }
.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14.4px; color: var(--ink); }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Home hero ---------- */
.hero { background: var(--bg); padding: 66px 0 46px; }
.hero__grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center;
}
.hero__text { padding: 0; }
.hero__title { font-family: var(--font-body); font-weight: 800; font-size: clamp(30px, 3.1vw, 40px); line-height: 1.12; margin: 22px 0 18px; letter-spacing: -.01em; }
.hero__title span { color: var(--yellow); display: block; }
.hero__desc { font-size: 15px; max-width: 470px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 32px 0 44px; }
.hero__actions .btn { font-size: 14px; padding: 14px 22px; }
.hero__features { display: flex; flex-wrap: wrap; gap: 14px 0; }
.hero__features li {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink); white-space: nowrap;
  padding: 0 14px; border-left: 1px solid var(--line);
}
.hero__features li:first-child { padding-left: 0; border-left: 0; }
.hero__features .icon { width: 22px; height: 22px; }
.hero__features { list-style: none; margin: 0; padding: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 824 / 666; }

@media (max-width: 860px) {
  .hero { padding: 40px 0 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 0; }
  .hero__text { padding: 0 0 40px; }
  .hero__media { margin: 0 -40px; }
}
@media (max-width: 767px) { .hero__media { margin: 0 -16px; } }

/* ---------- Page hero (products) ---------- */
.page-hero img { width: 100%; height: clamp(320px, 62vh, 640px); object-fit: cover; object-position: center 60%; }

/* ---------- Stats ---------- */
.stats { background: var(--dark); padding: 46px 0; }
.stats__grid { display: flex; justify-content: space-around; gap: 24px; flex-wrap: wrap; }
.stat { display: flex; align-items: center; gap: 10px; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: 40px; line-height: 1; color: var(--yellow); }
.stat__label { font-size: 13.8px; line-height: 1.4; color: #a7abb3; }

/* ---------- Product cards (home) ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
  background: var(--white); border: 1px solid var(--line); padding: 31px;
  display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: var(--yellow); box-shadow: 0 14px 34px rgba(23, 25, 28, .08); transform: translateY(-2px); }
.card__icon { width: 46px; height: 46px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--yellow-dark); margin-bottom: 18px; }
.card__icon .icon { width: 24px; height: 24px; }
.card h3 { font-size: 20px; font-weight: 700; line-height: 1.1; margin-bottom: 10px; }
.card p { font-size: 14.1px; line-height: 1.65; }
.card ul { list-style: none; padding: 0; margin: 18px 0 20px; }
.card li { position: relative; padding-left: 16px; font-size: 13.1px; line-height: 2.2; }
.card li::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 1px; background: var(--yellow); }
.card .link-arrow { margin-top: auto; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 40px 0 0; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } .card { padding: 24px; } }

/* ---------- About (home) ---------- */
.about { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about__text p { font-size: 16px; line-height: 1.65; margin-top: 40px; white-space: pre-line; }
.feature-list { display: grid; gap: 14px; margin-top: 64px; }
.feature {
  display: flex; gap: 15px; padding: 20px 21px; background: var(--bg-2); border: 1px solid var(--line);
}
.feature .icon { width: 22px; height: 22px; color: var(--yellow-dark); margin-top: 1px; }
.feature h4 { font-size: 15.2px; font-weight: 700; margin-bottom: 6px; }
.feature p { font-size: 13.1px; line-height: 1.65; }
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .feature-list { margin-top: 0; }
}

/* ---------- Services ---------- */
.services__intro { font-size: 16px; max-width: 600px; margin-top: 16px; }
.services .h2 { font-size: 24px; }
.service-list { margin-top: 48px; border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 252px 1fr; gap: 16px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.service h3 { font-size: 19.2px; font-weight: 700; }
.service p { font-size: 14.4px; line-height: 1.65; padding-top: 3px; }
@media (max-width: 700px) { .service { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Product rows (products page) ---------- */
.product-row {
  display: grid; grid-template-columns: 479px 1fr; gap: 24px;
  background: var(--bg-2); padding: 12px; box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}
.product-row + .product-row { margin-top: 72px; }
.product-row__img { background: var(--white); display: grid; place-items: center; }
.product-row__img img { width: 100%; aspect-ratio: 479 / 319; object-fit: contain; }
.product-row__body { position: relative; padding: 14px 8px 8px; display: flex; flex-direction: column; }
.product-row h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 4vw, 48px); line-height: 1; text-transform: uppercase; }
.product-row ul { list-style: none; margin: 18px 0 8px 26px; padding: 0; }
.product-row li { font-family: "Philosopher", serif; font-weight: 700; font-size: 20px; color: #000; line-height: 2.5; }
.product-row__load { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #000; margin-left: 26px; }
.btn-pill {
  position: absolute; right: 0; bottom: 0;
  font-family: var(--font-display); font-weight: 800; font-size: 32px; color: #000;
  background: var(--yellow-soft); border-radius: 39px; padding: 4px 36px; line-height: 55px;
  transition: background .2s, transform .15s;
}
.btn-pill:hover { background: var(--yellow); transform: translateY(-2px); }
@media (max-width: 900px) {
  .product-row { grid-template-columns: 1fr; }
  .product-row__body { padding: 8px 8px 12px; }
  .product-row ul { margin-left: 0; }
  .product-row li { font-size: 18px; line-height: 2.1; }
  .product-row__load { margin-left: 0; }
  .btn-pill { position: static; align-self: flex-start; margin-top: 18px; font-size: 26px; line-height: 48px; }
}

/* ---------- About page ---------- */
.about-page { background: var(--bg-2); padding: 56px 0 120px; }
.about-page__title {
  display: flex; align-items: center; gap: 22px;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4vw, 40px); color: var(--ink); text-transform: uppercase;
}
.about-page__title::before { content: ""; width: 55px; height: 8px; background: var(--yellow); flex: none; margin-left: -18px; }
.about-page__text { padding: 0 60px; margin-top: 22px; }
.about-page__text p { font-size: clamp(18px, 2.6vw, 32px); line-height: 1.25; color: var(--text); }
.about-page__text p + p { margin-top: 1.9em; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 29px 26px; padding: 0 60px; margin-top: 150px; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .3s; }
.gallery figure { margin: 0; overflow: hidden; }
.gallery figure:hover img { transform: scale(1.04); }
@media (max-width: 760px) {
  .about-page { padding: 40px 0 72px; }
  .about-page__title::before { margin-left: 0; width: 36px; height: 6px; }
  .about-page__text, .gallery { padding: 0; }
  .gallery { grid-template-columns: 1fr; margin-top: 48px; gap: 16px; }
}

/* ---------- Footer ---------- */
.footer { background: var(--yellow); color: var(--ink); padding: 52px 0 44px; scroll-margin-top: 73px; }
.footer__grid { display: grid; grid-template-columns: 367px 1fr 1fr 1fr; gap: 24px; }
.footer__brand img { width: 119px; height: 50px; object-fit: contain; margin-top: -8px; }
.footer__brand p { font-size: 13.3px; margin-top: 14px; max-width: 280px; }
.footer h5 { font-size: 11.2px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; color: var(--ink); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { font-size: 13.3px; line-height: 22px; margin-bottom: 8px; }
.footer a:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- Tối ưu điện thoại ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.hero__title, .h2 { text-wrap: balance; }

@media (max-width: 860px) {
  .header__inner { height: 64px; }
  .logo img { width: 100px; height: 42px; }
  .nav { top: 64px; }
  .footer { scroll-margin-top: 64px; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .section { padding: 52px 0; }
  .section__head { margin-bottom: 26px; }
  .h2 { margin-top: 12px; }

  /* Hero */
  .hero { padding: 28px 0 0; }
  .hero__text { padding: 0 0 28px; }
  .hero__title { font-size: clamp(22px, 6.9vw, 29px); margin: 14px 0 12px; }
  .hero__desc { font-size: 14.5px; }
  .hero__actions { margin: 22px 0 24px; gap: 10px; }
  .hero__actions .btn { flex: 1 1 0; justify-content: center; padding: 13px 10px; font-size: 13.5px; }
  .hero__features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); background: var(--white); }
  .hero__features li {
    flex-direction: column; text-align: center; gap: 6px; white-space: normal;
    padding: 12px 6px; font-size: 11.5px; line-height: 1.3; border-left: 1px solid var(--line);
  }
  .hero__features li:first-child { padding-left: 6px; }
  .hero__features .icon { width: 20px; height: 20px; }

  /* Số liệu */
  .stats { padding: 26px 0; }
  .stats__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { flex-direction: column; align-items: flex-start; gap: 6px; }
  .stat + .stat { border-left: 1px solid #333844; padding-left: 16px; }
  .stat__num { font-size: 32px; }
  .stat__label { font-size: 12.5px; }

  /* Thẻ sản phẩm, về chúng tôi, dịch vụ */
  .card { padding: 22px 20px; }
  .card h3 { font-size: 19px; }
  .card ul { margin: 12px 0 14px; }
  .divider { margin-top: 28px; }
  .about__text p { margin-top: 20px; font-size: 15px; }
  .feature { padding: 16px; gap: 12px; }
  .service { padding: 18px 0; }
  .service h3 { font-size: 17.5px; }
  .service p { font-size: 14px; }
  .service-list { margin-top: 28px; }

  /* Trang sản phẩm */
  .page-hero img { height: auto; aspect-ratio: 4 / 3; }
  .product-row { padding: 10px; gap: 12px; }
  .product-row + .product-row { margin-top: 28px; }
  .product-row__body { padding: 4px 6px 8px; }
  .product-row h3 { font-size: 30px; }
  .product-row ul { margin: 12px 0 10px; }
  .product-row li { font-size: 16.5px; line-height: 1.5; padding: 5px 0 5px 18px; position: relative; }
  .product-row li::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 2px; background: var(--yellow); }
  .product-row__load { font-size: 17px; }
  .btn-pill { align-self: stretch; text-align: center; font-size: 24px; line-height: 50px; margin-top: 16px; }

  /* Trang về chúng tôi */
  .about-page { padding: 32px 0 56px; }
  .about-page__title { gap: 14px; }
  .about-page__text { margin-top: 16px; }
  .about-page__text p { font-size: 16px; line-height: 1.65; }
  .about-page__text p + p { margin-top: 1em; }
  .gallery { margin-top: 32px; gap: 12px; }

  /* Footer */
  .footer { padding: 40px 0 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer__grid > div:last-child { grid-column: 1 / -1; }
  .footer li { margin-bottom: 6px; }
  .footer li a { display: inline-block; padding: 3px 0; }
}

/* ---------- Reveal on scroll ---------- */
/* Chỉ ẩn khi JS đã chạy (main.js thêm class "js"), nên thiếu JS nội dung vẫn hiện */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
