/* =========================================================================
   LEDevre GmbH — Main Stylesheet
   Modern, responsive, orange-themed design.
   Shared by the WordPress theme AND the standalone /preview/index.html.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
	--primary: #FF6B00;
	--primary-2: #FF7A1A;
	--amber: #FFB020;
	--dark: #1A1A1A;
	--dark-2: #262626;
	--muted: #6b6b6b;
	--light: #FFFFFF;
	--cream: #FFF7F0;
	--border: #ececec;

	--gradient: linear-gradient(135deg, #FF6B00 0%, #FF7A1A 45%, #FFB020 100%);
	--gradient-dark: linear-gradient(135deg, rgba(255,107,0,0.92) 0%, rgba(26,26,26,0.85) 100%);

	--shadow-sm: 0 2px 8px rgba(26, 26, 26, 0.06);
	--shadow-md: 0 8px 24px rgba(26, 26, 26, 0.10);
	--shadow-lg: 0 20px 48px rgba(255, 107, 0, 0.18);

	--radius: 14px;
	--radius-lg: 22px;

	--container: 1200px;
	--header-h: 76px;

	--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--dark);
	background: var(--light);
	overflow-x: hidden;
}

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

a {
	color: var(--primary);
	text-decoration: none;
	transition: color var(--transition);
}

a:hover {
	color: var(--primary-2);
}

h1, h2, h3, h4 {
	line-height: 1.15;
	margin: 0 0 0.5em;
	font-weight: 800;
	letter-spacing: -0.02em;
}

p {
	margin: 0 0 1em;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}

section {
	position: relative;
}

/* ---------- Accessibility helpers ---------- */
.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;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	background: var(--dark);
	color: #fff;
	padding: 12px 20px;
	border-radius: 0 0 8px 0;
}

.skip-link:focus {
	left: 0;
}

:focus-visible {
	outline: 3px solid var(--amber);
	outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	font-size: 16px;
	font-weight: 700;
	border-radius: 999px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
	white-space: nowrap;
	line-height: 1;
	font-family: inherit;
}

.btn-primary {
	background: var(--gradient);
	color: #fff;
	box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 24px 56px rgba(255, 107, 0, 0.28);
}

.btn-secondary {
	background: transparent;
	color: var(--dark);
	border-color: var(--dark);
}

.btn-secondary:hover {
	background: var(--dark);
	color: #fff;
	transform: translateY(-2px);
}

.btn-ghost {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.55);
	backdrop-filter: blur(6px);
}

.btn-ghost:hover {
	background: #fff;
	color: var(--primary);
	transform: translateY(-2px);
}

.btn-sm {
	padding: 10px 20px;
	font-size: 15px;
}

/* ---------- Header ---------- */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: var(--header-h);
	z-index: 1000;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.site-header.is-scrolled {
	box-shadow: var(--shadow-md);
	border-bottom-color: var(--border);
}

.header-inner {
	height: var(--header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.brand-mark {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--gradient);
	display: grid;
	place-items: center;
	color: #fff;
	font-weight: 900;
	font-size: 20px;
	box-shadow: var(--shadow-sm);
}

.brand-name {
	font-size: 20px;
	font-weight: 900;
	color: var(--dark);
	letter-spacing: -0.03em;
}

.brand-name span {
	color: var(--primary);
}

.site-branding img.custom-logo {
	max-height: 44px;
	width: auto;
}

/* Primary nav */
.main-navigation {
	margin-left: auto;
}

.main-navigation ul {
	display: flex;
	align-items: center;
	gap: 4px;
}

.main-navigation a,
.main-navigation .menu-item > a {
	display: inline-block;
	padding: 10px 14px;
	font-size: 15px;
	font-weight: 600;
	color: var(--dark);
	border-radius: 8px;
	position: relative;
}

.main-navigation a::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 6px;
	height: 2px;
	background: var(--gradient);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--transition);
	border-radius: 2px;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
	color: var(--primary);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after {
	transform: scaleX(1);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-shrink: 0;
}

