/* ==========================================================================
   NEWLAND INDUSTRIAL Co., Ltd. — Single Page Website
   ========================================================================== */

:root {
  --navy: #0b1220;
  --navy-2: #101a2e;
  --navy-3: #16233c;
  --accent: #ff7a00;
  --accent-dark: #e56a00;
  --light: #f5f7fa;
  --white: #ffffff;
  --text: #2c3442;
  --muted: #6b7686;
  --line: #e3e8ef;
  --shadow: 0 10px 30px rgba(11, 18, 32, 0.08);
  --radius: 12px;
  --font-head: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Open Sans', 'Segoe UI', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

.accent { color: var(--accent); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
  padding: 22px 0;
}

.header.scrolled {
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo { display: flex; align-items: center; gap: 12px; }

.logo img {
  height: 52px;
  width: auto;
  display: block;
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(255, 122, 0, 0.35);
}

.logo-text { display: flex; flex-direction: column; line-height: 1.15; }

.logo-text strong {
  font-family: var(--font-head);
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--white);
}

.logo-text small {
  font-size: 9.5px;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.65);
}

.nav { display: flex; align-items: center; gap: 34px; }

.nav-link {
  position: relative;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 0;
  transition: color .25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .3s ease;
}

.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../images/71733909.jpg") center 60% / cover no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(6, 11, 22, 0.94) 0%, rgba(6, 11, 22, 0.78) 42%, rgba(6, 11, 22, 0.35) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 140px 0 90px;
  max-width: 720px;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 5px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(46px, 7vw, 84px);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin-bottom: 38px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
  border: 2px solid transparent;
}

.btn-solid {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(255, 122, 0, 0.35);
}

.btn-solid:hover { background: var(--accent-dark); transform: translateY(-3px); }

.btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: var(--white); }

.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); transform: translateY(-3px); }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  z-index: 2;
}

.hero-scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 3px;
  background: var(--accent);
  animation: scrollDot 1.8s infinite;
}

@keyframes scrollDot {
  0%   { opacity: 1; transform: translateY(0); }
  70%  { opacity: 0; transform: translateY(16px); }
  100% { opacity: 0; transform: translateY(16px); }
}

/* ---------- Stats ---------- */
.stats {
  background: linear-gradient(120deg, var(--accent), var(--accent-dark));
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 34px 0;
}

.stat { text-align: center; color: var(--white); }

.stat-num {
  font-family: var(--font-head);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.92;
}

/* ---------- Section common ---------- */
.section { padding: 96px 0; }

.section-head { text-align: center; margin-bottom: 56px; }

.section-kicker {
  font-size: 12.5px;
  letter-spacing: 4px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 46px);
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy);
}

.section-line {
  width: 70px;
  height: 3px;
  background: var(--line);
  margin: 18px auto 0;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.section-line span {
  position: absolute;
  left: 0;
  top: 0;
  width: 40%;
  height: 100%;
  background: var(--accent);
}

.section-note { margin-top: 16px; color: var(--muted); font-size: 15px; }

/* ---------- About ---------- */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: start;
}

.about-side { display: flex; flex-direction: column; gap: 22px; }

.about-card {
  background: linear-gradient(135deg, var(--navy-2), var(--navy-3));
  color: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.about-year { font-size: 15px; letter-spacing: 2px; color: rgba(255, 255, 255, 0.7); }

.about-year b {
  display: block;
  font-family: var(--font-head);
  font-size: 52px;
  line-height: 1;
  color: var(--accent);
  margin: 10px 0 14px;
}

.about-card p { font-size: 14px; color: rgba(255, 255, 255, 0.85); }

.about-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
}

.badge-big {
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.badge-small { font-size: 11px; letter-spacing: 1.5px; color: var(--muted); font-weight: 600; }

.about-tags { display: flex; flex-wrap: wrap; gap: 10px; }

.about-tags li {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--navy);
  background: var(--light);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 50px;
}

.about-text p { margin-bottom: 18px; font-size: 15.5px; color: var(--text); }

.about-text p.lead {
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  border-left: 4px solid var(--accent);
  padding-left: 18px;
}

.about-text p.strong {
  font-weight: 600;
  color: var(--navy);
  background: var(--light);
  padding: 18px 22px;
  border-radius: var(--radius);
  margin-bottom: 0;
}

/* ---------- Culture ---------- */
.culture {
  background: var(--light);
  position: relative;
  overflow: hidden;
}

.culture-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.culture-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 26px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}

.culture-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(11, 18, 32, 0.12); }

.culture-goal { background: linear-gradient(160deg, var(--navy-2), var(--navy-3)); border-top: 0; color: var(--white); }
.culture-goal:hover { box-shadow: 0 18px 40px rgba(11, 18, 32, 0.35); }

.culture-icon {
  font-size: 30px;
  color: var(--accent);
  margin-bottom: 14px;
}

.culture-num {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 700;
  color: rgba(255, 122, 0, 0.25);
  margin-bottom: 6px;
}

.culture-card h3 {
  font-family: var(--font-head);
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy);
  margin-bottom: 6px;
}

.culture-goal h3 { color: var(--white); font-size: 24px; }

.culture-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 12px;
}

.culture-card p { font-size: 13.5px; color: var(--muted); }

