:root {
  --ink: #142c38;
  --ink-soft: #2f4a57;
  --mist: #f3f7f8;
  --white: #ffffff;
  --water: #5caeba;
  --water-deep: #237684;
  --sand: #d9d4c7;
  --line: #cbdcdf;
  --focus: #f0aa43;
  --font-display: "Th Sarabun New", "Leelawadee UI", Tahoma, sans-serif;
  --font-body: "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-12: 6rem;
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-pill: 999px;
  --container: 74rem;
  --ease: 220ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; color: var(--ink); background: var(--mist); font-family: var(--font-body); font-size: 1rem; line-height: 1.7; overflow-x: hidden; }
a { color: inherit; text-underline-offset: 0.2em; }
button, a { touch-action: manipulation; }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: .5rem; padding: 0.75rem 1rem; color: var(--white); background: var(--ink); opacity: 0; pointer-events: none; transform: translateY(calc(-100% - 1rem)); transition: opacity var(--ease), transform var(--ease); }
.skip-link:focus { opacity: 1; pointer-events: auto; transform: translateY(0); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(20,44,56,.12); background: rgba(243,247,248,.94); backdrop-filter: blur(12px); }
.header-inner { width: min(100% - 2rem, var(--container)); min-height: 4.75rem; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { min-height: 44px; display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-size: .94rem; letter-spacing: .015em; }
.wordmark b { color: var(--water-deep); }
.wordmark-mark { width: 1.6rem; height: 1.6rem; display: inline-block; border: 2px solid var(--ink); border-top-color: var(--water); border-radius: 50% 50% 52% 48% / 58% 45% 55% 42%; transform: rotate(30deg); }
.nav-toggle { position: relative; width: 48px; height: 48px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink); cursor: pointer; }
.nav-toggle-lines, .nav-toggle-lines::before, .nav-toggle-lines::after { position: absolute; width: 22px; height: 2px; left: 13px; background: currentColor; content: ""; transition: transform var(--ease), opacity var(--ease); }
.nav-toggle-lines { top: 23px; }
.nav-toggle-lines::before { left: 0; top: -7px; }
.nav-toggle-lines::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before { transform: translateY(7px) rotate(90deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after { opacity: 0; }
.site-nav { position: absolute; inset: calc(100% + 1px) 0 auto; padding: 1rem; display: none; flex-direction: column; gap: .5rem; background: var(--mist); border-bottom: 1px solid var(--line); box-shadow: 0 1rem 2rem rgba(20,44,56,.1); }
.site-nav.is-open { display: flex; }
.site-nav a { min-height: 48px; display: flex; align-items: center; padding: .7rem 1rem; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; }
.site-nav a:hover { background: rgba(92,174,186,.12); }
.site-nav .nav-contact { color: var(--white); background: var(--ink); }
.site-nav .nav-contact:hover { background: var(--water-deep); }

.hero { min-height: calc(100dvh - 4.75rem); display: grid; align-items: center; padding: 4rem 0 3rem; }
.hero-grid, .section, .site-footer { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.hero-grid { display: grid; gap: 3.5rem; }
.eyebrow { margin: 0 0 1rem; color: var(--water-deep); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
h1 { max-width: 15ch; font-size: clamp(3rem, 13vw, 6.8rem); }
h1 span { color: var(--water-deep); }
.hero-lede { max-width: 39rem; margin: 1.6rem 0 0; color: var(--ink-soft); font-size: clamp(1.05rem, 2.2vw, 1.25rem); }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: .75rem 1.35rem; border: 2px solid transparent; border-radius: var(--radius-pill); font-weight: 700; text-decoration: none; transition: color var(--ease), background var(--ease), transform var(--ease); }
.button:active { transform: scale(.98); }
.button-primary { color: var(--white); background: var(--ink); }
.button-primary:hover { background: var(--water-deep); }
.text-link { min-height: 48px; display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; text-decoration-thickness: 1px; }

.flow-map { position: relative; width: min(100%, 31rem); aspect-ratio: 1 / .88; justify-self: center; border: 1px solid var(--line); border-radius: 48% 52% 46% 54% / 55% 42% 58% 45%; background: rgba(255,255,255,.52); }
.flow-map::before { content: ""; position: absolute; inset: 13%; border: 1px dashed rgba(35,118,132,.4); border-radius: 52% 48% 57% 43%; }
.flow-label { position: absolute; z-index: 2; top: 5%; left: 11%; color: var(--water-deep); font-size: .78rem; font-weight: 700; }
.flow-node { position: absolute; z-index: 2; width: 5.5rem; aspect-ratio: 1; display: grid; place-items: center; padding: .5rem; border: 1px solid var(--ink); border-radius: 50%; background: var(--mist); text-align: center; font-size: .75rem; font-weight: 700; line-height: 1.35; }
.node-roof { top: 17%; left: 17%; }
.node-home { top: 40%; right: 12%; width: 6.5rem; background: var(--ink); color: var(--white); }
.node-care { bottom: 8%; left: 20%; }
.flow-line { position: absolute; z-index: 1; height: 2px; background: var(--water); transform-origin: left; }
.line-a { width: 42%; top: 34%; left: 30%; transform: rotate(19deg); }
.line-b { width: 38%; top: 60%; left: 34%; transform: rotate(141deg); }
.line-c { width: 35%; top: 69%; left: 37%; transform: rotate(-10deg); }
.flow-drop { position: absolute; width: .65rem; height: .9rem; border-radius: 60% 40% 60% 40%; background: var(--water); transform: rotate(45deg); }
.drop-a { top: 12%; right: 28%; }
.drop-b { bottom: 20%; right: 10%; opacity: .65; }

.intro { padding: 3.5rem max(1rem, calc((100% - var(--container)) / 2)); color: var(--white); background: var(--ink); }
.intro p { max-width: 35ch; margin: 0; font-family: var(--font-display); font-size: clamp(2rem, 6vw, 4rem); line-height: 1.25; }
.section { padding-block: 5rem; }
.section-heading { display: grid; gap: 1rem; margin-bottom: 2.5rem; }
h2 { max-width: 19ch; font-size: clamp(2.35rem, 7vw, 4.7rem); }
h3 { margin: 0; font-family: var(--font-display); font-size: 1.7rem; line-height: 1.25; }
.service-list { border-top: 1px solid var(--line); }
.service-card { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.service-card p { max-width: 38rem; margin: .65rem 0 0; color: var(--ink-soft); }
.service-symbol { position: relative; width: 3.4rem; height: 3.4rem; border: 1px solid var(--water); border-radius: 50%; }
.service-symbol::before, .service-symbol::after, .service-symbol span { content: ""; position: absolute; display: block; }
.symbol-review::before { width: 1.5rem; height: 1rem; left: .85rem; top: .9rem; border: 2px solid var(--ink); border-radius: 50%; }
.symbol-review::after { width: 2px; height: 1rem; left: 1.65rem; top: 1.8rem; background: var(--ink); }
.symbol-rain::before { width: 1.05rem; height: 1.4rem; left: 1.12rem; top: .8rem; border: 2px solid var(--ink); border-radius: 60% 40% 60% 40%; transform: rotate(45deg); }
.symbol-care::before { inset: .75rem; border: 2px solid var(--ink); border-radius: 50%; }
.symbol-care::after { width: 2px; height: .7rem; left: 1.65rem; top: 1.05rem; background: var(--ink); transform-origin: bottom; transform: rotate(-35deg); }

.approach { display: grid; gap: 3rem; }
.approach-copy > p:last-child { max-width: 38rem; color: var(--ink-soft); }
.approach-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.approach-steps li { counter-increment: step; position: relative; padding: 1.5rem 0 1.5rem 4rem; border-bottom: 1px solid var(--line); }
.approach-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 1.5rem; color: var(--water-deep); font-size: .8rem; font-weight: 700; }
.approach-steps span, .approach-steps small { display: block; }
.approach-steps span { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; }
.approach-steps small { margin-top: .3rem; color: var(--ink-soft); font-size: .9rem; }

.contact { position: relative; width: 100%; max-width: none; padding-inline: max(1rem, calc((100% - var(--container)) / 2)); overflow: hidden; color: var(--white); background: var(--water-deep); }
.contact .eyebrow { color: #d7f4f6; }
.contact h2 { position: relative; z-index: 1; }
.contact p:not(.eyebrow) { position: relative; z-index: 1; max-width: 36rem; margin: 1.4rem 0 2rem; }
.button-light { position: relative; z-index: 1; color: var(--ink); background: var(--white); }
.button-light:hover { background: var(--mist); }
.contact-line { position: absolute; width: 36rem; height: 36rem; right: -10rem; top: -12rem; border: 1px solid rgba(255,255,255,.35); border-radius: 47% 53% 58% 42%; }
.contact-line::before, .contact-line::after { content: ""; position: absolute; inset: 12%; border: 1px solid rgba(255,255,255,.23); border-radius: 55% 45% 49% 51%; }
.contact-line::after { inset: 27%; }
.site-footer { padding-block: 2.5rem; display: grid; gap: .5rem; color: var(--ink-soft); font-size: .9rem; }
.site-footer p { margin: 0; }
.wordmark-footer { color: var(--ink); }

@media (min-width: 48rem) {
  .header-inner, .hero-grid, .section, .site-footer { width: min(100% - 4rem, var(--container)); }
  .nav-toggle { display: none; }
  .site-nav { position: static; padding: 0; display: flex; flex-direction: row; align-items: center; gap: .3rem; background: transparent; border: 0; box-shadow: none; }
  .site-nav a { padding-inline: 1rem; }
  .site-nav .nav-contact { margin-left: .5rem; padding-inline: 1.25rem; border-radius: var(--radius-pill); }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(22rem, .85fr); align-items: center; }
  .section-heading { grid-template-columns: 1fr 2fr; align-items: end; }
  .service-card { grid-template-columns: 6rem minmax(0, 1fr); padding: 2.5rem 0; }
  .service-card > div:last-child { display: grid; grid-template-columns: minmax(14rem, .75fr) 1fr; gap: 2rem; align-items: baseline; }
  .approach { grid-template-columns: 1fr 1fr; align-items: start; gap: 5rem; }
  .site-footer { grid-template-columns: 1fr auto auto; align-items: center; gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
