/*
Theme Name: Kronoterm
Theme URI: http://kronoterm.lan
Author: sverde1
Author URI: http://kronoterm.lan
Description: Custom theme for Kronoterm website.
Version: 1.0.0
License: Proprietary — All rights reserved.
Text Domain: kronoterm
*/

/*****************************************************************************
* Design tokens
*****************************************************************************/
:root {
	--kt-page-bg: #f5f5f5;
	--kt-shell-bg: #fff;
	--kt-red: #d83a32;
	--kt-red-dark: #b92b24;
	--kt-burger: #1E1F20;
	--kt-ink: #161616;
	--kt-ink-light: #fff;
	--kt-ink-footer: #2F2F2F;
	--kt-copy: #5a5a5a;
	--kt-panel: #313131;
	--kt-panel-padding: 5rem;
	--kt-border: #69717A;
	--kt-border-light: #CACACA;
	--kt-muted: #999;
	--kt-panel-fallback: #454546;
	--kt-comment-bg: #f8f8f8;
	--kt-hero-dot: rgba(255, 255, 255, 0.45);
	--kt-page-shadow: 0 24px 50px rgba(0, 0, 0, 0.14);
	--kt-menu-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	--kt-button-color: #fff;
	--kt-button-radius: 4px;
	--kt-button-font-size: 0.9rem;
	--kt-button-arrow-size: 1.5rem;
}

/*****************************************************************************
* Base / reset
*****************************************************************************/
body {
	margin: 0;
	color: var(--kt-ink);
	background: var(--kt-page-bg);
	font-family: "Montserrat", "Segoe UI", Arial, Helvetica, sans-serif;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

img {
	max-width: 100%;
	display: block;
}

a {
	text-decoration: none;
}

:focus-visible {
	outline: 2px solid var(--kt-red);
	outline-offset: 2px;
}

input:focus-visible,
textarea:focus-visible {
	outline: none;
}

/*****************************************************************************
* Layout shell
*****************************************************************************/
.page-shell {
	margin: 0 auto;
	min-width: 360px;
	max-width: 1440px;
	background: var(--kt-shell-bg);
	box-shadow: var(--kt-page-shadow);
	container-type: inline-size;
	container-name: shell;
}

/*****************************************************************************
* Header & navigation
*****************************************************************************/
.site-header {
	top: 0;
	position: sticky;
	overflow: visible;
	padding: 0 var(--kt-panel-padding);
	background: var(--kt-shell-bg);
	border-bottom: 1px solid var(--kt-border-light);
	z-index: 20;
}

.admin-bar .site-header {
	top: 32px;
}

/*
Offset sticky header for the WP admin bar, which changes height
at 782px (46px) and disappears from fixed position at 600px.
*/
@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0px;
	}
}

.header-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.5rem 0;
}

.brand {
	display: inline-flex;
	align-items: center;
}

.brand a,
.brand .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.brand img {
	height: 22px;
	width: auto;
}

.brand .custom-logo {
	height: 22px;
	width: auto;
}

.main-nav {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.main-nav a {
	font-size: 1rem;
	font-weight: 600;
	color: var(--kt-ink);
	padding: 0.25rem 0;
	border-bottom: 2px solid transparent;
}

.main-nav a:hover {
	border-bottom-color: var(--kt-red);
}

.header-actions {
	display: flex;
	align-items: center;
}

/*****************************************************************************
* Buttons
*****************************************************************************/
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	gap: 0.5rem;
	padding: 1.2rem 2.5rem;
	background: var(--kt-red);
	color: var(--kt-button-color);
	border-radius: var(--kt-button-radius);
	font-size: var(--kt-button-font-size);
	letter-spacing: 0.01em;
	font-weight: 700;
}

.button:hover {
	transition: 0.5s;
	background: var(--kt-red-dark);
}

.cta-link {
	padding: 0.85rem 1.2rem;
}

