:root {
  --charcoal: #1F2937;
  --charcoal-light: #374151;
  --beige: #F5F0E8;
  --gold: #D97706;
  --gold-light: #F59E0B;
  --warm-white: #FFFBEB;
  --white: #FFFFFF;
  --text: #1F2937;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
  --font: 'Inter', 'Noto Sans Thai', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 251, 235, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo img { height: 36px; width: auto; display: block; }
.nav { display: flex; gap: 28px; }
.nav a {
  text-decoration: none;
  color: var(--charcoal);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: color var(--transition);
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav a:hover { color: var(--gold); }
.nav a:hover::after { width: 100%; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition: var(--transition);
  border-radius: 1px;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: 1.5px solid var(--charcoal);
  letter-spacing: 0.06em;
  font-family: var(--font);
}
.btn-primary {
  background: var(--charcoal);
  color: var(--white);
}
.btn-primary:hover {
  background: transparent;
  color: var(--charcoal);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--charcoal);
}
.btn-outline:hover {
  background: var(--charcoal);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-block { width: 100%; }

/* ===== SECTIONS ===== */
section { padding: 72px 0; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 0.04em;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2.5px;
  background: var(--gold);
  border-radius: 2px;
}
.section-sub {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 16px auto 0;
  line-height: 1.7;
}

/* ===== HERO ===== */
.hero {
  padding: 56px 0 72px;
  background: linear-gradient(135deg, var(--warm-white) 0%, var(--beige) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border: 1px solid var(--gold);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.hero-eng {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--charcoal-light);
  margin-bottom: 24px;
  letter-spacing: 0.08em;
}
.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.8;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 16px; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-frame {
  position: relative;
  padding: 14px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}
.hero-frame::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1.5px solid var(--gold);
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}
.hero-frame::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border: 1px solid var(--gold);
  opacity: 0.2;
  pointer-events: none;
}
.hero-frame-inner {
  position: relative;
  overflow: hidden;
}
.hero-frame-inner img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--white);
  padding: 44px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust-item {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid var(--border);
  position: relative;
}
.trust-item:last-child { border-right: none; }
.trust-item::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 12px;
  opacity: 0.6;
}
.trust-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  display: block;
  text-transform: uppercase;
}
.trust-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}
.trust-status { color: var(--gold); font-weight: 700; }

/* ===== ABOUT ===== */
.about {
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-content .section-title {
  margin-bottom: 24px;
}
.about-content .section-title::after {
  left: 0;
  transform: none;
}
.about-text {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.9;
}
.about-text p {
  margin-bottom: 24px;
}
.about-text p:last-child {
  margin-bottom: 0;
}
.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  padding: 48px 40px;
  text-align: center;
  width: 100%;
  max-width: 360px;
  position: relative;
}
.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
}
.about-card-number {
  font-size: 4rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}
.about-card-line {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 20px;
  opacity: 0.5;
}
.about-card-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}
.about-card-since {
  margin-top: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.2em;
}