/* Language switcher */
.lang-switcher {
	display: inline-flex;
	align-items: center;
	background: var(--cream);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 3px;
	gap: 2px;
}

.lang-switcher button,
.lang-switcher a {
	appearance: none;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--muted);
	padding: 6px 11px;
	border-radius: 999px;
	cursor: pointer;
	transition: background var(--transition), color var(--transition);
	line-height: 1;
	text-transform: uppercase;
}

.lang-switcher button:hover,
.lang-switcher a:hover {
	color: var(--primary);
}

.lang-switcher button.is-active,
.lang-switcher a.is-active,
.lang-switcher .current-lang {
	background: var(--gradient);
	color: #fff;
	box-shadow: var(--shadow-sm);
}

/* Hamburger */
.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 0;
}

.menu-toggle span {
	display: block;
	width: 26px;
	height: 3px;
	background: var(--dark);
	border-radius: 3px;
	transition: transform var(--transition), opacity var(--transition);
	margin: 0 auto;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Section heading kit ---------- */
.section {
	padding: 100px 0;
}

.section-cream {
	background: var(--cream);
}

.section-dark {
	background: var(--dark);
	color: #fff;
}

.section-head {
	max-width: 720px;
	margin: 0 auto 56px;
	text-align: center;
}

.kicker {
	display: inline-block;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--primary);
	background: rgba(255, 107, 0, 0.10);
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 18px;
}

.section-title {
	font-size: clamp(28px, 4vw, 42px);
}

.section-subtitle {
	font-size: 18px;
	color: var(--muted);
	margin: 0;
}

.section-dark .section-subtitle {
	color: rgba(255, 255, 255, 0.72);
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	min-height: 92vh;
	display: flex;
	align-items: center;
	padding: calc(var(--header-h) + 60px) 0 80px;
	color: #fff;
	overflow: hidden;
	/* Orange gradient fallback shows if the image is missing */
	background: var(--gradient-dark), var(--gradient);
	background-blend-mode: multiply, normal;
}

.hero.has-image {
	background:
		linear-gradient(120deg, rgba(26,26,26,0.78) 0%, rgba(255,107,0,0.66) 100%),
		var(--hero-image) center / cover no-repeat;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 80% 20%, rgba(255, 176, 32, 0.35), transparent 55%);
	pointer-events: none;
}

.hero-inner {
	position: relative;
	z-index: 2;
	max-width: 760px;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.28);
	backdrop-filter: blur(8px);
	padding: 8px 16px;
	border-radius: 999px;
	margin-bottom: 24px;
}

.hero-badge .dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--amber);
	box-shadow: 0 0 0 4px rgba(255, 176, 32, 0.3);
}

.hero h1 {
	font-size: clamp(36px, 6vw, 66px);
	font-weight: 900;
	margin-bottom: 20px;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero h1 .accent {
	background: linear-gradient(90deg, #FFD27A, #FFB020);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.hero-subtitle {
	font-size: clamp(17px, 2vw, 21px);
	max-width: 620px;
	color: rgba(255, 255, 255, 0.92);
	margin-bottom: 36px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 44px;
}

.hero-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
}

.hero-stat .num {
	font-size: 34px;
	font-weight: 900;
	line-height: 1;
	background: linear-gradient(90deg, #fff, #FFD27A);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.hero-stat .label {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.8);
	margin-top: 6px;
}

/* ---------- Services ---------- */
.services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.service-card {
	background: var(--light);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 34px 30px;
	transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
	position: relative;
	overflow: hidden;
}

.service-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--gradient);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--transition);
}

.service-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-lg);
	border-color: transparent;
}

.service-card:hover::before {
	transform: scaleX(1);
}

.service-icon {
	width: 60px;
	height: 60px;
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(255,107,0,0.12), rgba(255,176,32,0.12));
	display: grid;
	place-items: center;
	color: var(--primary);
	margin-bottom: 22px;
}

.service-icon svg {
	width: 30px;
	height: 30px;
}

