/* Haolun Technology — B2B showcase site */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --navy: #0b2447;
  --navy2: #12325f;
  --blue: #1e56a0;
  --accent: #e85d04;
  --accent-dark: #c94f03;
  --gray: #f4f6fa;
  --text: #26313d;
  --muted: #5b6b7c;
  --line: #e3e8f0;
  --wa: #25d366;
}
html { scroll-behavior: smooth; }
body { font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Leelawadee UI", "Noto Sans Thai", Tahoma, sans-serif; color: var(--text); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* ---------- header ---------- */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,.15); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; }
.logo-icon { width: 38px; height: 38px; background: var(--accent); color: #fff; font-weight: 800; font-size: 22px; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.logo-text { font-weight: 800; font-size: 1.25rem; letter-spacing: .08em; display: flex; flex-direction: column; line-height: 1.1; }
.logo-text small { font-weight: 500; font-size: .6rem; letter-spacing: .32em; color: #9db4d6; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { color: #d6e2f5; font-size: .95rem; font-weight: 500; padding: 6px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: #fff; border-bottom-color: var(--accent); }
.nav-wa { background: var(--wa) !important; color: #fff !important; border: none !important; padding: 8px 16px !important; border-radius: 6px; font-weight: 600; }
.nav-wa:hover { background: #1eb459 !important; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 55%, var(--blue) 100%); color: #fff; padding: 72px 0 64px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero-kicker { color: #ffb27a; font-size: .82rem; letter-spacing: .22em; font-weight: 600; margin-bottom: 14px; }
.hero h1 { font-size: 2.5rem; line-height: 1.18; margin-bottom: 16px; font-weight: 800; }
.hero-sub { color: #c9d7ee; font-size: 1.08rem; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-collage img { border-radius: 12px; aspect-ratio: 1/1; object-fit: cover; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.hero-collage img:nth-child(1) { grid-row: span 2; aspect-ratio: auto; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 18px; color: #cfe0f7; font-size: .92rem; }
.hero-badges span { display: flex; align-items: center; gap: 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-block; padding: 13px 28px; border-radius: 8px; font-weight: 600; font-size: 1rem; transition: .2s; border: 2px solid transparent; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1eb459; }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-block { display: block; text-align: center; }
.btn-small { padding: 8px 16px; font-size: .88rem; }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-gray { background: var(--gray); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 30px; gap: 20px; }
.section-head.center { justify-content: center; }
.section-head h2 { font-size: 1.7rem; color: var(--navy); }
.link-more { font-weight: 600; }

/* ---------- cards ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.series-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: .25s; display: block; color: var(--text); }
.series-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(11,36,71,.12); }
.series-card-img { aspect-ratio: 4/3; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.series-card-img img { width: 100%; height: 100%; object-fit: contain; }
.series-card-body { padding: 14px 16px 16px; }
.series-card-body h3 { font-size: 1.02rem; color: var(--navy); margin-bottom: 4px; }
.series-card-body h3 span { color: var(--muted); font-weight: 500; font-size: .85rem; }
.series-card-body p { color: var(--muted); font-size: .88rem; margin-bottom: 10px; }
.series-card-meta { display: flex; justify-content: space-between; align-items: center; color: var(--blue); font-weight: 600; font-size: .85rem; }
.noimg { display: flex; align-items: center; justify-content: center; height: 100%; color: #aab4c0; font-size: .85rem; }

/* ---------- features ---------- */
.grid-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px 20px; }
.feature h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .92rem; }

/* ---------- markets ---------- */
.market-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 18px; }
.market-chips span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 20px; font-weight: 600; color: var(--navy); }

/* ---------- cta banner ---------- */
.cta-banner { background: linear-gradient(120deg, var(--accent), #f57c1f); color: #fff; padding: 56px 0; text-align: center; }
.cta-banner h2 { font-size: 1.8rem; margin-bottom: 10px; }
.cta-banner p { margin-bottom: 24px; font-size: 1.05rem; opacity: .95; }
.cta-banner .btn { margin: 0 6px; }

/* ---------- page hero ---------- */
.page-hero { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; padding: 48px 0; }
.page-hero h1 { font-size: 2rem; margin-bottom: 8px; }
.page-hero p { color: #c9d7ee; }
.cn-title { font-weight: 500; color: #ffb27a; font-size: 1.2rem; }
.breadcrumb { font-size: .85rem; color: #9db4d6; margin-bottom: 12px; }
.breadcrumb a { color: #cfe0f7; }

/* ---------- item cards ---------- */
.grid-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
.item-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.item-img { aspect-ratio: 1/1; background: #fff; display: flex; align-items: center; justify-content: center; padding: 10px; }
.item-img img { width: 100%; height: 100%; object-fit: contain; }
.item-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.item-body h3 { font-size: .98rem; color: var(--navy); margin-bottom: 6px; }
.item-spec { list-style: none; font-size: .83rem; color: var(--muted); margin-bottom: 12px; flex: 1; }
.item-spec li { margin-bottom: 3px; }
.item-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px dashed var(--line); padding-top: 10px; }
.item-price { display: flex; flex-direction: column; line-height: 1.2; }
.price { color: var(--accent); font-weight: 800; font-size: 1.05rem; }
.price-note { font-size: .72rem; color: var(--muted); }
.series-cta { margin-top: 40px; background: var(--gray); border: 1px solid var(--line); border-radius: 12px; padding: 28px; text-align: center; }
.series-cta p { margin-bottom: 14px; font-weight: 600; color: var(--navy); }
.series-hero-img { max-height: 300px; margin: 0 auto 10px; object-fit: contain; }

/* ---------- two col ---------- */
.two-col { display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; align-items: start; }
.two-col h2 { color: var(--navy); font-size: 1.4rem; margin: 26px 0 12px; }
.two-col h2:first-child { margin-top: 0; }
.two-col p, .two-col li { margin-bottom: 10px; }
.two-col ul { padding-left: 20px; }
.fact-card { background: var(--gray); border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-bottom: 20px; }
.fact-card h3 { color: var(--navy); margin-bottom: 10px; font-size: 1.05rem; }

/* ---------- forms ---------- */
form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 12px; color: var(--navy); }
form input, form textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: .95rem; margin-top: 5px; font-family: inherit; }
form input:focus, form textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }
.form-status { font-weight: 600; margin-top: 10px; }
.form-status.ok { color: #16a34a; }
.form-status.err { color: #dc2626; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #b9c8e0; padding: 48px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr 1.2fr; gap: 36px; padding-bottom: 32px; }
.footer-logo { font-weight: 800; font-size: 1.2rem; color: #fff; margin-bottom: 12px; }
.footer-logo span { color: var(--accent); }
.site-footer h4 { color: #fff; margin-bottom: 12px; font-size: .98rem; }
.site-footer a { display: block; color: #b9c8e0; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer p { margin-bottom: 8px; font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 20px; font-size: .85rem; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .grid-cards, .grid-items { grid-template-columns: repeat(3, 1fr); }
  .grid-features { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-collage { max-width: 520px; }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .grid-cards, .grid-items { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 16px 20px 22px; gap: 14px; align-items: flex-start; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 1.9rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; }
}
