/* kaset.thaithai.shop — UPRIGHT Agrology
   Colours named from the field: laterite soil, bottle-cap gold, paddy green, mo-hom indigo, milled rice. */

:root {
	--kt-laterite: #8b3a1e;
	--kt-laterite-deep: #6e2c15;
	--kt-cap: #c9932b;
	--kt-cap-light: #e3b658;
	--kt-paddy: #2f6b2a;
	--kt-paddy-soft: #e4eddf;
	--kt-indigo: #1b2436;
	--kt-indigo-deep: #121927;
	--kt-rice: #faf8f3;
	--kt-rice-deep: #f0ece2;
	--kt-ink: #1a1714;
	--kt-ink-soft: #5b544c;
	--kt-line: #d9d2c3;

	--kt-display: "Mitr", "Kanit", "Noto Sans Thai", system-ui, sans-serif;
	--kt-body: "Sarabun", "Noto Sans Thai", "Segoe UI", system-ui, sans-serif;

	--kt-gutter: clamp(20px, 5vw, 96px);
	--kt-section: clamp(56px, 8vw, 120px);
	--kt-max: 1280px;
	--kt-measure: 36rem;
	--kt-radius: 6px;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body,
body .elementor-widget-text-editor,
body .elementor-widget-heading .elementor-heading-title {
	font-family: var(--kt-body);
	color: var(--kt-ink);
}
body { background: var(--kt-rice); font-size: 17px; line-height: 1.7; font-weight: 400; }
body a { color: var(--kt-laterite); }
body a:focus-visible, body button:focus-visible { outline: 3px solid var(--kt-cap); outline-offset: 3px; }

body .e-con { --gap: 0px; }
body .elementor-widget:not(:last-child) { margin-block-end: 0; }
body .elementor-widget-text-editor p:last-child { margin-bottom: 0; }

/* every content section: full-bleed background, content capped at --kt-max */
body .e-con.e-parent {
	--padding-inline: max(var(--kt-gutter), calc((100% - var(--kt-max)) / 2));
	--padding-block-start: var(--kt-section);
	--padding-block-end: var(--kt-section);
	padding-inline: max(var(--kt-gutter), calc((100% - var(--kt-max)) / 2));
	padding-block: var(--kt-section);
}
body .e-con.e-child { --padding-inline: 0; --padding-block-start: 0; --padding-block-end: 0; padding: 0; }

/* ---------- type ---------- */
body .elementor-widget.kt-h1 .elementor-heading-title {
	font-family: var(--kt-display);
	font-weight: 600;
	font-size: clamp(2.1rem, 5.2vw, 4.2rem);
	line-height: 1.22;
	color: #fff;
	max-width: 15ch;
	text-wrap: balance;
}
body .elementor-widget.kt-h2 .elementor-heading-title {
	font-family: var(--kt-display);
	font-weight: 600;
	font-size: clamp(1.8rem, 3.4vw, 2.8rem);
	line-height: 1.25;
	color: var(--kt-ink);
	max-width: 22ch;
	text-wrap: balance;
}
body .elementor-widget.kt-h2-light .elementor-heading-title { color: #fff; }
body .elementor-widget.kt-h3 .elementor-heading-title {
	font-family: var(--kt-display);
	font-weight: 600;
	font-size: clamp(1.45rem, 2.3vw, 2rem);
	line-height: 1.3;
	color: var(--kt-ink);
}
body .elementor-widget.kt-h3-sm .elementor-heading-title { font-size: 1.35rem; margin-top: 1rem; }
body .elementor-widget.kt-lede p {
	font-size: clamp(1.02rem, 1.4vw, 1.2rem);
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.9);
	max-width: var(--kt-measure);
	margin: 1rem 0 0;
}
body .elementor-widget.kt-sub p { color: var(--kt-ink-soft); max-width: var(--kt-measure); margin: 0.6rem 0 0; font-size: 1.05rem; }
body .elementor-widget.kt-body p { max-width: var(--kt-measure); color: var(--kt-ink-soft); margin: 0.9rem 0 0; }
body .elementor-widget.kt-body-light p { color: rgba(255, 255, 255, 0.82); }
body .elementor-widget.kt-role-wrap p.kt-role {
	font-family: var(--kt-display);
	font-weight: 500;
	color: var(--kt-laterite);
	font-size: 1.02rem;
	margin: 0.35rem 0 0;
}

/* ---------- buttons ---------- */
.kt-btn { margin-top: 1.8rem; }
body .elementor-widget.kt-btn .elementor-button,
.kt-cta, .kt-links-cta {
	font-family: var(--kt-display);
	font-weight: 500;
	font-size: 1.02rem;
	background: var(--kt-laterite);
	color: #fff;
	border-radius: var(--kt-radius);
	padding: 0.85rem 1.5rem;
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	transition: background-color 180ms ease-out, transform 120ms ease-out;
}
body .elementor-widget.kt-btn .elementor-button:hover,
body .elementor-widget.kt-btn .elementor-button:focus-visible,
.kt-cta:hover { background: var(--kt-laterite-deep); color: #fff; }
body .elementor-widget.kt-btn .elementor-button:active, .kt-cta:active { transform: translateY(1px); }
.kt-cta-line { background: var(--kt-cap); color: var(--kt-indigo-deep); }
.kt-cta-line:hover { background: var(--kt-cap-light); color: var(--kt-indigo-deep); }
.kt-cta-tel { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6); }
.kt-cta-tel:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- images ---------- */
.kt-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: var(--kt-radius); }
.elementor-widget.kt-photo { display: block; }

