:root {
  --bg: #f5f1e8;
  --paper: #fffaf1;
  --ink: #13251f;
  --muted: #66746c;
  --line: rgba(19, 37, 31, 0.12);
  --green: #173f32;
  --green-2: #255c49;
  --sage: #dfe9dd;
  --sand: #ece2ce;
  --orange: #c96a1b;
  --orange-soft: rgba(201, 106, 27, 0.14);
  --shadow: 0 24px 80px rgba(19, 37, 31, 0.12);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #e2eadc 0, transparent 34rem), var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.25'/%3E%3C/svg%3E");
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
p { margin: 0; color: var(--muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 72px);
  backdrop-filter: blur(18px);
  background: rgba(245, 241, 232, 0.78);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: inset 0 -8px 20px rgba(255,255,255,0.12), 0 0 0 4px var(--orange-soft);
  overflow: hidden;
}
.brand-mark svg {
  width: 34px;
  height: 34px;
}
.brand-mark path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 600;
}
.nav a { color: rgba(19, 37, 31, 0.74); transition: color .2s ease, border-color .2s ease, background .2s ease; }
.nav a:hover { color: var(--orange); }
.nav-cta {
  padding: 10px 16px;
  border: 1px solid rgba(201,106,27,0.28);
  border-radius: 999px;
  background: rgba(255,255,255,0.38);
}
.nav-cta:hover { background: var(--orange-soft); }
.nav-toggle { display: none; }

.section-pad { padding: clamp(72px, 9vw, 124px) clamp(20px, 5vw, 72px); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(32px, 7vw, 96px);
  min-height: calc(100vh - 74px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--green-2);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 99px;
  background: var(--orange);
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: -0.06em;
}
h1 { font-size: clamp(48px, 8vw, 96px); max-width: 920px; }
h2 { font-size: clamp(36px, 5.8vw, 70px); }
h3 { font-size: 22px; letter-spacing: -0.04em; }

.hero-lead {
  margin-top: 28px;
  max-width: 650px;
  font-size: clamp(18px, 2vw, 22px);
}
.hero-note {
  margin-top: 16px;
  max-width: 620px;
  color: var(--green-2);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  background: var(--green);
  color: #fffaf1;
  box-shadow: 0 14px 40px rgba(23,63,50,0.24);
}
.btn.primary:hover { background: var(--orange); box-shadow: 0 14px 40px rgba(201,106,27,0.22); }
.btn.secondary {
  background: rgba(255,250,241,0.66);
  border-color: var(--line);
}
.btn.secondary:hover { border-color: rgba(201,106,27,0.34); color: var(--orange); }

.hero-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(255,250,241,0.92), rgba(223,233,221,0.62));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.pulse-line {
  padding: 42px 32px 24px;
  border-bottom: 1px solid var(--line);
}
.pulse-line svg { width: 100%; height: auto; }
.pulse-line path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 8;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 800;
  animation: draw 2.2s ease both;
  filter: drop-shadow(0 12px 20px rgba(201,106,27,0.12));
}
@keyframes draw { from { stroke-dashoffset: 800; } to { stroke-dashoffset: 0; } }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.card-grid div {
  min-height: 170px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.card-grid div:nth-child(2n) { border-right: 0; }
.card-grid div:nth-last-child(-n+2) { border-bottom: 0; }
.card-grid span, .service-no {
  display: block;
  margin-bottom: 18px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.card-grid strong { display: block; margin-bottom: 8px; font-size: 18px; letter-spacing: -0.04em; }
.card-grid p { font-size: 14px; }

.trusted-strip {
  margin: 0 clamp(20px, 5vw, 72px);
  padding: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.trusted-strip p { color: var(--ink); font-weight: 700; }

.section-heading {
  display: grid;
  grid-template-columns: 0.85fr 1.6fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 46px;
}
.service-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card {
  padding: 30px;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,250,241,0.6);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.service-card:hover { transform: translateY(-3px); border-color: rgba(201,106,27,0.28); }
.service-card h3 { margin-bottom: 18px; }
.service-card p { font-size: 15px; }
.accent-card {
  background: var(--green);
  color: var(--paper);
  border-color: rgba(201,106,27,0.48);
  box-shadow: inset 0 4px 0 var(--orange);
}
.accent-card p, .accent-card .service-no { color: rgba(255,250,241,0.74); }

.approach { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; background: rgba(255,250,241,0.52); }
.approach-copy p { margin-top: 24px; font-size: 18px; max-width: 540px; }
.steps { display: grid; gap: 18px; }
.step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.42);
}
.step span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange);
  font-weight: 800;
}
.step h3 { margin-bottom: 8px; }

.about { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; align-items: stretch; }
.about-card {
  padding: clamp(32px, 5vw, 62px);
  border-radius: var(--radius-lg);
  background: var(--green);
  color: var(--paper);
  box-shadow: var(--shadow);
}
.about-card .eyebrow, .about-card p { color: rgba(255,250,241,0.78); }
.about-card h2 { margin-bottom: 26px; }
.about-card p + p { margin-top: 18px; }
.metrics { display: grid; gap: 16px; }
.metrics div {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,250,241,0.6);
}
.metrics strong { display: block; font-size: 24px; letter-spacing: -0.05em; }
.metrics span { color: var(--muted); }

