/* โหลดฟอนต์จากไฟล์ในโปรเจกต์ แยกอักษรไทยและละติน */
@font-face {
  font-family: "Noto Sans Thai";
  src: url("fonts/noto-sans-thai-thai.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Noto Sans Thai";
  src: url("fonts/noto-sans-thai-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #f3f5ef;
  --surface: #fffdf7;
  --sand: #e7eddf;
  --ink: #242822;
  --muted: #555750;
  --line: #d6cbbb;
  --night: #151a16;
  --copper: #904423;
  --ember: #efab7b;
  --light: #fff8ea;
  --on-dark-muted: #e0d6c5;
  --focus: #b04f26;
  --page: 76rem;
  --gutter: clamp(1.125rem, 4.4vw, 4rem);
  --section-gap: clamp(3.25rem, 7vw, 6.75rem);
  --radius: 0.875rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
[data-locale="en"], html[data-lang="en"] [data-locale="th"] { display: none; }
html[data-lang="en"] [data-locale="en"] { display: revert; }
html { scroll-padding-top: 1.25rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem / 1.72 "Noto Sans Thai", Tahoma, sans-serif;
}
::selection { background: #f5c8a8; color: var(--night); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.dark :focus-visible, .site-header :focus-visible { outline-color: var(--ember); }
a { color: var(--copper); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .11em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 760; line-height: 1.24; text-wrap: balance; }
h2 { font-size: clamp(1.72rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.175rem, 2vw, 1.45rem); }
p, dl, dd { margin: 0; }
p, li, dd { overflow-wrap: anywhere; }
address { font-style: normal; }
.wrap { width: min(calc(100% - 2 * var(--gutter)), var(--page)); margin-inline: auto; }
.section { padding-block: var(--section-gap); }
.section--tint { background: var(--sand); }
.section-head { display: grid; gap: .75rem; margin-block-end: clamp(1.5rem, 4vw, 2.5rem); }
.section-head > p, .lede, .section-head + p { max-width: 62ch; }
.lede { font-size: clamp(1.04rem, 1.6vw, 1.2rem); color: var(--muted); }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1rem; }
.prose > section + section { margin-top: 2rem; }
.prose section > * + * { margin-top: .62rem; }
.prose h2 { font-size: clamp(1.55rem, 3vw, 2.45rem); }
.prose > h2:not(:first-child), .prose > h3:not(:first-child) { margin-top: 2.1rem; }
.prose ul, .prose ol { padding-inline-start: 1.35rem; }
.prose li + li { margin-top: .5rem; }
.eyebrow { max-width: fit-content; color: var(--copper); font-size: .84rem; font-weight: 720; }
.split { display: grid; gap: clamp(1.5rem, 5vw, 4.25rem); align-items: center; }
.cards { display: grid; gap: clamp(.9rem, 2vw, 1.5rem); }
.card { min-width: 0; }
.card > * + * { margin-top: .65rem; }
.text-link { font-weight: 700; }
.dark { color: var(--light); background: var(--night); }
.dark a:not(.button--primary) { color: var(--light); }
.dark .lede { color: var(--on-dark-muted); }

.skip-link {
  position: absolute;
  top: .65rem;
  left: 1rem;
  z-index: 10;
  padding: .65rem .9rem;
  background: var(--surface);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header { position: relative; background: var(--night); color: var(--light); z-index: 2; }
.header-inner { display: flex; align-items: center; min-height: 4.2rem; gap: 1rem; flex-wrap: wrap; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  white-space: nowrap;
  color: var(--light);
}
.brand-number {
  background: var(--ember);
  color: var(--night);
  padding: .19rem .38rem .09rem;
  border-radius: .17rem;
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 1.05;
  letter-spacing: -.035em;
}
.brand-name { font-size: .95rem; font-weight: 800; line-height: 1.04; letter-spacing: .035em; }
.brand-name small { display: block; margin-top: .24rem; color: var(--on-dark-muted); font-size: .59rem; letter-spacing: .12em; }
.header-actions { display: flex; align-items: center; margin-inline-start: auto; gap: .8rem; }
.lang-switch { display: flex; align-items: center; gap: .38rem; font-size: .8rem; }
.lang-switch a { color: var(--light); padding: .34rem .2rem; text-decoration: none; }
.lang-switch a[aria-current] { color: var(--ember); text-decoration: underline; text-underline-offset: .35em; font-weight: 750; }
.lang-switch .lang-divider { color: #c1b299; }
.menu-toggle {
  color: var(--light);
  border: 1px solid #6e6b5e;
  border-radius: .4rem;
  background: transparent;
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: grid;
  place-items: center;
}
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 1rem; height: 2px; background: currentColor; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -5px; }
.menu-icon::after { top: 5px; }
.site-nav { width: 100%; padding-block-end: .75rem; }
.site-nav ul { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; gap: .25rem .85rem; }
.site-nav a { display: inline-flex; padding: .52rem 0; color: var(--light); text-decoration: none; font-size: .93rem; font-weight: 560; }
.site-nav a:hover, .site-nav [aria-current="page"] { color: var(--ember); text-decoration: underline; text-underline-offset: .32em; }
.header-cta { display: none !important; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 2.9rem;
  padding: .62rem 1.08rem .55rem;
  border: 1px solid transparent;
  border-radius: .42rem;
  font-weight: 740;
  font-size: .96rem;
  line-height: 1.4;
  text-decoration: none;
  text-align: center;
}
.button--primary { background: var(--ember); color: var(--night); }
.button--primary:hover { background: #f7c2a0; }
.button--outline { border-color: currentColor; background: transparent; color: var(--ink); }
.button--outline:hover { background: rgb(119 74 39 / .08); }
.dark .button--outline { color: var(--light); }
.dark .button--outline:hover { background: rgb(255 248 234 / .12); }
.button-row { display: flex; flex-wrap: wrap; gap: .65rem; }
.arrow {
  display: inline-block;
  width: .86rem;
  height: .68rem;
  background: linear-gradient(currentColor, currentColor) left center / 100% 1px no-repeat;
  position: relative;
  flex: none;
}
.arrow::after {
  content: "";
  width: .42rem;
  height: .42rem;
  border: solid currentColor;
  border-width: 1px 1px 0 0;
  position: absolute;
  right: 1px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.hero { position: relative; isolation: isolate; display: grid; align-items: end; overflow: hidden; min-height: 34rem; }
.hero picture, .hero picture img, .hero::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero picture { z-index: -2; }
.hero picture img { object-fit: cover; object-position: 60% center; }
.hero::before {
  content: "";
  z-index: -1;
  background: linear-gradient(0deg, #111612 1%, rgb(17 22 18 / .89) 20%, rgb(17 22 18 / .57) 50%, rgb(17 22 18 / .14) 76%);
}
.hero-inner { position: relative; padding-block: 14.75rem 3.1rem; }
.hero-copy { max-width: 43rem; }
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  line-height: 1.13;
  letter-spacing: -.03em;
  max-width: 14ch;
  text-wrap: initial;
}
.hero h1 > span > span { color: var(--ember); }
.hero .lede { margin-block: 1rem 1.35rem; max-width: 39ch; }
.service-preview { padding-block: clamp(2.65rem, 5.5vw, 4.6rem); }
[aria-labelledby="home-chiang-mai"], [aria-labelledby="home-inquiry-checklist"] { background: var(--sand); }
.service-preview .section-head { margin-block-end: 1.35rem; }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 1.25rem); }
.category-link { display: grid; gap: .7rem; color: var(--ink); text-decoration: none; align-content: start; min-width: 0; }
.category-link:hover h3 { color: var(--copper); text-decoration: underline; }
.category-link h3 { font-size: clamp(.94rem, 1.8vw, 1.19rem); text-wrap: initial; }
.category-link img { aspect-ratio: 4/3; width: 100%; object-fit: cover; border-radius: .45rem; background: #ded8c7; }
.category-link p { color: var(--muted); font-size: .83rem; margin-block-start: -.32rem; }

.subhero { border-bottom: 1px solid #3c4337; }
.subhero-inner { padding-block: clamp(2.65rem, 7vw, 5.9rem); }
.subhero h1 { font-size: clamp(2.25rem, 6vw, 4.7rem); letter-spacing: -.035em; line-height: 1.13; }
.subhero .lede { margin-top: .8rem; }
.subhero a { text-underline-offset: .22em; }
.breadcrumb { font-size: .83rem; color: var(--on-dark-muted); margin-bottom: 1rem; }
.breadcrumb > span[aria-hidden] { margin-inline: .25rem; }

.media-frame img { width: 100%; height: auto; object-fit: cover; border-radius: var(--radius); background: #d2cbb7; }
.notice { border: 1px solid #d4baa1; background: #f6eadd; border-radius: .52rem; padding: .95rem 1.15rem; color: #4d3428; }
.facts { display: grid; }
.facts > div { display: grid; gap: .17rem; border-bottom: 1px solid var(--line); padding: .85rem 0; }
.facts > div:first-child { border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .89rem; font-weight: 640; }
.facts dd { font-weight: 640; }
.steps { display: grid; padding-inline-start: 1.45rem; gap: 1rem 2rem; margin-block: 0; }
.steps li { padding-inline-start: .2rem; }
.steps li::marker { color: var(--copper); font-weight: 760; }
.steps li > * + * { margin-top: .35rem; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; padding-block: .92rem; font-weight: 700; }
summary::marker { color: var(--copper); }
details > p, details > div { padding-block-end: .95rem; }
.faq { max-width: 68ch; }

.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-block-end: 1rem; }
.filter-bar button {
  border: 1px solid #b7a897;
  background: var(--surface);
  color: var(--ink);
  min-height: 2.75rem;
  font-size: .9rem;
  font-weight: 660;
  padding: .42rem .75rem;
  border-radius: .4rem;
}
.filter-bar button:hover { border-color: var(--copper); }
.filter-bar button[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: var(--light); }
.filter-status { color: var(--muted); margin-block-end: 1.05rem; font-size: .88rem; }
.vehicle-grid { display: grid; gap: 1.2rem; }
.vehicle-card { display: grid; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.vehicle-card > img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; background: #ded8c7; }
.vehicle-copy { display: grid; gap: .65rem; padding: clamp(1rem, 3vw, 1.65rem); }
.vehicle-copy a { justify-self: start; display: inline-flex; align-items: center; gap: .65rem; }
.vehicle-copy .vehicle-example { color: var(--muted); font-size: .87rem; }
.vehicle-copy ul { padding-inline-start: 1.25rem; margin: 0; }

.contact-layout { align-items: start; }
.contact-details > * + * { margin-top: 1rem; }
.inquiry {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 3.2vw, 2rem);
}
.inquiry > * + * { margin-top: .85rem; }
form fieldset { padding: 0; border: 0; margin: 0; min-inline-size: 0; }
.form-fields { display: grid; gap: .95rem; }
.field-legend { padding: 0; margin-block-end: .7rem; color: var(--muted); font-size: .87rem; font-weight: 650; }
.field { display: grid; gap: .32rem; min-width: 0; }
.field label { font-weight: 680; font-size: .94rem; }
.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  min-height: 2.85rem;
  padding: .56rem .7rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #9e9586;
  border-radius: .38rem;
}
.field textarea { min-height: 9.25rem; resize: vertical; }
.field--wide { grid-column: 1 / -1; }
.form-hint { color: var(--muted); font-size: .87rem; }
.inquiry-submit, .draft-panel { margin-top: 1.1rem; }
.draft-panel > * + * { margin-top: .7rem; }
.form-status { min-height: 1.6em; font-size: .9rem; color: var(--muted); }
.form-status[data-error] { color: #85351c; }

.contact-banner { border-top: 1px solid #ded1c0; background: #eddfc9; color: var(--ink); }
.contact-banner .wrap { padding-block: clamp(1.65rem, 4.7vw, 3.2rem); display: grid; gap: 1rem 1.75rem; align-items: center; }
.contact-banner h2 { font-size: clamp(1.4rem, 3.15vw, 2.25rem); }
.contact-banner p { margin-top: .35rem; max-width: 56ch; }
.contact-banner a { justify-self: start; background: var(--night); color: var(--light); }
.contact-banner a:hover { background: #323e31; }

.site-footer { padding-top: clamp(2.7rem, 5vw, 4.15rem); }
.footer-grid { display: grid; gap: 1.65rem 2.5rem; padding-bottom: 2rem; }
.footer-grid h2 { font-size: 1.08rem; margin-bottom: .55rem; }
.footer-address { margin-top: .85rem; color: var(--on-dark-muted); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li + li { margin-top: .35rem; }
.footer-grid a:not(.brand) { font-size: .91rem; }
.footer-bottom { border-top: 1px solid #505343; padding-block: 1rem; color: var(--on-dark-muted); font-size: .82rem; }

@media (max-width: 56.24rem) {
  /* กันเมนูมือถือดันหน้า ก่อนสคริปต์เมนูโหลดเสร็จ */
  .js .site-nav:not([data-open]) { display: none; }
  .js .menu-toggle[hidden] { display: grid !important; visibility: hidden; }
  .site-nav { order: 3; }
  .site-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: .1rem .6rem; }
}
@media (min-width: 38rem) {
  .vehicle-grid, .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.3fr 1fr; }
  .facts > div { grid-template-columns: minmax(7.5rem, .75fr) 1.25fr; }
  .contact-banner .wrap { grid-template-columns: 1fr auto; }
  .contact-banner a { justify-self: end; }
}
@media (min-width: 47rem) {
  .hero { align-items: center; min-height: clamp(33rem, 50vw, 43rem); }
  .hero-inner { padding-block: 5rem; }
  .hero picture img { object-position: center; }
  .hero::before {
    background: linear-gradient(90deg, rgb(16 21 17 / .98), rgb(16 21 17 / .85) 28%, rgb(16 21 17 / .52) 49%, rgb(16 21 17 / .12) 70%, transparent);
  }
  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 56.25rem) {
  .header-inner { flex-wrap: nowrap; min-height: 4.8rem; }
  .header-actions { order: 2; gap: 1.25rem; }
  .site-nav, .site-nav[hidden] { display: block !important; width: auto; padding: 0; margin-inline-start: auto; }
  .site-nav ul { gap: clamp(.8rem, 1.7vw, 1.45rem); }
  .menu-toggle { display: none !important; }
  .header-cta { display: inline-flex !important; padding-inline: .78rem; white-space: nowrap; }
  .footer-grid { grid-template-columns: minmax(18rem, 1.6fr) 1fr 1fr; }
}
@media (min-width: 64rem) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; }
}

