/*
Theme Name: Kinetic Run
Theme URI: https://example.com/kinetic-run
Author: Codex Studio
Author URI: https://example.com
Description: Astra child theme for Kinetic Run, a performance apparel store. Astra owns global layout, header, footer and Customizer options; this child theme owns brand tokens and the protected WooCommerce structural contract.
Template: astra
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: kinetic-run
Tags: woocommerce, e-commerce, astra-child
*/

/* -------------------------------------------------------------------------
   Kinetic Run brand surface.
   Brand values live only in assets/css/design-tokens.css.
   Product grid, card and single-product structure live only in
   assets/css/woocommerce-layout-contract.css and must never be redefined here.
   ------------------------------------------------------------------------- */

:root {
	--kr-shell-max: 1240px;
	--kr-gutter: clamp(20px, 4vw, 48px);
	--kr-section-gap: clamp(56px, 8vw, 104px);
}

body {
	background-color: var(--kr-paper);
	color: var(--kr-ink);
}

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

.kr-eyebrow {
	display: inline-block;
	margin: 0 0 14px;
	font-size: var(--kr-text-xs);
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--kr-accent);
}

.kr-display {
	margin: 0 0 18px;
	font-size: var(--kr-text-display);
	line-height: 1.04;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--kr-ink);
}

.kr-lede {
	max-width: 60ch;
	margin: 0 0 28px;
	font-size: var(--kr-text-md);
	line-height: 1.65;
	color: var(--kr-muted);
}

.kr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 26px;
	border: 1px solid transparent;
	border-radius: var(--kr-radius-sm);
	background-color: var(--kr-accent);
	color: var(--kr-on-accent);
	font-size: var(--kr-text-sm);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.kr-btn:hover,
.kr-btn:focus-visible {
	background-color: var(--kr-ink);
	color: var(--kr-paper);
}

.kr-btn--ghost {
	background-color: transparent;
	border-color: var(--kr-ink);
	color: var(--kr-ink);
}

.kr-btn--ghost:hover,
.kr-btn--ghost:focus-visible {
	background-color: var(--kr-ink);
	color: var(--kr-paper);
}

/* Editorial / content sections ------------------------------------------- */

.kr-hero {
	position: relative;
	padding-block: clamp(48px, 7vw, 96px);
	background-color: var(--kr-ink);
	color: var(--kr-paper);
	overflow: hidden;
}

.kr-hero--immersive {
	min-height: clamp(560px, 78vh, 880px);
	padding-block: clamp(80px, 12vh, 160px);
}

.kr-hero__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.18;
}

.kr-hero__bg img,
.kr-hero__bg svg {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kr-hero__inner {
	position: relative;
	display: grid;
	gap: clamp(28px, 5vw, 64px);
	grid-template-columns: 1fr;
	align-items: center;
}

@media (min-width: 900px) {
	.kr-hero__inner {
		grid-template-columns: 1.05fr 0.95fr;
	}
}

.kr-hero .kr-eyebrow {
	color: var(--kr-accent);
}

.kr-hero .kr-display {
	color: var(--kr-paper);
	font-size: clamp(40px, 6.5vw, 88px);
}

.kr-hero .kr-display .kr-display__accent {
	color: var(--kr-accent);
}

.kr-hero .kr-lede {
	color: var(--kr-paper-muted);
	font-size: clamp(15px, 1.4vw, 18px);
}

/* On the dark hero the default ghost button (ink colour on transparent) would
   disappear, so swap to a light outline that matches the surface. */
.kr-hero .kr-btn--ghost {
	background-color: transparent;
	border-color: rgba(255, 255, 255, 0.45);
	color: var(--kr-paper);
}

.kr-hero .kr-btn--ghost:hover,
.kr-hero .kr-btn--ghost:focus-visible {
	background-color: var(--kr-paper);
	color: var(--kr-ink);
	border-color: var(--kr-paper);
}

.kr-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.kr-hero__media {
	overflow: hidden;
	border-radius: var(--kr-radius-lg);
	background-color: var(--kr-surface-2);
	aspect-ratio: 4 / 3;
	border: 1px solid rgba(255, 255, 255, 0.06);
	min-width: 0;
}

.kr-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kr-section {
	padding-block: var(--kr-section-gap);
}

.kr-section__head {
	max-width: 62ch;
	margin-bottom: clamp(28px, 4vw, 48px);
}

.kr-banner {
	background-color: var(--kr-surface-1);
	border-top: 1px solid var(--kr-line);
	border-bottom: 1px solid var(--kr-line);
	padding-block: clamp(32px, 4vw, 56px);
}

.kr-value-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: 1fr;
}