.insight { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 46px; align-items: end; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.insight p { font-size: 20px; color: var(--ink); }

.articles-preview { border-bottom: 1px solid var(--line); }
.article-preview-grid, .article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.article-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,250,241,0.68);
  transition: transform .2s ease, border-color .2s ease;
}
.article-card:hover { transform: translateY(-3px); border-color: rgba(201,106,27,0.32); }
.article-card .tag, .article-meta { color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.article-card h3 { margin: 18px 0 14px; }
.article-card p { font-size: 15px; }
.article-card .read-more { margin-top: auto; padding-top: 24px; color: var(--green); font-weight: 800; }
.article-card .read-more:hover { color: var(--orange); }
.article-preview-actions { margin-top: 28px; }

.page-hero { padding-bottom: clamp(36px, 5vw, 72px); }
.page-hero h1 { max-width: 980px; }
.page-hero p { margin-top: 24px; max-width: 720px; font-size: 20px; }
.article-layout { max-width: 860px; margin: 0 auto; padding-top: 36px; }
.article-body { font-size: 18px; }
.article-body h2 { font-size: clamp(28px, 4vw, 42px); margin: 46px 0 14px; }
.article-body p { margin: 18px 0; color: var(--ink); }
.article-body ul, .article-body ol { color: var(--ink); }
.article-body blockquote { margin: 28px 0; padding: 20px 24px; border-left: 4px solid var(--orange); background: rgba(255,250,241,0.7); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.back-link { display: inline-flex; margin-top: 34px; color: var(--green); font-weight: 800; }
.back-link:hover { color: var(--orange); }

.contact { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 36px; }
.contact-copy p { margin-top: 22px; font-size: 18px; max-width: 560px; }
.contact-links { display: grid; gap: 12px; margin-top: 30px; }
.contact-links a { width: fit-content; border-bottom: 1px solid currentColor; color: var(--green); font-weight: 800; }
.contact-links a:hover { color: var(--orange); }
.contact-form {
  display: grid;
  gap: 18px;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: rgba(255,250,241,0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.contact-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 800; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: rgba(255,255,255,0.74);
  color: var(--ink);
  font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(201,106,27,0.22); border-color: rgba(201,106,27,0.45); }
textarea { resize: vertical; }
.form-note { font-size: 12px; }
.hidden { display: none; }

.admin-shell { max-width: 1180px; margin: 0 auto; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.admin-panel { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,250,241,0.72); box-shadow: var(--shadow); }
.admin-panel label { display: grid; gap: 8px; margin-bottom: 16px; font-weight: 800; font-size: 14px; }
.admin-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.code-output { min-height: 210px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 13px; }
.admin-note { margin-top: 16px; font-size: 14px; }
.preview-card { margin-top: 18px; }

.footer { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 40px clamp(20px, 5vw, 72px); border-top: 1px solid var(--line); }
.footer p { margin-top: 12px; font-size: 14px; }
.footer-links { display: flex; align-items: start; gap: 18px; font-weight: 700; color: var(--muted); }
.footer-links a:hover { color: var(--orange); }
.legal-note { grid-column: 1 / -1; color: var(--muted); }

@media (max-width: 980px) {
  .hero, .section-heading, .approach, .about, .insight, .contact, .admin-grid { grid-template-columns: 1fr; }
  .service-list, .article-preview-grid, .article-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-grid; gap: 5px; width: 44px; height: 44px; place-content: center; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,250,241,0.7); }
  .nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); }
  .nav { position: fixed; top: 74px; left: 16px; right: 16px; display: none; flex-direction: column; align-items: stretch; padding: 18px; border-radius: 22px; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav-cta { text-align: center; }
  .hero { min-height: auto; padding-top: 54px; }
  .card-grid, .service-list, .article-preview-grid, .article-grid { grid-template-columns: 1fr; }
  .card-grid div, .card-grid div:nth-child(2n), .card-grid div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .card-grid div:last-child { border-bottom: 0; }
  .footer { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
}

.lang-toggle {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(201,106,27,0.32);
  border-radius: 999px;
  background: rgba(255,250,241,0.55);
  color: var(--orange);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.lang-toggle:hover {
  background: var(--orange-soft);
  transform: translateY(-1px);
}
body.lang-th h1,
body.lang-th h2,
body.lang-th h3 {
  letter-spacing: -0.035em;
}
.compact-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.admin-article-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.admin-article-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,250,241,0.56);
}
.admin-article-row strong {
  display: block;
  line-height: 1.25;
}
.admin-article-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
@media (max-width: 720px) {
  .compact-grid { grid-template-columns: 1fr; }
  .admin-article-row { align-items: flex-start; flex-direction: column; }
}


.reviews {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,250,241,0.34);
}
.reviews-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: start;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.review-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,250,241,0.72);
  min-height: 220px;
}
.review-card .stars, .stars {
  color: var(--orange);
  letter-spacing: 0.08em;
  font-weight: 800;
  margin-bottom: 16px;
}
.review-card p {
  color: var(--ink);
  font-size: 16px;
}
.review-card footer {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.review-card small {
  display: block;
  margin-top: 6px;
  color: var(--orange);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.review-form {
  display: grid;
  gap: 16px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,250,241,0.76);
  box-shadow: var(--shadow);
}
.review-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}
.checkbox-label {
  grid-template-columns: 20px 1fr !important;
  align-items: start;
  font-weight: 600 !important;
}
.checkbox-label input {
  width: 18px;
  margin-top: 4px;
}
.admin-review-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.admin-review-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,250,241,0.72);
}
.admin-review-item h4 {
  margin: 0 0 6px;
}
.admin-review-item p {
  margin: 10px 0;
}
.admin-review-status {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
}
@media (max-width: 980px) {
  .reviews-layout, .review-grid {
    grid-template-columns: 1fr;
  }
}
