/* ── RESET & VARIABLES ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --orange:      #E87722;
  --orange-dark: #C96010;
  --charcoal:    #3D3D3D;
  --gray:        #6B6B6B;
  --silver:      #9E9E9E;
  --white:       #FFFFFF;
  --bg-light:    #F7F6F4;
  --bg-dark:     #2D2D2D;
  --border:      #E5E5E5;
  --shadow:      0 4px 20px rgba(0, 0, 0, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Sarabun', system-ui, -apple-system, sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ── NAVBAR ── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s;
}

#navbar.scrolled {
  box-shadow: var(--shadow);
  border-bottom-color: var(--border);
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-img {
  height: 34px;
  width: auto;
}

.nav-brand-text {
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--charcoal);
  font-weight: 400;
}

.nav-brand-text strong {
  font-weight: 700;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--orange);
}

.nav-links .nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 6px;
  transition: background 0.2s !important;
}

.nav-links .nav-cta:hover {
  background: var(--orange-dark) !important;
  color: var(--white) !important;
}

.lang-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--gray);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.lang-toggle:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all 0.28s;
}

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

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 80px;
  background: linear-gradient(155deg, #ffffff 55%, #fff6ee 100%);
  position: relative;
}

.hero-inner {
  max-width: 720px;
}

.hero-logo {
  max-width: 580px;
  width: 92%;
  height: auto;
  margin-bottom: 32px;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--gray);
  margin-bottom: 40px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--silver);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border: 2px solid var(--orange);
}

.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.btn-inquire {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 6px;
  border: 1.5px solid var(--orange);
  color: var(--orange);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  align-self: flex-start;
}

.btn-inquire:hover {
  background: var(--orange);
  color: var(--white);
}

/* ── SECTION COMMON ── */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 64px;
}

.section-header h2 {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  background: var(--orange);
  margin: 14px auto 0;
  border-radius: 2px;
}

.section-header p {
  color: var(--gray);
  font-size: 1rem;
  margin-top: 20px;
  line-height: 1.7;
}

/* ── ABOUT ── */
#about {
  background: var(--bg-light);
}

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

.pillar {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: box-shadow 0.25s, transform 0.25s;
}

.pillar:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.pillar-icon {
  width: 52px;
  height: 52px;
  background: #FFF1E6;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  margin-bottom: 20px;
}

.pillar h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--charcoal);
}

.pillar p {
  color: var(--gray);
  font-size: 0.92rem;
}

/* ── PRODUCTS ── */
#products {
  background: var(--white);
}

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

.product-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.product-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
}

.product-placeholder {
  height: 200px;
  background: #FAF7F4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--orange);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.product-placeholder span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.product-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
}

.product-info p {
  color: var(--gray);
  font-size: 0.88rem;
  flex: 1;
  line-height: 1.6;
}

/* ── WHY US ── */
#why-us {
  background: var(--bg-dark);
}

#why-us .section-header h2 {
  color: var(--white);
}

#why-us .section-header h2::after {
  background: var(--orange);
}

#why-us .section-header p {
  color: rgba(255, 255, 255, 0.55);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 80px;
}

.why-item {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
}

.why-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.75;
}

.why-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--white);
}

.why-item p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ── CONTACT ── */
#contact {
  background: var(--bg-light);
}

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

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.25s, transform 0.25s;
}

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

.wechat-card {
  cursor: default;
}

.wechat-card:hover {
  transform: none;
  box-shadow: none;
}

.contact-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.email-icon     { background: #FFF1E6; color: var(--orange); }
.line-icon      { background: #E7F8E7; color: #06C755; }
.phone-icon     { background: #EEF2FF; color: #4F6CFF; }
.wechat-icon    { background: #E7F8E7; color: #07C160; }

.contact-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--charcoal);
}

.contact-card p {
  color: var(--gray);
  font-size: 0.875rem;
}

/* ── FOOTER ── */
footer {
  background: var(--bg-dark);
  padding: 52px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-name {
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: 0.06em;
  font-weight: 400;
}

.footer-name strong {
  font-weight: 700;
}

.footer-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 3px;
}

.footer-nav {
  display: flex;
  gap: 28px;
}

.footer-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--orange);
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.25);
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .why-grid {
    gap: 36px 48px;
  }
}

@media (max-width: 700px) {
  .nav-right {
    gap: 12px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 15px 24px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links .nav-cta {
    margin: 14px 24px;
    border-radius: 6px;
    text-align: center;
    display: block;
  }

  .nav-toggle {
    display: flex;
  }

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

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

  .why-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-logo {
    max-width: 100%;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  section {
    padding: 72px 0;
  }
}

@media (max-width: 480px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
