﻿/* ==========================================================================
   Kuftec main stylesheet
   1. Variables  2. Base  3. Layout  4. Header  5. Hero  6. Benefits
   7. Footer  8. Generic content  9. Responsive
   ========================================================================== */

/* 1. Variables ------------------------------------------------------------ */
:root {
	--color-navy: #071f41;
	--color-orange: #ff5a1f;
	--color-orange-dark: #e94b14;
	--color-text: #10233f;
	--color-muted: #5d6b80;
	--color-border: #e5eaf0;
	--color-bg: #ffffff;
	--color-footer: #f5f7fa;

	--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--container: 1440px;
	--gutter: 48px;
	--header-height: 80px;
	--radius: 6px;
}

/* 2. Base ----------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--color-text);
	background: var(--color-bg);
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--color-navy);
}

:focus-visible {
	outline: 3px solid var(--color-orange);
	outline-offset: 3px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 0.5rem 1rem;
	background: var(--color-navy);
	color: #fff;
}

.skip-link:focus {
	left: 1rem;
	top: 0.5rem;
}

/* 3. Layout --------------------------------------------------------------- */
.container {
	width: min(100% - var(--gutter), var(--container));
	margin-inline: auto;
}

.site-main {
	flex: 1 0 auto;
}

.site-brand,
.brand {
	display: block;
	line-height: 0;
}

.kuftec-logo {
	display: block;
	width: 120px;
	height: auto;
}

/* 4. Header --------------------------------------------------------------- */
.site-header {
	background: #fff;
	border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
	width: min(100% - 48px, 1500px);
	min-height: var(--header-height);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.site-nav {
	margin-left: auto;
}

.site-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__list a {
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
}

.site-nav__list a:hover {
	color: var(--color-orange-dark);
}

.header-contact {
	display: flex;
	gap: 12px;
	align-items: center;
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--color-navy);
}

.header-contact a {
	text-decoration: none;
}

.header-contact a:hover {
	text-decoration: underline;
}

.header-contact__sep {
	color: var(--color-border);
}

/* 5. Hero ----------------------------------------------------------------- */
/* The image is a right-side layer that reaches the viewport edge and fades into white. */
.hero {
	position: relative;
	overflow: hidden;
	min-height: 540px;
	background: #fff;
}

.hero::before {
	content: "";
	position: absolute;
	inset-block: 0;
	left: 36%;
	width: 28%;
	z-index: 2;
	background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.92) 35%, rgba(255, 255, 255, 0) 100%);
	pointer-events: none;
}

.hero__inner {
	position: relative;
	z-index: 3;
	width: min(100% - 48px, 1500px);
	margin-inline: auto;
	min-height: 540px;
	display: flex;
	align-items: center;
}

.hero__content {
	position: relative;
	z-index: 3;
	width: min(48%, 650px);
	padding: 60px 0 54px;
}

.hero__media {
	position: absolute;
	inset-block: 0;
	left: 46%;
	right: 0;
	z-index: 1;
}

.kuftec-hero__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center right;
}

.hero__title {
	max-width: 680px;
	margin: 0 0 22px;
	color: var(--color-navy);
	font-size: clamp(4rem, 5vw, 5.8rem);
	line-height: 0.95;
	letter-spacing: -0.035em;
	font-weight: 900;
	overflow-wrap: break-word;
}

.hero__lead {
	max-width: 640px;
	margin: 0 0 30px;
	color: var(--color-muted);
	font-size: clamp(1.45rem, 2vw, 2.1rem);
	line-height: 1.32;
}

.hero__text {
	margin: 0 0 30px;
	color: var(--color-navy);
	font-size: 1.22rem;
	line-height: 1.45;
	font-weight: 600;
}

.button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 18px 34px;
	border-radius: var(--radius);
	background: var(--color-orange);
	color: #fff;
	font-size: 1.1rem;
	font-weight: 800;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.button:hover,
.button:focus {
	background: var(--color-orange-dark);
	color: #fff;
}

.button:focus-visible {
	outline-color: var(--color-navy);
}

.hero__note {
	margin: 24px 0 0;
	color: var(--color-muted);
	font-size: 1.05rem;
}

/* 6. Benefits ------------------------------------------------------------- */
.benefits {
	background: #fff;
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
}

.benefits__list {
	width: min(100% - 48px, 1500px);
	margin: 0 auto;
	padding: 34px 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

.benefit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 26px;
}

.benefit + .benefit {
	border-left: 1px solid #d9dee8;
}

.benefit__icon {
	display: inline-flex;
	color: var(--color-orange);
}

.benefit__icon svg {
	width: 48px;
	height: 48px;
}

.benefit__title {
	color: var(--color-navy);
	font-size: 1.45rem;
	font-weight: 900;
}

/* 7. Footer --------------------------------------------------------------- */
.site-footer {
	background: var(--color-footer);
	color: var(--color-navy);
	font-size: 1rem;
}

.site-footer__inner {
	width: min(100% - 48px, 1500px);
	margin-inline: auto;
	padding: 34px 0;
	display: grid;
	grid-template-columns: 1fr 1.3fr 1fr;
	gap: 56px;
	align-items: center;
}

.site-footer a {
	color: var(--color-navy);
}

.site-footer__address {
	font-style: normal;
	line-height: 1.7;
}

.site-footer__contact {
	justify-self: end;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-weight: 600;
}

