/*
Theme Name: Katalyst
Theme URI: https://katalyst.com/
Author: Katalyst Interactive
Author URI: https://katalyst.com/
Description: Pixel-accurate replica of the Katalyst EMS brand site (hero video banner, press marquee, feature breakdown, trainers showcase, on-demand workout slider and icon grid). Built as a fully manageable WordPress theme: menus, widgets, customizer options and a dedicated "Workouts" post type drive every section.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: katalyst
Tags: custom-menu, custom-logo, featured-images, translation-ready, e-commerce
*/

/* ==========================================================================
   Table of contents
   1. Design tokens
   2. WordPress compatibility & resets
   3. Header
   4. Hero banner
   5. Press marquee
   6. Section helpers
   7. Workout slider
   8. Footer
   9. Modal
   10. Missing utility classes
   11. Editor / blocks
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
	--font-body-scale: 1.0;
	--kt-container: 90vw;
}

/* --------------------------------------------------------------------------
   2. WordPress compatibility & resets
   -------------------------------------------------------------------------- */
html.js {
	scroll-behavior: smooth;
}

body.katalyst-body {
	margin: 0;
	overflow-x: hidden;
}

/* Fixed header must clear the WordPress admin bar. */
body.admin-bar .kt-header-fixed {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .kt-header-fixed {
		top: 46px;
	}
}

/* The theme ships its own reset; neutralise block library defaults. */
.entry-content > *:first-child {
	margin-top: 0;
}

img {
	max-width: 100%;
	height: auto;
}

/* WordPress core screen-reader text. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #fff;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, .6);
	clip: auto !important;
	clip-path: none;
	color: #000;
	display: block;
	font-size: 1.4rem;
	font-weight: 700;
	height: auto;
	left: 8px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 8px;
	width: auto;
	z-index: 100000;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
}

/* --------------------------------------------------------------------------
   3. Header
   -------------------------------------------------------------------------- */
.kt-header-fixed {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	transition: background-color .3s ease, border-color .3s ease;
}

#primary-navigation {
	position: relative;
	width: 100%;
	z-index: 102;
	transition: all .3s ease;
}

.kt-header-fixed.is-scrolled,
#primary-navigation.scrolled {
	background: rgba(20, 20, 20, .75);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
}

@media (max-width: 1439px) {
	.kt-header-fixed.is-scrolled,
	#primary-navigation.scrolled {
		background: #000;
	}
}

.kt-logo-svg,
.kt-footer-logo {
	display: block;
	width: 100%;
	height: auto;
}

.kt-header-actions .kt-cart-count {
	margin-left: 8px;
}

.kt-nav-dropdown {
	opacity: 0;
	visibility: hidden;
	transform: translateY(.5rem);
	transition: all .3s ease-in-out;
}

.kt-nav-item:hover > .kt-nav-dropdown,
.kt-nav-item:focus-within > .kt-nav-dropdown,
.kt-nav-item.is-open > .kt-nav-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Per-link active underline (mirrors the reference header.css rules). */
.nav-link.is-active::before {
	width: 100%;
}

/* Mobile slide-out navigation. */
.kt-mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 1100;
	visibility: hidden;
	pointer-events: none;
}

.kt-mobile-menu__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .5);
	opacity: 0;
	transition: opacity .3s ease;
}

.kt-mobile-menu__panel {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: min(360px, 86vw);
	background: #000;
	transform: translateX(-100%);
	transition: transform .35s ease;
	overflow-y: auto;
	padding: 24px 20px 48px;
}

.kt-mobile-menu.is-open {
	visibility: visible;
	pointer-events: auto;
}

.kt-mobile-menu.is-open .kt-mobile-menu__overlay {
	opacity: 1;
}

.kt-mobile-menu.is-open .kt-mobile-menu__panel {
	transform: translateX(0);
}

.kt-mobile-menu__close {
	background: none;
	border: 0;
	color: #fff;
	cursor: pointer;
	font-size: 28px;
	line-height: 1;
	padding: 4px 8px;
	margin-left: auto;
	display: block;
}

