/* ===========================================================
   INTAS — design system
   Extracted from the original bundle and expanded into a
   clean, reusable stylesheet for the full multi-page site.
   =========================================================== */

:root {
  --bg:        #F5F5F3;
  --surface:   #FFFFFF;
  --surface-2: #FBFBFA;
  --tint:      #EAF3EC;   /* soft green wash */
  --ink:       #242423;   /* headings */
  --body:      #2B2B2B;
  --muted:     #6A6A66;
  --muted-2:   #5A5A57;
  --faint:     #9A9A95;
  --line:      #EAEAE6;
  --line-2:    #E4E4E0;
  --green:     #2E9E5B;
  --green-dk:  #24824A;
  --green-br:  #3ECF7E;
  --dark:      #26332B;
  --shadow-sm: 0 1px 4px rgba(30,30,28,0.08);
  --shadow-md: 0 10px 24px rgba(46,158,91,0.28);
  --shadow-lg: 0 14px 34px rgba(30,30,28,0.10);
  --radius:    20px;
  --radius-lg: 28px;
  --wrap:      1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  /* Latin renders in Manrope; Thai glyphs fall through to IBM Plex Sans Thai */
  font-family: 'Manrope', 'IBM Plex Sans Thai', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ---------- Thai typography tuning ----------
   Thai stacks vowels/tone marks vertically and doesn't use negative
   letter-spacing, so tighten nothing and give headings room to breathe. */
html[lang="th"] body,
html[lang="th"] h1, html[lang="th"] h2, html[lang="th"] h3,
html[lang="th"] .h1, html[lang="th"] .h2, html[lang="th"] .h3,
html[lang="th"] .brand { letter-spacing: normal; }
html[lang="th"] .h1, html[lang="th"] .hero h1 { line-height: 1.22; }
html[lang="th"] .h2, html[lang="th"] .cta-band h2,
html[lang="th"] .page-hero h1 { line-height: 1.3; }
html[lang="th"] .lead, html[lang="th"] p { line-height: 1.8; }
html[lang="th"] .badge, html[lang="th"] .eyebrow,
html[lang="th"] .trust .label, html[lang="th"] .footer-col .head,
html[lang="th"] .contact-item .k { letter-spacing: 0.01em; }

a { color: var(--green); text-decoration: none; transition: color .15s; }
a:hover { color: var(--green-dk); }
::selection { background: #cfe9d8; }
img { max-width: 100%; display: block; }

h1, h2, h3 { color: var(--ink); letter-spacing: -0.02em; margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; width: 100%; }
.page { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.eyebrow {
  color: var(--green); font-weight: 700; font-size: 14px;
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px;
}
.lead { font-size: 19px; line-height: 1.6; color: var(--muted-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-weight: 700; font-size: 16px;
  padding: 15px 28px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .12s, box-shadow .12s, background .15s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--green-dk); color: #fff; }
.btn-ghost { background: #fff; color: var(--body); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--body); border-color: #cfcfca; }
.btn-bright { background: var(--green-br); color: #123320; }
.btn-bright:hover { color: #123320; }
.btn-sm { font-size: 14px; padding: 11px 20px; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245,245,243,0.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { padding: 18px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: #333; }
.brand span { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a.nav-link { color: var(--muted-2); font-weight: 600; font-size: 15px; }
.nav-links a.nav-link.active { color: var(--body); font-weight: 700; }
.nav-links a.nav-link:hover { color: var(--green); }

/* language toggle */
.lang {
  display: inline-flex; background: #EDEDEA; border: 1px solid var(--line-2);
  border-radius: 999px; padding: 3px; gap: 2px;
}
.lang button {
  padding: 6px 14px; border: none; border-radius: 999px; font-family: inherit;
  font-weight: 700; font-size: 13px; cursor: pointer; transition: all .15s;
  background: transparent; color: #8A8A86;
}
.lang button.active { background: #fff; color: var(--green); box-shadow: 0 1px 3px rgba(0,0,0,0.12); }

/* mobile nav toggle */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 6px;
  color: var(--ink);
}

/* ---------- sections ---------- */
section { width: 100%; }
.section-pad { padding: 88px 32px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.h1 { font-size: 56px; line-height: 1.08; font-weight: 800; color: var(--ink); text-wrap: balance; }
.h2 { font-size: 40px; line-height: 1.1; font-weight: 800; }
.h3 { font-size: 21px; font-weight: 800; }

/* pill badge */
.badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--tint);
  color: var(--green); font-weight: 700; font-size: 13px; padding: 7px 14px;
  border-radius: 999px; margin-bottom: 22px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding: 80px 32px 70px; }
.hero h1 { margin: 0 0 22px; }
.hero .lead { margin: 0 0 34px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { position: relative; }
.photo {
  border-radius: 24px; overflow: hidden; border: 1px solid var(--line-2);
  background-image: repeating-linear-gradient(135deg,#EDEDEA 0 14px,#F4F4F1 14px 28px);
  display: flex; align-items: flex-end; justify-content: center; padding: 22px;
}
.photo .tag {
  font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--faint);
  background: #fff; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line-2);
}
/* real image variant — fills the box, no stripes/padding */
.photo.has-img { padding: 0; background: none; }
.photo.has-img img { width: 100%; height: 100%; object-fit: cover; }
.float-card {
  position: absolute; bottom: -22px; left: -22px; background: #fff; border: 1px solid #EAEAE6;
  border-radius: 18px; padding: 16px 20px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 14px;
}
.float-card .ic {
  width: 44px; height: 44px; border-radius: 12px; background: var(--tint);
  display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--green); font-size: 18px;
}
.float-card .t1 { font-weight: 800; font-size: 16px; color: var(--ink); }
.float-card .t2 { font-size: 13px; color: #7A7A76; }

/* ---------- trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.trust-inner { padding: 26px 32px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; }
.trust .label { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }
.trust .stats { display: flex; flex-wrap: wrap; gap: 40px; }
.stat { display: flex; align-items: baseline; gap: 10px; }
.stat .big { font-size: 26px; font-weight: 800; color: var(--green); }
.stat .sm { font-size: 14px; color: var(--muted); font-weight: 600; }

/* ---------- cards grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column; gap: 16px;
}
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--tint);
  display: flex; align-items: center; justify-content: center;
}
.card h3 { color: var(--ink); }
.card p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; flex: 1; }
.card .more { font-weight: 700; font-size: 14px; color: var(--green); }

/* feature list inside cards */
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 10px; font-size: 15px; color: var(--muted-2); line-height: 1.5; }
.ticks li::before { content: "✓"; color: var(--green); font-weight: 800; }

/* ---------- panel (about teaser / generic) ---------- */
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--dark); border-radius: var(--radius-lg); padding: 60px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; top: -40px; right: -30px; width: 180px; height: 180px;
  border-radius: 50%; background: rgba(62,207,126,0.14);
}
.cta-band h2 { color: #fff; font-size: 38px; line-height: 1.12; margin: 0 0 16px; position: relative; }
.cta-band p { font-size: 17px; color: #B7C4BB; margin: 0 auto 30px; max-width: 520px; position: relative; }
.cta-band .btn { position: relative; }

/* ---------- footer ---------- */
.site-footer { margin-top: auto; border-top: 1px solid var(--line); background: var(--surface-2); }
.footer-grid { padding: 52px 32px 28px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid .brand { font-size: 24px; margin-bottom: 14px; }
.footer-grid p { font-size: 15px; line-height: 1.6; color: #7A7A76; margin: 0; max-width: 300px; }
.footer-col .head { font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.footer-col .links { display: flex; flex-direction: column; gap: 11px; }
.footer-col .links a { color: var(--muted-2); font-weight: 600; font-size: 15px; }
.footer-col .links a:hover { color: var(--green); }
.footer-bottom { padding: 0 32px 28px; }
.footer-bottom .rule { border-top: 1px solid var(--line); padding-top: 20px; font-size: 13px; color: var(--faint); }

/* ---------- page header (inner pages) ---------- */
.page-hero { padding: 72px 32px 40px; text-align: center; }
.page-hero h1 { font-size: 48px; line-height: 1.1; font-weight: 800; margin: 0 auto 18px; max-width: 720px; text-wrap: balance; }
.page-hero p { font-size: 18px; color: var(--muted-2); margin: 0 auto; max-width: 620px; }

/* ---------- contact form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink); }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 15px; color: var(--body); background: #fff;
  border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 15px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(46,158,91,0.14);
}
.contact-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px;
}
.contact-info { display: flex; flex-direction: column; gap: 26px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .ic {
  width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--tint);
  display: flex; align-items: center; justify-content: center;
}
.contact-item .k { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--faint); margin-bottom: 3px; }
.contact-item .v { font-size: 16px; font-weight: 700; color: var(--ink); }
.contact-item .v a { color: var(--ink); }
.contact-item .v a:hover { color: var(--green); }
.form-note { font-size: 13px; color: var(--faint); margin-top: 6px; }
.form-success {
  display: none; background: var(--tint); border: 1px solid #cfe9d8; color: var(--green-dk);
  border-radius: 12px; padding: 14px 16px; font-weight: 600; font-size: 15px; margin-bottom: 18px;
}
.form-success.show { display: block; }
.form-error {
  display: none; background: #FCEBEA; border: 1px solid #F3C9C6; color: #B4302A;
  border-radius: 12px; padding: 14px 16px; font-weight: 600; font-size: 15px; margin-bottom: 18px;
}
.form-error.show { display: block; }

/* ---------- value / step rows ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.value { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.value .num { font-size: 22px; font-weight: 800; color: var(--green); margin-bottom: 10px; }
.value h3 { font-size: 18px; margin-bottom: 8px; }
.value p { font-size: 15px; color: var(--muted); margin: 0; }

/* utilities */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.max-720 { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 900px) {
  .h1, .hero h1 { font-size: 42px; }
  .h2 { font-size: 32px; }
  .page-hero h1 { font-size: 38px; }
  .cta-band h2 { font-size: 30px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 56px 24px 50px; }
  .grid-3, .value-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .panel { grid-template-columns: 1fr; padding: 36px; }
  .form-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section-pad { padding: 60px 24px; }
  .cta-band { padding: 40px 28px; }

  /* mobile nav */
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a.nav-link { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links .lang, .nav-links .btn { align-self: flex-start; margin-top: 14px; }
}

@media (max-width: 560px) {
  .nav { padding: 16px 20px; }
  .section-pad { padding: 48px 20px; }
  .hero { padding: 40px 20px; }
  .page-hero { padding: 48px 20px 28px; }
  .h1, .hero h1 { font-size: 34px; }
  .page-hero h1 { font-size: 30px; }
  .contact-panel, .panel { padding: 26px; }
  .float-card { left: 0; bottom: -18px; }
}
