@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --gold-light: #ffe272;
  --gold: #e4b224;
  --gold-deep: #bf932a;
  --gold-bright: #fff93b;
  --gold-border: #dfc678;
  --cream: #fcfcf7;
  --orange: #ff9900;
  --bg: #000;
  --bg-alt: #181818;
  --text: #fff;
  --text-dim: rgba(255,255,255,.85);
  --content-max: 1140px;
  --radius: 15px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Sarabun', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--gold); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold-light); }

h1, h2, h3, h4 {
  color: var(--gold-light);
  font-weight: 500;
  text-align: center;
  line-height: 1.35;
  margin: 1.2em 0 .6em;
}
h1 { font-size: 32px; }
h2 { font-size: 28px; }
h3 { font-size: 24px; text-align: start; }
p  { margin: 0 0 1em; }
strong, b { font-weight: 700; }

.accent { color: var(--orange); font-weight: 700; }

/* ─── layout ─── */
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: #fff; color: #000; padding: 6px 10px; z-index: 9999; }

/* ─── header ─── */
.site-header { position: relative; z-index: 10; }

.header-top { background: var(--bg-alt); }
.header-top-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header-top .logo img { max-height: 72px; width: auto; }
.header-top-actions { display: flex; gap: 12px; align-items: center; }
.header-top-right { display: flex; align-items: center; gap: 24px; }
.header-mobile-actions { display: flex; align-items: center; gap: 12px; }

/* ─── buttons ─── */
@keyframes pulseBtn {
  0%   { box-shadow: 0 0 0 0 rgba(191,147,42,.9); }
  100% { box-shadow: 0 0 20px 5px rgba(191,147,42,.9); }
}
@keyframes pulseBtnLight {
  0%   { box-shadow: 0 0 0 0 rgba(252,252,247,.75); }
  100% { box-shadow: 0 0 20px 5px rgba(252,252,247,.75); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font: 900 17px/1 'Sarabun', sans-serif;
  color: var(--cream);
  background: var(--gold-deep);
  border: 2px solid var(--gold-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .3s cubic-bezier(.25,.8,.25,1),
              background .3s, color .3s, border-color .3s;
  text-decoration: none;
  white-space: nowrap;
  will-change: transform, box-shadow;
}

/* Primary — filled gold, pulsing glow */
.btn--primary {
  background: var(--gold-deep);
  color: var(--cream);
  border-color: var(--gold-border);
  animation: pulseBtn .5s ease-in-out infinite alternate;
}
.btn--primary:hover {
  background: var(--gold);
  transform: scale(1.05);
  animation-play-state: paused;
  box-shadow: 0 0 24px 6px rgba(228,178,36,.9);
}

/* Ghost / light — cream with gold text, cream-coloured pulse */
.btn--ghost,
.btn--light {
  background: var(--cream);
  color: var(--gold-deep);
  border-color: var(--gold-border);
  animation: pulseBtnLight .5s ease-in-out infinite alternate;
}
.btn--ghost:hover,
.btn--light:hover {
  background: #fff;
  color: var(--gold-deep);
  transform: scale(1.05);
  animation-play-state: paused;
  box-shadow: 0 0 24px 6px rgba(255,255,255,.85);
}

.btn:active { transform: scale(0.98); }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .btn--primary, .btn--ghost, .btn--light { animation: none; }
}

/* ─── language switcher ─── */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
}
.lang-switch .lang-btn {
  color: var(--text-dim);
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.lang-switch .lang-btn:hover { color: var(--gold-light); }
.lang-switch .lang-btn.is-active {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
  pointer-events: none;
  cursor: default;
}
.lang-switch .lang-sep { color: rgba(255,255,255,.3); }

/* ─── main nav ─── */
.header-nav {
  background: linear-gradient(360deg, var(--gold-deep) 0%, var(--gold-bright) 100%);
}
.header-nav .container { padding: 0 20px; }

.main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.main-menu > li { position: relative; }
.main-menu > li > a {
  display: block;
  padding: 22px 34px;
  color: #1a1200;
  font-weight: 600;
  font-size: 20px;
  text-transform: none;
  transition: transform .3s cubic-bezier(.25,.8,.25,1), color .2s;
}
.main-menu > li > a:hover,
.main-menu > li.current-menu-item > a {
  transform: scale(1.08);
}

.main-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--bg-alt);
  box-shadow: 0 8px 24px rgba(0,0,0,.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 20;
}
.main-menu .sub-menu li a {
  display: block;
  padding: 12px 18px;
  color: var(--gold-light);
  font-size: 15px;
  font-weight: 500;
}
.main-menu .sub-menu li a:hover { background: rgba(255,255,255,.06); color: #fff; }
.main-menu > li:hover > .sub-menu,
.main-menu > li:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}

