/* Yen Dental: tokens, base rules and shared parts (buttons, fields, headings, arrows). */

:root {
	--navy: #0c385a;
	--navy-deep: #082a45;
	--teal: #01b9b5;
	--brand: #00817e;       /* buttons, menu bar: white text passes 4.5:1 */
	--brand-hi: #01b9b5;    /* logo teal: decoration, focus, dots, never under small text */
	--teal-head: #009e9a;   /* large headings on white (3.3:1, large text only) */
	--teal-ink: #06706e;    /* small text on white */
	--tint: #dcf6f4;
	--tint-soft: #f1fbfa;
	--ink: #212529;
	--muted: #5a6872;
	--line: #d5e5e8;
	--field-line: #6f989d;   /* input edges: 3:1 on white */
	--white: #fff;

	--font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--wrap: 1256px;
	--gutter: 20px;
	--radius: 16px;
	--radius-lg: 28px;
	--shadow: 0 12px 40px rgba(0, 110, 107, 0.14);
	--header-h: 109px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
	overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 2px var(--white); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: calc(1356px + var(--gutter) * 2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: 0; transform: translateY(-200%); z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; }
.skip:focus { top: 8px; transform: none; }

section { padding-block: 56px; }

/* Section heading: centred coloured title with a lead line */
.sec-head { text-align: center; max-width: 880px; margin: 0 auto 44px; }
.sec-head h2, .row-head h2, .story__text h2 {
	font-size: clamp(27px, 3.4vw, 40px);
	line-height: 1.25;
	font-weight: 700;
	color: var(--teal-head);
	letter-spacing: -0.005em;
	text-wrap: balance;
}
.sec-head p { margin-top: 18px; font-size: 16px; }
.sec-head--left { text-align: left; margin-left: 0; max-width: 820px; }

.row-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 36px; }

/* Buttons: pills */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 10px 30px;
	border-radius: 999px; border: 1.5px solid var(--brand);
	font-weight: 600; font-size: 15px; line-height: 1.2; text-align: center;
	transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn--line { color: var(--brand); background: var(--white); box-shadow: 0 6px 16px rgba(0, 129, 126, 0.16); }
.btn--line:hover { background: var(--brand); color: #fff; }
.btn--solid { background: linear-gradient(135deg, #00918d, var(--brand)); color: #fff; box-shadow: 0 8px 20px rgba(0, 129, 126, 0.28); }
.btn--solid:hover { background: var(--navy); border-color: var(--navy); }
.btn--sm { min-height: 44px; padding: 8px 22px; font-size: 14px; }
.btn--block { width: 100%; text-transform: uppercase; letter-spacing: .02em; min-height: 52px; }

.pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 6px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.pill--solid { background: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--tint); }
.pill__ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--brand); }

/* Fields: pill inputs with a leading icon */
.field {
	display: flex; align-items: center; gap: 10px;
	min-height: 42px; padding: 0 18px;
	border: 1px solid var(--field-line); border-radius: 999px; background: #fff;
	color: var(--teal-ink);
}
.field input, .field textarea { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font-size: 14px; padding: 9px 0; }
.field ::placeholder { color: #7b8a93; opacity: 1; }
.field:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px var(--tint); }
.field--area { border-radius: 20px; align-items: flex-start; padding-top: 10px; }
.field--area textarea { resize: vertical; padding-top: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.consent a { color: var(--teal-ink); text-decoration: underline; }
.form-msg { font-size: 14px; color: var(--navy); background: var(--tint); border-radius: 12px; padding: 10px 14px; }

/* Round arrow buttons for carousels */
.arrow {
	display: grid; place-items: center; width: 50px; height: 50px; flex: none;
	border-radius: 50%; border: 1.5px solid var(--brand); color: var(--brand); background: #fff;
	transition: background-color .2s, color .2s, opacity .2s;
}
.arrow:hover { background: var(--brand); color: #fff; }
.arrow[disabled] { opacity: .35; cursor: default; background: #fff; color: var(--brand); }
.arrows { display: flex; gap: 20px; }

/* Carousel tracks: native scroll with snapping, no visible scrollbar */
[data-track] { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
[data-track]::-webkit-scrollbar { display: none; }
[data-track] > * { scroll-snap-align: start; flex: none; }

/* Plain pages until their layouts are built */
.prose { padding-block: 56px; max-width: 860px; }
.prose h1 { font-size: 34px; color: var(--teal-head); margin-bottom: 20px; }
.prose p { margin-bottom: 16px; }

@media (max-width: 767px) {
	:root { --gutter: 16px; --header-h: 64px; }
	section { padding-block: 40px; }
	.sec-head { margin-bottom: 28px; }
	.sec-head p { font-size: 15px; margin-top: 12px; }
	.row-head { margin-bottom: 24px; }
}

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

/* Chip-free leftovers (26/11/2026): blocks whose only content was an open question to Yen. */
main li:empty, main p:empty, main dd:empty, main figcaption:empty, main .tl__year:empty { display: none; }
main td:empty::after { content: "–"; color: var(--muted); }

/* Booking form reply (26/11/2026) */
.form-msg.is-ok { color: var(--teal-ink); font-weight: 600; }

/* audit 2: note above Vietnamese-only cards on English pages */
.row-note { margin: -8px 0 18px; font-size: .9rem; color: #5b7183; }
