@font-face { font-family: "Chakra Petch"; font-weight: 600; font-display: swap; src: url("fonts/ChakraPetch-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-display: swap; src: url("fonts/ChakraPetch-Bold.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Thai"; font-weight: 400; font-display: swap; src: url("fonts/IBMPlexSansThai-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Thai"; font-weight: 600; font-display: swap; src: url("fonts/IBMPlexSansThai-SemiBold.woff2") format("woff2"); }

:root {
	--zinc: #dfe5e6;      /* galvanised sheet */
	--paper: #f6f8f8;
	--ink: #14232f;
	--ink-soft: #465663;
	--line: #b4bfc4;
	/* One colour per air stream, used the same way everywhere */
	--kitchen: #b8321f;
	--makeup: #1c66a8;
	--fresh: #0e7a6e;
	--dust: #8f6407;
	--display: "Chakra Petch", "IBM Plex Sans Thai", sans-serif;
	--body: "IBM Plex Sans Thai", "Noto Sans Thai", sans-serif;
	--gutter: clamp(1.25rem, 5vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.75 var(--body); }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--makeup); outline-offset: 3px; }
section[id] { scroll-margin-top: 1rem; }

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

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem var(--gutter); background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; font: 700 1.125rem/1.2 var(--display); }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav > a { text-decoration: none; font-weight: 600; font-size: 1rem; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.staff { position: relative; }
.brand span, .staff button, .site-nav > a { white-space: nowrap; }
.staff button { min-height: 44px; padding: 0 .9rem; font: 600 1rem var(--body); color: var(--ink); background: none; border: 1px solid var(--ink); border-radius: 2px; cursor: pointer; }
.staff button:hover { background: var(--zinc); }
.staff button::after { content: ""; display: inline-block; width: .45em; height: .45em; margin-left: .55em; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-.15em) rotate(45deg); }
.staff ul { position: absolute; right: 0; top: calc(100% + .35rem); min-width: 15rem; background: #fff; border: 1px solid var(--ink); z-index: 5; }
.staff li + li { border-top: 1px solid var(--line); }
.staff li a { display: block; padding: .7rem 1rem; text-decoration: none; font-size: 1rem; }
.staff li a:hover { background: var(--zinc); }

/* Hero */
.hero { background: #f7f8fb; padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.hero-copy { padding: 0 var(--gutter); max-width: 62rem; }
.hero h1 { font: 700 clamp(2.4rem, 7vw, 5.25rem)/1.2 var(--display); letter-spacing: -.005em; text-wrap: balance; }
.hero-copy p { max-width: 40em; margin-top: 1.25rem; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--ink-soft); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 1.6rem; font: 600 1.0625rem var(--body); color: #fff; background: var(--ink); border: 0; border-radius: 2px; text-decoration: none; cursor: pointer; }
.button:hover { background: #24404f; }
.button:disabled { opacity: .6; cursor: wait; }
.hero .button { margin-top: 1.75rem; }
.plant { margin-top: clamp(1.5rem, 4vw, 3rem); }
.plant-image { display: block; width: 100%; height: auto; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 9%); mask-image: linear-gradient(to bottom, transparent, #000 9%); }
.legend { display: grid; grid-template-columns: repeat(2, 1fr); background: var(--ink); }
.legend a { display: flex; align-items: center; gap: .7rem; min-height: 56px; padding: .6rem var(--gutter); color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem; line-height: 1.35; }
.legend a:hover, .legend a:focus-visible { background: #24404f; }
.legend a:focus-visible { outline-color: #fff; outline-offset: -4px; }
.legend i { flex: none; width: 2rem; height: 6px; background: var(--c); }
.legend .is-kitchen { --c: #f0705a; } .legend .is-makeup { --c: #62a9e6; } .legend .is-fresh { --c: #3ec4b3; } .legend .is-dust { --c: #e3b23c; }

/* The four systems */
.system { --c: var(--ink); display: grid; gap: 1.5rem; padding: clamp(2.5rem, 5vw, 4rem) var(--gutter); border-top: 8px solid var(--c); }
.system-kitchen { --c: var(--kitchen); }
.system-makeup { --c: var(--makeup); }
.system-fresh { --c: var(--fresh); }
.system-dust { --c: var(--dust); }
.system h2 { font: 700 clamp(1.8rem, 4vw, 3rem)/1.25 var(--display); color: var(--c); text-wrap: balance; }
.system h3 { font: 600 1.0625rem/1.5 var(--body); }
.system-body { display: grid; gap: 1.5rem; }
.system p { max-width: 36em; }
.system-figure { grid-column: 1 / -1; margin-inline: calc(var(--gutter) * -1); }
.system-figure a { display: block; }
.system-figure img { display: block; width: 100%; height: auto; }
.system h2 + p { font-size: 1.1875rem; margin-top: .75rem; }

/* Process */
.process { background: var(--ink); color: #fff; padding: clamp(2.5rem, 6vw, 5rem) var(--gutter); }
.process h2 { font: 700 clamp(1.8rem, 4vw, 3rem)/1.25 var(--display); max-width: 22em; text-wrap: balance; }
.process h2 span { white-space: nowrap; }
.process ol { margin-top: 2.5rem; display: grid; gap: 2rem; counter-reset: step; }
.process li { counter-increment: step; }
.process li::before { content: counter(step); display: block; font: 700 2.5rem/1 var(--display); color: #9fb4c0; margin-bottom: .6rem; }
.process h3 { font: 600 1.25rem/1.4 var(--display); }
.process p { margin-top: .4rem; color: #d3dde2; max-width: 34em; }

/* Quote */
.quote { display: grid; gap: 2.5rem; padding: clamp(2.5rem, 6vw, 5rem) var(--gutter); background: var(--zinc); }
.quote h2 { font: 700 clamp(1.8rem, 4vw, 3rem)/1.25 var(--display); text-wrap: balance; }
.quote-intro > p { margin-top: 1rem; max-width: 30em; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.button-line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.button-line:hover { background: var(--paper); }
.quote-form { display: grid; gap: 1.1rem; background: var(--paper); padding: clamp(1.25rem, 3vw, 2.25rem); }
.field-pair { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .3rem; }
.field label { font-weight: 600; font-size: 1rem; }
.field small { font-size: .9375rem; color: var(--ink-soft); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .55rem .75rem; font: 400 1.0625rem/1.5 var(--body); color: var(--ink); background: #fff; border: 1px solid #66757f; border-radius: 2px; }
.field textarea { min-height: 7.5rem; resize: vertical; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-size: 1rem; line-height: 1.6; }
.consent input { width: 22px; height: 22px; margin: .15rem 0 0; accent-color: var(--ink); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { color: var(--kitchen); font-weight: 600; }
.form-status:empty { display: none; }
.quote-success { background: var(--paper); padding: clamp(1.25rem, 3vw, 2.25rem); align-self: start; }
.quote-success h3 { font: 700 1.5rem/1.4 var(--display); color: var(--fresh); }

/* Footer */
.site-footer { padding: 2rem var(--gutter); background: var(--ink); color: #d3dde2; font-size: 1rem; }
.site-footer strong { color: #fff; font-family: var(--display); font-size: 1.125rem; }

@media (max-width: 899px) {
	.site-nav > a { display: none; }
}
@media (max-width: 719px) {
	.brand { gap: .5rem; }
	.brand img { width: 40px; height: 40px; }
	.brand span { font-size: 1rem; }
	.staff button { padding: 0 .6rem; font-size: .9375rem; }
}
@media (min-width: 720px) {
	.system-figure { margin-inline: 0; margin-top: 1rem; }
	.legend { grid-template-columns: repeat(4, 1fr); }
	.legend a { padding: .6rem 1.25rem; }
	.legend li:first-child a { padding-left: var(--gutter); }
	.system-body { grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 3rem); }
	.process ol { grid-template-columns: repeat(2, 1fr); }
	.quote { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(2rem, 6vw, 6rem); }
	.field-pair { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
	.system.system-dust { grid-template-rows: auto 1fr; row-gap: 1.5rem; }
	.system-dust .system-body { grid-template-columns: 1fr; align-content: start; }
	.system-dust .system-figure { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
	.system { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(2rem, 6vw, 6rem); }
	.process ol { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1500px) {
	.system, .quote { padding-inline: max(var(--gutter), calc((100vw - 1380px) / 2)); }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
@media (max-width: 359px) {
	.brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