/* ─── mobile header ─── */
.header-mobile {
  display: none;
  background: var(--bg-alt);
  padding: 12px 16px;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 30;
}
.header-mobile .logo img { max-height: 54px; width: auto; }

.menu-toggle {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid var(--gold-border);
  border-radius: 50%;
  background: transparent;
  color: var(--gold-light);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
}
.menu-toggle:hover { background: rgba(255,226,114,.1); transform: scale(1.05); }
.menu-toggle svg { width: 24px; height: 24px; fill: var(--gold-light); }

.header-mobile-cta {
  display: none;
  background: var(--bg-alt);
  padding: 0 16px 14px;
}
.header-mobile-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.header-mobile-cta .btn { width: 100%; padding: 13px 12px; font-size: 15px; }

.header-mobile-lang {
  display: none;
  justify-content: center;
  padding: 6px 0 12px;
  background: var(--bg-alt);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.mobile-nav {
  display: none;
  background: var(--bg-alt);
  border-top: 2px solid var(--gold-deep);
}
.mobile-nav.is-open { display: block; }

.mobile-nav .main-menu,
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
}
.mobile-nav .main-menu > li { display: block; width: 100%; position: static; }

.mobile-nav .main-menu > li > a,
.mobile-nav a {
  display: block;
  padding: 16px 22px;
  color: var(--gold-light);
  font-size: 17px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .15s, color .15s, transform .15s;
}
.mobile-nav .main-menu > li > a:hover,
.mobile-nav a:hover,
.mobile-nav .main-menu > li.current-menu-item > a {
  background: rgba(255,226,114,.08);
  color: #fff;
  transform: none;
}

/* Inline-expanded sub-menu on mobile (no hover) */
.mobile-nav .sub-menu {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  background: rgba(0,0,0,.25);
  min-width: 0;
  padding: 0;
}
.mobile-nav .sub-menu a {
  padding: 12px 22px 12px 42px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dim);
}
.mobile-nav .sub-menu a::before { content: '— '; opacity: .45; margin-right: 4px; }

/* ─── hero ─── */
.hero { overflow: hidden; }
.hero img { width: 100%; }
.hero .hero-desktop { display: block; }
.hero .hero-mobile  { display: none; }

/* ─── main content column ─── */
.site-main { padding: 40px 0 60px; }
.post-body { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.post-body p { text-align: left; }
.post-body img { margin: 20px auto; border-radius: 10px; }

/* ─── icon-box grid ─── */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 36px;
  margin: 30px 0 40px;
}
.icon-box {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: start;
  gap: 18px;
}
.icon-box .icon {
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
}
.icon-box .icon svg { width: 56px; height: 56px; fill: var(--gold-light); }
.icon-box h3 { margin: 0 0 6px; font-size: 18px; color: var(--gold-light); text-align: start; }
.icon-box p { margin: 0; color: var(--text-dim); font-size: 15px; line-height: 1.55; }

/* ─── service cards ─── */
.service-section { margin: 30px 0; }
.service-section h3 {
  text-align: center;
  color: var(--gold-light);
  font-size: 22px;
  margin-bottom: 10px;
}
.service-section p { text-align: left; }

/* ─── testimonials ─── */
.testi-wrap { position: relative; margin: 30px 0; }
.testi-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 10px 4px 20px;
}
.testi-track::-webkit-scrollbar { height: 6px; }
.testi-track::-webkit-scrollbar-thumb { background: var(--gold-deep); border-radius: 3px; }

