/* ===== Company Profile — main stylesheet ===== */
:root {
  --primary: #0b2545;
  --primary-2: #13315c;
  --accent: #f2a900;
  --accent-ink: #9a6b00;
  --light: #f5f7fa;
  --white: #ffffff;
  --gray: #5f6b7a;
  --muted: #8a94a3;
  --border: #e3e8ef;
  --text: #16212e;
  --radius: 14px;
  --shadow: 0 10px 32px rgba(11, 37, 69, 0.10);
  --container: 1200px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Sarabun', system-ui, sans-serif; color: var(--text); background: var(--white); line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: 'Kanit', 'Sarabun', sans-serif; line-height: 1.25; color: var(--primary); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 5%; }
.accent { color: var(--accent); }

/* ===== NAV ===== */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: 72px;
  background: rgba(11, 37, 69, 0.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-nav .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); font-family: 'Kanit', sans-serif; font-weight: 700; font-size: 1.45rem; letter-spacing: 0.5px; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--primary); display: grid; place-items: center; font-size: 1.1rem; font-weight: 800; }
.logo-img { height: 42px; width: auto; max-width: 180px; object-fit: contain; }
.logo-img[hidden] { display: none; }
.logo-img:not([hidden]) ~ .logo-text, .logo-img:not([hidden]) ~ .logo-mark { display: none; }
.site-footer .logo-img { background: #fff; padding: 6px 10px; border-radius: 10px; height: 52px; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.82); text-decoration: none; font-size: 0.98rem; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.nav-links .nav-cta { background: var(--accent); color: var(--primary); padding: 9px 20px; border-radius: 8px; font-weight: 600; }
.nav-links .nav-cta:hover { color: var(--primary); filter: brightness(1.06); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 10px; font-family: 'Kanit', sans-serif; font-weight: 500; font-size: 1rem; text-decoration: none; border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s; }
.btn-accent { background: var(--accent); color: var(--primary); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,0.18); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,0.4); color: #fff; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { background: var(--primary-2); transform: translateY(-2px); }

/* ===== HERO ===== */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; padding: 120px 0 80px; color: #fff; overflow: hidden; background: var(--primary); }
.hero-bg, .page-hero-bg, .cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11,37,69,0.94) 0%, rgba(11,37,69,0.78) 45%, rgba(11,37,69,0.35) 100%); }
.hero .container { position: relative; z-index: 1; width: 100%; }
.hero-content { max-width: 640px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 30px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); font-size: 0.9rem; margin-bottom: 1.5rem; }
.hero-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; margin-bottom: 1.25rem; }
.hero h1 .accent { display: block; }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,0.8); margin-bottom: 2.2rem; max-width: 560px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ===== STATS ===== */
.stats-bar { position: relative; z-index: 2; margin-top: -56px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--border); }
.stat { padding: 1.8rem 1.5rem; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat-num { font-family: 'Kanit', sans-serif; font-size: 2.2rem; font-weight: 700; color: var(--primary); line-height: 1.1; }
.stat-label { color: var(--gray); font-size: 0.95rem; margin-top: 4px; }

/* ===== SECTIONS ===== */
.section { padding: 96px 0; }
.section.alt { background: var(--light); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3.2rem; }
.eyebrow { display: inline-block; font-family: 'Kanit', sans-serif; font-size: 0.85rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 0.8rem; }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; margin-bottom: 1rem; }
.section-sub { color: var(--gray); font-size: 1.06rem; }

/* ===== SPLIT (About) ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); background: var(--light); }
.split-media::before { content: ''; position: absolute; left: -18px; bottom: -18px; width: 45%; height: 45%; border-radius: 20px; background: var(--accent); opacity: .9; z-index: -1; }
.split-body p { color: var(--gray); margin-bottom: 1.1rem; font-size: 1.04rem; }
.check-list { list-style: none; margin: 1.4rem 0 2rem; display: grid; gap: 0.75rem; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before { content: '✓'; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: rgba(242,169,0,0.16); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 0.8rem; margin-top: 3px; }

/* ===== CARDS ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.75rem; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--primary); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 1.3rem; }
.card h3 { font-size: 1.18rem; margin-bottom: 0.55rem; }
.card p { color: var(--gray); font-size: 0.97rem; }

/* ===== PRODUCTS ===== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.75rem; }
.product-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(11,37,69,0.13); }
.product-card[hidden] { display: none; }
.product-img { position: relative; display: block; width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--light); border: 0; padding: 0; cursor: zoom-in; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.product-card:hover .product-img img { transform: scale(1.06); }
.product-badge { position: absolute; top: 12px; left: 12px; background: var(--accent); color: var(--primary); font-family: 'Kanit', sans-serif; font-size: 0.78rem; font-weight: 600; padding: 4px 12px; border-radius: 20px; }
.product-body { padding: 1.3rem 1.4rem 1.6rem; }
.product-cat { display: inline-block; font-size: 0.8rem; color: var(--accent-ink); font-weight: 600; margin-bottom: 4px; }
.product-body h3 { font-size: 1.12rem; margin-bottom: 0.45rem; }
.product-body p { color: var(--gray); font-size: 0.93rem; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-bottom: 2.5rem; }
.chip { font-family: 'Kanit', sans-serif; font-size: 0.93rem; padding: 8px 20px; border-radius: 30px; border: 1.5px solid var(--border); background: var(--white); color: var(--gray); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.center-cta { text-align: center; margin-top: 3rem; }
.empty-state { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 3rem 1rem; border: 2px dashed var(--border); border-radius: 16px; }

/* ===== CTA BAND ===== */
.cta-band { position: relative; padding: 96px 0; color: #fff; text-align: center; overflow: hidden; background: var(--primary); }
.cta-band::after { content: ''; position: absolute; inset: 0; background: rgba(11,37,69,0.82); }
.cta-band .container { position: relative; z-index: 1; max-width: 760px; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 2rem; }

/* ===== PAGE HERO ===== */
.page-hero { position: relative; padding: 168px 0 96px; text-align: center; color: #fff; overflow: hidden; background: var(--primary); }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,37,69,0.88), rgba(11,37,69,0.75)); }
.page-hero .container { position: relative; z-index: 1; max-width: 780px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 0.9rem; }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 1.1rem; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; list-style: none; font-size: 0.9rem; color: rgba(255,255,255,0.6); margin-bottom: 1rem; }
.breadcrumb a { color: rgba(255,255,255,0.8); text-decoration: none; }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; }

