/* ============================================================
   Design tokens — ปรับสี/ฟอนต์ได้ที่นี่
   ============================================================ */
:root {
  --navy-900: #0b1f3a;
  --navy-800: #10294c;
  --navy-700: #16355f;
  --navy-100: #e8eef7;
  --gold-500: #d4a13c;
  --gold-600: #b8892e;
  --text-900: #1c2733;
  --text-600: #4b5a6b;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --border: #dde5ee;
  --green-line: #06c755;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 12px 40px rgba(11, 31, 58, 0.14);
  --font: "Prompt", "Noto Sans SC", -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font);
  color: var(--text-900);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  width: min(1140px, 100% - 2.5rem);
  margin-inline: auto;
}
.container-narrow { width: min(820px, 100% - 2.5rem); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 14px rgba(11, 31, 58, 0.07);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-logo { height: 44px; width: auto; }
.brand-name { font-weight: 600; font-size: 1.08rem; color: var(--navy-900); white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-600);
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--navy-900); }
.main-nav .nav-cta {
  background: var(--gold-500);
  color: #fff;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  transition: background 0.2s;
}
.main-nav .nav-cta:hover { background: var(--gold-600); color: #fff; }

.header-actions { display: flex; align-items: center; gap: 0.9rem; }

.lang-switcher {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.lang-btn {
  border: 0;
  background: transparent;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-600);
  padding: 0.42rem 0.8rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-btn:hover { background: var(--navy-100); }
.lang-btn.active { background: var(--navy-800); color: #fff; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 0 10px;
}
.menu-toggle span {
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(212, 161, 60, 0.18), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff;
  padding: 5.5rem 0 5rem;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 3rem;
}
.hero-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold-500);
  border: 1px solid rgba(212, 161, 60, 0.45);
  background: rgba(212, 161, 60, 0.1);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.3rem;
}
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.1rem;
}
.hero-subtitle {
  font-size: 1.06rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.8rem; }

.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--gold-500); color: #fff; }
.btn-primary:hover { background: var(--gold-600); }
.btn-outline { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-block { width: 100%; }

.hero-stats {
  display: flex;
  gap: 2.6rem;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 1.75rem; font-weight: 700; color: var(--gold-500); }
.stat-label { font-size: 0.86rem; color: rgba(255, 255, 255, 0.75); }

/* hero visual — โลโก้บริษัทพร้อมแสงเรืองด้านหลัง */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-visual::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 161, 60, 0.28) 0%, rgba(212, 161, 60, 0.08) 45%, transparent 70%);
}
.hero-logo {
  position: relative;
  width: min(330px, 90%);
  filter: drop-shadow(0 10px 34px rgba(0, 0, 0, 0.45));
}

/* ============================================================
   Sections (shared)
   ============================================================ */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 42rem; margin: 0 auto 3rem; }
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.6rem;
}
.section-head p { color: var(--text-600); }

