/* ============================================================
 * Privato — base.css
 * Global tokens, reset, typography, utilities, site-global
 * footer + sticky-contact chrome, and global reduced-motion.
 *
 * Ported verbatim from the inline <style> block of
 * HTML/Privato/home.html. `pc-*` class names and `--pc-*`
 * token values are preserved 1:1.
 * ============================================================ */

/* ===== RESET / BASE ===== */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ===== DESIGN TOKENS =====
 * Thai sans stack is the default body font. Prata is reserved
 * for Latin-script display roles (tagline, section H2s,
 * service term H4s, review program names, About H2). Cormorant
 * Garamond is reserved for the consult hairline accent and
 * stat numerals. */
:root {
	--pc-ink: #000;
	--pc-black: #000;
	--pc-white: #fff;
	--pc-ink-soft: #1a1a1a;
	--pc-mocha: #9B7949;
	--pc-mocha-dk: #96695E;
	--pc-cream-warm: #FFFBF6;
	--pc-cream: #F5EBDE;
	--pc-ivory: #FAF5EC;
	--pc-page: #F7FAFC;
	--pc-page-warm: #f7f4ef;
	--pc-line: #E6DFD6;
	--pc-line-warm: rgba(155, 121, 73, .14);
	--pc-line-rose: rgba(150, 105, 94, .18);
	--pc-muted: #6B6B6B;
	--pc-blue: #2B6CB0;
	--pc-green: #06C755;
	--pc-dark: #2C3338;
	--pc-paper: #FBF6EC;
	--pc-gold: #B8974F;
	--pc-gold-soft: #C9A758;
	--pc-mocha-dk-hover: #7a5248;
	--pc-peach-a: #FAEFE0;
	--pc-peach-b: #FFFBF6;
	--pc-sand: #F6E6C9;
	--pc-sub-1: #2b2620;
	--pc-sub-2: #5c5247;
	--pc-sub-3: #6b5f52;
	--pc-line-warm-deep: rgba(155, 121, 73, .32);
	--pc-font-body: "Noto Sans Thai", "Sarabun", "Helvetica Neue", system-ui, -apple-system, sans-serif;
	--pc-font-display: "Prata", Georgia, "Times New Roman", serif;
	--pc-font-italic: "Cormorant Garamond", Georgia, serif;
	--pc-r-card: 4px;
	--pc-r-photo: 6px;
	--pc-r-pill: 999px;
	--pc-sh-card: 0 1px 2px rgba(75, 55, 40, .04), 0 12px 28px rgba(75, 55, 40, .06);
	--pc-sh-hover: 0 14px 32px rgba(75, 55, 40, .12);
	--pc-sh-card-hover: 0 14px 32px rgba(75, 55, 40, .12);
	--pc-focus-ring: rgba(43, 108, 176, .55);
	--pc-peach-gradient: linear-gradient(135deg, #FAEFE0, #FFFBF6);
	--pc-peach-grad: linear-gradient(135deg, #FAEFE0, #FFFBF6);
	--pc-gold-grad: linear-gradient(135deg, #E0C07B, #B8974F, #D4B16A, #9B7E3A);
	--pc-gold-ring: linear-gradient(135deg, #E8CDA0 0%, #C9A375 22%, #A88557 50%, #C9A375 78%, #E8CDA0 100%);
	--pc-max: 1200px;
}

body {
	font-family: var(--pc-font-body);
	color: var(--pc-ink);
	background: var(--pc-page);
	line-height: 1.6;
	font-size: 16px;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a {
	color: inherit;
	text-decoration: none;
	transition: opacity .2s, color .2s;
}

button {
	font: inherit;
	cursor: pointer;
	border: 0;
	background: none;
}

/* ===== CONTAINER UTILITY =====
 * The mockup used `.pc-container`; the WordPress templates
 * wrap content in `.pc-wrap`. Both are aliased to the same
 * max-width + gutters so either markup renders correctly. */
.pc-container,
.pc-wrap {
	max-width: var(--pc-max);
	margin: 0 auto;
	padding: 0 16px;
}

@media (min-width: 768px) {
	.pc-container,
	.pc-wrap { padding: 0 24px; }
}

/* ===== SHARED HERO SLIDER MECHANICS ===== */
.pc-hero {
	position: relative;
	background: var(--pc-cream);
	overflow: hidden;
}

.pc-hero__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.pc-hero__track::-webkit-scrollbar { display: none; }

.pc-hero__slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
	max-height: calc(100svh - 130px);
	overflow: hidden;
	background: var(--pc-cream);
}

@media (min-width: 768px) {
	.pc-hero__slide { max-height: calc(100svh - 140px); }
}

@media (min-width: 1024px) {
	.pc-hero__slide { max-height: calc(100svh - 170px); }
}

@supports not (height: 100svh) {
	.pc-hero__slide { max-height: calc(100vh - 130px); }
	@media (min-width: 768px) {
		.pc-hero__slide { max-height: calc(100vh - 140px); }
	}
	@media (min-width: 1024px) {
		.pc-hero__slide { max-height: calc(100vh - 170px); }
	}
}

/* ===== SHARED SECTION HEADINGS ===== */
.pc-section-head {
	text-align: center;
	margin-bottom: 32px;
}

.pc-section-head__eyebrow {
	display: block;
	color: #7A5A33;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 4px;
	line-height: 1.2;
	text-transform: uppercase;
	margin-bottom: 10px;
}

@media (min-width: 768px) {
	.pc-section-head__eyebrow {
		font-size: 13px;
		margin-bottom: 12px;
	}
}

.pc-section-head h2 {
	color: var(--pc-ink);
	font-family: var(--pc-font-display);
	font-size: 28px;
	font-weight: 400;
	letter-spacing: .2px;
	line-height: 1.25;
}

@media (min-width: 768px) {
	.pc-section-head h2 { font-size: 38px; }
}

@media (min-width: 1280px) {
	.pc-section-head h2 { font-size: 44px; }
}

.pc-section-head p {
	color: var(--pc-muted);
	font-size: 13px;
	margin-top: 4px;
}

/* ===== SKIP LINK ===== */
.pc-skip-link {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.pc-skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	width: auto;
	height: auto;
	padding: 10px 16px;
	background: var(--pc-mocha-dk);
	color: var(--pc-white);
	border-radius: 4px;
	z-index: 200;
}

/* ===== BODY STATE — drawer open locks scroll ===== */
body.pc-drawer-open { overflow: hidden; }

/* ===== FOOTER ===== */
.pc-footer {
	background: var(--pc-white);
	color: var(--pc-ink);
	border-top: 1px solid var(--pc-line);
	padding: 56px 24px 0;
}

.pc-footer__inner {
	max-width: var(--pc-max);
	margin: 0 auto;
}

.pc-footer__top {
	display: grid;
	grid-template-columns: 1fr;
	gap: 36px;
	padding-bottom: 36px;
	border-bottom: 1px solid var(--pc-line);
}

@media (min-width: 768px) {
	.pc-footer__top {
		grid-template-columns: 1.2fr 1fr 1fr 1fr 1.2fr;
		gap: 40px;
	}
}

.pc-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.pc-footer__logo {
	color: var(--pc-ink);
	font-family: "Prata", Georgia, serif;
	font-size: 32px;
	font-weight: 400;
	letter-spacing: 2.5px;
	line-height: 1;
}

.pc-footer__brand-name {
	color: var(--pc-mocha-dk);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 3px;
	margin-top: -12px;
	text-transform: uppercase;
}

.pc-footer__tagline {
	color: var(--pc-sub-2);
	font-size: 13.5px;
	line-height: 1.75;
	max-width: 260px;
}

.pc-footer__social {
	display: flex;
	gap: 10px;
	margin-top: 4px;
}

.pc-footer__social a {
	align-items: center;
	background: var(--pc-cream-warm);
	border-radius: 50%;
	color: var(--pc-mocha-dk);
	display: inline-flex;
	height: 38px;
	justify-content: center;
	transition: background .2s, color .2s, transform .2s;
	width: 38px;
}

.pc-footer__social a:hover {
	background: var(--pc-mocha-dk);
	color: var(--pc-white);
	opacity: 1;
	transform: translateY(-2px);
}

.pc-footer__social svg {
	display: block;
	height: 16px;
	width: 16px;
}

.pc-footer__col h3 {
	color: var(--pc-ink);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .2px;
	line-height: 1.4;
	margin-bottom: 18px;
}

.pc-footer__col ul { list-style: none; }

.pc-footer__col li { margin-bottom: 10px; }

.pc-footer__col a,
.pc-footer__branch {
	color: var(--pc-sub-2);
	font-size: 13.5px;
	line-height: 1.6;
}

.pc-footer__col a:hover {
	color: var(--pc-mocha-dk);
	opacity: 1;
}

.pc-footer__branch {
	margin-bottom: 14px;
}

.pc-footer__branch b {
	color: var(--pc-ink);
	display: block;
	font-weight: 600;
	margin-bottom: 2px;
}

.pc-footer__branch a {
	font-size: inherit;
	line-height: inherit;
}

.pc-footer__bottom {
	align-items: center;
	color: var(--pc-sub-3);
	display: flex;
	flex-wrap: wrap;
	font-size: 13px;
	gap: 16px;
	justify-content: space-between;
	padding: 24px 0;
}

.pc-footer__bottom-links {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.pc-footer__bottom-links a {
	color: var(--pc-sub-3);
}

.pc-footer__bottom-links a:hover {
	color: var(--pc-mocha-dk);
	opacity: 1;
}

/* ===== STICKY CONTACT WIDGET =====
 * Desktop (>=900px): single row anchored bottom-right, pills
 * ~180px wide. Mobile (<900px): single full-width row where
 * 4 pills share the row equally (~90px each on a 390px
 * viewport). Body gets padding-bottom on mobile so the widget
 * never covers footer content. */
.pc-stick {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 40;
	display: flex;
	flex-direction: row;
	gap: 10px;
	align-items: center;
	filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .20));
}

.pc-stick a {
	display: block;
	transition: transform .2s;
}

.pc-stick a:hover {
	transform: translateY(-3px);
	opacity: 1;
}

.pc-stick a img {
	width: 180px;
	height: auto;
	display: block;
}

@media (max-width: 900px) {
	.pc-stick {
		left: 8px;
		right: 8px;
		bottom: 8px;
		justify-content: center;
		flex-wrap: nowrap;
		gap: 6px;
	}
	.pc-stick a { flex: 1 1 0; min-width: 0; max-width: none; }
	.pc-stick a img { width: 100%; max-width: none; height: auto; }
	body { padding-bottom: 72px; }
}

@media (max-width: 480px) {
	.pc-stick { gap: 4px; left: 6px; right: 6px; bottom: 6px; }
	body { padding-bottom: 64px; }
}

/* ===== GLOBAL REDUCED MOTION =====
 * Track-level: disable smooth scroll inside carousels. Global:
 * kill animations/transitions for users who prefer reduced
 * motion. Section-specific overrides (drawer panel, chevron,
 * etc.) live in their own files. */
@media (prefers-reduced-motion: reduce) {
	.pc-hero__track,
	.pc-reviews__track { scroll-behavior: auto; }
	* {
		animation: none !important;
		transition: none !important;
	}
}