.service-card h3 {
	font-size: 21px;
	margin-bottom: 10px;
}

.service-card p {
	color: var(--muted);
	font-size: 16px;
	margin: 0;
}

/* ---------- Gallery ---------- */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.gallery-item {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	/* Orange gradient placeholder shown behind images / when image missing */
	background: var(--gradient);
	box-shadow: var(--shadow-sm);
	cursor: pointer;
}

.gallery-item .placeholder-label {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: rgba(255, 255, 255, 0.85);
	font-weight: 700;
	letter-spacing: 0.05em;
	text-align: center;
	padding: 20px;
	z-index: 0;
}

.gallery-item img {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
	transform: scale(1.10);
}

.gallery-caption {
	position: absolute;
	z-index: 2;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 40px 20px 18px;
	background: linear-gradient(to top, rgba(26, 26, 26, 0.85), transparent);
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	transform: translateY(8px);
	opacity: 0;
	transition: opacity var(--transition), transform var(--transition);
}

.gallery-item:hover .gallery-caption {
	opacity: 1;
	transform: translateY(0);
}

/* Lightbox */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 2000;
	background: rgba(15, 15, 15, 0.92);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 40px;
}

.lightbox.is-open {
	display: flex;
}

.lightbox img {
	max-width: 90vw;
	max-height: 82vh;
	border-radius: 12px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
	position: absolute;
	top: 24px;
	right: 28px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 26px;
	cursor: pointer;
	transition: background var(--transition);
}

.lightbox-close:hover {
	background: var(--primary);
}

.lightbox-caption {
	position: absolute;
	bottom: 28px;
	left: 0;
	right: 0;
	text-align: center;
	color: #fff;
	font-weight: 600;
}

/* ---------- Why us ---------- */
.why-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.why-card {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: var(--radius);
	padding: 30px 26px;
	transition: transform var(--transition), background var(--transition);
}

.why-card:hover {
	transform: translateY(-6px);
	background: rgba(255, 107, 0, 0.12);
}

.why-icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--gradient);
	display: grid;
	place-items: center;
	color: #fff;
	margin-bottom: 18px;
}

.why-icon svg {
	width: 26px;
	height: 26px;
}

.why-card h3 {
	font-size: 19px;
	margin-bottom: 8px;
	color: #fff;
}

.why-card p {
	color: rgba(255, 255, 255, 0.68);
	font-size: 15px;
	margin: 0;
}

/* ---------- About ---------- */
.about-wrap {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 60px;
	align-items: center;
}

.about-text h2 {
	font-size: clamp(28px, 4vw, 40px);
	margin-bottom: 20px;
}

.about-text p {
	color: var(--muted);
	font-size: 17px;
}

.about-stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.about-stat {
	background: var(--cream);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 28px 24px;
	text-align: center;
	transition: transform var(--transition), box-shadow var(--transition);
}

.about-stat:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-md);
}

.about-stat .num {
	font-size: 40px;
	font-weight: 900;
	background: var(--gradient);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	line-height: 1;
}

.about-stat .label {
	font-size: 14px;
	color: var(--muted);
	margin-top: 8px;
	font-weight: 600;
}

/* ---------- Contact ---------- */
.contact-wrap {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 48px;
}

.contact-form {
	background: var(--light);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 40px;
	box-shadow: var(--shadow-sm);
}

.form-row {
	margin-bottom: 20px;
}

.form-row label {
	display: block;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 8px;
	color: var(--dark);
}

.form-row input,
.form-row textarea {
	width: 100%;
	padding: 14px 16px;
	font-family: inherit;
	font-size: 16px;
	color: var(--dark);
	background: var(--cream);
	border: 1.5px solid var(--border);
	border-radius: 12px;
	transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-row input:focus,
.form-row textarea:focus {
	outline: none;
	border-color: var(--primary);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.12);
}

.form-row textarea {
	resize: vertical;
	min-height: 130px;
}

.form-note {
	font-size: 13px;
	color: var(--muted);
	margin-top: 6px;
}