.kt-mobile-menu a {
	color: #fff;
	display: block;
	font-size: 1.8rem;
	font-weight: 300;
	padding: 12px 0;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.kt-mobile-menu .sub-menu a {
	font-size: 1.6rem;
	color: var(--color-primary-grey);
	padding-left: 16px;
}

/* --------------------------------------------------------------------------
   4. Hero banner
   -------------------------------------------------------------------------- */
/* Custom elements used by the reference markup. */
full-width-banner,
logo-marquee,
workout-slider {
	display: block;
}

/* The videos carry their own responsive utility classes (mirroring the reference). */
.kt-hero__video {
	background-color: #000;
}

/* Section-level typography overrides, mirroring the reference inline style. */
.kt-hero .h1.kt-hero__line {
	font-size: 4.1rem !important;
}

@media (min-width: 768px) {
	.kt-hero .h1.kt-hero__line {
		font-size: 7rem !important;
	}
}

@media (min-width: 1536px) {
	.kt-hero .h1.kt-hero__line {
		font-size: 7rem !important;
	}
}

.kt-hero .kt-hero__line--sub {
	color: var(--color-primary-brand-red);
}

.kt-hero .caption.kt-hero__sub,
.kt-hero .tw-max-w-\[600px\] {
	max-width: 700px !important;
}

/* --------------------------------------------------------------------------
   5. Press marquee
   -------------------------------------------------------------------------- */
.kt-marquee {
	overflow: hidden;
}

.kt-marquee__track {
	display: flex;
	gap: 16px;
	list-style: disc;
	padding-left: 1rem;
	width: max-content;
	will-change: transform;
	animation: kt-marquee-scroll linear infinite;
}

.kt-marquee:hover .kt-marquee__track {
	animation-play-state: paused;
}

@keyframes kt-marquee-scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

.kt-marquee__item {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 24px;
}

.kt-marquee__logo {
	flex: 0 0 110px;
	display: flex;
	align-items: center;
}

.kt-marquee__logo img {
	width: 120px;
	height: auto;
}

@media (prefers-reduced-motion: reduce) {
	.kt-marquee__track {
		animation: none;
	}
}

/* --------------------------------------------------------------------------
   6. Section helpers
   -------------------------------------------------------------------------- */
.kt-feature-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.kt-banner-image img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

@media (min-width: 767px) {
	.kt-banner-image img {
		height: 100%;
		max-height: 95vh;
	}
}

/* --------------------------------------------------------------------------
   7. Workout slider
   -------------------------------------------------------------------------- */
.kt-slider__viewport {
	overflow: hidden;
}

.kt-slider__track {
	display: flex;
	touch-action: pan-y;
	cursor: grab;
}

.kt-slider__track.is-dragging {
	cursor: grabbing;
	transition: none !important;
}

.kt-slider__slide {
	min-width: 0;
	flex: 0 0 100%;
	padding-left: 16px;
	padding-right: 16px;
}

@media (min-width: 767px) {
	.kt-slider__slide {
		flex: 0 0 50%;
	}
}

@media (min-width: 992px) {
	.kt-slider__slide {
		flex: 0 0 33.3333%;
	}
}

@media (min-width: 1440px) {
	.kt-slider__slide {
		flex: 0 0 25%;
	}
}

.kt-slider__slide.is-hidden {
	display: none;
}

.kt-workout-card__overlay {
	background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .65)),
		linear-gradient(0deg, rgba(33, 33, 33, .05), rgba(33, 33, 33, .05));
}

.kt-workout-card img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.kt-slider-arrows {
	list-style: none;
	margin: 0;
	padding: 0;
}

.kt-slider-arrows li {
	list-style: none;
}

.kt-category-button.active,
.kt-category-button.is-active {
	color: var(--color-primary-black);
	background-color: var(--color-primary-white);
	border-color: var(--color-primary-white);
}

.kt-slider__nav-arrow[disabled] {
	opacity: .3;
	pointer-events: none;
}