@media (min-width: 720px) {
	.kr-value-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.kr-value-card {
	position: relative;
	padding: 36px 32px;
	border: 1px solid var(--kr-line);
	border-radius: var(--kr-radius-md);
	background-color: var(--kr-paper);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.kr-value-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--kr-shadow-hover);
	border-color: var(--kr-line-strong);
}

/* Astra parent layout neutralisation ------------------------------------------------ */

body .site-content .ast-container {
	display: block !important;
}

/* Full bleed band.
   Astra's `.ast-container` constrains main content to 1240px (>=922px). For
   hero / value banner / page hero we want the band to escape that constraint
   and span the full viewport, with inner content still centred. */

/* Grid items default to min-width: auto (= min content size). With images that
   carry intrinsic width/height attrs, the column expands to the image's
   intrinsic width, the row overflows, and the band background no longer
   spans the full viewport. Force min-width: 0 on every grid child used in
   the band layouts. */
.kr-hero__inner > *,
.kr-page-hero .kr-shell > *,
.kr-editorial > *,
.kr-value-grid > *,
.kr-footer-band .kr-shell > * {
	min-width: 0;
}
.kr-full-bleed,
.kr-hero,
.kr-page-hero,
.kr-value-banner {
	position: relative;
	width: 100vw !important;
	max-width: none !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}

.kr-full-bleed > .kr-shell,
.kr-hero > .kr-shell,
.kr-page-hero > .kr-shell,
.kr-value-banner > .kr-shell {
	max-width: var(--kr-shell-max);
	margin-inline: auto;
}

.kr-value-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 24px;
	border-radius: var(--kr-radius-md);
	/*
	 * Was `background-color: var(--kr-ink)` — a near-black chip. On a page that
	 * is otherwise white the four of them read as black boxes. A light accent
	 * wash plus a hairline ring keeps the icon legible without a dark slab.
	 * `inset` box-shadow draws the ring so the 56x56 box never changes size.
	 */
	background-color: rgba(255, 77, 46, 0.09) !important;
	box-shadow: inset 0 0 0 1px rgba(255, 77, 46, 0.28);
	color: var(--kr-accent) !important;
}

.kr-value-card__icon svg {
	width: 28px;
	height: 28px;
	stroke: var(--kr-accent) !important;
	fill: none !important;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.kr-value-card__icon svg * {
	stroke: inherit !important;
	fill: none !important;
}

.kr-value-card__icon svg {
	width: 28px;
	height: 28px;
}

.kr-value-card h3 {
	margin: 0 0 12px;
	font-size: var(--kr-text-md);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--kr-ink);
}

.kr-value-card p {
	margin: 0;
	font-size: var(--kr-text-base);
	line-height: 1.65;
	color: var(--kr-muted);
}

.kr-value-banner {
	position: relative;
	padding-block: clamp(72px, 10vw, 140px);
	background-color: var(--kr-surface-1);
	border-block: 1px solid var(--kr-line);
}

.kr-value-banner__head {
	max-width: 60ch;
	margin-bottom: clamp(32px, 5vw, 56px);
}

.kr-value-banner .kr-eyebrow {
	color: var(--kr-accent);
}

/* Page hero for About / Privacy / Terms / Returns etc. */
.kr-page-hero {
	position: relative;
	padding-block: clamp(64px, 10vw, 128px);
	background-color: var(--kr-ink);
	color: var(--kr-paper);
	overflow: hidden;
}

.kr-page-hero .kr-shell {
	position: relative;
	display: grid;
	gap: clamp(28px, 4vw, 56px);
	grid-template-columns: 1fr;
	align-items: center;
}

@media (min-width: 900px) {
	.kr-page-hero .kr-shell {
		grid-template-columns: 1.15fr 0.85fr;
	}
}

.kr-page-hero .kr-eyebrow {
	color: var(--kr-accent);
}

.kr-page-hero .kr-display {
	color: var(--kr-paper);
	font-size: clamp(36px, 5.2vw, 72px);
}

.kr-page-hero .kr-lede {
	color: var(--kr-paper-muted);
	font-size: clamp(15px, 1.4vw, 18px);
}