.contact-info {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.info-card {
	background: var(--dark);
	color: #fff;
	border-radius: var(--radius-lg);
	padding: 34px;
}

.info-card h3 {
	font-size: 22px;
	margin-bottom: 20px;
}

.info-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 18px;
}

.info-item:last-child {
	margin-bottom: 0;
}

.info-item .ic {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.08);
	display: grid;
	place-items: center;
	color: var(--amber);
	flex-shrink: 0;
}

.info-item .ic svg {
	width: 20px;
	height: 20px;
}

.info-item .info-label {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.6);
	margin: 0 0 2px;
}

.info-item .info-value {
	font-size: 16px;
	font-weight: 600;
	margin: 0;
	color: #fff;
}

.info-item .info-value a {
	color: #fff;
}

.info-item .info-value a:hover {
	color: var(--amber);
}

/* ---------- Footer ---------- */
.site-footer {
	background: var(--dark);
	color: rgba(255, 255, 255, 0.72);
	padding: 70px 0 0;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr;
	gap: 48px;
	padding-bottom: 50px;
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}

.footer-brand .brand-name {
	color: #fff;
	font-size: 22px;
}

.footer-col h4 {
	color: #fff;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 20px;
}

.footer-col ul li {
	margin-bottom: 12px;
}

.footer-col ul a {
	color: rgba(255, 255, 255, 0.7);
	font-size: 15px;
}

.footer-col ul a:hover {
	color: var(--amber);
}

.footer-about p {
	font-size: 15px;
	max-width: 340px;
}

.footer-social {
	display: flex;
	gap: 12px;
	margin-top: 20px;
}

.footer-social a {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.08);
	display: grid;
	place-items: center;
	color: #fff;
	transition: background var(--transition), transform var(--transition);
}

.footer-social a:hover {
	background: var(--gradient);
	transform: translateY(-3px);
}

.footer-social svg {
	width: 18px;
	height: 18px;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 22px 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
}

/* ---------- Generic page/content (page.php, index.php, 404) ---------- */
.page-hero {
	background: var(--gradient-dark), var(--gradient);
	background-blend-mode: multiply, normal;
	color: #fff;
	padding: calc(var(--header-h) + 70px) 0 70px;
	text-align: center;
}

.page-hero h1 {
	font-size: clamp(30px, 5vw, 52px);
	margin: 0;
}

.content-area {
	padding: 70px 0;
	min-height: 40vh;
}

.entry-content {
	max-width: 760px;
	margin: 0 auto;
}

.entry-content h2 {
	margin-top: 1.4em;
}

.entry-content img {
	border-radius: var(--radius);
}

.error-404 {
	text-align: center;
	max-width: 640px;
	margin: 0 auto;
	padding: 40px 0;
}

.error-404 .big {
	font-size: clamp(90px, 18vw, 180px);
	font-weight: 900;
	line-height: 1;
	background: var(--gradient);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.widget-area {
	margin-top: 40px;
}

/* ---------- Products / Technical specs ---------- */
.product-featured {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 44px;
	align-items: start;
	background: var(--light);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 36px;
	box-shadow: var(--shadow-sm);
	margin-bottom: 64px;
}

.product-visual {
	position: sticky;
	top: calc(var(--header-h) + 20px);
}

.product-visual-media {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius);
	overflow: hidden;
	background-size: cover;
	background-position: center;
	background-color: var(--dark);
	box-shadow: var(--shadow-md);
}

.product-visual-media.is-placeholder {
	background: var(--gradient);
}

.product-badge {
	position: absolute;
	z-index: 3;
	top: 16px;
	left: 16px;
	background: var(--dark);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 7px 14px;
	border-radius: 999px;
}

.product-pitch-tag {
	position: absolute;
	right: 16px;
	bottom: 16px;
	background: var(--gradient);
	color: #fff;
	font-weight: 900;
	font-size: 20px;
	padding: 10px 18px;
	border-radius: 12px;
	box-shadow: var(--shadow-lg);
	letter-spacing: -0.02em;
}