.nav-cta {
	display: none;
}

.burger {
	display: none;
	cursor: pointer;
}

/*****************************************************************************
* Hero slider
*****************************************************************************/
.hero {
	color: var(--kt-ink-light);
	background: var(--kt-panel-fallback);
	position: relative;
	overflow: hidden;
}

.hero-slides {
	min-height: 700px;
	position: relative;
}

.hero-slide {
	inset: 0;
	display: flex;
	position: absolute;
	min-height: inherit;
	align-items: center;
	background-size: cover;
	background-position: center top;
	padding: var(--kt-panel-padding);
	transform: translateX(100%);
	transition: transform 1s ease;
	pointer-events: none;
}

.hero-slide.active {
	transform: translateX(0);
	pointer-events: auto;
}

.hero-content {
	position: relative;
	max-width: 750px;
	z-index: 1;
}

.hero h1 {
	font-size: 3.8rem;
	line-height: 0.98;
	font-weight: 600;
	letter-spacing: -0.02em;
	margin-bottom: 1.5rem;
}

.hero p {
	max-width: 600px;
	font-size: 1rem;
	line-height: 1.75;
	margin-bottom: 2rem;
}

.hero-slider {
	position: absolute;
	right: 200px;
	top: 50%;
	width: 64px;
	height: 64px;
	transform: translateY(-50%);
	border: 3px solid var(--kt-red);
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: var(--kt-red);
	font-size: 3rem;
	font-weight: 500;
	line-height: 0.72;
	padding-left: 4px;
	padding-bottom: 6px;
	z-index: 2;
	cursor: pointer;
}

.hero-slider:hover {
	transition: 0.5s;
	color: var(--kt-red-dark);
	border-color: var(--kt-red-dark);
}

.hero-dots {
	position: absolute;
	right: var(--kt-panel-padding);
	bottom: 40px;
	display: flex;
	gap: 1.6rem;
	z-index: 2;
}

.hero-dots span {
	display: flex;
	align-items: center;
	width: 60px;
	height: 40px;
	cursor: pointer;
}

.hero-dots span::after {
	content: "";
	display: block;
	width: 100%;
	height: 5px;
	background: var(--kt-hero-dot);
}

.hero-dots span.active::after {
	background: var(--kt-ink-light);
}

/*****************************************************************************
* Dark panel & product grid
*****************************************************************************/
.dark-panel {
	color: var(--kt-ink-light);
	background: var(--kt-panel);
	padding: var(--kt-panel-padding);
}

.section-heading {
	font-size: 2rem;
	font-weight: 500;
	margin-bottom: 1.35rem;
	padding-bottom: 2rem;
}

.product-grid {
	border-top: 2px solid var(--kt-border);
	flex-wrap: nowrap;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 0.75rem;
}

.product-card {
	height: 100%;
	border-bottom: 2px solid var(--kt-border);
}

.product-card:hover {
	border-bottom-color: var(--kt-red-dark);
}

.product-card .thumb {
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--kt-shell-bg);
}

.product-card .thumb img {
	height: 100%;
	object-fit: cover;
}

.product-card-link {
	color: inherit;
}

.product-card h3 {
	font-size: 1.4rem;
	font-weight: 500;
	margin: 0;
	padding: 1rem 0;
}

/*****************************************************************************
* Feature cards
*****************************************************************************/
.feature-strip {
	padding: var(--kt-panel-padding);
}

.feature-strip .kt-wrap {
	padding-left: 0;
	padding-right: 0;
}

.feature-strip .col-md-6 {
	display: flex;
}

.feature-card {
	position: relative;
	min-height: 700px;
	aspect-ratio: 620 / 700;
	display: flex;
	align-items: end;
	overflow: hidden;
	background: var(--kt-panel-fallback) center/cover no-repeat;
}

.feature-card .content {
	position: relative;
	z-index: 1;
	padding: 0 2.5rem 2.5rem;
	color: var(--kt-ink-light);
}