.kr-page-hero__media {
	overflow: hidden;
	border-radius: var(--kr-radius-lg);
	background-color: var(--kr-surface-2);
	aspect-ratio: 4 / 5;
	border: 1px solid rgba(255, 255, 255, 0.06);
	min-width: 0;
}

.kr-page-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kr-page-section {
	padding-block: clamp(56px, 8vw, 104px);
}

.kr-page-section__head {
	max-width: 60ch;
	margin-bottom: clamp(28px, 4vw, 48px);
}

.kr-page-section .kr-eyebrow {
	color: var(--kr-accent);
}

.kr-page-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

/* Editorial section ---------------------------------------------- */

.kr-section {
	padding-block: var(--kr-section-gap);
}

.kr-editorial {
	display: grid;
	gap: clamp(24px, 4vw, 48px);
	grid-template-columns: 1fr;
	align-items: center;
}

@media (min-width: 900px) {
	.kr-editorial {
		grid-template-columns: 1fr 1fr;
	}
}

.kr-editorial__media {
	overflow: hidden;
	border-radius: var(--kr-radius-lg);
	background-color: var(--kr-surface-2);
	aspect-ratio: 4 / 5;
}

.kr-editorial__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Editorial entry content ------------------------------------------------- */

.kr-prose h2 {
	margin: 1.6em 0 0.5em;
	font-size: var(--kr-text-lg);
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.kr-prose h3 {
	margin: 1.4em 0 0.4em;
	font-size: var(--kr-text-md);
}

.kr-prose p,
.kr-prose li {
	font-size: var(--kr-text-base);
	line-height: 1.75;
	color: var(--kr-muted);
}

.kr-prose ul {
	margin: 0 0 1.2em;
	padding-left: 1.2em;
	list-style: disc;
}

.kr-prose li {
	margin-bottom: 0.5em;
}

/* Contact form ------------------------------------------------------------ */

.kr-form {
	display: grid;
	gap: 16px;
	max-width: 560px;
}

.kr-field {
	display: grid;
	gap: 6px;
}

.kr-field label {
	font-size: var(--kr-text-sm);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.kr-field input,
.kr-field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--kr-line);
	border-radius: var(--kr-radius-sm);
	background-color: var(--kr-paper);
	color: var(--kr-ink);
	font: inherit;
}

.kr-field input:focus,
.kr-field textarea:focus {
	outline: 2px solid var(--kr-accent);
	outline-offset: 1px;
}

.kr-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.kr-notice {
	padding: 12px 16px;
	border-radius: var(--kr-radius-sm);
	font-size: var(--kr-text-sm);
}

.kr-notice--ok {
	background-color: var(--kr-success-bg);
	color: var(--kr-success);
}

.kr-notice--error {
	background-color: var(--kr-danger-bg);
	color: var(--kr-danger);
}

.kr-contact-grid {
	display: grid;
	gap: clamp(28px, 4vw, 56px);
	grid-template-columns: 1fr;
}

@media (min-width: 900px) {
	.kr-contact-grid {
		grid-template-columns: 1.1fr 0.9fr;
	}
}

.kr-fact-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.kr-fact-list li {
	padding: 14px 0;
	border-bottom: 1px solid var(--kr-line);
	font-size: var(--kr-text-sm);
}

.kr-fact-list span {
	display: block;
	font-size: var(--kr-text-xs);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--kr-muted);
}

.kr-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;
}

/* Footer band ---------------------------------------------------- */

.kr-footer-band {
	position: relative;
	background-color: var(--kr-ink);
	color: var(--kr-paper);
	padding-block: clamp(56px, 7vw, 96px);
}

.kr-footer-band .kr-shell {
	display: grid;
	gap: clamp(36px, 5vw, 56px);
	grid-template-columns: 1fr;
}

@media (min-width: 900px) {
	.kr-footer-band .kr-shell {
		grid-template-columns: 1.2fr 1fr 1fr 1fr;
		align-items: start;
	}
}

.kr-footer-band a {
	color: var(--kr-paper-muted);
	text-decoration: none;
	transition: color 0.18s ease;
}

.kr-footer-band a:hover {
	color: var(--kr-accent);
}

.kr-footer-band__brand {
	max-width: 36ch;
}

.kr-footer-band__brand .kr-mark {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	margin: 0 0 18px;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: var(--kr-paper);
}

.kr-footer-band__brand .kr-mark__accent {
	color: var(--kr-accent);
}