.product-visual-note {
	text-align: center;
	font-size: 13px;
	color: var(--muted);
	margin: 12px 0 0;
	letter-spacing: 0.04em;
}

.product-name {
	font-size: clamp(22px, 3vw, 30px);
	margin-bottom: 8px;
}

.product-tagline {
	color: var(--muted);
	font-size: 17px;
	margin-bottom: 24px;
}

.spec-title,
.features-title,
.cabinet-types-title {
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--primary);
	margin-bottom: 14px;
}

.cabinet-types-title {
	font-size: clamp(22px, 3vw, 30px);
	text-transform: none;
	letter-spacing: -0.02em;
	color: var(--dark);
}

.spec-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 28px;
	font-size: 15px;
}

.spec-table tr {
	border-bottom: 1px solid var(--border);
}

.spec-table tr:nth-child(odd) {
	background: var(--cream);
}

.spec-table th,
.spec-table td {
	text-align: left;
	padding: 12px 16px;
	vertical-align: top;
}

.spec-table th {
	font-weight: 600;
	color: var(--muted);
	width: 46%;
}

.spec-table td {
	font-weight: 700;
	color: var(--dark);
}

.cabinet-types {
	margin-bottom: 56px;
}

.product-features {
	background: var(--cream);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 34px 36px;
}

.feature-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px 32px;
}

.feature-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 600;
	font-size: 15px;
}

.feature-check {
	width: 30px;
	height: 30px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--gradient);
	color: #fff;
	display: grid;
	place-items: center;
}

.feature-check svg {
	width: 16px;
	height: 16px;
}

/* ---------- Scroll reveal ---------- */
.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
	* {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
	.services-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.why-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.about-wrap,
	.contact-wrap {
		grid-template-columns: 1fr;
		gap: 36px;
	}
	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
	.footer-about {
		grid-column: 1 / -1;
	}
	.product-featured {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.product-visual {
		position: static;
		max-width: 480px;
	}
	.feature-list {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	body {
		font-size: 16px;
	}
	.section {
		padding: 70px 0;
	}
	.menu-toggle {
		display: flex;
	}
	.main-navigation {
		position: fixed;
		top: var(--header-h);
		left: 0;
		right: 0;
		background: #fff;
		border-bottom: 1px solid var(--border);
		box-shadow: var(--shadow-md);
		max-height: 0;
		overflow: hidden;
		transition: max-height var(--transition);
		margin: 0;
	}
	.main-navigation.is-open {
		max-height: 70vh;
		overflow-y: auto;
	}
	.main-navigation ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 12px 24px 20px;
	}
	.main-navigation a {
		padding: 14px 8px;
		border-bottom: 1px solid var(--border);
		border-radius: 0;
	}
	.main-navigation a::after {
		display: none;
	}
	.header-cta {
		display: none;
	}
	.services-grid,
	.gallery-grid,
	.why-grid {
		grid-template-columns: 1fr;
	}
	.about-stats {
		grid-template-columns: repeat(2, 1fr);
	}
	.hero {
		min-height: auto;
	}
	.hero-stats {
		gap: 26px;
	}
	.contact-form {
		padding: 28px;
	}
	.footer-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.product-featured {
		padding: 22px;
	}
	.product-features {
		padding: 26px;
	}
	.feature-list {
		grid-template-columns: 1fr;
	}
	.spec-table th,
	.spec-table td {
		padding: 11px 12px;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 0 18px;
	}
	.hero-actions {
		flex-direction: column;
		align-items: stretch;
	}
	.hero-actions .btn {
		width: 100%;
	}
	.brand-name {
		font-size: 17px;
	}
	.spec-table th,
	.spec-table td {
		display: block;
		width: 100%;
	}
	.spec-table th {
		padding-bottom: 2px;
	}
	.spec-table td {
		padding-top: 0;
		padding-bottom: 14px;
	}
}

/* =========================================================================
   WhatsApp click-to-chat widget
   Floating launcher + chat popup. Shared by the WordPress theme and the
   standalone /preview/index.html. Uses WhatsApp green (#25D366) for brand
   recognition and the site's orange (--primary) for the unread accent.
   ========================================================================= */
.wa-widget {
	--wa-green: #25d366;
	--wa-green-dark: #1ebe5b;
	--wa-teal: #075e54;
	--wa-chat-bg: #ece5dd;
	position: fixed;
	right: 24px;
	right: calc(24px + env(safe-area-inset-right, 0px));
	bottom: 24px;
	bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	z-index: 9990;
	font-family: var(--font);
}

/* ---------- Launcher button ---------- */
.wa-launcher {
	position: relative;
	width: 60px;
	height: 60px;
	border: 0;
	border-radius: 50%;
	background: var(--wa-green);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	box-shadow: 0 8px 22px rgba(37, 211, 102, 0.42), 0 4px 10px rgba(26, 26, 26, 0.18);
	transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
	-webkit-tap-highlight-color: transparent;
}

.wa-launcher:hover {
	background: var(--wa-green-dark);
	transform: scale(1.06);
}

.wa-launcher:focus-visible {
	outline: 3px solid rgba(37, 211, 102, 0.55);
	outline-offset: 3px;
}

.wa-launcher .wa-icon {
	position: absolute;
	transition: opacity var(--transition), transform var(--transition);
}

.wa-icon-open {
	width: 32px;
	height: 32px;
	opacity: 1;
	transform: rotate(0deg) scale(1);
}

.wa-icon-close {
	width: 26px;
	height: 26px;
	opacity: 0;
	transform: rotate(-90deg) scale(0.6);
}

.wa-widget.is-open .wa-icon-open {
	opacity: 0;
	transform: rotate(90deg) scale(0.6);
}

.wa-widget.is-open .wa-icon-close {
	opacity: 1;
	transform: rotate(0deg) scale(1);
}

/* Unread badge — uses the site's orange accent. */
.wa-badge {
	position: absolute;
	top: -3px;
	right: -3px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 10px;
	background: var(--primary);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	line-height: 20px;
	text-align: center;
	box-shadow: 0 0 0 2px #fff;
	transition: opacity var(--transition), transform var(--transition);
}

.wa-widget.is-open .wa-badge {
	opacity: 0;
	transform: scale(0.4);
}

/* Attention pulse ring. */
.wa-launcher::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--wa-green);
	z-index: -1;
	animation: wa-pulse 2.4s ease-out infinite;
}

