/* ============================================================
   โรงงานฟอกย้อมเอเซีย — สไตล์หลักของเว็บไซต์ (โทนสีเทา)
   ============================================================ */

:root {
  --gray-950: #17181a;
  --gray-900: #212226;
  --gray-800: #313339;
  --gray-700: #46484f;
  --gray-600: #63656d;
  --gray-500: #83858c;
  --gray-400: #a6a8ae;
  --gray-300: #c7c8cd;
  --gray-200: #dedfe2;
  --gray-100: #eeeef0;
  --gray-50:  #f7f7f8;
  --white:    #ffffff;

  --font-head: "Kanit", "Noto Sans Thai", sans-serif;
  --font-body: "Noto Sans Thai", "Kanit", sans-serif;

  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(23, 24, 26, 0.08);
  --shadow-md: 0 8px 24px rgba(23, 24, 26, 0.12);
  --container: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--gray-950);
  line-height: 1.35;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--gray-700); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }
.section-tight { padding: 48px 0; }

.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-head p { color: var(--gray-600); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray-500);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  padding: 6px 14px;
  border-radius: 999px;
}

.bg-alt { background: var(--gray-50); }
.bg-dark { background: var(--gray-950); color: var(--gray-200); }
.bg-dark h2, .bg-dark h3 { color: var(--white); }
.bg-dark p { color: var(--gray-300); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .98rem;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--gray-950); color: var(--white); }
.btn-primary:hover { background: var(--gray-800); }

.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

.btn-outline { background: transparent; color: var(--gray-900); border-color: var(--gray-300); }
.btn-outline:hover { border-color: var(--gray-900); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--gray-200);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gray-950);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--gray-950);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text small { font-family: var(--font-body); font-weight: 400; font-size: .72rem; color: var(--gray-500); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  font-family: var(--font-head);
  font-size: .96rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: 10px 16px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
  white-space: nowrap;
}

.nav-links a:hover { background: var(--gray-100); color: var(--gray-950); }
.nav-links a.active { background: var(--gray-950); color: var(--white); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 10px 22px; font-size: .92rem; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gray-900);
  position: relative;
  transition: transform .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,24,26,.78) 0%, rgba(23,24,26,.72) 45%, rgba(23,24,26,.92) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 128px 0 110px;
  max-width: 720px;
}
.hero .eyebrow { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: var(--gray-100); }
.hero h1 { color: var(--white); margin: 18px 0 16px; }
.hero p.lead { color: var(--gray-200); font-size: 1.08rem; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.page-hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
}
.page-hero .hero-inner { padding: 78px 0 64px; max-width: 640px; }
.page-hero p.lead { color: var(--gray-200); }

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: -64px;
  position: relative;
  z-index: 2;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 26px 24px;
  text-align: center;
}
.stat-card h3 { margin-bottom: 4px; font-size: 1.05rem; }
.stat-card p { margin: 0; font-size: .9rem; color: var(--gray-500); }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.service-card .card-media { height: 190px; overflow: hidden; }
.service-card .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.service-card:hover .card-media img { transform: scale(1.06); }
.service-card .card-body { padding: 24px 24px 26px; }
.service-card .num { font-family: var(--font-head); font-size: .8rem; font-weight: 600; color: var(--gray-400); letter-spacing: .08em; }

.feature-card {
  padding: 28px 24px;
  text-align: left;
}
.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--gray-950);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.process-grid { grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.process-step { position: relative; padding: 30px 22px; text-align: left; border-radius: var(--radius); background: var(--white); border: 1px solid var(--gray-200); }
.process-step .step-no {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--gray-300);
  margin-bottom: 14px;
}

/* ---------- Split content ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.check-list li { display: flex; gap: 12px; margin-bottom: 14px; color: var(--gray-700); align-items: flex-start; }
.check-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gray-950);
  color: var(--white);
  font-size: .78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--gray-950);
  color: var(--white);
  border-radius: 18px;
  padding: 52px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 8px; }
.cta-banner p { color: var(--gray-300); margin: 0; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { grid-template-columns: 1.1fr 1.4fr; align-items: start; }
.info-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
}
.info-card .icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--gray-100); color: var(--gray-900);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.info-card h3 { margin-bottom: 4px; font-size: 1.05rem; }
.info-card p { margin: 0; color: var(--gray-600); }
.info-card a.value { color: var(--gray-900); font-weight: 500; display: block; }
.info-card a.value:hover { text-decoration: underline; }

.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); }
.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(45%) contrast(1.05); }

/* ---------- Policy page ---------- */
.policy-wrap { max-width: 820px; margin: 0 auto; }
.policy-wrap h2 { margin-top: 2.2em; font-size: 1.35rem; }
.policy-wrap h2:first-of-type { margin-top: 0; }
.policy-wrap ul { margin: 0 0 1em; padding-left: 0; }
.policy-wrap ul li { position: relative; padding-left: 22px; margin-bottom: 10px; color: var(--gray-700); }
.policy-wrap ul li::before { content: "–"; position: absolute; left: 0; color: var(--gray-400); }
.policy-updated { color: var(--gray-500); font-size: .92rem; margin-bottom: 2.4em; }
.policy-note {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 1.6em 0;
  color: var(--gray-600);
  font-size: .95rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--gray-950); color: var(--gray-400); padding: 64px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--gray-800);
}
.footer-brand .brand { color: var(--white); margin-bottom: 14px; }
.footer-brand .brand-mark { background: var(--white); color: var(--gray-950); }
.footer-brand p { color: var(--gray-500); max-width: 320px; font-size: .93rem; }
.footer-col h4 { color: var(--white); font-size: .95rem; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--gray-400); font-size: .93rem; transition: color .2s ease; }
.footer-col a:hover { color: var(--white); }
.footer-col p { color: var(--gray-400); font-size: .93rem; margin-bottom: 6px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: .85rem;
  color: var(--gray-500);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: var(--gray-500); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split img { aspect-ratio: 16/9; }
  .stat-strip { grid-template-columns: 1fr; margin-top: -40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { gap: 8px; }
  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 74px;
    left: 16px;
    right: 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: var(--shadow-md);
  }
  body.nav-open .nav-links a { width: 100%; }
  .grid-3, .grid-4, .process-grid, .footer-grid { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .hero-inner { padding: 96px 0 84px; }
  .cta-banner { padding: 36px 26px; flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