/* ===== Services cards ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(212, 161, 60, 0.5);
}
.card-icon { font-size: 2rem; margin-bottom: 0.9rem; }
.card h3 { font-size: 1.08rem; font-weight: 600; color: var(--navy-900); margin-bottom: 0.5rem; }
.card p { font-size: 0.93rem; color: var(--text-600); }

/* ===== About / features ===== */
.about-text {
  max-width: 46rem;
  margin: -1.4rem auto 3rem;
  text-align: center;
  color: var(--text-600);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.feature {
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.8rem 1.3rem;
  box-shadow: var(--shadow);
}
.feature-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.feature h3 { font-size: 1.02rem; font-weight: 600; color: var(--navy-900); margin-bottom: 0.45rem; }
.feature p { font-size: 0.9rem; color: var(--text-600); }

/* ===== Process steps ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 1.5rem 1.7rem;
}
.step-num {
  position: absolute;
  top: -20px;
  left: 1.4rem;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: var(--navy-800);
  border: 3px solid var(--gold-500);
  border-radius: 50%;
}
.step h3 { font-size: 1.02rem; font-weight: 600; color: var(--navy-900); margin-bottom: 0.45rem; }
.step p { font-size: 0.9rem; color: var(--text-600); }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 0.9rem; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 500;
  color: var(--navy-900);
  padding: 1.05rem 3rem 1.05rem 1.3rem;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold-600);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  padding: 0 1.3rem 1.15rem;
  color: var(--text-600);
  font-size: 0.94rem;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.form-field { margin-bottom: 1.2rem; }
.form-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy-900);
  margin-bottom: 0.4rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text-900);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.72rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field textarea { resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(212, 161, 60, 0.18);
}
.form-field input.invalid,
.form-field select.invalid,
.form-field textarea.invalid { border-color: #d64545; }

.form-status { margin-top: 1rem; font-size: 0.92rem; display: none; }
.form-status.success { display: block; color: #1c7c3c; }
.form-status.error { display: block; color: #c0392b; }

.contact-info {
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem;
}
.contact-info h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 1.4rem; color: var(--gold-500); }
.contact-info ul { display: flex; flex-direction: column; gap: 1.15rem; }
.contact-info li { display: flex; gap: 0.85rem; align-items: flex-start; }
.ci-icon { font-size: 1.15rem; line-height: 1.5; }
.ci-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
}
.contact-info a { color: #fff; }
.contact-info a:hover { color: var(--gold-500); }
.contact-info span[data-company], .contact-info a { font-size: 0.95rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.8);
  padding: 3.5rem 0 0;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-brand { margin-bottom: 0.9rem; }
.footer-brand .brand-name { color: #fff; }
.site-footer h4 { color: var(--gold-500); font-size: 0.95rem; font-weight: 600; margin-bottom: 0.9rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a:hover, .site-footer a:hover { color: var(--gold-500); }
.site-footer p { margin-bottom: 0.4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  padding: 1.2rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom p { margin: 0; }

/* ============================================================
   Floating contact buttons
   ============================================================ */
.float-contact {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  z-index: 90;
}
.float-btn {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 6px 18px rgba(11, 31, 58, 0.28);
  transition: transform 0.15s, filter 0.15s;
}
.float-btn:hover { transform: translateY(-3px); filter: brightness(1.08); }
.float-btn svg { width: 26px; height: 26px; }
.float-line { background: var(--green-line); }
.float-wechat { background: #07c160; }
.float-call { background: var(--navy-700); }
.float-mail { background: var(--gold-500); }
.float-fb { background: #1877f2; }

/* ============================================================
   WeChat QR modal
   ============================================================ */
.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(11, 31, 58, 0.65);
  padding: 1.5rem;
}
.qr-modal.open { display: flex; }
.qr-modal-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2rem 1.8rem 1.6rem;
  width: min(360px, 100%);
  text-align: center;
}
.qr-modal-card h3 { color: var(--navy-900); font-size: 1.15rem; font-weight: 600; margin-bottom: 1rem; }
.qr-modal-img {
  width: min(260px, 100%);
  margin: 0 auto 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.qr-modal-hint { font-size: 0.88rem; color: var(--text-600); margin-bottom: 0.5rem; }
.qr-modal-id { font-size: 1.05rem; font-weight: 600; color: #07c160; }
.qr-modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  border: 0;
  background: transparent;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--text-600);
  cursor: pointer;
}
.qr-modal-close:hover { color: var(--navy-900); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.4rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 0.6rem 1.25rem 1rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.22s, opacity 0.22s, visibility 0.22s;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav a { padding: 0.8rem 0.2rem; border-bottom: 1px solid var(--bg-alt); }
  .main-nav .nav-cta {
    margin-top: 0.8rem;
    text-align: center;
    border-bottom: 0;
  }
  .brand-name { display: none; }
  .hero { padding: 3.5rem 0; }
  .hero-stats { gap: 1.6rem; }
  .section { padding: 3.5rem 0; }
  .cards-grid, .features-grid, .process-steps { grid-template-columns: 1fr; }
  .process-steps { row-gap: 2.4rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .contact-form { padding: 1.4rem; }
}