/* ===== VISION / MISSION ===== */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.vm-card { border-radius: 18px; padding: 2.5rem; background: var(--primary); color: rgba(255,255,255,0.82); position: relative; overflow: hidden; }
.vm-card:nth-child(2) { background: var(--white); color: var(--gray); border: 1px solid var(--border); }
.vm-card h3 { color: #fff; font-size: 1.5rem; margin-bottom: 0.8rem; }
.vm-card:nth-child(2) h3 { color: var(--primary); }
.vm-card .vm-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }

/* ===== TIMELINE ===== */
.timeline { position: relative; max-width: 860px; margin: 0 auto; padding-left: 36px; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding-bottom: 2.2rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ''; position: absolute; left: -32px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(242,169,0,0.2); }
.tl-year { font-family: 'Kanit', sans-serif; font-weight: 700; color: var(--accent-ink); font-size: 1.05rem; }
.tl-item h3 { font-size: 1.2rem; margin: 2px 0 6px; }
.tl-item p { color: var(--gray); }

/* ===== TEAM ===== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.75rem; max-width: 960px; margin: 0 auto; }
.team-card { text-align: center; }
.team-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 18px; margin-bottom: 1.1rem; background: var(--light); }
.team-card h3 { font-size: 1.15rem; }
.team-card p { color: var(--accent-ink); font-size: 0.95rem; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.info-list { display: grid; gap: 1rem; }
.info-item { display: flex; gap: 16px; padding: 1.2rem 1.3rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.info-icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 1.2rem; }
.info-item strong { display: block; font-family: 'Kanit', sans-serif; color: var(--primary); font-weight: 600; }
.info-item span, .info-item a { color: var(--gray); text-decoration: none; }
.info-item a:hover { color: var(--accent-ink); }
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 2.4rem; box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.form-card > p { color: var(--gray); margin-bottom: 1.6rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.92rem; font-weight: 500; color: var(--primary); margin-bottom: 6px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; font: inherit; font-size: 0.97rem; color: var(--text); background: var(--white); outline: none; transition: border-color .2s, box-shadow .2s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,37,69,0.08); }
.form-group textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 1rem; padding: 12px 14px; border-radius: 10px; font-size: 0.95rem; }
.form-msg.ok { background: #ecfdf3; color: #067647; }
.form-msg.err { background: #fef3f2; color: #b42318; }
.map-wrap { border-radius: 20px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ===== FOOTER ===== */
.site-footer { background: #071a31; color: rgba(255,255,255,0.62); padding: 72px 0 0; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 3rem; padding-bottom: 3rem; }
.site-footer .logo { margin-bottom: 1.1rem; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; display: grid; gap: 0.6rem; }
.site-footer a { color: rgba(255,255,255,0.68); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: 10px; }
.socials { display: flex; gap: 10px; margin-top: 1.3rem; }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.08); display: grid; place-items: center; font-family: 'Kanit', sans-serif; font-weight: 600; color: #fff; font-size: 0.85rem; }
.socials a:hover { background: var(--accent); color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 1.4rem 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; font-size: 0.88rem; }
.footer-admin { opacity: 0.55; font-size: 0.85rem; }
.footer-admin:hover { opacity: 1; }

/* ===== LIGHTBOX ===== */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(7,26,49,0.85); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(4px); }
.lightbox[hidden] { display: none; }
.lightbox-box { background: var(--white); border-radius: 20px; max-width: 920px; width: 100%; max-height: 90vh; overflow: auto; display: grid; grid-template-columns: 1.2fr 1fr; position: relative; }
.lightbox-box img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; background: var(--light); }
.lightbox-body { padding: 2.2rem; display: flex; flex-direction: column; }
.lightbox-body h3 { font-size: 1.5rem; margin: 4px 0 0.8rem; }
.lightbox-body p { color: var(--gray); margin-bottom: 1.6rem; white-space: pre-line; }
.lightbox-body .btn { margin-top: auto; align-self: flex-start; }
.lightbox-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.92); font-size: 1.3rem; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.15); z-index: 1; }

/* ===== REVEAL ===== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .lightbox-box { grid-template-columns: 1fr; }
  .lightbox-box img { min-height: 0; aspect-ratio: 4/3; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links { position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--primary); padding: 0.5rem 5% 1.2rem; box-shadow: 0 12px 24px rgba(0,0,0,0.2); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .2s, transform .2s, visibility .2s; }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { display: block; padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .nav-links .nav-cta { margin-top: 0.8rem; text-align: center; border: 0; }
  .hero { min-height: auto; padding: 130px 0 110px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .section { padding: 72px 0; }
  .vm-grid, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 1.6rem; }
  .map-wrap iframe { height: 320px; }
}
