/*
 * TK GLOBAL v1.1
 * Thiên Kỳ Food
 *
 * IMPORTANT:
 * - Không reset toàn website.
 * - Không override Astra/WooCommerce selectors.
 * - Chỉ khai báo design tokens và các utility class có prefix tk-.
 */

:root {
	/* Brand */
	--tk-green-950: #102c24;
	--tk-green-900: #17382f;
	--tk-green-800: #1f4a3d;
	--tk-green-700: #2c5d4d;
	--tk-green-600: #39705c;
	--tk-green-100: #eaf1ee;
	--tk-green-50: #f4f8f6;

	/* Neutral */
	--tk-white: #ffffff;
	--tk-black: #111513;
	--tk-charcoal: #202622;
	--tk-muted: #66716c;
	--tk-muted-2: #87918c;
	--tk-border: #e2e7e4;
	--tk-border-dark: #cbd4cf;
	--tk-cream: #f7f5ef;
	--tk-bg: #ffffff;
	--tk-bg-soft: #f7f9f8;

	/* Status / CTA */
	--tk-success: #287653;
	--tk-danger: #b43b31;
	--tk-accent: #b86b2c;

	/* Layout */
	--tk-container: 1240px;
	--tk-container-wide: 1440px;
	--tk-gutter: 24px;

	/* Spacing */
	--tk-space-1: 4px;
	--tk-space-2: 8px;
	--tk-space-3: 12px;
	--tk-space-4: 16px;
	--tk-space-5: 20px;
	--tk-space-6: 24px;
	--tk-space-7: 32px;
	--tk-space-8: 40px;
	--tk-space-9: 48px;
	--tk-space-10: 64px;
	--tk-space-11: 80px;
	--tk-space-12: 104px;

    /* Sections */
    --tk-section-space: clamp(48px, 4.5vw, 64px);
    --tk-section-space-sm: clamp(36px, 3.5vw, 48px);

	/* Radius */
	--tk-radius-xs: 6px;
	--tk-radius-sm: 8px;
	--tk-radius-md: 14px;
	--tk-radius-lg: 22px;
	--tk-radius-xl: 32px;
	--tk-radius-pill: 999px;

	/* Shadows */
	--tk-shadow-xs: 0 2px 8px rgba(16, 44, 36, 0.05);
	--tk-shadow-sm: 0 8px 24px rgba(16, 44, 36, 0.08);
	--tk-shadow-md: 0 16px 40px rgba(16, 44, 36, 0.12);
	--tk-shadow-lg: 0 24px 64px rgba(16, 44, 36, 0.16);

	/* Motion */
	--tk-ease: cubic-bezier(.2, .65, .25, 1);
	--tk-duration: 220ms;
}

/* ---------------------------------------------------------
   Layout
--------------------------------------------------------- */

.tk-container {
	width: min(var(--tk-container), calc(100% - (var(--tk-gutter) * 2)));
	margin-inline: auto;
}

.tk-container--wide {
	width: min(var(--tk-container-wide), calc(100% - (var(--tk-gutter) * 2)));
	margin-inline: auto;
}

.tk-section {
	padding-block: var(--tk-section-space);
}

.tk-section--sm {
	padding-block: var(--tk-section-space-sm);
}

.tk-section--tight {
	padding-block: 40px;
}

/* ---------------------------------------------------------
   Typography primitives
--------------------------------------------------------- */

.tk-eyebrow {
	margin: 0 0 var(--tk-space-3);
	color: var(--tk-green-700);
	font-size: 13px;
	font-weight: 750;
	line-height: 1.4;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.tk-title {
	margin: 0;
	color: var(--tk-charcoal);
	font-size: clamp(30px, 4vw, 52px);
	font-weight: 750;
	line-height: 1.08;
	letter-spacing: -.02em;
}

.tk-title--sm {
	font-size: clamp(26px, 3vw, 40px);
}

.tk-subtitle {
	margin: 12px 0 0;
	color: var(--tk-muted);
	font-size: clamp(18px, 2vw, 24px);
	font-weight: 650;
	line-height: 1.35;
}

.tk-lead {
	max-width: 760px;
	margin: 16px 0 0;
	color: var(--tk-muted);
	font-size: clamp(16px, 1.4vw, 19px);
	line-height: 1.7;
}

.tk-text {
	color: var(--tk-muted);
	font-size: 16px;
	line-height: 1.7;
}

.tk-text--small {
	font-size: 14px;
}

.tk-heading-group {
	max-width: 820px;
}

.tk-heading-group--center {
	margin-inline: auto;
	text-align: center;
}

/* ---------------------------------------------------------
   Buttons
--------------------------------------------------------- */

.tk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: var(--tk-radius-pill);
	font-size: 15px;
	font-weight: 750;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition:
		transform var(--tk-duration) var(--tk-ease),
		box-shadow var(--tk-duration) var(--tk-ease),
		background-color var(--tk-duration) var(--tk-ease),
		border-color var(--tk-duration) var(--tk-ease);
}