/* ---------- nav ---------- */
body .kt-nav.e-con {
	background: var(--kt-indigo);
	padding-block: 14px;
	--padding-block-start: 14px; --padding-block-end: 14px;
	flex-direction: row; align-items: center; justify-content: space-between;
	--gap: 16px; gap: 16px;
	flex-wrap: wrap;
}
body .kt-nav .elementor-widget { width: auto; }
.kt-nav .kt-brand { margin: 0; line-height: 1.1; }
.kt-nav .kt-brand a {
	font-family: var(--kt-display);
	font-weight: 700;
	font-size: 1.35rem;
	color: #fff;
	text-decoration: none;
	letter-spacing: 0.01em;
}
.kt-nav .kt-brand a span { font-weight: 500; color: var(--kt-cap-light); }
.kt-nav .kt-brand small { display: block; color: rgba(255, 255, 255, 0.7); font-size: 0.8rem; margin-top: 2px; }
.kt-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.kt-links a { color: #fff; text-decoration: none; font-family: var(--kt-display); font-weight: 500; font-size: 1rem; padding: 0.3rem 0; }
.kt-links a:not(.kt-links-cta):hover { color: var(--kt-cap-light); }
.kt-links .kt-links-cta { background: var(--kt-cap); color: var(--kt-indigo-deep); min-height: 42px; padding: 0.5rem 1.1rem; }
.kt-links .kt-links-cta:hover { background: var(--kt-cap-light); }

/* ---------- hero: the tour ---------- */
body .kt-hero.e-con {
	position: relative;
	min-height: 100svh;
	background: var(--kt-indigo);
	justify-content: flex-end;
	padding-block: 0 clamp(28px, 5vw, 64px);
	--padding-block-start: 0; --padding-block-end: clamp(28px, 5vw, 64px);
	overflow: hidden;
}
body .kt-hero .elementor-widget.kt-tour-wrap { position: absolute; inset: 0; margin: 0; width: 100%; }
.kt-tour { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--kt-indigo); }
.kt-tour .pnlm-container { background: var(--kt-indigo); font-family: var(--kt-body); }
.kt-tour .pnlm-load-box, .kt-tour .pnlm-about-msg { display: none !important; }
.kt-tour .pnlm-render-container { cursor: grab; }
.kt-tour .pnlm-grabbing .pnlm-render-container { cursor: grabbing; }

body .kt-hero.e-con::after {
	content: "";
	position: absolute; left: 0; right: 0; bottom: 0;
	height: 58%;
	background: linear-gradient(to top, rgba(18, 25, 39, 0.88) 0%, rgba(18, 25, 39, 0.45) 40%, rgba(18, 25, 39, 0) 100%);
	pointer-events: none;
	z-index: 1;
}
body .kt-hero .e-con.kt-hero-copy { position: relative; z-index: 2; pointer-events: none; }
body .kt-hero .kt-hero-copy .elementor-widget { pointer-events: auto; width: fit-content; max-width: 100%; }