.eyebrow {
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 1rem;
}

.feature-card h3 {
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 1.15;
	margin-bottom: 2rem;
	max-width: 600px;
}

/*****************************************************************************
* Newsletter
*****************************************************************************/
.newsletter {
	background: var(--kt-panel);
	color: var(--kt-ink-light);
	padding: var(--kt-panel-padding);
}

.newsletter h2 {
	font-size: clamp(1.45rem, 1.9vw, 2rem);
	font-weight: 500;
	margin-bottom: 1rem;
}

.newsletter p {
	margin: 0;
	font-size: 1.2rem;
}

.newsletter-copy {
	max-width: 600px;
}

.newsletter-form {
	display: flex;
	gap: 0.6rem;
	align-items: center;
	justify-content: flex-end;
}

.newsletter-form input {
	flex: 0 1 345px;
	max-width: 345px;
	height: 44px;
	background: transparent;
	border: 1px solid var(--kt-border-light);
	border-radius: 2px;
	color: var(--kt-ink-light);
	padding: 0 0.95rem;
	font-size: 0.78rem;
}

.newsletter-form button {
	height: 44px;
}

.newsletter-message {
	font-size: 0.95rem;
	color: var(--kt-ink-light);
	padding-top: 0.5rem;
	text-align: right;
}

/*****************************************************************************
* Footer
*****************************************************************************/
.footer-note {
	padding: 2.5rem 0 5rem;
}

.footer-note-inner {
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--kt-ink-footer);
	text-align: center;
	border-top: 1px solid var(--kt-border-light);
	padding: 1rem 0;
}

/* Burger icon (three horizontal lines drawn with CSS) */
.burger span,
.burger::before,
.burger::after {
	content: "";
	position: absolute;
	left: 2px;
	right: 2px;
	height: 2px;
	background: var(--kt-burger);
}

.burger span {
	top: 11px;
}

.burger::before {
	top: 5px;
}

.burger::after {
	bottom: 5px;
}

/*****************************************************************************
* Page templates & content
*****************************************************************************/
.site-main {
	padding: var(--kt-panel-padding);
}

.page-title {
	font-size: 2.4rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 2px solid var(--kt-border-light);
}

.entry-content {
	padding-top: 1.5rem;
}

.entry-content h2 {
	font-size: 1.2rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--kt-copy);
	margin-bottom: 2.5rem;
}

.entry-content h3 {
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--kt-red);
	margin-bottom: 0.5rem;
}

.entry-content p {
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--kt-copy);
	margin: 0 0 0.5rem;
}

.entry-content a {
	color: var(--kt-red);
	font-weight: 600;
}

.entry-content a:hover {
	color: var(--kt-red-dark);
}

/*****************************************************************************
* Blog listing & post cards
*****************************************************************************/
.post-list {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.post-card {
	display: flex;
	gap: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--kt-border-light);
}

.post-card:last-child {
	border-bottom: none;
}

.post-card-thumb {
	flex: 0 0 280px;
	overflow: hidden;
	border-radius: 6px;
}

.post-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card-body {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.post-card-meta {
	font-size: 0.8rem;
	color: var(--kt-muted);
	font-weight: 500;
	margin-bottom: 0.5rem;
}

.post-card-title {
	font-size: 1.5rem;
	font-weight: 600;
	margin: 0 0 0.75rem;
	line-height: 1.3;
}

.post-card-title a {
	color: var(--kt-ink);
}

.post-card-title a:hover {
	color: var(--kt-red);
}

.post-card-excerpt p {
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--kt-copy);
	margin: 0 0 1rem;
}

.post-card-link {
	align-self: flex-start;
	margin-top: auto;
}

/*****************************************************************************
* 404 & search
*****************************************************************************/
.error-404 {
	text-align: center;
	padding: 4rem 0;
}

