/* ===== Tín Phong – TPSVN.NET ===== */
:root {
  /* Màu thương hiệu TPS: cam gradient #E2461A → #F07A10 */
  --brand-1: #e2461a;
  --brand-2: #f07a10;
  --brand-grad: linear-gradient(120deg, var(--brand-1), var(--brand-2));
  --primary: #24313d;
  --primary-dark: #18222c;
  --accent: #e8560f;
  --accent-hover: #c94608;
  --accent-light: #fff0e5;
  --ink: #1b2630;
  --muted: #5f6b75;
  --line: #ece7e3;
  --bg: #ffffff;
  --bg-alt: #faf6f3;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(60, 30, 10, .08);
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 16px; }
h3 { font-size: 1.12rem; margin-bottom: 8px; }
p { color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border: 2px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit; font-size: 1rem;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn { background: var(--brand-grad); border-color: transparent; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(232,86,15,.3); }
.btn--ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--ghost:hover { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: none; }
.btn--sm { padding: 9px 18px; font-size: .92rem; }
.btn--full { width: 100%; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(0,0,0,.04); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: flex; align-items: center; gap: 10px; }
/* Logo ảnh vuông có nhiều nền trắng: cắt bằng CSS để chỉ hiện phần "TPS We.Resin" */
.logo__img {
  position: relative; display: block;
  height: 46px; aspect-ratio: 795 / 465;
  overflow: hidden; flex-shrink: 0;
}
.logo__img img {
  position: absolute; max-width: none;
  width: 128.8%; left: -12.6%; top: -57%;
}
.logo__img--badge {
  height: 54px; background: #fff; border-radius: 10px;
  box-sizing: content-box; padding: 6px 10px;
}.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text strong { font-size: 1.1rem; color: var(--primary-dark); letter-spacing: .04em; }
.logo__text small { font-size: .74rem; color: var(--muted); }
.logo--light .logo__text strong { color: #fff; }
.logo--light .logo__text small { color: #9fb6c4; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { font-weight: 500; color: var(--ink); position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--accent); transition: width .2s;
}
.nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(240,122,16,.14), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(226,70,26,.08), transparent 40%),
    var(--bg-alt);
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; color: var(--primary-dark); margin-bottom: 20px; }
.hero h1 span { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: 1.12rem; max-width: 540px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }
.hero__stats { list-style: none; display: flex; gap: 40px; flex-wrap: wrap; }
.hero__stats strong { display: inline; font-size: 2rem; font-weight: 800; color: var(--primary); }
.hero__stats span { display: block; color: var(--muted); font-size: .92rem; }