.kt-tour-hint {
	position: absolute; top: 18px; right: var(--kt-gutter);
	z-index: 2; margin: 0;
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 0.9rem; color: #fff;
	background: rgba(18, 25, 39, 0.55);
	padding: 8px 12px; border-radius: var(--kt-radius);
	backdrop-filter: blur(6px);
	pointer-events: none;
	opacity: 0; transition: opacity 400ms ease-out 900ms;
}
.kt-tour.is-ready + .kt-tour-hint { opacity: 1; }

/* tour stops */
.kt-stops { display: flex; gap: 10px; margin-top: 1.6rem; flex-wrap: wrap; }
.kt-stop {
	appearance: none; border: 0; cursor: pointer;
	display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
	text-align: left;
	background: rgba(18, 25, 39, 0.62);
	color: #fff;
	padding: 10px 16px 10px 12px;
	min-height: 56px;
	border-radius: var(--kt-radius);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(8px);
	font-family: var(--kt-display);
	transition: background-color 160ms ease-out, box-shadow 160ms ease-out;
}
.kt-stop b {
	grid-row: 1 / 3;
	width: 30px; height: 30px; border-radius: 50%;
	display: grid; place-items: center;
	background: rgba(255, 255, 255, 0.14);
	font-weight: 600; font-size: 0.95rem;
}
.kt-stop span { font-weight: 500; font-size: 1rem; line-height: 1.2; }
.kt-stop small { font-family: var(--kt-body); font-size: 0.82rem; color: rgba(255, 255, 255, 0.75); line-height: 1.2; margin-top: 2px; }
.kt-stop:hover { background: rgba(18, 25, 39, 0.8); }
.kt-stop.is-active { box-shadow: inset 0 0 0 2px var(--kt-cap); background: rgba(18, 25, 39, 0.82); }
.kt-stop.is-active b { background: var(--kt-cap); color: var(--kt-indigo-deep); }

/* hotspots */
.kt-tour .kt-hs {
	width: 26px; height: 26px; margin: -13px 0 0 -13px;
	border-radius: 50%;
	background: var(--kt-cap);
	box-shadow: 0 0 0 4px rgba(201, 147, 43, 0.35), 0 2px 10px rgba(0, 0, 0, 0.35);
	cursor: pointer;
}
.kt-tour .kt-hs::before {
	content: ""; position: absolute; inset: -6px; border-radius: 50%;
	border: 2px solid rgba(227, 182, 88, 0.9);
	animation: kt-pulse 2.2s ease-out infinite;
}
@keyframes kt-pulse { 0% { transform: scale(0.7); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .kt-tour .kt-hs::before { animation: none; } }
.kt-tour .kt-hs:hover, .kt-tour .kt-hs.is-open { z-index: 5; }
.kt-hs-card {
	display: none;
	position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
	width: min(320px, 78vw);
	background: #fff; color: var(--kt-ink);
	border-radius: var(--kt-radius);
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.3);
	padding: 14px 14px 14px 14px;
	cursor: default;
	text-align: left;
	line-height: 1.5;
}
.kt-hs-card::after {
	content: ""; position: absolute; top: 100%; left: 50%; margin-left: -8px;
	border: 8px solid transparent; border-top-color: #fff;
}
.kt-tour .kt-hs:hover .kt-hs-card, .kt-tour .kt-hs.is-open .kt-hs-card, .kt-tour .kt-hs:focus-visible .kt-hs-card { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.kt-hs-card img { width: 44px; height: auto; align-self: start; }
.kt-hs-card b { display: block; font-family: var(--kt-display); font-weight: 600; color: var(--kt-laterite); font-size: 0.95rem; }
.kt-hs-card strong { display: block; font-family: var(--kt-display); font-weight: 500; font-size: 1.05rem; line-height: 1.3; margin-top: 2px; }
.kt-hs-card p { margin: 6px 0 0; font-size: 0.92rem; color: var(--kt-ink-soft); }
.kt-hs-card small { display: block; margin-top: 6px; color: var(--kt-paddy); font-weight: 600; font-size: 0.82rem; }
.kt-hs-card a { display: inline-block; margin-top: 8px; font-family: var(--kt-display); font-weight: 500; font-size: 0.92rem; }

/* ---------- problems ---------- */
body .kt-problems.e-con { background: var(--kt-rice); }
.kt-ledger { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--kt-ink); }
.kt-ledger li { padding: 1.3rem 1.4rem 1.6rem 0; border-right: 1px solid var(--kt-line); margin-right: 1.4rem; color: var(--kt-ink-soft); font-size: 1rem; }
.kt-ledger li:last-child { border-right: 0; margin-right: 0; }
.kt-ledger li b { display: block; font-family: var(--kt-display); font-weight: 600; font-size: 1.25rem; color: var(--kt-ink); line-height: 1.3; margin-bottom: 0.4rem; }