.kt-no-scrollbar {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.kt-no-scrollbar::-webkit-scrollbar {
	display: none;
}

/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */
.kt-footer-accordion__panel {
	display: block;
}

@media (max-width: 766px) {
	.kt-footer-accordion__panel {
		display: none;
	}

	.kt-footer-accordion.is-open .kt-footer-accordion__panel {
		display: block;
	}

	.kt-footer-accordion.is-open .icon-plus-path {
		display: none;
	}

	.kt-footer-accordion .icon-minus-path {
		display: none;
	}

	.kt-footer-accordion.is-open .icon-minus-path {
		display: block;
	}
}

.kt-footer-logo-wrap {
	max-width: 200px;
	margin: 0 auto 1rem;
}

.list-social__link svg {
	fill: var(--color-primary-white);
	width: 20px;
	height: 20px;
}

/* --------------------------------------------------------------------------
   9. Modal (market selector)
   -------------------------------------------------------------------------- */
.kt-modal {
	position: fixed;
	inset: 0;
	z-index: 1200;
	display: none;
}

.kt-modal.is-open {
	display: block;
}

.kt-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .5);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.kt-modal__inner {
	position: relative;
	z-index: 1;
	max-width: 450px;
	margin: 16px auto;
	background: #fff;
	border-radius: 8px;
	padding: 16px 32px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, .2);
	max-height: calc(100% - 32px);
	overflow-y: auto;
}

.kt-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: none;
	border: 0;
	cursor: pointer;
	color: #6b7280;
	font-size: 22px;
	line-height: 1;
	padding: 8px;
}

.kt-modal.is-open .kt-modal__inner {
	animation: kt-modal-in .3s ease;
}

@keyframes kt-modal-in {
	from {
		opacity: 0;
		transform: scale(.95);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.kt-select {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 16px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-weight: 300;
	background: transparent;
	font-family: var(--global-font);
	font-size: 1.4rem;
	color: var(--color-primary-black);
	cursor: pointer;
}

/* --------------------------------------------------------------------------
   10. Missing utility classes (not present in the imported framework CSS)
   -------------------------------------------------------------------------- */
.tw-no-scrollbar {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.tw-no-scrollbar::-webkit-scrollbar {
	display: none;
}

.tw-bg-black\/50 {
	background-color: rgba(0, 0, 0, .5);
}

.tw-text-gray-500 {
	color: #6b7280;
}

.tw-text-gray-700 {
	color: #374151;
}

.tw-border-gray-300 {
	border-color: #d1d5db;
}

.tw-rounded-md {
	border-radius: .375rem;
}

.tw-rounded-lg {
	border-radius: .5rem;
}

.tw-shadow-sm {
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
}

.tw-shadow-lg {
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
}

.tw-max-h-60 {
	max-height: 15rem;
}

.tw-text-base {
	font-size: 1.6rem;
	line-height: 1.5;
}

.tw-scale-95 {
	transform: scale(.95);
}

.tw-mt-1 {
	margin-top: .25rem;
}

/* Not present in the imported framework, used by the single post template. */
.tw-mt-xxl {
	margin-top: 64px;
}

.tw-top-4 {
	top: 1rem;
}

.tw-right-4 {
	right: 1rem;
}

.tw-p-2 {
	padding: .5rem;
}

.tw-max-w-\[450px\] {
	max-width: 450px;
}

.tw-mx-auto {
	margin-left: auto;
	margin-right: auto;
}

/* --------------------------------------------------------------------------
   11. Editor / blocks
   -------------------------------------------------------------------------- */
.kt-page-hero {
	position: relative;
	background: var(--color-primary-black);
	padding: 140px 0 56px;
	text-align: center;
	overflow: hidden;
}

@media (min-width: 767px) {
	.kt-page-hero {
		padding: 180px 0 80px;
	}
}

.kt-page-hero__inner {
	position: relative;
	z-index: 2;
}

.kt-page-hero--image {
	padding: 200px 0 110px;
}

@media (min-width: 767px) {
	.kt-page-hero--image {
		padding: 280px 0 160px;
	}
}

.kt-page-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	z-index: 0;
}

.kt-page-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .55);
	z-index: 1;
}