.tk-btn:hover {
	transform: translateY(-1px);
}

.tk-btn:focus-visible {
	outline: 3px solid rgba(44, 93, 77, .25);
	outline-offset: 3px;
}

.tk-btn--primary {
	background: var(--tk-green-800);
	color: var(--tk-white);
	box-shadow: var(--tk-shadow-sm);
}

.tk-btn--primary:hover {
	background: var(--tk-green-900);
	color: var(--tk-white);
	box-shadow: var(--tk-shadow-md);
}

.tk-btn--secondary {
	background: var(--tk-white);
	color: var(--tk-green-800);
	border-color: var(--tk-border);
}

.tk-btn--secondary:hover {
	border-color: var(--tk-border-dark);
	background: var(--tk-green-50);
	color: var(--tk-green-900);
}

.tk-btn--light {
	background: var(--tk-white);
	color: var(--tk-green-900);
}

.tk-btn--block {
	width: 100%;
}

/* ---------------------------------------------------------
   Cards
--------------------------------------------------------- */

.tk-card {
	border: 1px solid var(--tk-border);
	border-radius: var(--tk-radius-md);
	background: var(--tk-white);
	box-shadow: var(--tk-shadow-xs);
}

.tk-card--hover {
	transition:
		transform var(--tk-duration) var(--tk-ease),
		box-shadow var(--tk-duration) var(--tk-ease),
		border-color var(--tk-duration) var(--tk-ease);
}

.tk-card--hover:hover {
	transform: translateY(-3px);
	border-color: var(--tk-border-dark);
	box-shadow: var(--tk-shadow-md);
}

/* ---------------------------------------------------------
   Grid utilities
--------------------------------------------------------- */

.tk-grid {
	display: grid;
	gap: var(--tk-space-6);
}

.tk-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tk-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tk-grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tk-grid--5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* ---------------------------------------------------------
   Flex utilities
--------------------------------------------------------- */

.tk-flex {
	display: flex;
}

.tk-flex--center {
	align-items: center;
	justify-content: center;
}

.tk-flex--between {
	align-items: center;
	justify-content: space-between;
}

.tk-flex--wrap {
	flex-wrap: wrap;
}

.tk-gap-2 { gap: var(--tk-space-2); }
.tk-gap-3 { gap: var(--tk-space-3); }
.tk-gap-4 { gap: var(--tk-space-4); }
.tk-gap-5 { gap: var(--tk-space-5); }
.tk-gap-6 { gap: var(--tk-space-6); }
.tk-gap-7 { gap: var(--tk-space-7); }

/* ---------------------------------------------------------
   Visibility / alignment
--------------------------------------------------------- */

.tk-text-left { text-align: left; }
.tk-text-center { text-align: center; }
.tk-text-right { text-align: right; }

.tk-mx-auto {
	margin-inline: auto;
}

.tk-hidden {
	display: none !important;
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

@media (max-width: 1199px) {
	:root {
		--tk-gutter: 20px;
	}

	.tk-grid--5 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.tk-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tk-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	:root {
		--tk-gutter: 16px;
	}

	.tk-section {
		padding-block: 36px;
	}

	.tk-section--sm {
		padding-block: 28px;
	}

	.tk-grid--2,
	.tk-grid--3,
	.tk-grid--4,
	.tk-grid--5 {
		grid-template-columns: 1fr;
	}

	.tk-title {
		font-size: clamp(28px, 8vw, 38px);
	}

	.tk-btn {
		min-height: 44px;
		padding-inline: 18px;
	}
}