/* ---------- products ---------- */
body .kt-products.e-con { background: var(--kt-rice-deep); }
body .kt-products .e-con.kt-product { margin-top: clamp(36px, 5vw, 64px); flex-direction: row; align-items: center; --gap: clamp(28px, 5vw, 72px); gap: clamp(28px, 5vw, 72px); }
body .kt-p-media.e-con { position: relative; }
body .kt-p-media .kt-photo img { aspect-ratio: 4 / 5; object-position: 50% 40%; }
body .kt-p-media .elementor-widget.kt-bottle {
	position: absolute; left: -6%; bottom: -5%;
	width: 34%; margin: 0;
	filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.35));
}
body .kt-kayo .kt-p-media .elementor-widget.kt-bottle { left: auto; right: -6%; }
.kt-uses { list-style: none; margin: 1.4rem 0 0; padding: 0; max-width: var(--kt-measure); }
.kt-uses li { position: relative; padding: 0.55rem 0 0.55rem 1.6rem; border-top: 1px solid var(--kt-line); color: var(--kt-ink); }
.kt-uses li:last-child { border-bottom: 1px solid var(--kt-line); }
.kt-uses li::before { content: ""; position: absolute; left: 0.2rem; top: 1.15rem; width: 8px; height: 8px; background: var(--kt-paddy); border-radius: 50%; }

body .kt-companions.e-con { margin-top: clamp(40px, 6vw, 72px); flex-direction: row; align-items: stretch; --gap: clamp(28px, 4vw, 56px); gap: clamp(28px, 4vw, 56px); }
body .kt-comp .kt-comp-photo img { aspect-ratio: 4 / 3; object-position: 50% 25%; }

/* ---------- how to ---------- */
body .kt-howto.e-con { background: var(--kt-rice); }
body .kt-stages.e-con { margin-top: 2.4rem; flex-direction: row; align-items: flex-start; --gap: clamp(24px, 4vw, 56px); gap: clamp(24px, 4vw, 56px); }
body .kt-stage.e-con { border-top: 2px solid var(--kt-ink); padding-top: 1.2rem; }
.kt-steps { list-style: none; margin: 1.2rem 0 0; padding: 0; counter-reset: step; }
.kt-steps li { counter-increment: step; position: relative; padding: 0.6rem 0 0.9rem 3rem; color: var(--kt-ink-soft); line-height: 1.6; }
.kt-steps li + li::after { content: ""; position: absolute; left: 1.05rem; top: -0.9rem; height: 1.5rem; border-left: 2px dashed var(--kt-line); }
.kt-steps li::before {
	content: counter(step);
	position: absolute; left: 0; top: 0.55rem;
	width: 2.15rem; height: 2.15rem; border-radius: 50%;
	background: var(--kt-laterite); color: #fff;
	font-family: var(--kt-display); font-weight: 600; font-size: 1rem;
	display: grid; place-items: center;
}
.kt-steps li b { display: block; font-family: var(--kt-display); font-weight: 500; color: var(--kt-ink); font-size: 1.08rem; }

