/* Stash It — shared styles.
   Brand: Forest Green #123F35, Soft Sage #DDE8D5, Warm Ivory #F6F3EA. DM Sans / IBM Plex Sans Thai.
   Chic, minimal, editorial: flat colour, hairlines, generous whitespace. Sage is a fill, never text on ivory. */
:root {
  --forest: #123F35;
  --sage: #DDE8D5;
  --ivory: #F6F3EA;

  --bg: #F6F3EA;
  --card: #FBF9F3;
  --ink: #1B2B26;
  --ink-2: #4A5953;
  --ink-3: #75817B;
  --line: rgba(18, 63, 53, .12);
  --line-2: rgba(18, 63, 53, .24);
  --field: #EAF0E3;
  --field-hover: #E2EADA;
  --on-forest: #F6F3EA;
  --on-forest-2: rgba(246, 243, 234, .74);
  --loss: #9A4535;
  --loss-bg: rgba(154, 69, 53, .09);
  --focus: #123F35;

  --r-lg: 20px;
  --r: 14px;
  --r-sm: 10px;
  --font: "DM Sans", "IBM Plex Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html:not([lang="th"]) .th { display: none !important; }
html[lang="th"] .en { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html[lang="th"] body { line-height: 1.7; }
img, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
@media (min-width: 760px) {
  .wrap {
    padding-left: max(40px, env(safe-area-inset-left, 0px));
    padding-right: max(40px, env(safe-area-inset-right, 0px));
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  color: var(--forest);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--sage); border-color: transparent; }
.btn.solid { background: var(--forest); color: var(--on-forest); border-color: var(--forest); }
.btn.solid:hover { background: var(--ink); border-color: var(--ink); }
.btn.light { background: var(--ivory); color: var(--forest); border-color: var(--ivory); }
.btn.light:hover { background: var(--sage); border-color: var(--sage); }
.btn .arr { font-size: 1.05em; }
.btn.small { min-height: 38px; padding: 8px 16px; font-size: 14px; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.brand { display: inline-flex; flex: none; }
.brand img { display: block; width: 92px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav > a, .dd > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
}
.dd > summary::-webkit-details-marker { display: none; }
.site-nav > a:hover, .dd > summary:hover { color: var(--forest); background: var(--sage); }
.site-nav > a[aria-current="page"] { color: var(--forest); font-weight: 600; box-shadow: inset 0 -2px 0 var(--forest); border-radius: 0; }
.dd { position: relative; }
.dd > summary::after { content: ""; width: 7px; height: 7px; margin-top: -4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.dd[open] > summary { color: var(--forest); background: var(--sage); }
.dd-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  min-width: 280px;
  display: grid;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.dd-menu a { display: grid; gap: 1px; padding: 10px 12px; text-decoration: none; border-radius: var(--r-sm); }
.dd-menu a:hover { background: var(--sage); }
.dd-menu b { font-weight: 600; color: var(--forest); }
.dd-menu small { font-size: 13px; color: var(--ink-3); }
.lang { display: inline-flex; flex: none; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.lang button {
  min-width: 42px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.lang button[aria-pressed="true"] { color: var(--on-forest); background: var(--forest); }
.menu-btn { display: none; margin-left: auto; padding: 9px 16px; font-size: 14px; font-weight: 600; color: var(--forest); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; }
@media (max-width: 900px) {
  .head-row { flex-wrap: wrap; gap: 12px 16px; min-height: 72px; padding-block: 12px; }
  .brand img { width: 78px; }
  .menu-btn { display: inline-flex; }
  .site-nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding-bottom: 8px; }
  .site-head.open .site-nav { display: flex; }
  .site-nav > a, .dd > summary { padding: 12px 4px; border-radius: 0; border-top: 1px solid var(--line); }
  .site-nav > a:hover, .dd > summary:hover, .dd[open] > summary { background: transparent; }
  .site-nav > a[aria-current="page"] { box-shadow: none; }
  .dd-menu { position: static; min-width: 0; padding: 0 0 8px; background: transparent; border: 0; }
}

/* Type */
.label { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
html[lang="th"] .label { letter-spacing: .02em; }
.display {
  margin: 0;
  font-weight: 700;
  font-size: clamp(44px, 7.2vw, 92px);
  line-height: .98;
  letter-spacing: -.035em;
  color: var(--forest);
}
.h2 { margin: 0; font-weight: 700; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.08; letter-spacing: -.03em; color: var(--forest); text-wrap: balance; }
html[lang="th"] .h2 { line-height: 1.3; letter-spacing: -.01em; }
.lede { margin: 0; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

/* Mountains: flat silhouettes, sage far ridges and forest foreground on an ivory sky */
.ridges { display: block; width: 100%; height: 100%; }
.ridges .far { fill: var(--sage); }
.ridges .mid { fill: var(--sage); stroke: var(--ivory); stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ridges .near { fill: var(--forest); }
.ridges .front { fill: var(--forest); stroke: var(--ivory); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* Home: hero */
.hero { position: relative; overflow: hidden; }
.hero-copy { position: relative; z-index: 1; display: grid; gap: 22px; justify-items: start; max-width: 600px; padding-block: 72px 300px; }
.hero-copy .lede { max-width: 30ch; }
.hero-cta { display: grid; gap: 12px; justify-items: start; margin-top: 8px; }
.fineprint { margin: 0; font-size: 14px; color: var(--ink-3); }
.hero-art { position: absolute; left: 0; right: 0; bottom: 0; height: 64%; }
@media (min-width: 1100px) {
  .hero-copy { padding-block: 96px 220px; }
  .hero-art { height: 78%; }
}
@media (max-width: 700px) {
  .hero-copy { padding-block: 48px 0; }
  .hero-art { position: relative; height: 210px; margin-top: 36px; }
}

/* Home: services */
.section { padding-block: 96px; }
.section-head { display: grid; gap: 14px; justify-items: center; text-align: center; margin-bottom: 48px; }
.section-head::after { content: ""; width: 56px; height: 2px; background: var(--sage); margin-top: 6px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1080px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 10px;
  padding: 28px 24px 22px;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .2s ease, transform .2s ease, background-color .2s ease;
}
.card:hover { border-color: var(--forest); transform: translateY(-2px); }
.card:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: var(--r-lg); }
.card .icon { width: 44px; height: 44px; margin-bottom: 6px; color: var(--forest); }
.card .label { font-size: 12px; }
.card h3 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: var(--forest); }
.card .tag { margin: 0; font-weight: 600; color: var(--ink); }
.card .desc { margin: 0; font-size: 15px; color: var(--ink-2); }
.card .go {
  justify-self: end;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-top: 8px;
  color: var(--forest);
  background: var(--sage);
  border-radius: 50%;
  transition: background-color .2s ease, color .2s ease;
}
.card:hover .go { background: var(--forest); color: var(--on-forest); }

/* Home: why */
.why { background: var(--sage); }
.why .wrap { display: grid; grid-template-columns: 240px repeat(3, minmax(0, 1fr)); gap: 40px; align-items: start; padding-block: 72px; }
.why .h2 { padding-right: 24px; border-right: 1px solid var(--line-2); }
.why-item { display: grid; gap: 8px; }
.why-item svg { width: 40px; height: 40px; color: var(--forest); }
.why-item h3 { margin: 0; font-size: 19px; font-weight: 700; color: var(--forest); }
.why-item p { margin: 0; font-size: 15px; color: var(--ink-2); }
@media (max-width: 900px) {
  .why .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 56px; }
  .why .h2 { border-right: 0; padding-right: 0; }
}

/* Shared consultation band */
.talk { background: var(--forest); color: var(--on-forest); }
.talk .wrap { display: grid; gap: 16px; justify-items: center; text-align: center; padding-block: 88px; }
.talk .h2 { color: var(--on-forest); }
.talk p { margin: 0; max-width: 56ch; font-size: 18px; color: var(--on-forest-2); }
.talk .btn { margin-top: 12px; }
.talk .fineprint { color: var(--on-forest-2); }

/* Service pages */
.page-hero { position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; display: grid; gap: 14px; padding-block: 72px 150px; max-width: 1200px; }
.page-hero .display { font-size: clamp(42px, 6vw, 76px); }
.page-hero .lede { max-width: 34ch; }
.page-hero .hero-art { height: 150px; }
.prose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; padding-block: 80px 40px; }
.prose .intro { margin: 0; font-size: clamp(20px, 2vw, 24px); line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.prose h2 { margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
html[lang="th"] .prose h2 { letter-spacing: .02em; }
.prose .block + .block { margin-top: 48px; }
.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.points li { padding: 20px; font-size: 16px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.points li::before { content: ""; display: block; width: 22px; height: 2px; margin-bottom: 14px; background: var(--forest); }
.prose p { margin: 0; color: var(--ink-2); max-width: 62ch; }
.tool { display: grid; gap: 14px; justify-items: start; padding: 28px; background: var(--sage); border-radius: var(--r-lg); }
.tool p { color: var(--ink); }
.prose .tool h2 { margin: 0; }
@media (max-width: 900px) {
  .prose { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 56px 24px; }
  .points { grid-template-columns: minmax(0, 1fr); }
}
.pub-note { padding-block: 28px 0; font-size: 13.5px; color: var(--ink-3); }

/* About and resources */
.doc { display: grid; gap: 48px; padding-block: 72px 24px; max-width: 880px; }
.doc section { display: grid; gap: 12px; }
.doc-head { display: grid; gap: 14px; }
.display.sm { font-size: clamp(40px, 5.4vw, 68px); }
.doc h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--forest); }
.doc p { margin: 0; color: var(--ink-2); max-width: 66ch; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.facts li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts li span:first-child { color: var(--ink-2); }
.facts li span:last-child { font-weight: 600; color: var(--forest); font-variant-numeric: tabular-nums; }
.tablewrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.rates { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.rates th { padding: 14px 18px 10px; font-size: 13px; font-weight: 600; text-align: right; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.rates td { padding: 12px 18px; text-align: right; border-top: 1px solid var(--line); }
.rates tr:first-child td { border-top: 0; }
.rates th:first-child, .rates td:first-child { text-align: left; }
.rates td.r { font-weight: 700; color: var(--forest); }

/* Footer */
.site-foot { margin-top: 96px; border-top: 1px solid var(--line); }
.site-foot .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 48px; align-items: start; padding-block: 40px 48px; font-size: 14px; color: var(--ink-2); }
.site-foot .brand img { width: 80px; }
.foot-tag { margin: 10px 0 0; font-weight: 600; color: var(--forest); }
.licenses { margin: 0; display: grid; gap: 2px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-links a { text-decoration: none; color: var(--ink-2); }
.foot-links a:hover { color: var(--forest); text-decoration: underline; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: minmax(0, 1fr); } }
.talk + .site-foot, main:has(> .talk:last-child) + .site-foot { margin-top: 0; }

/* Notice shown while the LINE link is not set */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  max-width: calc(100% - 40px);
  padding: 12px 18px;
  font-size: 14px;
  color: var(--on-forest);
  background: var(--ink);
  border-radius: var(--r);
  transform: translateX(-50%);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