.kt-page-hero .h1 {
	color: var(--color-primary-white);
	font-weight: 300;
	line-height: 1.15;
}

.kt-page-hero__tagline {
	color: #d5d5d5;
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.6;
}

.kt-page-content {
	padding: 64px 0;
}

@media (min-width: 767px) {
	.kt-page-content {
		padding: 88px 0;
	}
}

.kt-page-content p {
	color: var(--color-primary-grey-mid);
	font-weight: 300;
	line-height: 1.7;
	margin-bottom: 16px;
}

.kt-page-content h2,
.kt-page-content h3,
.kt-page-content h4 {
	color: var(--color-primary-black);
	font-weight: 500;
	margin: 32px 0 12px;
}

.kt-page-content h2:first-child,
.kt-page-content h3:first-child {
	margin-top: 0;
}

.kt-page-content ul {
	list-style: disc;
	padding-left: 2rem;
}

.kt-page-content ol {
	list-style: decimal;
	padding-left: 2rem;
}

.kt-page-content li {
	color: var(--color-primary-grey-mid);
	font-weight: 300;
	line-height: 1.7;
	margin-bottom: 8px;
}

.kt-page-content blockquote {
	border-left: 3px solid var(--color-primary-brand-red);
	padding: 4px 0 4px 20px;
	margin: 24px 0;
}

.kt-page-content blockquote p {
	color: var(--color-primary-black);
	font-size: 2rem;
	line-height: 1.5;
}

.kt-page-content hr {
	border: 0;
	border-top: 1px solid #e6e6e6;
	margin: 32px 0;
}

.kt-page-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 24px 0;
	font-size: 1.5rem;
}

.kt-page-content th,
.kt-page-content td {
	border: 1px solid #e6e6e6;
	padding: 10px 12px;
	text-align: left;
	color: var(--color-primary-grey-mid);
}

.kt-page-content th {
	background: #f0f1f0;
	color: var(--color-primary-black);
	font-weight: 500;
}

.kt-page-content figure {
	margin: 24px 0;
}

.kt-page-content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.kt-page-content a {
	color: var(--color-primary-black);
	text-decoration: underline;
}

.kt-page-content strong {
	color: var(--color-primary-mid-black);
	font-weight: 600;
}

/* Blog listing */
.kt-post-item {
	border-bottom: 1px solid #e6e6e6;
}

.kt-post-item:last-child {
	border-bottom: 0;
}

.kt-post-item__thumb img {
	width: 100%;
	height: auto;
	border-radius: 16px;
	display: block;
}

.kt-post-item h2 a:hover {
	color: var(--color-primary-brand-red);
}

/* Pagination */
.kt-pagination .nav-links {
	display: flex;
	gap: 8px;
	justify-content: center;
	align-items: center;
}

.kt-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	border: 1px solid #dcdcdc;
	border-radius: 50px;
	color: var(--color-primary-black);
	font-size: 1.4rem;
	text-decoration: none;
}

.kt-pagination .page-numbers.current,
.kt-pagination .page-numbers:hover {
	background: var(--color-primary-black);
	color: #fff;
	border-color: var(--color-primary-black);
}

/* Comments */
.kt-article .comment-list {
	list-style: none;
	padding: 0;
}

.kt-search-form {
	max-width: 520px;
}

.kt-search-form__input:focus {
	outline: 2px solid var(--color-primary-black);
	outline-offset: 1px;
}

.kt-notice {
	padding: 32px;
	background: #f0f1f0;
	text-align: center;
	color: var(--color-primary-black);
}

.alignleft {
	float: left;
	margin: 0 24px 16px 0;
}

.alignright {
	float: right;
	margin: 0 0 16px 24px;
}

.aligncenter {
	display: block;
	margin: 0 auto 16px;
}