.error-404 .page-title {
	font-size: 6rem;
	color: var(--kt-red);
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.error-content .error-message {
	font-size: 1.1rem;
	color: var(--kt-copy);
	margin-bottom: 2rem;
}

.search-form {
	max-width: 500px;
}

.search-label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.search-field-wrap {
	display: flex;
	gap: 0.6rem;
}

.search-input {
	flex: 1;
	height: 44px;
	padding: 0 0.95rem;
	border: 1px solid var(--kt-border-light);
	border-radius: var(--kt-button-radius);
	font-size: 0.9rem;
	font-family: inherit;
}

.search-no-results {
	padding: 2rem 0;
}

.search-no-results p {
	font-size: 1.1rem;
	color: var(--kt-copy);
	margin-bottom: 1.5rem;
}

.post-card-type {
	margin-left: 0.75rem;
	padding-left: 0.75rem;
	border-left: 1px solid var(--kt-border-light);
}

@media (max-width: 768px) {
	.post-card {
		flex-direction: column;
		gap: 1rem;
	}

	.post-card-thumb {
		flex: none;
		max-height: 200px;
	}
}

/*****************************************************************************
* Comments
*****************************************************************************/
.entry-comments {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 2px solid var(--kt-border-light);
}

.entry-comments .comment-reply-title,
.entry-comments .comments-title {
	font-size: 1.4rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
}

.commentlist,
.commentlist .children {
	list-style: none;
	padding: 0;
	margin: 0;
}

.commentlist .children {
	padding-left: 2.5rem;
}

.commentlist > li {
	padding: 1.5rem;
	margin-bottom: 1rem;
	background: var(--kt-comment-bg);
	border-radius: 8px;
	border-left: 3px solid var(--kt-red);
}

.commentlist .children > li {
	padding: 1rem 1.25rem;
	margin-top: 1rem;
	background: var(--kt-shell-bg);
	border-radius: 6px;
	border-left: 3px solid var(--kt-border-light);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.9rem;
	font-weight: 600;
}

.comment-author img {
	border-radius: 50%;
	width: 36px;
	height: 36px;
}

.comment-author .fn a {
	color: var(--kt-ink);
}

.comment-author .says {
	display: none;
}

.comment-metadata {
	font-size: 0.78rem;
	color: var(--kt-muted);
	margin: 0.25rem 0 0.75rem;
}

.comment-metadata a {
	color: var(--kt-muted);
}

.comment-content p {
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--kt-copy);
	margin: 0 0 0.5rem;
}

.reply a {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--kt-red);
}

.reply a:hover {
	color: var(--kt-red-dark);
}

.comment-respond {
	margin-top: 2rem;
}

.comment-form p {
	margin-bottom: 1rem;
}

.comment-form label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 0.3rem;
	color: var(--kt-ink);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	max-width: 600px;
	padding: 0.6rem 0.8rem;
	border: 1px solid var(--kt-border-light);
	border-radius: var(--kt-button-radius);
	font-size: 0.9rem;
	font-family: inherit;
}

.comment-form textarea {
	min-height: 120px;
	resize: vertical;
}

.comment-form .logged-in-as {
	font-size: 0.85rem;
	color: var(--kt-copy);
}

.comment-form .logged-in-as a {
	color: var(--kt-red);
}

.comment-form .submit {
	display: inline-flex;
	align-items: center;
	border: 0;
	padding: 0.75rem 1.5rem;
	background: var(--kt-red);
	color: var(--kt-button-color);
	border-radius: var(--kt-button-radius);
	font-size: var(--kt-button-font-size);
	font-weight: 700;
	cursor: pointer;
}

.comment-form .submit:hover {
	background: var(--kt-red-dark);
}

/*****************************************************************************
* Contact page
*****************************************************************************/
.contact-details {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
}

