/* ==========================================================================
   Ultimate Trans — production stylesheet
   Design tokens match the approved Phase 3 design system exactly
   (Brandkit 2026 colors/type). Fonts are self-hosted woff2 in
   assets/fonts/ — see the @font-face block below — with font-display:swap
   so text never blocks on the network.
   ========================================================================== */

@font-face {
	font-family: 'Staatliches';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/staatliches_400.woff2') format('woff2');
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/inter_400.woff2') format('woff2');
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/inter_600.woff2') format('woff2');
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/inter_700.woff2') format('woff2');
}
@font-face {
	font-family: 'Kanit';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
	src: url('../fonts/kanit_400_thai.woff2') format('woff2');
}
@font-face {
	font-family: 'Kanit';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/kanit_400_latin.woff2') format('woff2');
}
@font-face {
	font-family: 'Kanit';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
	src: url('../fonts/kanit_600_thai.woff2') format('woff2');
}
@font-face {
	font-family: 'Kanit';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/kanit_600_latin.woff2') format('woff2');
}
@font-face {
	font-family: 'Kanit';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
	src: url('../fonts/kanit_700_thai.woff2') format('woff2');
}
@font-face {
	font-family: 'Kanit';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/kanit_700_latin.woff2') format('woff2');
}

/* ---- Tokens ---- */
:root {
	--navy: #020E48;
	--blue: #23409A;
	--blue-dark: #1c3480;
	--slate: #4A5F8F;
	--gold: #BD9016;
	--gold-dark: #a67e14;
	--gray: #D0D2DA;
	--white: #FFFFFF;
	--bg-alt: #F3F4F7;
	--text: #1B2333;
	--text-soft: #47506A;
	--error: #B3261E;
	--success-bg: #DCF3E4;
	--success-text: #16663A;
	--radius: 8px;
	--radius-lg: 14px;
	--max-width: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font-family: 'Kanit', 'Inter', sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { font-family: 'Kanit', sans-serif; font-weight: 700; color: var(--navy); margin: 0 0 0.5em; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: var(--blue); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.skip-link {
	position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
	padding: 12px 18px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---- Buttons ---- */
.site-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 0.95rem;
	padding: 12px 24px; border-radius: var(--radius); border: 2px solid transparent;
	cursor: pointer; text-decoration: none; min-height: 44px;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.site-btn-primary { background: var(--blue); color: #fff; }
.site-btn-primary:hover { background: var(--blue-dark); }
.site-btn-gold { background: var(--gold); color: var(--navy); } /* Navy-on-gold: passes WCAG AA (6.19:1) — white-on-gold does not, see design system */
.site-btn-gold:hover { background: var(--gold-dark); }
.site-btn-secondary { background: transparent; border-color: var(--blue); color: var(--blue); }
.site-btn-secondary:hover { background: var(--blue); color: #fff; }
.site-btn-ghost-light { background: transparent; border-color: #fff; color: #fff; }
.site-btn-ghost-light:hover { background: rgba(255,255,255,0.12); }
.btn-full { width: 100%; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--gray); }
.site-header-inner { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 20px; }
.site-logo { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.site-logo img { display: block; height: 42px; width: auto; }
.site-footer-logo { display: block; height: 48px; width: auto; margin-bottom: 14px; }
.site-nav-links { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; font-weight: 500; font-size: 0.92rem; }
.site-nav-links a { color: var(--text-soft); text-decoration: none; }
.site-nav-links a:hover { color: var(--blue); }
.site-header-cta { display: flex; align-items: center; gap: 12px; }
.lang-toggle { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.78rem; border: 1px solid var(--gray); border-radius: 6px; padding: 6px 10px; background: none; cursor: pointer; color: var(--text-soft); }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: 8px; cursor: pointer; }
.nav-toggle-bar { width: 22px; height: 2px; background: var(--navy); }

.mobile-quickbar { display: none; }

/* ---- Hero ---- */
.site-hero { --hpx: 24px; position: relative; display: flex; align-items: stretch; flex-direction: column; justify-content: flex-start; max-width: var(--max-width); margin: 0 auto; padding: 60px 0 0; min-height: clamp(600px, 82vh, 760px); background: var(--navy); border-radius: var(--radius-lg); overflow: hidden; box-sizing: border-box; }
/* Photo as a full background layer that fills the whole hero */
.site-hero-media { position: absolute; inset: 0; z-index: 0; margin: 0; }
.site-hero-media .ph-img { border-radius: 0; }
.site-hero-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 22%; border-radius: 0; }
/* Left-to-right + top scrim: darkens the sky behind the copy, leaves the trucks (lower centre-right) uncovered */
.site-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background:
		linear-gradient(103deg, rgba(2,14,72,0.94) 0%, rgba(2,14,72,0.86) 26%, rgba(2,14,72,0.45) 48%, rgba(2,14,72,0) 66%),
		linear-gradient(to top, rgba(2,14,72,0.82) 0%, rgba(2,14,72,0) 20%),
		linear-gradient(to bottom, rgba(2,14,72,0.55) 0%, rgba(2,14,72,0) 34%); }
.site-hero-copy { position: relative; z-index: 2; max-width: calc(500px + 2 * var(--hpx)); padding: 0 var(--hpx); box-sizing: border-box; }
.site-hero-eyebrow { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.site-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.25; margin-bottom: 16px; text-shadow: 0 2px 18px rgba(2,14,72,0.45); }
.site-hero p { color: #DCE2F4; max-width: 46ch; margin-bottom: 22px; text-shadow: 0 1px 12px rgba(2,14,72,0.5); }
.site-hero .quick-contact { color: #C3CAE2; font-family: 'Inter', sans-serif; font-size: 0.85rem; margin-top: 16px; }
.site-hero .quick-contact a { color: #fff; }

/* ---- Trust row ---- */
/* Trust row is nested in the hero as a full-bleed band pinned to the bottom, so the photo shows through behind it */
.site-trust-row { position: relative; z-index: 2; margin: auto 0 0; padding: 16px var(--hpx) 20px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 20px; background: linear-gradient(to top, rgba(2,14,72,0.9) 0%, rgba(2,14,72,0.5) 100%); text-align: center; font-size: 0.85rem; color: #E4E9F7; font-weight: 500; border-top: 1px solid rgba(255,255,255,0.16); box-sizing: border-box; }
.trust-item { display: flex; align-items: center; justify-content: center; gap: 8px; text-shadow: 0 1px 8px rgba(2,14,72,0.55); }
.trust-ic { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin: 0; flex: 0 0 auto; }

/* ---- Sections ---- */
.site-section { max-width: var(--max-width); margin: 0 auto; padding: 56px 24px; }
.site-section-alt { background: var(--bg-alt); max-width: none; }
.site-section-alt > * { max-width: var(--max-width); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
/* keep alt-section headings left-aligned with their content (was centering a narrow 64ch block) */
.site-section-alt > .site-section-head { max-width: var(--max-width); }
/* wrapper so a CTA button in an alt section lines up with the content (inline-flex buttons ignore the auto-margins) */
.site-section-cta { margin-top: 16px; }
.site-section-head { max-width: 64ch; margin-bottom: 30px; }
.site-section-eyebrow { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.site-section-head h2 { font-size: 1.65rem; margin-top: 8px; }

/* ---- Placeholder image blocks (until real photos land) ---- */
.ph-img {
	background: repeating-linear-gradient(45deg, var(--gray) 0 8px, #e4e6ec 8px 16px);
	border: 1px dashed #9CA0AE; border-radius: var(--radius);
	display: flex; align-items: center; justify-content: center; text-align: center;
	color: #565b68; font-family: 'Inter', sans-serif; font-size: 0.78rem; padding: 12px; min-height: 90px;
}

/* ---- Service cards ---- */
.site-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.site-svc-card { display: block; border: 1px solid var(--gray); border-radius: 12px; padding: 18px; text-decoration: none; color: inherit; transition: box-shadow 0.15s ease, border-color 0.15s ease; }
.site-svc-card:hover { border-color: var(--blue); box-shadow: 0 6px 18px rgba(2,14,72,0.08); }
.site-svc-card .ph-img { height: 100px; margin-bottom: 14px; }
.site-svc-card-img { display: block; width: 100%; height: 165px; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; }
.site-svc-card h2, .site-svc-card h3 { font-size: 1.02rem; color: var(--blue); margin-bottom: 6px; }
.site-svc-card p { font-size: 0.85rem; color: var(--text-soft); margin-bottom: 10px; }
.svc-card-link { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.8rem; color: var(--blue); }

/* ---- Why grid ---- */
.site-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.site-why-item { display: flex; gap: 14px; align-items: flex-start; }
.why-ic { width: 32px; height: 32px; border-radius: 8px; background: var(--gold); flex-shrink: 0; }
.site-why-item p { font-size: 0.9rem; color: var(--text-soft); margin: 0; }

/* ---- Steps ---- */
.site-steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.site-step { border-top: 3px solid var(--gold); padding-top: 14px; }
.step-num { font-family: 'Staatliches', sans-serif; font-size: 1.7rem; color: var(--gray); display: block; }
.site-step h4 { font-size: 0.98rem; margin: 6px 0 4px; }
.site-step p { font-size: 0.85rem; color: var(--text-soft); }

/* ---- Final CTA ---- */
.site-final-cta { background: var(--blue); padding: 50px 24px; text-align: center; }
.site-final-cta h2 { color: #fff; max-width: 44ch; margin: 0 auto 22px; font-size: 1.5rem; }
.site-final-cta .cta-row { justify-content: center; }

/* ---- Footer ---- */
.site-footer { background: var(--navy); color: #B7C0DE; padding: 44px 24px 24px; font-size: 0.88rem; }
.site-footer-inner { max-width: var(--max-width); margin: 0 auto; }
.site-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 26px; }
.site-footer-col ul { list-style: none; padding: 0; margin: 0; }
.site-footer-col li { margin-bottom: 8px; }
.site-footer-col a { color: #B7C0DE; text-decoration: none; }
.site-footer-col a:hover { color: #fff; }
.site-footer h5 { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; margin-bottom: 12px; }
.site-footer-bottom { border-top: 1px solid #26305A; padding-top: 16px; font-size: 0.78rem; color: #7C87AC; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.site-footer-bottom a { color: #9AA5C8; }

/* ---- Breadcrumb ---- */
.breadcrumb { max-width: var(--max-width); margin: 0 auto; padding: 16px 24px 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-family: 'Inter', sans-serif; font-size: 0.78rem; color: var(--text-soft); }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--gray); }
.breadcrumb a { color: var(--blue); text-decoration: none; }

/* ---- Service detail page ---- */
.svc-hero { max-width: var(--max-width); margin: 0 auto; padding: 26px 24px 40px; border-bottom: 1px solid var(--gray); }
.svc-hero .kicker { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-dark); }
.svc-hero h1 { font-size: 1.9rem; margin: 10px 0 16px; max-width: 34ch; }
.svc-hero p { font-size: 1rem; color: var(--text-soft); max-width: 66ch; margin-bottom: 20px; }

.svc-body-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; max-width: var(--max-width); margin: 0 auto; padding: 40px 24px 60px; }
.svc-body-main h2 { font-size: 1.2rem; margin-top: 30px; }
.svc-body-main h2:first-child { margin-top: 0; }
.svc-body-main li { margin-bottom: 6px; color: var(--text-soft); }
.svc-faq-list { margin-top: 8px; }
.svc-faq-item { border-bottom: 1px solid var(--gray); padding: 14px 0; }
.svc-faq-item summary { font-family: 'Kanit', sans-serif; font-weight: 600; color: var(--navy); cursor: pointer; }
.svc-faq-item summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.svc-faq-item p { margin-top: 10px; color: var(--text-soft); }

.svc-sidebar { display: flex; flex-direction: column; gap: 18px; }
.svc-sidebar-card { border: 1px solid var(--gray); border-radius: 12px; padding: 18px; }
.svc-sidebar-card h5 { font-size: 0.92rem; margin-bottom: 12px; }
.svc-sidebar-card a { display: block; font-size: 0.88rem; color: var(--blue); text-decoration: none; margin-bottom: 8px; }
.svc-cta-card { background: var(--bg-alt); }
.svc-cta-card p { font-size: 0.85rem; color: var(--text-soft); margin-bottom: 14px; }
.svc-sidebar-phone { display: block; text-align: center; margin-top: 10px; font-size: 0.85rem; }

/* ---- Simple content pages (About, Safety, Service Areas, Case Studies, legal) ---- */
.content-simple-wrap { max-width: 76ch; margin: 0 auto; padding: 32px 24px 64px; }
.content-simple-wrap h1 { font-size: 1.9rem; margin-bottom: 20px; }
.content-simple-wrap h2 { font-size: 1.25rem; margin-top: 32px; }
.content-simple-wrap li { color: var(--text-soft); margin-bottom: 6px; }
.content-simple-wrap .site-why-grid { margin: 20px 0 30px; }
.legal-page .entry-content { color: var(--text-soft); }

/* ---- 404 ---- */
.error-404-wrap { text-align: center; padding-top: 60px; }
.error-404-code { font-family: 'Staatliches', sans-serif; font-size: 5rem; color: var(--gray); margin: 0; line-height: 1; }
.error-404-wrap .cta-row { justify-content: center; margin-top: 20px; }

/* ---- Contact page ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; margin-top: 30px; }
.contact-info-list { list-style: none; padding: 0; }
.contact-info-list li { margin-bottom: 12px; }
.urgent-note { font-size: 0.85rem; color: var(--text-soft); background: var(--bg-alt); padding: 12px 14px; border-radius: 8px; }

/* ---- Forms ---- */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.form-field input[type="text"], .form-field input[type="tel"], .form-field input[type="email"],
.form-field input[type="date"], .form-field select, .form-field textarea {
	width: 100%; font-family: 'Kanit', sans-serif; font-size: 0.95rem; padding: 11px 12px;
	border: 1.5px solid var(--gray); border-radius: 7px; background: var(--white); color: var(--text);
	min-height: 44px;
}
.form-field textarea { min-height: 96px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--blue); }
.form-field.has-error input, .form-field.has-error select { border-color: var(--error); }
.form-field .err-msg { display: block; color: var(--error); font-size: 0.8rem; margin-top: 4px; min-height: 1em; }
.form-field-checkbox label { display: flex; gap: 10px; font-weight: 400; align-items: flex-start; }
.form-field-checkbox input { width: auto; min-height: auto; margin-top: 3px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 8px; font-size: 0.9rem; }
.form-status.is-success { background: var(--success-bg); color: var(--success-text); }
.form-status.is-error { background: #FBDCDA; color: #8C2A22; }

/* ---- Insights ---- */
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.insight-card a { color: inherit; text-decoration: none; }
.insight-card h2, .insight-card h3 { font-size: 1rem; color: var(--blue); }
.insight-card img, .insight-card .ph-img { border-radius: var(--radius); margin-bottom: 12px; aspect-ratio: 16/10; object-fit: cover; }
.insight-card time { font-family: 'Inter', sans-serif; font-size: 0.75rem; color: var(--text-soft); }
.insight-single .insight-meta { font-family: 'Inter', sans-serif; font-size: 0.8rem; color: var(--text-soft); }
.insight-hero { margin: 16px 0 24px; }
.insight-hero img { border-radius: var(--radius-lg); }

/* ---- Mobile ---- */
@media (max-width: 900px) {
	.site-nav-links, .site-header-cta .lang-toggle { display: none; }
	.nav-toggle { display: flex; }
	.site-header.is-open .site-nav-links { display: flex; }
	.site-nav-links {
		position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
		flex-direction: column; gap: 0; border-bottom: 1px solid var(--gray); padding: 8px 0;
	}
	.site-nav-links li { border-top: 1px solid var(--bg-alt); }
	.site-nav-links a { display: block; padding: 12px 24px; }

	.site-hero { --hpx: 22px; padding: 40px 0 0; min-height: clamp(560px, 90vh, 720px); border-radius: 0; }
	.site-hero-img { object-position: 66% center; }
	.site-hero::before { background:
		linear-gradient(115deg, rgba(2,14,72,0.95) 0%, rgba(2,14,72,0.8) 42%, rgba(2,14,72,0.32) 70%, rgba(2,14,72,0.12) 100%),
		linear-gradient(to bottom, rgba(2,14,72,0.5) 0%, rgba(2,14,72,0) 30%); }
	.site-trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px var(--hpx) 18px; text-align: left; font-size: 0.8rem; gap: 12px 16px; }
	.site-trust-row .trust-item { justify-content: flex-start; align-items: flex-start; min-width: 0; }
	.site-trust-row .trust-ic { margin-top: 5px; }
	.site-services-grid, .site-why-grid, .insight-grid { grid-template-columns: 1fr; }
	.site-steps-row { grid-template-columns: repeat(2, 1fr); }
	.svc-body-grid, .contact-grid { grid-template-columns: 1fr; }
	.site-footer-grid { grid-template-columns: 1fr 1fr; }
	.cta-row .site-btn { flex: 1 1 auto; }

	.mobile-quickbar {
		display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
		background: var(--white); border-top: 1px solid var(--gray);
		box-shadow: 0 -4px 14px rgba(2,14,72,0.08);
	}
	.mobile-quickbar a {
		flex: 1; text-align: center; padding: 12px 6px; font-size: 0.8rem; text-decoration: none;
		color: var(--text-soft); border-right: 1px solid var(--bg-alt); min-height: 44px;
	}
	.mobile-quickbar a.is-primary { background: var(--blue); color: #fff; font-weight: 600; }
	main { padding-bottom: 64px; } /* clear space for the fixed quickbar */
}

@media (min-width: 901px) {
	.mobile-quickbar { display: none !important; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
	* { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