.hero__visual { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: center; width: 100%; }
.pellets {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #e3eef5);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}
.p {
  position: absolute; border-radius: 50%;
  box-shadow: inset -6px -8px 14px rgba(0,0,0,.12), inset 6px 6px 12px rgba(255,255,255,.6), 0 10px 20px rgba(0,0,0,.08);
  animation: float 6s ease-in-out infinite;
}
.p1 { width: 22%; height: 18%; top: 18%; left: 22%; background: #f5f7f8; }
.p2 { width: 16%; height: 13%; top: 14%; left: 55%; background: var(--brand-2); animation-delay: -1s; }
.p3 { width: 20%; height: 16%; top: 40%; left: 64%; background: var(--brand-1); animation-delay: -2s; }
.p4 { width: 18%; height: 15%; top: 45%; left: 14%; background: #f2c14e; animation-delay: -3s; }
.p5 { width: 24%; height: 19%; top: 50%; left: 38%; background: #ffffff; animation-delay: -1.5s; }
.p6 { width: 13%; height: 11%; top: 72%; left: 28%; background: #e05d4b; animation-delay: -2.5s; }
.p7 { width: 15%; height: 12%; top: 74%; left: 58%; background: #8fd3f4; animation-delay: -4s; }
.p8 { width: 11%; height: 9%; top: 32%; left: 44%; background: #2b2f33; animation-delay: -3.5s; }
.p9 { width: 10%; height: 8%; top: 26%; left: 78%; background: #c9e9d8; animation-delay: -.5s; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(8deg); } }

.hero__card {
  position: absolute; left: -10px; bottom: 8%;
  display: flex; align-items: center; gap: 12px;
  background: #fff; padding: 14px 18px; border-radius: 12px;
  box-shadow: var(--shadow);
}
.hero__card strong { display: block; font-size: .95rem; }
.hero__card small { color: var(--muted); font-size: .8rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-light); }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--primary-dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #b5cad6; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.about__text p { margin-bottom: 14px; }
.about__values { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.value {
  padding: 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; transition: transform .2s, box-shadow .2s;
}
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value p { font-size: .94rem; }
.value__icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; background: var(--accent-light); color: var(--accent);
  font-weight: 700; font-size: 1.2rem; margin-bottom: 14px;
}

/* Products */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter {
  padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-family: inherit; font-size: .95rem; font-weight: 500;
  color: var(--ink); cursor: pointer; transition: .2s;
}
.filter:hover { border-color: var(--primary); }
.filter.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product {
  background: #fff; border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, opacity .25s;
}
.product:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product.is-hidden { display: none; }
.product { overflow: hidden; }
.product__img {
  margin: -28px -28px 20px; height: 120px; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.product__img { height: 150px; background: var(--bg-alt); }
.product__img svg, .product__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product:hover .product__img svg, .product:hover .product__img img { transform: scale(1.06); }

.footer__credits { padding: 0 24px 20px; text-align: center; font-size: .74rem; color: #6f8593; line-height: 1.6; }
.footer__credits a { text-decoration: underline; }
.product p { font-size: .95rem; margin-bottom: 16px; }
.product ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.product li { font-size: .78rem; padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--muted); }
.product__tag {
  display: inline-block; padding: 6px 14px; border-radius: 8px;
  font-weight: 700; font-size: .85rem; margin-bottom: 16px; color: #fff;
}
.c-pp { background: #24313d; } .c-pe { background: #1e6f9e; } .c-ld { background: #3a93b8; }
.c-abs { background: #e08a2b; } .c-ps { background: #7a5cc2; } .c-pet { background: #4a6b7d; }
.c-pc { background: #2a8c8c; } .c-pa { background: #b5651d; } .c-pom { background: #5a6b2e; }
.c-re { background: var(--accent); } .c-mb { background: #d24b6a; } .c-ad { background: #2b2f33; }

/* Makers */
.makers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.maker {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 28px 22px 24px; border: 1px solid var(--line); border-radius: 18px;
  background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.maker:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-4px); }
.maker__logo {
  position: relative; width: 100%; height: 110px; margin-bottom: 18px;
  display: grid; place-items: center;
  border-radius: 12px; background: #fff;
}
.maker__logo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 8px; background: #fff;
}
.maker__mark {
  width: 96px; height: 96px; border-radius: 20px;
  display: grid; place-items: center;
  background: var(--accent-light); color: var(--accent-hover);
  font-weight: 800; font-size: 1.5rem; letter-spacing: .02em;
}
.maker strong { display: block; font-size: 1.08rem; line-height: 1.3; margin-bottom: 4px; }
.maker small { color: var(--muted); font-size: .9rem; }

/* Industries */
.industries { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.industry {
  text-align: center; padding: 28px 12px; border-radius: var(--radius);
  background: #fff; font-weight: 600; font-size: .95rem;
  transition: background .2s, color .2s;
}
.industry span { display: block; font-size: 2rem; margin-bottom: 10px; }
.industry:hover { background: var(--primary); color: #fff; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { padding: 28px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.steps span { display: block; font-size: 2.2rem; font-weight: 800; color: var(--accent); margin-bottom: 10px; }
.steps p { font-size: .94rem; }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact__list { list-style: none; margin-top: 28px; }
.contact__list li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.contact__list b { min-width: 130px; color: var(--ink); }
.contact__list span, .contact__list a { color: var(--muted); }
.contact__list a:hover { color: var(--accent); }

.bank {
  margin-top: 28px; padding: 22px; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff;
}
.bank h3 { font-size: 1rem; }
.bank p { font-size: .92rem; margin-bottom: 14px; }
.bank__accounts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bank__accounts div { padding: 12px 14px; border-radius: 10px; background: var(--accent-light); }
.bank__accounts small { display: block; color: var(--muted); font-size: .8rem; }
.bank__accounts strong { font-size: 1.1rem; letter-spacing: .04em; color: var(--accent-hover); }

.float-contact { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: grid; gap: 10px; }
.float-contact__btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-grad); color: #fff; font-size: 1.4rem; font-weight: 700;
  box-shadow: 0 8px 20px rgba(232,86,15,.35); transition: transform .2s;
}
.float-contact__btn:hover { transform: scale(1.08); }
.float-contact__btn--zalo { background: #0068ff; font-size: .82rem; box-shadow: 0 8px 20px rgba(0,104,255,.3); }

.form { background: var(--bg-alt); padding: 36px; border-radius: 20px; display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.form input, .form select, .form textarea {
  font-family: inherit; font-size: 1rem; font-weight: 400;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,86,15,.15);
}
.form textarea { resize: vertical; }
.form__note { font-size: .9rem; color: var(--accent); min-height: 1.2em; }

/* Footer */
.footer { background: #141c24; border-top: 4px solid; border-image: var(--brand-grad) 1; color: #c4d4de; padding-top: 64px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.footer__inner > div:not(:first-child) { display: flex; flex-direction: column; gap: 8px; }
.footer a:hover { color: #fff; }
.footer__desc { color: #9fb6c4; margin-top: 16px; max-width: 360px; font-size: .94rem; }
.footer__bottom { text-align: center; padding: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: .88rem; color: #8aa2b1; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .makers { grid-template-columns: repeat(3, 1fr); }
  .industries { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 12px 24px 24px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .3s;
    z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; }
  .nav-toggle { display: block; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 48px 0 72px; }
  .hero__inner, .about, .contact { grid-template-columns: 1fr; }
  .makers { grid-template-columns: repeat(2, 1fr); }
  .hero__visual { max-width: 340px; }
  .section { padding: 72px 0; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .header .logo__text { display: none; }
  .makers { grid-template-columns: 1fr; }
  .products, .about__values, .form__row { grid-template-columns: 1fr; }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .hero__stats { gap: 24px; }
  .form { padding: 24px; }
  .contact__list li { flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
