/* Right Path Migration — design system (Phase 3, 25/09/2026) */

@font-face { font-family: "Source Serif 4"; src: url("/fonts/source-serif-4-subhead-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/ibm-plex-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/ibm-plex-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "IBM Plex Sans Thai"; src: url("/fonts/ibm-plex-sans-thai-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0E00-0E7F; }
@font-face { font-family: "IBM Plex Sans Thai"; src: url("/fonts/ibm-plex-sans-thai-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0E00-0E7F; }

:root {
  --paper: #FAF8F4; --sand: #F1ECE3; --ink: #1B2327; --muted: #4A5558;
  --green: #1E4A42; --green-2: #2C6358; --ochre: #9A4A1A; --focus: #B5652A; --rule: #D9D2C5;
  --error: #9B1C1C; --ok-bg: #E6EFEA;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "IBM Plex Sans Thai", "Segoe UI", system-ui, -apple-system, "Leelawadee UI", "Thonburi", "Noto Sans Thai", sans-serif;
  --wide: 72rem; --text: 42rem;
}
html:lang(th) { --serif: "IBM Plex Sans Thai", "Source Serif 4", "Leelawadee UI", "Thonburi", "Noto Sans Thai", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: clamp(1.0625rem, 1rem + .25vw, 1.125rem); line-height: 1.65; }
html:lang(th) body { line-height: 1.8; }
img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); margin: 0 0 .6em; letter-spacing: -.005em; }
html:lang(th) h1, html:lang(th) h2, html:lang(th) h3 { line-height: 1.45; letter-spacing: 0; }
h1 { font-size: clamp(2.25rem, 1.7rem + 2.2vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 1.35rem + 1vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 1.12rem + .35vw, 1.35rem); }
p, ul, ol { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: .35em; }
a { color: var(--ochre); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
strong { font-weight: 600; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--green); color: #fff; padding: .75rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 20px; }
@media (min-width: 48rem) { .wrap { padding: 0 32px; } }
.measure { max-width: var(--text); }
.section { padding: 48px 0; }
@media (min-width: 48rem) { .section { padding: 80px 0; } }
.section.sand { background: var(--sand); }
.eyebrow { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: .75rem; }
html:lang(th) .eyebrow { letter-spacing: .02em; text-transform: none; font-size: .9rem; }
.lead { font-size: 1.18em; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Header */
.site-header { border-top: 4px solid var(--green); border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand span { font-family: "Source Serif 4", Georgia, serif; font-weight: 600; font-size: 1.05rem; line-height: 1.15; max-width: 7.5rem; }
@media (min-width: 30rem) { .brand span { font-size: 1.2rem; max-width: none; } }
.site-header .wrap { gap: .6rem; }
@media (min-width: 30rem) { .site-header .wrap { gap: 1rem; } }
.nav-desktop { display: none; }
.nav-desktop ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; }
.nav-desktop a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { border-bottom-color: var(--green); }
.lang { font-weight: 600; font-size: .95rem; color: var(--green); text-decoration: none; border: 1px solid var(--rule); padding: .35rem .6rem; border-radius: 4px; white-space: nowrap; }
.lang:hover { border-color: var(--green); }
.site-header .phone-btn { display: none; }
.phone-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 4px; background: var(--green); color: #fff; }
.phone-icon svg { width: 20px; height: 20px; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 600; padding: .55rem .8rem; border: 1px solid var(--rule); border-radius: 4px; min-height: 44px; display: flex; align-items: center; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--green); }
.menu nav { position: absolute; right: 0; top: calc(100% + 8px); background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--green); width: min(18rem, calc(100vw - 40px)); z-index: 5; box-shadow: 0 8px 24px rgba(27,35,39,.08); }
.menu ul { list-style: none; margin: 0; padding: .5rem 0; }
.menu li { margin: 0; }
.menu a { display: block; padding: .7rem 1.1rem; color: var(--ink); text-decoration: none; font-weight: 600; }
.menu a:hover { background: var(--sand); }
@media (min-width: 60rem) {
  .nav-desktop { display: block; }
  .menu, .phone-icon { display: none; }
  .site-header .phone-btn { display: inline-flex; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.35rem; border-radius: 4px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid var(--green); background: var(--green); color: #fff; cursor: pointer; font-family: var(--sans); line-height: 1.2; }
.btn:hover { background: var(--green-2); border-color: var(--green-2); }
.btn.secondary { background: transparent; color: var(--green); }
.btn.secondary:hover { background: var(--green); color: #fff; }
.btn.small { min-height: 40px; padding: .45rem .9rem; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Hero */
.hero { padding: 56px 0 48px; }
@media (min-width: 48rem) { .hero { padding: 96px 0 80px; } }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: 1.35fr .9fr; gap: 64px; } }
.hero h1 { max-width: 20ch; }
html:lang(th) .hero h1 { max-width: 24ch; }
.credentials { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 2rem; }
html:lang(th) .credentials { text-transform: none; letter-spacing: .02em; font-size: .9rem; }
.monogram { background: var(--green); color: var(--sand); aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; border-radius: 2px; max-width: 360px; width: 100%; justify-self: center; }
.monogram svg { width: 64px; height: 64px; }
.monogram .name { font-family: "Source Serif 4", Georgia, serif; font-size: 1.6rem; line-height: 1.25; color: #fff; margin: 0; }
.monogram .role { font-size: .9rem; margin: .5rem 0 0; color: var(--sand); }
.monogram.small { aspect-ratio: auto; min-height: 260px; }
@media (max-width: 60rem) { .monogram { aspect-ratio: auto; min-height: 0; max-width: none; gap: 40px; } }

/* Grids and "cards" */
.grid { display: grid; gap: 32px; }
@media (min-width: 48rem) { .grid.two { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 48rem) and (max-width: 60rem) { .grid.three { grid-template-columns: repeat(2, 1fr); } }
.card { border-top: 2px solid var(--green); padding-top: 1.1rem; }
.card h3 { margin-bottom: .45rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--green); text-decoration: underline; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .more { font-weight: 600; }
.pathway ul { padding-left: 1.1em; }

.split { display: grid; gap: 40px; }
@media (min-width: 60rem) { .split { grid-template-columns: 1fr 1.4fr; gap: 72px; } }

.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 3rem; margin-bottom: 1.25rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--green); color: var(--green); font-weight: 600; display: flex; align-items: center; justify-content: center; font-size: .95rem; }

.facts { display: grid; gap: 0; border-top: 1px solid var(--rule); margin: 0 0 1.5rem; }
.facts > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-weight: 600; color: var(--muted); }
.facts dd { margin: 0; }
@media (max-width: 30rem) { .facts > div { grid-template-columns: 1fr; gap: .2rem; } }

.price { font-family: "Source Serif 4", Georgia, serif; font-size: 2.4rem; line-height: 1; color: var(--green); margin: 0 0 .25rem; }
.notice { border-left: 4px solid var(--ochre); background: var(--sand); padding: 1rem 1.2rem; margin: 0 0 1.5rem; }
.notice p:last-child { margin: 0; }
.ok { border-left-color: var(--green); background: var(--ok-bg); }

.page-head { padding: 48px 0 8px; }
@media (min-width: 48rem) { .page-head { padding: 80px 0 16px; } }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose > *:first-child { margin-top: 0; }

.links { list-style: none; padding: 0; border-top: 1px solid var(--rule); }
.links li { border-bottom: 1px solid var(--rule); margin: 0; padding: .9rem 0; }
.links a { font-weight: 600; }
.links span { display: block; color: var(--muted); font-size: .95rem; }

/* Form */
.form { display: grid; gap: 1.25rem; max-width: 40rem; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: .35rem; }
.field .hint { display: block; font-size: .9rem; color: var(--muted); margin: -.15rem 0 .45rem; font-weight: 400; }
.req { color: var(--ochre); }
input[type=text], input[type=email], input[type=tel], input[type=date], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid #9AA3A1; border-radius: 4px; padding: .7rem .8rem; min-height: 48px; }
textarea { min-height: 8rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--green); }
fieldset { border: 0; padding: 0; margin: 0; }
.choices { display: grid; gap: .5rem; }
@media (min-width: 36rem) { .choices.two { grid-template-columns: 1fr 1fr; } }
.field .choice { display: flex; gap: .6rem; align-items: flex-start; padding: .65rem .8rem; border: 1px solid var(--rule); border-radius: 4px; background: #fff; cursor: pointer; font-weight: 400 !important; margin: 0 !important; }
.choice input { margin-top: .35rem; width: 1.1rem; height: 1.1rem; accent-color: var(--green); flex: none; }
.pair { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 30rem) { .pair { grid-template-columns: 1.2fr 1fr; } }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400 !important; }
.consent input { margin-top: .35rem; width: 1.2rem; height: 1.2rem; accent-color: var(--green); flex: none; }
.form-aside { position: sticky; top: 24px; }

/* Footer */
.site-footer { background: var(--green); color: var(--sand); padding: 56px 0 32px; margin-top: 0; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.1rem; margin-bottom: .8rem; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 48rem) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.foot-legal { border-top: 1px solid rgba(241,236,227,.25); margin-top: 32px; padding-top: 20px; font-size: .85rem; color: #DCD5C8; }
.foot-legal p { margin-bottom: .5rem; }

.cta-band { background: var(--sand); border-top: 1px solid var(--rule); }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.cta-band h2 { margin: 0 0 .3rem; }
.cta-band p { margin: 0; }

@media (prefers-reduced-motion: no-preference) { a, .btn, .lang { transition: color .15s, background-color .15s, border-color .15s; } }
@media print { .site-header nav, .menu, .cta-band, .site-footer { display: none; } body { background: #fff; } }