.wa-widget.is-open .wa-launcher::after {
	animation: none;
}

@keyframes wa-pulse {
	0% {
		transform: scale(1);
		opacity: 0.55;
	}
	70% {
		transform: scale(1.7);
		opacity: 0;
	}
	100% {
		transform: scale(1.7);
		opacity: 0;
	}
}

/* ---------- Popup card ----------
   Reveal is driven by the `is-open` class which the JS toggles on BOTH the
   widget root AND the popup element, so the panel shows regardless of the
   ancestor combinator. `visibility` flips instantly on open (0s) and is
   delayed on close so the fade-out can play; `pointer-events` gates
   interactivity while hidden. This is the fix for the popup staying
   visibility:hidden / opacity:0 after the launcher was clicked. */
.wa-popup {
	position: absolute;
	right: 0;
	bottom: calc(100% + 16px);
	width: 340px;
	max-width: calc(100vw - 48px);
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(26, 26, 26, 0.28);
	transform-origin: bottom right;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(16px) scale(0.92);
	transition: opacity var(--transition), transform var(--transition), visibility 0s linear 0.28s;
}

.wa-widget.is-open .wa-popup,
.wa-popup.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0) scale(1);
	transition: opacity var(--transition), transform var(--transition), visibility 0s;
}

.wa-popup-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: var(--wa-teal);
	color: #fff;
}

.wa-avatar {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--gradient);
	color: #fff;
	font-weight: 900;
	font-size: 20px;
	display: grid;
	place-items: center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.wa-headings {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
}

.wa-title {
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
}

