/* ==========================================================================
   Hydro King Design System
   Tokens, typography, layout primitives, and shared components.
   ========================================================================== */

:root {
	/* Brand colours — deliberately restricted to black / king-coconut orange / white.
	   (Blue and green remain available as settings fields for flexibility, but the
	   shipped design does not use them — see Hydro King → Settings.) */
	--hk-orange: #f0982f;
	--hk-orange-deep: #c96f1a;
	--hk-orange-light: #f7c877;
	--hk-black: #12100d;
	--hk-black-soft: #1c1914;

	/* The brown gradient used wherever a dark background is needed (sections, header,
	   footer, dark buttons) - the same warm glow as the Trade page. */
	--hk-dark-bg:
		radial-gradient(circle at 15% 20%, rgba(240, 152, 47, 0.14), transparent 45%),
		radial-gradient(circle at 85% 80%, rgba(240, 152, 47, 0.10), transparent 45%),
		#12100d;
	/* Smaller surfaces (buttons, icon discs) read better with a plain brown-to-dark sweep. */
	--hk-dark-btn: linear-gradient(135deg, #43301a 0%, #271b0f 50%, #14100c 100%);
	--hk-white: #ffffff;
	--hk-gold: #f7c877;
	--hk-sand: #f6f1e7;
	--hk-muted: #837c6e;

	--hk-ink: #1c1a16;
	--hk-border: rgba(18, 16, 13, 0.12);
	--hk-border-light: rgba(255, 255, 255, 0.16);

	/* Typography — Anton is the closest free match to the bold, geometric
	   Hydro King wordmark; swap here if a licensed brand font is supplied. */
	--hk-font-display: "Impact", "Arial Narrow", Arial, sans-serif;
	--hk-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--hk-heading-weight: 700;
	--hk-heading-tracking: 0.01em;
	--hk-heading-scale: 1; /* above 1 for condensed heading fonts; applied to small card titles */

	/* Spacing scale */
	--hk-space-3xs: 0.25rem;
	--hk-space-2xs: 0.5rem;
	--hk-space-xs: 0.75rem;
	--hk-space-sm: 1rem;
	--hk-space-md: 1.5rem;
	--hk-space-lg: 2.5rem;
	--hk-space-xl: 4rem;
	--hk-space-2xl: 6rem;
	--hk-space-3xl: 9rem;

	/* Layout */
	--hk-container: 1366px;
	--hk-container-narrow: 860px;
	--hk-gutter: 1.25rem;
	--hk-radius-sm: 6px;
	--hk-radius-md: 14px;
	--hk-radius-lg: 28px;

	--hk-shadow-sm: 0 2px 10px rgba(20, 18, 15, 0.08);
	--hk-shadow-md: 0 12px 32px rgba(20, 18, 15, 0.14);

	--hk-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--hk-duration: 420ms;
}

/* ---------- Reset-lite ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; /* in-page anchors clear the fixed header */ }
::selection { background: var(--hk-orange); color: var(--hk-black); }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

body {
	margin: 0;
	font-family: var(--hk-font-body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--hk-ink);
	background: var(--hk-white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6,
.hk-display-1, .hk-display-2, .hk-display-3, .hk-display-4 {
	/* One heading font for every heading level (Hydro King > Settings > Typography).
	   Weight, tracking and size tweak follow the chosen font, so single-weight display
	   faces (Anton, Bebas Neue) are never faux-bolded. */
	font-family: var(--hk-font-heading, var(--hk-font-body));
	font-weight: var(--hk-heading-weight, 700);
	line-height: 1.04;
	letter-spacing: var(--hk-heading-tracking, 0.01em);
	text-transform: uppercase;
	margin: 0 0 var(--hk-space-sm);
	text-wrap: balance;
}

.hk-display-1 { font-size: clamp(2.75rem, 3.2vw + 2rem, 5.5rem); }
.hk-display-2 { font-size: clamp(2.1rem, 2.2vw + 1.6rem, 3.6rem); }
.hk-display-3 { font-size: clamp(1.6rem, 1.4vw + 1.3rem, 2.4rem); }
.hk-display-4 { font-size: clamp(1.25rem, 0.8vw + 1.1rem, 1.6rem); text-transform: none; }

p { margin: 0 0 var(--hk-space-sm); }
.hk-lede { font-size: clamp(1.05rem, 0.4vw + 1rem, 1.35rem); line-height: 1.55; color: inherit; opacity: 0.85; }

.hk-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-family: var(--hk-font-body);
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hk-orange);
	margin-bottom: var(--hk-space-sm);
}
.hk-eyebrow::before {
	content: "";
	width: 22px;
	height: 2px;
	background: currentColor;
	display: inline-block;
}

/* ---------- Layout ---------- */
.hk-container {
	max-width: var(--hk-container);
	margin-inline: auto;
	padding-inline: var(--hk-gutter);
}
.hk-container--narrow { max-width: var(--hk-container-narrow); }

.hk-section { padding-block: var(--hk-space-2xl); position: relative; }
.hk-section--tight { padding-block: var(--hk-space-xl); }
.hk-section--black { background: var(--hk-dark-bg); color: var(--hk-sand); }
.hk-section--sand { background: var(--hk-sand); }
.hk-section--blue { background: var(--hk-dark-bg); color: var(--hk-white); }
.hk-section--green { background: var(--hk-dark-bg); color: var(--hk-white); }
.hk-section--white { background: var(--hk-white); }
.hk-section--orange { background: var(--hk-orange); color: var(--hk-black); }