.testi-card {
  flex: 0 0 min(320px, 86%);
  scroll-snap-align: start;
  background: linear-gradient(180deg, rgba(191,147,42,.12), rgba(0,0,0,.35));
  border: 1px solid rgba(253,224,141,.25);
  border-radius: var(--radius);
  padding: 22px;
}
.testi-card .name { font-weight: 700; color: var(--gold-light); }
.testi-card .stars { color: var(--gold); letter-spacing: 2px; margin: 4px 0 6px; }
.testi-card .role { font-size: 14px; color: var(--text-dim); margin-bottom: 12px; }
.testi-card .quote { font-size: 15px; line-height: 1.6; color: #fff; }

.testi-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
}
.testi-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gold-deep);
  border: 2px solid var(--gold-border);
  color: #fff;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, transform .2s;
}
.testi-btn:hover { background: var(--gold); transform: scale(1.08); }
.testi-btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ─── FAQ ─── */
.faq { margin: 30px 0 10px; }
.faq details {
  border-bottom: 1px solid rgba(253,224,141,.25);
  padding: 6px 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 40px 16px 4px;
  font-size: 17px;
  font-weight: 600;
  color: var(--gold-light);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute;
  right: 8px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--gold-light);
  border-bottom: 2px solid var(--gold-light);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 4px 4px 14px; color: var(--text-dim); }

/* ─── page hero (inner pages) ─── */
.page-hero {
  max-width: 1140px;
  margin: 20px auto 0;
  padding: 0 16px;
}
.page-hero img { border-radius: 14px; width: 100%; display: block; }

/* ─── inner page body ─── */
.post-body h2 { margin-top: 1.8em; }
.post-body h3 { color: var(--gold-light); margin-top: 1.4em; font-size: 20px; }
.post-body ul, .post-body ol { padding-left: 22px; margin: 0 0 1em; }
.post-body li { margin: 4px 0; line-height: 1.7; }
.post-body code {
  background: rgba(253,224,141,.12);
  color: var(--gold-light);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: .92em;
}

.breadcrumbs {
  font-size: 13px;
  color: var(--text-dim);
  margin: 6px 0 4px;
}
.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs a:hover { color: var(--gold-light); }
.breadcrumbs .current { color: var(--gold-light); }

.page-cta { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

/* ─── footer ─── */
.site-footer {
  background: var(--bg-alt);
  color: var(--text-dim);
  padding: 40px 0 24px;
  margin-top: 40px;
  border-top: 2px solid var(--gold-deep);
}
.footer-top {
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 30px;
  padding: 30px 20px;
  max-width: var(--content-max);
  margin: 0 auto;
}
.footer-grid h4 { text-align: start; color: var(--gold-light); margin: 0 0 14px; font-size: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-dim);
}
.footer-grid li a { color: var(--text-dim); }
.footer-grid li a:hover { color: var(--gold-light); }
.footer-grid li::before {
  content: '▸';
  color: var(--gold-deep);
  font-size: 12px;
}
.footer-brand img { max-width: 220px; margin-bottom: 12px; }
.footer-brand h3 { text-align: start; color: var(--gold-light); margin: 0 0 8px; font-size: 18px; }
.footer-brand p { font-size: 13px; line-height: 1.6; color: var(--text-dim); }

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  padding: 10px 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* ─── mobile sticky bottom-nav ─── */
.bottom-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-alt);
  border-top: 2px solid var(--gold-deep);
  box-shadow: 0 -8px 24px rgba(0,0,0,.45);
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  align-items: center;
  gap: 4px;
}
.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 2px;
  color: var(--gold-light);
  text-align: center;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
  transition: color .15s, transform .15s;
}
.bn-item svg { width: 26px; height: 26px; fill: currentColor; }
.bn-item:hover,
.bn-item:focus-visible { color: #fff; transform: translateY(-2px); }
.bn-item--accent { color: var(--gold-bright); }

.bn-center {
  position: relative;
  width: 78px; height: 78px;
  margin: -34px 4px 0;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 3px solid var(--gold-deep);
  box-shadow: 0 0 16px rgba(255,249,59,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: pulseBadge 2s ease-in-out infinite alternate;
}
.bn-center img {
  width: 86%;
  height: auto;
  object-fit: contain;
}
@keyframes pulseBadge {
  0%   { box-shadow: 0 0 12px 0 rgba(255,249,59,.25); }
  100% { box-shadow: 0 0 22px 4px rgba(255,249,59,.55); }
}

/* ─── responsive ─── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .header-top, .header-nav { display: none !important; }
  .header-mobile { display: flex; }
  .header-mobile-cta { display: block; }
  .header-mobile-lang { display: flex; }
  .hero .hero-desktop { display: none; }
  .hero .hero-mobile  { display: block; }
  .icon-grid { grid-template-columns: 1fr; }
  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-grid h4, .footer-brand h3 { text-align: center; }
  .footer-grid li { justify-content: center; }

  .bottom-nav { display: grid; }
  body { padding-bottom: 78px; }   /* clearance for sticky bar */
  .site-footer { margin-bottom: 0; }
}