.wa-subtitle {
	font-size: 12.5px;
	line-height: 1.3;
	opacity: 0.85;
	display: flex;
	align-items: center;
	gap: 6px;
}

.wa-subtitle::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #7ef29a;
	flex-shrink: 0;
}

.wa-close {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: background var(--transition);
}

.wa-close svg {
	width: 18px;
	height: 18px;
}

.wa-close:hover {
	background: rgba(255, 255, 255, 0.18);
}

.wa-close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 1px;
}

/* Chat body with WhatsApp-style wallpaper tint. */
.wa-popup-body {
	padding: 20px 16px 12px;
	background-color: var(--wa-chat-bg);
	background-image:
		radial-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
		radial-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px);
	background-size: 22px 22px;
	background-position: 0 0, 11px 11px;
	min-height: 116px;
	max-height: 340px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wa-bubble {
	position: relative;
	max-width: 85%;
	background: #fff;
	border-radius: 0 12px 12px 12px;
	padding: 9px 13px 8px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
	animation: wa-bubble-in 0.4s ease both;
	align-self: flex-start;
}

/* Outgoing (user) bubble — right aligned, WhatsApp light-green. */
.wa-bubble-user {
	align-self: flex-end;
	background: #dcf8c6;
	border-radius: 12px 0 12px 12px;
}

.wa-bubble-user::before {
	left: auto;
	right: -7px;
	border-width: 0 0 9px 8px;
	border-color: transparent transparent transparent #dcf8c6;
}

/* Typing indicator (assistant is composing / streaming placeholder). */
.wa-typing {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 12px 14px;
}

.wa-typing span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #9aa0a6;
	display: inline-block;
	animation: wa-typing-bounce 1.2s infinite ease-in-out both;
}

.wa-typing span:nth-child(2) {
	animation-delay: 0.15s;
}

.wa-typing span:nth-child(3) {
	animation-delay: 0.3s;
}

@keyframes wa-typing-bounce {
	0%, 60%, 100% {
		transform: translateY(0);
		opacity: 0.5;
	}
	30% {
		transform: translateY(-4px);
		opacity: 1;
	}
}

/* Little tail on the incoming bubble. */
.wa-bubble::before {
	content: "";
	position: absolute;
	top: 0;
	left: -7px;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 8px 9px 0;
	border-color: transparent #fff transparent transparent;
}

.wa-bubble-name {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: var(--primary);
	margin-bottom: 2px;
}

.wa-bubble-text {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.45;
	color: var(--dark);
}

@keyframes wa-bubble-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* Footer input row. */
.wa-popup-footer {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	background: #f0f0f0;
}

.wa-input {
	flex: 1;
	min-width: 0;
	border: 1px solid var(--border);
	border-radius: 22px;
	padding: 11px 16px;
	font-family: inherit;
	font-size: 14.5px;
	color: var(--dark);
	background: #fff;
	transition: border-color var(--transition), box-shadow var(--transition);
}

.wa-input:focus {
	outline: none;
	border-color: var(--wa-green);
	box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.18);
}

.wa-send {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--wa-green);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: background var(--transition), transform var(--transition);
}

.wa-send svg {
	width: 20px;
	height: 20px;
	margin-left: 1px;
}

.wa-send:hover {
	background: var(--wa-green-dark);
	transform: scale(1.06);
}

.wa-send:focus-visible {
	outline: 3px solid rgba(37, 211, 102, 0.55);
	outline-offset: 2px;
}

@media (max-width: 480px) {
	.wa-widget {
		right: 16px;
		right: calc(16px + env(safe-area-inset-right, 0px));
		bottom: 16px;
		bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	}
	.wa-launcher {
		width: 56px;
		height: 56px;
	}
	.wa-popup {
		width: calc(100vw - 32px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wa-launcher::after {
		animation: none;
	}
	.wa-bubble {
		animation: none;
	}
	.wa-typing span {
		animation: none;
	}
	.wa-popup,
	.wa-launcher,
	.wa-icon,
	.wa-badge,
	.wa-send {
		transition: none;
	}
}