/* ===== CATEGORIES ===== */
.categories {
  background: var(--beige);
}
.categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.category-card {
  background: var(--white);
  padding: 36px 32px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--gold);
  transition: height 0.4s ease;
}
.category-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.category-card:hover::before {
  height: 100%;
}
.category-card:nth-child(3),
.category-card:nth-child(4) {
  margin-top: 0;
}
.category-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: -8px;
  letter-spacing: -0.03em;
}
.category-icon {
  width: 40px;
  height: 40px;
  color: var(--charcoal);
  margin-bottom: 16px;
  opacity: 0.7;
}
.category-icon svg { width: 100%; height: 100%; }
.category-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.category-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== STRENGTHS (Timeline) ===== */
.strengths {
  background: var(--white);
}
.timeline {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  padding-left: 80px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 12px;
  bottom: 12px;
  width: 1.5px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding: 0 0 44px;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-marker {
  position: absolute;
  left: -80px;
  top: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-num {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}
.timeline-marker::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.2;
}
.timeline-content h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.timeline-content p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== COMPANY INFO ===== */
.company-info {
  background: var(--beige);
}
.info-card {
  background: var(--white);
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow);
  max-width: 860px;
  margin: 0 auto;
}
.info-header {
  padding: 28px 40px 0;
}
.info-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}
.info-body {
  padding: 24px 40px 36px;
}
.info-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: start;
}
.info-row:last-child {
  border-bottom: none;
}
.info-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  padding-top: 2px;
}
.info-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.6;
}
.reg-number {
  font-family: 'Inter', monospace;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.address-value {
  line-height: 1.8;
}
.badge-active {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8125rem;
  border: 1px solid var(--gold);
  padding: 3px 12px;
  letter-spacing: 0.04em;
}

/* ===== CONTACT ===== */
.contact {
  background: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-card {
  background: var(--warm-white);
  padding: 28px 32px;
  border: 1px solid var(--border);
}
.contact-card-icon {
  width: 32px;
  height: 32px;
  color: var(--gold);
  margin-bottom: 12px;
}
.contact-card-icon svg { width: 100%; height: 100%; }
.contact-card h4 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.contact-card p {
  font-size: 1rem;
  color: var(--charcoal);
  line-height: 1.8;
}
.contact-map {
  margin-top: 4px;
}
.contact-map-frame {
  border: 1px solid var(--border);
  overflow: hidden;
}
.contact-map-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.contact-map-label {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-top: 10px;
  font-weight: 600;
}
.contact-form h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  font-size: 0.9375rem;
  font-family: var(--font);
  transition: border-color var(--transition);
  background: var(--white);
  color: var(--charcoal);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.08);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9CA3AF;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 48px 0 28px;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(217, 119, 6, 0.15);
}
.footer-brand img {
  height: 32px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}
.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 320px;
}
.footer h4 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.9;
}
.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  margin-bottom: 10px;
  transition: all var(--transition);
  font-size: 0.875rem;
}
.footer-links a:hover {
  color: var(--gold);
  padding-left: 4px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copyright {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.footer-legal {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
  font-style: italic;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 41, 55, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  padding: 20px;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal {
  background: var(--white);
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition);
}
.modal-overlay.active .modal {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--transition);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  color: var(--charcoal);
}
.modal-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.modal-content p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-content { text-align: center; }
  .hero-desc { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .hero h1 { font-size: 2.25rem; }

  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .trust-item { padding: 16px 20px; }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(3) { border-right: 1px solid var(--border); }
  .trust-item:nth-child(4) { border-right: none; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }

  .categories-grid { gap: 16px; }

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

  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  section { padding: 56px 0; }

  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--warm-white);
    flex-direction: column;
    padding: 24px 28px;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav a {
    padding: 12px 0;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--border-light);
  }
  .nav a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 40px 0 56px; }
  .hero h1 { font-size: 1.75rem; }
  .hero-eng { font-size: 1rem; }
  .hero-desc { font-size: 0.9375rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; }

  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(3) { border-right: 1px solid var(--border); }
  .trust-item:nth-child(4) { border-right: none; }

  .categories-grid { grid-template-columns: 1fr; gap: 16px; }

  .timeline { padding-left: 60px; }
  .timeline::before { left: 18px; }
  .timeline-marker { left: -60px; width: 40px; height: 40px; }
  .timeline-num { font-size: 1rem; }

  .info-body { padding: 16px 24px 28px; }
  .info-header { padding: 24px 24px 0; }
  .info-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }

  .contact-grid { gap: 40px; }

  .footer { padding: 40px 0 24px; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .modal { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.5rem; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--border); padding: 16px 0; }
  .trust-item:last-child { border-bottom: none; }
  .section-title { font-size: 1.375rem; }
  .category-card { padding: 28px 20px; }
}