/* ---------- results ---------- */
body .kt-results.e-con { background: var(--kt-paddy-soft); }
.kt-t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: 2.4rem; }
.kt-t { margin: 0; background: #fff; border-radius: var(--kt-radius); overflow: hidden; display: flex; flex-direction: column; }
.kt-t img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 22%; display: block; }
.kt-t figcaption { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.kt-t-q { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--kt-ink); flex: 1; }
.kt-t-q::before { content: "“"; color: var(--kt-cap); font-family: var(--kt-display); font-size: 1.3em; margin-right: 2px; }
.kt-t-q::after { content: "”"; color: var(--kt-cap); font-family: var(--kt-display); font-size: 1.3em; margin-left: 2px; }
.kt-t-who { margin: 1rem 0 0; font-family: var(--kt-display); font-weight: 600; font-size: 1.02rem; line-height: 1.35; color: var(--kt-ink); }
.kt-t-who span { display: block; font-family: var(--kt-body); font-weight: 400; font-size: 0.9rem; color: var(--kt-ink-soft); }
.kt-t-who .kt-t-crop { color: var(--kt-paddy); font-weight: 600; }

/* ---------- order ---------- */
body .kt-order.e-con { background: var(--kt-indigo); flex-direction: row; align-items: center; --gap: clamp(28px, 5vw, 72px); gap: clamp(28px, 5vw, 72px); }
body .kt-order-media .kt-photo img { aspect-ratio: 4 / 5; }
.kt-order-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.8rem; }

/* ---------- footer ---------- */
body .kt-footer.e-con { background: var(--kt-indigo-deep); padding-block: 36px; --padding-block-start: 36px; --padding-block-end: 36px; }
.kt-footer .kt-brand { margin: 0; color: #fff; font-size: 0.95rem; }
.kt-footer .kt-brand span { font-family: var(--kt-display); font-weight: 600; margin-right: 0.5rem; }
.kt-footer .kt-small { margin: 0.5rem 0 0; color: rgba(255, 255, 255, 0.55); font-size: 0.85rem; max-width: 60ch; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
	.kt-ledger { grid-template-columns: repeat(2, 1fr); }
	.kt-ledger li:nth-child(2n) { border-right: 0; margin-right: 0; }
	.kt-ledger li:nth-child(n+3) { border-top: 1px solid var(--kt-line); }
	.kt-t-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
	body .kt-hero.e-con { min-height: 86svh; }
	.kt-tour-hint { top: 12px; right: 12px; font-size: 0.82rem; }
	.kt-stops { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-inline: calc(-1 * var(--kt-gutter)); padding-inline: var(--kt-gutter); scrollbar-width: none; }
	.kt-stops::-webkit-scrollbar { display: none; }
	.kt-stop { flex: 0 0 auto; }
	body .kt-hero .kt-hero-copy .elementor-widget.kt-stops-wrap { width: 100%; }

	body .kt-products .e-con.kt-product,
	body .kt-companions.e-con,
	body .kt-stages.e-con,
	body .kt-order.e-con { flex-direction: column; align-items: stretch; }
	body .kt-products .e-con.kt-product > .e-con,
	body .kt-companions.e-con > .e-con,
	body .kt-stages.e-con > .e-con,
	body .kt-order.e-con > .e-con { --width: 100%; width: 100%; }
	body .kt-kayo.kt-product > .kt-p-copy { order: 2; }
	body .kt-p-media .kt-photo img { aspect-ratio: 4 / 3; }
	body .kt-p-media .elementor-widget.kt-bottle { width: 26%; left: 4%; bottom: -4%; }
	body .kt-kayo .kt-p-media .elementor-widget.kt-bottle { right: 4%; }
	body .kt-order-media .kt-photo img { aspect-ratio: 3 / 2; }
	body .kt-stage.e-con { border-top: 0; border-bottom: 1px solid var(--kt-line); padding-bottom: 1rem; }
}
@media (max-width: 560px) {
	body { font-size: 16px; }
	.kt-ledger { grid-template-columns: 1fr; }
	.kt-ledger li { border-right: 0; margin-right: 0; padding-right: 0; }
	.kt-t-grid { grid-template-columns: 1fr; }
	body .kt-nav.e-con { flex-wrap: nowrap; padding-block: 10px; }
	.kt-nav .kt-brand a { font-size: 1.15rem; }
	.kt-links { gap: 0.9rem; }
	.kt-links li:not(:last-child) { display: none; }
	.kt-links .kt-links-cta { padding: 0.45rem 0.9rem; font-size: 0.95rem; }
	.kt-nav .kt-brand small { display: none; }
}