.culture-goal p { color: rgba(255, 255, 255, 0.85); font-size: 14.5px; }

/* ---------- Products ---------- */
.products { background: var(--white); }

.tabs {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 42px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 13px 30px;
  border-radius: 50px;
  border: 2px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all .25s ease;
}

.tab-btn:hover { border-color: var(--accent); color: var(--accent); }

.tab-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(255, 122, 0, 0.3);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.product-card {
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform .3s ease, box-shadow .3s ease;
  animation: fadeUp .5s ease both;
}

.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.product-img-wrap {
  aspect-ratio: 1 / 1;
  background: var(--white);
  display: grid;
  place-items: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.product-img-wrap::after {
  content: "Click to enlarge";
  position: absolute;
  inset: auto 0 0 0;
  padding: 8px;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--white);
  background: rgba(11, 18, 32, 0.75);
  opacity: 0;
  transform: translateY(100%);
  transition: all .3s ease;
}

.product-card:hover .product-img-wrap::after { opacity: 1; transform: translateY(0); }

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .4s ease;
}

.product-card:hover .product-img-wrap img { transform: scale(1.06); }

.product-info {
  padding: 18px 20px 20px;
  text-align: center;
  background: var(--white);
}

.product-name {
  font-family: var(--font-head);
  font-size: 16px;
  letter-spacing: 0.5px;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.product-cat {
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Contact ---------- */
.contact { background: var(--light); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 16px; }

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  transition: transform .3s ease;
}

.contact-card:hover { transform: translateX(6px); }

.contact-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  font-size: 19px;
  display: grid;
  place-items: center;
}

.contact-card h4 {
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 4px;
}

.contact-card p { font-size: 14.5px; color: var(--muted); }
.contact-card a:hover { color: var(--accent); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-family: var(--font-head);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy);
  margin-bottom: 24px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  background: var(--light);
  margin-bottom: 16px;
  transition: border-color .25s ease, background .25s ease;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}

.btn-block { width: 100%; }

.form-hint { margin-top: 12px; font-size: 14px; font-weight: 600; text-align: center; }
.form-hint.ok { color: #1d9e4b; }
.form-hint.err { color: #d33; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}

.footer-brand p { margin-top: 16px; font-size: 14px; }

.footer-nav { display: flex; flex-direction: column; gap: 12px; }

.footer-nav a {
  font-size: 13.5px;
  letter-spacing: 1.5px;
  font-weight: 600;
  transition: color .25s ease, padding-left .25s ease;
}

.footer-nav a:hover { color: var(--accent); padding-left: 6px; }

.footer-contact p { font-size: 14px; margin-bottom: 10px; }
.footer-contact a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  padding: 18px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 10, 20, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.lightbox.open { opacity: 1; visibility: visible; }

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 30px;
  line-height: 1;
  transition: background .25s ease, transform .25s ease;
}

.lightbox-close:hover { background: var(--accent); transform: rotate(90deg); }

.lightbox-body { max-width: min(860px, 94vw); text-align: center; }

.lightbox-body img {
  max-width: 100%;
  max-height: 78vh;
  margin-inline: auto;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-body figcaption {
  margin-top: 18px;
  font-family: var(--font-head);
  font-size: 17px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-side { flex-direction: row; flex-wrap: wrap; }
  .about-side > * { flex: 1 1 220px; }
  .culture-grid { grid-template-columns: repeat(2, 1fr); }
  .products-page .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 80vw);
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    transition: right .4s ease;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.35);
  }

  .nav.open { right: 0; }

  .nav-link { font-size: 16px; }

  .nav-toggle { display: flex; z-index: 110; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .products-page .product-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 560px) {
  .section { padding: 72px 0; }
  .product-grid { grid-template-columns: 1fr; }
  .products-page .product-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .culture-grid { grid-template-columns: 1fr; }
  .hero-sub { font-size: 15.5px; }
  .stats-grid { gap: 18px; }
  .products-page { padding: 72px 0 24px; }
  .page-hero-inner { padding: 120px 0 56px; }
  .page-hero { min-height: 60vh; }
  .product-category { margin-bottom: 56px; }
  .product-grid { gap: 16px; }
  .lightbox { padding: 16px; }
}

/* ---------- Products Page ---------- */
.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: var(--navy);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: url("../images/71733909.jpg") center 45% / cover no-repeat;
}

.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(6, 11, 22, 0.94) 0%, rgba(6, 11, 22, 0.78) 55%, rgba(6, 11, 22, 0.45) 100%);
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  padding: 150px 0 80px;
  text-align: center;
}

.page-hero-title {
  font-family: var(--font-head);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.page-hero-sub {
  font-size: 16.5px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
  margin-inline: auto;
}

/* Products page category blocks */
.products-page { padding: 96px 0 40px; }

.product-category { margin-bottom: 72px; }

.product-category:last-child { margin-bottom: 0; }

/* Products page: 4 per row (desktop only), smaller thumbnails */
@media (min-width: 1025px) {
  .products-page .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

.products-page .product-img-wrap { padding: 14px; }

.products-page .product-info { padding: 12px 14px 14px; }

.products-page .product-name { font-size: 14px; }

/* Home: "View all products" button */
.products-more { text-align: center; margin-top: 44px; }