.site-footer__contact a {
	text-decoration: none;
}

.site-footer__contact a:hover {
	text-decoration: underline;
}

/* 8. Generic content (index.php) ------------------------------------------ */
.content-area {
	max-width: 52rem;
	padding-block: 40px;
}

.entry {
	margin-bottom: 40px;
}

.entry__title {
	font-size: 2rem;
	line-height: 1.2;
	color: var(--color-navy);
}

/* 9. Responsive ----------------------------------------------------------- */
@media (max-width: 1100px) {
	.hero,
	.hero__inner {
		min-height: 460px;
	}

	.hero__content {
		width: 50%;
	}

	.hero__media {
		left: 48%;
	}

	.hero__title {
		font-size: clamp(2.6rem, 5.5vw, 3.6rem);
	}

	.hero__lead {
		font-size: 1.3rem;
	}

	.benefit {
		gap: 14px;
	}

	.benefit__icon svg {
		width: 34px;
		height: 34px;
	}

	.benefit__title {
		font-size: 1.1rem;
	}

	.site-footer__inner {
		gap: 24px;
	}
}

@media (max-width: 768px) {
	.container {
		width: min(100% - 32px, 100%);
	}

	.site-header__inner {
		width: min(100% - 32px, 100%);
		min-height: 72px;
	}

	.kuftec-logo {
		width: 100px;
	}

	.header-contact {
		display: none;
	}

	.hero {
		min-height: auto;
	}

	.hero::before {
		display: none;
	}

	.hero__inner {
		width: min(100% - 32px, 100%);
		min-height: auto;
		display: block;
		padding: 48px 0 26px;
	}

	.hero__content {
		width: 100%;
		padding: 0;
	}

	.hero__media {
		position: static;
		inset: auto;
		width: min(100% - 32px, 100%);
		margin: 0 auto 54px;
	}

	.kuftec-hero__image {
		width: 100%;
		height: auto;
		aspect-ratio: 16 / 9;
		object-fit: cover;
		object-position: center right;
	}

	.hero__title {
		font-size: clamp(2.65rem, 11vw, 3.5rem);
		line-height: 0.98;
		margin-bottom: 18px;
	}

	.hero__lead {
		font-size: 1.18rem;
		line-height: 1.36;
		margin-bottom: 24px;
	}

	.hero__text {
		font-size: 1rem;
		line-height: 1.55;
		margin-bottom: 26px;
	}

	.button {
		width: 100%;
		justify-content: center;
		padding: 16px 22px;
	}

	.hero__note {
		margin-top: 20px;
		font-size: 0.95rem;
	}

	.benefits__list {
		width: min(100% - 32px, 100%);
		grid-template-columns: 1fr;
		padding: 20px 0;
	}

	.benefit {
		justify-content: flex-start;
		gap: 18px;
		padding: 20px 0;
	}

	.benefit + .benefit {
		border-left: 0;
		border-top: 1px solid var(--color-border);
	}

	.benefit__icon svg {
		width: 30px;
		height: 30px;
	}

	.benefit__title {
		font-size: 1.1rem;
	}

	.site-footer__inner {
		width: min(100% - 32px, 100%);
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 32px 0;
	}

	.site-footer__contact {
		justify-self: start;
	}
}

/* 10. Webshop popup ------------------------------------------------------- */
.popup {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.popup[hidden] {
	display: none;
}

.popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(7, 31, 65, 0.55);
	opacity: 0;
	transition: opacity 0.4s ease;
}

.popup__card {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 44px 36px 32px;
	border-top: 5px solid var(--color-orange);
	border-radius: 10px;
	background: #fff;
	text-align: center;
	box-shadow: 0 24px 60px rgba(7, 31, 65, 0.3);
	opacity: 0;
	transform: translateY(24px) scale(0.97);
	transition: opacity 0.45s ease, transform 0.45s ease;
}

.popup__card:focus {
	outline: none;
}

.popup.is-open .popup__backdrop {
	opacity: 1;
}

.popup.is-open .popup__card {
	opacity: 1;
	transform: none;
}

.popup__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--color-muted);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.popup__close:hover {
	background: var(--color-footer);
	color: var(--color-navy);
}

.popup__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	margin-bottom: 16px;
	border-radius: 50%;
	background: #fff1ea;
	color: var(--color-orange);
}

.popup__eyebrow {
	margin: 0 0 6px;
	color: var(--color-orange);
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.popup__title {
	margin: 0 0 14px;
	color: var(--color-navy);
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1.2;
}

.popup__text {
	margin: 0 0 26px;
	color: var(--color-muted);
	font-size: 1.05rem;
}

.popup__button {
	width: 100%;
	justify-content: center;
	padding: 16px 22px;
	font-size: 1.05rem;
}

.popup__dismiss {
	margin-top: 14px;
	padding: 8px 12px;
	border: 0;
	background: transparent;
	color: var(--color-muted);
	font: inherit;
	font-size: 0.95rem;
	cursor: pointer;
	text-decoration: underline;
}

.popup__dismiss:hover {
	color: var(--color-navy);
}

@media (max-width: 480px) {
	.popup {
		padding: 16px;
	}

	.popup__card {
		padding: 38px 22px 24px;
	}

	.popup__title {
		font-size: 1.45rem;
	}

	.popup__text {
		font-size: 1rem;
	}
}


@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}

	.popup__card {
		transform: none;
	}
}
