:root {
  --primary: #334155;
  --primary-light: #475569;
  --primary-dark: #1E293B;
  --secondary: #F97316;
  --secondary-light: #FB923C;
  --accent: #F1F5F9;
  --accent-alt: #F8FAFC;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --bg-footer: #0F172A;
  --text: #0F172A;
  --text-muted: #475569;
  --text-light: #94A3B8;
  --border: #CBD5E1;
  --border-light: #E2E8F0;
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --font: 'Inter','Noto Sans Thai',system-ui,-apple-system,sans-serif;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }

::selection { background: var(--secondary); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.header { position: sticky; top: 0; z-index: 1000; background: var(--primary-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo img { height: 38px; width: auto; display: block; filter: brightness(0) invert(1); }
.nav { display: flex; gap: 2px; }
.nav a { text-decoration: none; color: rgba(255,255,255,0.85); font-size: 0.85rem; font-weight: 600; padding: 8px 14px; border-radius: var(--radius-sm); transition: all 0.2s; }
.nav a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.nav a:active { background: rgba(255,255,255,0.15); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: all 0.2s; border-radius: 1px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 700; text-decoration: none; transition: all 0.2s; border: 2px solid transparent; cursor: pointer; text-transform: uppercase; letter-spacing: 0.025em; }
.btn-primary { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.btn-primary:hover { background: #EA580C; border-color: #EA580C; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: #fff; color: var(--primary-dark); border-color: #fff; }
.btn-block { width: 100%; }

/* Sections */
section { padding: 96px 0; }
.section-title { font-size: 2rem; font-weight: 800; margin-bottom: 12px; color: var(--text); position: relative; padding-bottom: 14px; letter-spacing: -0.02em; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 56px; height: 3px; background: var(--secondary); border-radius: 2px; }
.section-title.centered { text-align: center; }
.section-title.centered::after { left: 50%; transform: translateX(-50%); }
.section-sub { font-size: 1.05rem; color: var(--text-muted); max-width: 640px; margin-bottom: 48px; line-height: 1.5; }
.section-sub.centered { text-align: center; margin-left: auto; margin-right: auto; }

/* Hero */
.hero { padding: 0; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); min-height: calc(100vh - 72px); display: flex; align-items: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(249,115,22,0.08) 0%, transparent 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-content { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; padding: 6px 16px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: var(--secondary-light); font-size: 0.75rem; font-weight: 700; margin-bottom: 24px; text-transform: uppercase; letter-spacing: 0.12em; border-radius: 2px; }
.hero h1 { font-size: 3rem; font-weight: 900; line-height: 1.1; color: #fff; margin-bottom: 12px; letter-spacing: -0.02em; }
.hero-eng { font-size: 1.1rem; font-weight: 700; color: var(--secondary); margin-bottom: 28px; letter-spacing: 0.04em; }
.hero-desc { font-size: 1rem; color: rgba(255,255,255,0.7); margin-bottom: 40px; line-height: 1.7; border-left: 3px solid var(--secondary); padding-left: 20px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.hero-visual img { width: 100%; height: auto; max-height: 460px; object-fit: cover; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); aspect-ratio: 4/3; }

/* Trust Bar */
.trust-bar { background: var(--bg); border-bottom: 1px solid var(--border); padding: 32px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-item { padding: 20px 24px; border-left: 3px solid var(--secondary); background: var(--accent-alt); }
.trust-item:first-child { border-left-color: var(--primary); }
.trust-label { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 6px; display: block; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.trust-value { font-size: 1.1rem; font-weight: 800; color: var(--primary-dark); font-feature-settings: "tnum"; }
.trust-status { color: #059669; }

/* About */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-text { font-size: 1.05rem; color: var(--text-muted); line-height: 1.8; }
.about-text p { margin-bottom: 20px; }
.vision-card { background: var(--accent-alt); padding: 40px; border: 1px solid var(--border); border-left: 4px solid var(--secondary); }
.vision-card h3 { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); margin-bottom: 16px; }
.vision-quote { font-size: 1.1rem; font-style: italic; color: var(--primary); line-height: 1.7; font-weight: 500; }

/* Services */
.services { background: var(--accent-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.service-card { background: var(--bg); transition: all 0.3s; }
.service-card:hover { background: var(--accent-alt); }
.service-card-header { display: flex; align-items: center; gap: 16px; padding: 28px 28px 0; }
.service-icon { width: 48px; height: 48px; background: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: var(--radius-sm); }
.service-card-header h3 { font-size: 1rem; font-weight: 800; color: var(--primary-dark); text-transform: uppercase; letter-spacing: 0.02em; }
.service-card-body { padding: 20px 28px 28px; }
.service-detail { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.service-detail:last-child { border-bottom: none; }
.service-detail-label { font-size: 0.8rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.04em; }
.service-detail-value { font-size: 0.9rem; color: var(--text-muted); line-height: 1.4; }

/* Supply Chain */
.supply-chain { background: var(--bg); }
.flow-steps { display: flex; align-items: center; justify-content: center; gap: 0; padding: 24px 0; flex-wrap: wrap; }
.flow-step { text-align: center; padding: 32px 28px; background: var(--accent-alt); border: 1px solid var(--border); flex: 1; min-width: 160px; position: relative; transition: all 0.3s; }
.flow-step:hover { border-color: var(--secondary); background: var(--bg); }
.flow-number { width: 28px; height: 28px; background: var(--primary); color: #fff; font-size: 0.8rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; border-radius: 50%; }
.flow-icon { margin-bottom: 12px; display: flex; align-items: center; justify-content: center; height: 36px; }
.flow-step h3 { font-size: 1rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 4px; }
.flow-step p { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.flow-connector { display: flex; align-items: center; padding: 0 4px; flex-shrink: 0; }
.flow-connector svg { display: block; }

/* Company Info */
.company-info { background: var(--accent-alt); }
.info-container { max-width: 900px; margin: 0 auto; border: 1px solid var(--primary); }
.info-row { display: grid; grid-template-columns: 280px 1fr; }
.info-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.info-label { padding: 18px 24px; background: var(--primary); color: #fff; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.03em; display: flex; align-items: center; }
.info-value { padding: 18px 24px; font-size: 0.9rem; color: var(--text); line-height: 1.5; font-weight: 500; display: flex; align-items: center; }
.badge-active { display: inline-flex; align-items: center; padding: 4px 12px; background: #059669; color: #fff; border-radius: 2px; font-size: 0.75rem; font-weight: 700; }

/* Contact */
.contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-card { background: var(--accent-alt); padding: 28px; border: 1px solid var(--border); margin-bottom: 32px; }
.contact-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.contact-card-header h3 { font-size: 0.9rem; font-weight: 800; text-transform: uppercase; color: var(--primary-dark); }
.contact-card p { font-size: 1rem; color: var(--text-muted); line-height: 1.6; padding-left: 30px; }
.map-card { background: var(--accent-alt); padding: 24px; border: 1px solid var(--border); }
.map-container { height: 220px; overflow: hidden; border: 1px solid var(--border); background: var(--bg); }
.map-container img { width: 100%; height: 100%; object-fit: cover; }
.map-caption { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 16px; }
.contact-form { background: var(--accent-alt); padding: 40px; border: 1px solid var(--border); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 700; margin-bottom: 6px; color: var(--primary-dark); letter-spacing: 0.02em; }
.form-group input,.form-group textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 0; font-size: 0.95rem; font-family: inherit; transition: all 0.2s; background: var(--bg); }
.form-group input:focus,.form-group textarea:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(249,115,22,0.1); }
.form-group textarea { resize: vertical; min-height: 100px; }

/* Footer */
.footer { background: var(--bg-footer); color: var(--text-light); padding: 64px 0 32px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1.2fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { height: 36px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-col p { font-size: 0.85rem; line-height: 1.7; color: #64748B; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 20px; color: #fff; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-col a { display: block; color: var(--text-light); text-decoration: none; margin-bottom: 10px; font-size: 0.85rem; transition: all 0.2s; }
.footer-col a:hover { color: var(--secondary); }
.footer-col p + p { margin-top: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: 0.8rem; color: #475569; }
.footer-disclaimer { font-size: 0.7rem; color: #334155; }

/* Modal */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.active { display: flex; }
.modal { background: #fff; max-width: 600px; width: 100%; max-height: 80vh; overflow-y: auto; padding: 40px; position: relative; }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); transition: all 0.2s; line-height: 1; padding: 4px; }
.modal-close:hover { color: var(--text); }
.modal-content h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 20px; color: var(--primary-dark); padding-bottom: 12px; border-bottom: 2px solid var(--secondary); }
.modal-content p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { min-height: 0; padding: 80px 0; }
  .hero h1 { font-size: 2.5rem; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-steps { flex-direction: row; flex-wrap: wrap; }
  .flow-step { min-width: 140px; }
  .flow-connector { transform: rotate(0deg); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .nav-toggle { display: block; }
  .nav { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--primary-dark); padding: 16px; gap: 0; border-top: 1px solid rgba(255,255,255,0.08); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .info-row { grid-template-columns: 1fr; }
  .info-label { padding: 14px 20px; }
  .info-value { padding: 14px 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 100px 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px;  }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-actions { flex-direction: column; }
  .hero h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .trust-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.5rem; }
  .hero h1 { font-size: 1.6rem; }
  .hero-desc { font-size: 0.9rem; }
  .contact-form { padding: 24px; }
  .modal { padding: 24px; }
  .vision-card { padding: 28px; }
  .flow-step { min-width: 120px; padding: 24px 16px; }
}