.kr-footer-band__brand p {
	margin: 0;
	font-size: var(--kr-text-sm);
	line-height: 1.7;
	color: var(--kr-paper-muted);
}

.kr-footer-band__col h3 {
	margin: 0 0 18px;
	font-size: var(--kr-text-xs);
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--kr-paper);
}

.kr-footer-band__col ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.kr-footer-band__col li {
	padding: 6px 0;
	font-size: var(--kr-text-sm);
}

.kr-footer-band__bottom {
	margin-top: clamp(32px, 4vw, 56px);
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	font-size: var(--kr-text-xs);
	letter-spacing: 0.06em;
	color: var(--kr-paper-muted);
}

.kr-footer-band__bottom .kr-payments {
	display: flex;
	gap: 10px;
	align-items: center;
}

.kr-footer-band__bottom .kr-payments svg {
	width: 38px;
	height: 24px;
}

/* Header utility icons ------------------------------------------ */

.kr-menu-icons {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: 16px;
}

.kr-menu-icon {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	width: 40px;
	height: 40px;
	border-radius: var(--kr-radius-sm);
	color: var(--kr-ink);
	text-decoration: none;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.kr-menu-icon:hover,
.kr-menu-icon:focus-visible {
	background-color: var(--kr-surface-1);
	color: var(--kr-accent);
}

.kr-menu-icon > a,
.kr-menu-icon__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--kr-radius-sm);
	color: inherit;
	text-decoration: none;
}

.kr-menu-icon svg {
	width: 22px;
	height: 22px;
}

.kr-menu-icon .kr-cart-count {
	display: inline-flex;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	align-items: center;
	justify-content: center;
	margin-left: -6px;
	margin-top: -10px;
	border-radius: 9px;
	background-color: var(--kr-accent);
	color: var(--kr-on-accent);
	font-size: 11px;
	font-weight: 700;
	vertical-align: top;
}

.main-header-bar-navigation > .main-header-menu > .kr-menu-icon {
	list-style: none;
}

.main-header-bar-navigation > .main-header-menu > .kr-menu-icon > a {
	display: inline-flex;
}

@media (max-width: 920px) {
	.ast-builder-menu-mobile .kr-menu-icon,
	.ast-builder-menu-mobile .kr-menu-icon__link {
		width: 44px;
		height: 44px;
	}
}

/* Mobile cart / account icons injected by the Astra header cart hook. */
.kr-mobile-icon {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: var(--kr-radius-sm);
	color: inherit;
	text-decoration: none;
	font-size: var(--kr-text-xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.kr-mobile-icon svg {
	width: 18px;
	height: 18px;
}

.kr-mobile-icon .kr-cart-count {
	display: inline-flex;
	min-width: 16px;
	height: 16px;
	padding: 0 5px;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background-color: var(--kr-accent);
	color: var(--kr-on-accent);
	font-size: 10px;
	font-weight: 700;
}

/* Value card icons drawn in pure CSS.
   No inline SVG, so the wp_kses viewBox lower-casing bug and any missing
   icon font can never turn these into black boxes again. */

.kr-value-card__icon {
	position: relative;
}

.kr-value-card__icon::before,
.kr-value-card__icon::after {
	content: "";
	box-sizing: border-box;
}

.kr-value-card__icon--lines::before {
	width: 26px;
	height: 3px;
	border-radius: 2px;
	background-color: var(--kr-accent);
	box-shadow: 0 -8px 0 var(--kr-accent), 0 8px 0 var(--kr-accent);
}

.kr-value-card__icon--clock::before {
	width: 24px;
	height: 24px;
	border: 2.5px solid var(--kr-accent);
	border-radius: 50%;
}

.kr-value-card__icon--clock::after {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	border-right: 2.5px solid var(--kr-accent);
	border-bottom: 2.5px solid var(--kr-accent);
	border-bottom-right-radius: 2px;
	transform: translate(-62%, -62%);
}

.kr-value-card__icon--check::before {
	width: 13px;
	height: 22px;
	border-right: 3px solid var(--kr-accent);
	border-bottom: 3px solid var(--kr-accent);
	transform: rotate(45deg) translate(-2px, -4px);
}

.kr-value-card__icon--square::before {
	width: 24px;
	height: 20px;
	border: 2.5px solid var(--kr-accent);
	border-radius: 4px;
}

.kr-value-card__icon--square::after {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 2.5px;
	border-radius: 2px;
	background-color: var(--kr-accent);
	transform: translate(-50%, -50%);
}