.hk-grid { display: grid; gap: var(--hk-space-lg); }
.hk-grid--2 { grid-template-columns: repeat(2, 1fr); }
.hk-grid--3 { grid-template-columns: repeat(3, 1fr); }
.hk-grid--4 { grid-template-columns: repeat(4, 1fr); }
.hk-grid--6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 900px) {
	.hk-grid--2, .hk-grid--3, .hk-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.hk-grid--6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
	.hk-grid--2, .hk-grid--3, .hk-grid--4, .hk-grid--6 { grid-template-columns: 1fr; }
	:root { --hk-space-2xl: 3.5rem; --hk-space-xl: 2.75rem; }
}

.hk-cluster { display: flex; flex-wrap: wrap; gap: var(--hk-space-sm); align-items: center; }
.hk-stack > * + * { margin-top: var(--hk-space-sm); }
.hk-visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}

.hk-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--hk-orange);
	color: var(--hk-white);
	padding: 0.75em 1.25em;
	z-index: 10000;
	border-radius: 0 0 var(--hk-radius-sm) 0;
	font-weight: 700;
}
.hk-skip-link:focus { left: 0; }

/* ---------- Focus ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
	/* A white-then-black double ring stays visible on any section background
	   (white, sand, orange or black) without introducing a fourth colour. */
	outline: 2px solid var(--hk-white);
	outline-offset: 2px;
	box-shadow: 0 0 0 4px var(--hk-black);
	border-radius: 2px;
}

/* ---------- Buttons ---------- */
.hk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 0.9em 1.7em;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform var(--hk-duration) var(--hk-ease), box-shadow var(--hk-duration) var(--hk-ease), background var(--hk-duration) var(--hk-ease), color var(--hk-duration) var(--hk-ease);
	white-space: nowrap;
}
.hk-btn:hover { transform: translateY(-2px); }
.hk-btn--primary { background: var(--hk-orange); color: var(--hk-white); }
.hk-btn--primary:hover, .hk-btn--primary:focus-visible {
	background: var(--hk-dark-btn);
	color: var(--hk-white);
	border-color: var(--hk-white);
	box-shadow: var(--hk-shadow-md);
}
.hk-btn--outline { background: transparent; border-color: currentColor; color: inherit; }
.hk-btn--outline:hover, .hk-btn--outline:focus-visible { background: var(--hk-orange); border-color: var(--hk-orange); color: var(--hk-white); }
.hk-btn--ghost { background: transparent; color: inherit; padding-inline: 0.4em; }
.hk-btn--ghost:hover { color: var(--hk-orange); }
.hk-btn--black { background: var(--hk-dark-btn); color: var(--hk-white); }
.hk-btn--black:hover, .hk-btn--black:focus-visible {
	/* --card-accent lets a product card's own accent colour take over here;
	   everywhere else (no such variable in scope) this is just orange. */
	background: var(--card-accent, var(--hk-orange));
	color: var(--hk-white);
	border-color: var(--card-accent, var(--hk-orange));
}
.hk-btn--sm { padding: 0.6em 1.2em; font-size: 0.85rem; }

/* ---------- Cards ---------- */
.hk-card {
	background: var(--hk-white);
	border-radius: var(--hk-radius-md);
	overflow: hidden;
	box-shadow: var(--hk-shadow-sm);
	transition: transform var(--hk-duration) var(--hk-ease), box-shadow var(--hk-duration) var(--hk-ease);
}
.hk-card:hover { transform: translateY(-4px); box-shadow: var(--hk-shadow-md); }

/* ---------- Badges / editorial labels ---------- */
.hk-badge {
	display: inline-block;
	padding: 0.3em 0.9em;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: var(--hk-sand);
	color: var(--hk-black);
}
.hk-badge--outline { background: transparent; border: 1.5px solid currentColor; }

/* ---------- Forms ---------- */
.hk-form-row { margin-bottom: var(--hk-space-md); }
.hk-form-row label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.4em;
	font-size: 0.92rem;
}
.hk-form-row .required { color: var(--hk-orange); }
.hk-form input[type="text"],
.hk-form input[type="email"],
.hk-form input[type="tel"],
.hk-form input[type="url"],
.hk-form select,
.hk-form textarea {
	width: 100%;
	padding: 0.85em 1em;
	border: 1.5px solid var(--hk-border);
	border-radius: var(--hk-radius-sm);
	font-family: inherit;
	font-size: 1rem;
	background: var(--hk-white);
	color: var(--hk-ink);
	transition: border-color var(--hk-duration) var(--hk-ease);
}
.hk-form input:focus, .hk-form select:focus, .hk-form textarea:focus {
	border-color: var(--hk-orange);
}
.hk-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--hk-space-md); }
@media (max-width: 640px) { .hk-form-grid { grid-template-columns: 1fr; } }
.hk-honeypot { position: absolute !important; left: -9999px !important; top: -9999px; }
.hk-form-message { padding: 1em 1.25em; border-radius: var(--hk-radius-sm); margin-bottom: var(--hk-space-md); font-weight: 600; }
.hk-form-message--success { background: rgba(240, 152, 47, 0.14); color: var(--hk-orange-deep); border: 1px solid rgba(240, 152, 47, 0.4); }
.hk-form-message--error { background: rgba(200, 60, 40, 0.1); color: #b83c28; }
.hk-field-error { color: #b83c28; font-size: 0.85rem; margin-top: 0.3em; display: block; }

/* ---------- Utility ---------- */
.hk-text-center { text-align: center; }
.hk-mt-0 { margin-top: 0; }
.hk-mb-0 { margin-bottom: 0; }
.hk-max-60ch { max-width: 60ch; }
.hk-mx-auto { margin-inline: auto; }
