/**
 * Kleft 1.1 design tokens + base layout (forest / sand / cream identity).
 */

:root {
	/* Kleft brand palette */
	--k-forest: #2F4A3C;
	--k-forest-dark: #1F3028;
	--k-forest-deep: #1A2922;
	--k-sand: #C7A97C;
	--k-sand-dark: #B08F5F;
	--k-cream: #F6F2EA;
	--k-white: #FFFFFF;
	--k-text: #232723;
	--k-muted: #6F716D;

	/* Derived neutrals (tints of the palette) */
	--k-cream-deep: #EFE8DC;
	--k-sand-soft: #EADFCB;
	--k-panel: #FBF9F5;
	--k-line: #E6E0D5;
	--k-line-strong: #D5CCBC;
	--k-forest-tint: rgba(47, 74, 60, 0.1);
	--k-on-dark: #F6F2EA;
	--k-on-dark-muted: rgba(246, 242, 234, 0.72);

	/* Semantic (sale/discount wine red as in the reference, success, stock) */
	--k-sale: #9E2F2A;
	--k-success: #3E6B4F;
	--k-danger: #A8443A;

	/* Component tokens */
	--hs-white: var(--k-white);
	--hs-text: var(--k-text);
	--hs-text-muted: var(--k-muted);
	--hs-page-bg: var(--k-cream);
	--hs-card-border: var(--k-line);
	--hs-shadow-soft: 0 2px 10px rgba(31, 48, 40, 0.06);
	--hs-shadow-card: 0 6px 20px rgba(31, 48, 40, 0.1);

	/* Radii */
	--hs-radius-xs: 4px;
	--hs-radius-sm: 6px;
	--hs-radius-md: 10px;
	--hs-radius-lg: 14px;
	--hs-radius-pill: 999px;

	/* Layout */
	--hs-container: 1360px;
	--hs-gutter: 32px;
	--hs-section-gap: 28px;
	--hs-card-gap: 16px;

	/* Type (font family + size are overridden by Kleft › Homepage › Typography) */
	--hs-font: 'Rubik', Arial, sans-serif;
	--hs-font-size: 16px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 150px;
}

body {
	margin: 0;
	font-family: var(--hs-font);
	font-size: var(--hs-font-size);
	line-height: 1.5;
	color: var(--hs-text);
	background: var(--hs-page-bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

img {
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
select,
textarea {
	font: inherit;
}

button {
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
}

ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

h1, h2, h3, p {
	margin: 0;
}

svg {
	flex: none;
}

:focus-visible {
	outline: 2px solid var(--k-sand-dark);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	clip: auto;
	width: auto;
	height: auto;
	z-index: 100;
	padding: 8px 16px;
	background: var(--hs-white);
}

.hs-container {
	width: 100%;
	max-width: var(--hs-container);
	margin-inline: auto;
	padding-inline: var(--hs-gutter);
}

.hs-section {
	display: block;
	margin-bottom: var(--hs-section-gap);
}

.hs-home__body {
	padding-top: 4px;
}

::selection {
	background: var(--k-sand);
	color: var(--k-text);
}

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

.hs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 8px 22px;
	border: 1px solid transparent;
	border-radius: var(--hs-radius-pill);
	background: var(--k-forest);
	color: var(--k-white);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hs-btn:hover,
.hs-btn:focus-visible {
	background: var(--k-forest-dark);
	color: var(--k-white);
}

.hs-btn svg {
	width: 16px;
	height: 16px;
	transition: transform 0.2s ease;
}

.hs-btn:hover svg {
	transform: translateX(3px);
}

[dir="rtl"] .hs-btn:hover svg {
	transform: translateX(-3px);
}

/* Sand: hero call to action. */
.hs-btn--sand {
	background: var(--k-sand);
	color: var(--k-forest-dark);
}

.hs-btn--sand:hover,
.hs-btn--sand:focus-visible {
	background: #D6BC93;
	color: var(--k-forest-dark);
}

/* Cream: buttons on photography (promo banners). */
.hs-btn--cream {
	background: rgba(246, 242, 234, 0.94);
	color: var(--k-forest-dark);
	border-color: var(--k-sand);
}

.hs-btn--cream:hover,
.hs-btn--cream:focus-visible {
	background: var(--k-sand);
	color: var(--k-forest-dark);
}

/* WooCommerce pages reached from the homepage (no redesign, just breathing room). */
.hs-wc {
	padding-block: 24px 40px;
}