/*****************************************************************************
* Responsive — tablet (max-width: 1440px)
*****************************************************************************/
@media (max-width: 1440px) {
	:root {
		--kt-panel-padding: 2rem;
	}

	/* Hide desktop nav, show burger */
	.main-nav {
		display: none;
		position: absolute;
		flex-direction: column;
		gap: 0;
		top: 100%;
		left: auto;
		right: 0;
		z-index: 30;
		width: 500px;
		max-width: 100%;
		background: var(--kt-shell-bg);
		padding: 1rem 1.5rem 1.5rem;
		box-shadow: var(--kt-menu-shadow);
		border: 1px solid var(--kt-border-light);
		border-top: none;
	}

	.main-nav a {
		width: 100%;
		padding: 0.75rem 0;
		text-align: center;
		border-bottom: 1px solid var(--kt-border-light);
	}

	.main-nav a:hover {
		border-bottom-width: 2px;
	}

	.main-nav a:last-child {
		border-bottom: none;
	}

	.header-actions .cta-link {
		display: none;
	}

	.main-nav .nav-cta {
		display: inline-flex;
		margin-top: 0.75rem;
		align-self: center;
		color: var(--kt-ink-light);
		border-bottom: none;
		padding: 0.85rem 1.5rem;
	}

	.burger {
		display: block;
		border: 0;
		background: transparent;
		padding: 0;
		width: 24px;
		height: 24px;
		position: relative;
	}

	/* CSS-only toggle: checkbox controls nav visibility */
	.site-header:has(.nav-toggle:checked) .main-nav {
		display: flex;
	}

	.nav-toggle:focus-visible ~ .burger {
		outline: 2px solid var(--kt-red);
		outline-offset: 2px;
	}

	.hero-slider {
		display: none;
	}

	.button {
		padding: 0.8rem 1.8rem;
	}

	.section-heading {
		font-size: 1.4rem;
	}

	.feature-card {
		width: 100%;
		min-height: 400px;
		aspect-ratio: auto;
	}

	.feature-card h3 {
		font-size: 1.4rem;
	}

	.product-card h3 {
		font-size: 0.8rem;
	}

	.product-grid > .col-md-4 {
		flex: 0 0 33.333%;
		max-width: 33.333%;
		min-width: 200px;
	}


	.newsletter .col-lg-6 {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.newsletter-form {
		justify-content: flex-start;
	}

	.newsletter-message {
		text-align: left;
	}
}

/*****************************************************************************
* Responsive — mobile (max-width: 768px)
*****************************************************************************/
@media (max-width: 768px) {
	.main-nav {
		width: auto;
		left: 0;
		border: none;
		border-bottom: 1px solid var(--kt-border-light);
	}

	.container-fluid.kt-wrap {
		padding-left: 18px;
		padding-right: 18px;
	}


	.hero-content {
		padding-top: 2rem;
		padding-bottom: 4rem;
		max-width: 270px;
	}

	.hero-dots {
		right: auto;
		left: 50%;
		transform: translateX(-50%);
	}

	.hero h1 {
		font-size: 2.1rem;
	}

	.hero p {
		font-size: 0.72rem;
		line-height: 1.55;
	}

	.feature-card {
		min-height: 460px;
		aspect-ratio: 330 / 460;
	}

	.feature-card .content {
		width: 100%;
	}

	.feature-card .button {
		width: 100%;
		justify-content: center;
	}

	.dark-panel,
	.feature-strip,
	.newsletter {
		padding-left: 0;
		padding-right: 0;
	}

	.newsletter-form {
		flex-direction: column;
		align-items: stretch;
	}

	.newsletter-form input {
		flex-basis: auto;
		max-width: none;
	}

	.newsletter-form button {
		width: 100%;
	}

	.contact-details {
		grid-template-columns: repeat(2, 1fr);
	}
}

/*****************************************************************************
* Respect OS-level "reduce motion" setting for users who are sensitive
* to animation (e.g. vestibular disorders). Required by WCAG 2.3.3.
*****************************************************************************/
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
