/*
Theme Name: Ege Therma Box
Theme URI: https://www.egethermabox.com
Author: Liora 360 Agency
Author URI: https://liora360.com.tr
Description: Ege Therma Box kurumsal teması. Tailwind + Vite, tek renk çizgi ikon sistemi, motion engine, erişilebilir hero slider.
Version: 2.4.3
Requires at least: 6.5
Requires PHP: 8.2
Text Domain: ege-duman
Tags: corporate, industrial, custom-theme
*/

/* 2.4.3 — Liora 360 Agency footer imzası. */

.edg-footer__credit .liora360 {
	--lb-c1: #fff;
	--lb-c2: var(--edg-green-400);
	--lb-ink: var(--edg-blue-200);
	--lb-pill-ink: var(--edg-blue-900);
	display: inline-flex;
	align-items: center;
	gap: 0;
	color: var(--lb-ink);
	font: 500 13px/1.15 "Segoe UI", Tahoma, Verdana, sans-serif;
	letter-spacing: .04em;
	text-decoration: none;
	white-space: nowrap;
	-webkit-tap-highlight-color: transparent;
}

.edg-footer__credit .liora360:focus-visible {
	border-radius: .25rem;
	outline: 2px solid var(--lb-c2);
	outline-offset: 4px;
}

.edg-footer__credit .liora360 .lb-pre,
.edg-footer__credit .liora360 .lb-name {
	display: block;
	overflow: hidden;
	color: inherit;
	font-family: inherit;
	transition: max-width .55s cubic-bezier(.6, 0, .2, 1), opacity .3s ease, margin .55s cubic-bezier(.6, 0, .2, 1);
}

.edg-footer__credit .liora360 .lb-pre {
	max-width: 90px;
	margin-right: 9px;
	font-size: 12px;
	opacity: .72;
	text-align: right;
}

.edg-footer__credit .liora360:hover .lb-pre,
.edg-footer__credit .liora360:focus-visible .lb-pre {
	max-width: 0;
	margin-right: 0;
	opacity: 0;
}

.edg-footer__credit .liora360 .lb-name {
	max-width: 0;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .07em;
	opacity: 0;
}

.edg-footer__credit .liora360:hover .lb-name,
.edg-footer__credit .liora360:focus-visible .lb-name {
	max-width: 110px;
	opacity: 1;
}

.edg-footer__credit .liora360:hover .lb-left,
.edg-footer__credit .liora360:focus-visible .lb-left {
	margin-right: 8px;
}

.edg-footer__credit .liora360:hover .lb-right,
.edg-footer__credit .liora360:focus-visible .lb-right {
	margin-left: 8px;
}

.edg-footer__credit .liora360 .lb-360 {
	position: relative;
	width: 42px;
	height: 22px;
	flex: none;
	color: var(--lb-pill-ink);
	perspective: 420px;
}

.edg-footer__credit .liora360 .lb-pill {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--lb-c1);
	color: var(--lb-pill-ink);
	font-family: inherit;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	transform-style: preserve-3d;
	animation: liora360-tint 5s ease-in-out infinite, liora360-spin 5s cubic-bezier(.7, 0, .2, 1) infinite;
}

.edg-footer__credit .liora360 .lb-ring {
	position: absolute;
	inset: 0;
	border: 1.5px solid var(--lb-c2);
	border-radius: 999px;
	opacity: 0;
	pointer-events: none;
	animation: liora360-ring 5s ease-out infinite;
}

@keyframes liora360-tint {
	0%, 44% { background: var(--lb-c1); }
	62%, 88% { background: var(--lb-c2); }
	100% { background: var(--lb-c1); }
}

@keyframes liora360-spin {
	0%, 44% { transform: rotateY(0); }
	82%, 100% { transform: rotateY(360deg); }
}

@keyframes liora360-ring {
	0%, 40% { transform: scale(1); opacity: 0; }
	52% { opacity: .55; }
	100% { transform: scale(1.75); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.edg-footer__credit .liora360 .lb-pill,
	.edg-footer__credit .liora360 .lb-ring {
		animation: none;
	}
}

/* 2.4.2 — blog kapak görseli ve görünürlük güvenilirliği. */

/*
 * Kırpma animasyonu IntersectionObserver tarafından sıfır alan olarak
 * algılanabildiği için bazı görseller görünmeden kalıyordu. İçerik görselleri
 * JavaScript'e bağlı olmadan her koşulda görünür tutulur.
 */
.edg-mask {
	clip-path: none;
}

/* 2.4.1 — ürün, kurumsal, fabrika ve proje sayfası iyileştirmeleri. */
.edg-product-visual--studio {
	position: relative;
	overflow: hidden;
	padding: clamp(1rem, 2.5vw, 2rem);
	border: 1px solid var(--edg-blue-100);
	border-radius: 1.75rem;
	background:
		radial-gradient(circle at 85% 15%, rgba(52, 180, 2, .10), transparent 28%),
		linear-gradient(135deg, #fff 0%, var(--edg-blue-50) 58%, #eef8eb 100%);
	box-shadow: 0 20px 55px rgba(2, 79, 137, .12);
}

.edg-product-visual--studio::before,
.edg-product-visual--studio::after {
	content: "";
	position: absolute;
	pointer-events: none;
}

.edg-product-visual--studio::before {
	inset: 0;
	background-image: linear-gradient(rgba(2, 79, 137, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(2, 79, 137, .045) 1px, transparent 1px);
	background-size: 52px 52px;
}

.edg-product-visual--studio::after {
	width: 13rem;
	height: 13rem;
	right: -5rem;
	top: -6rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, .55);
}

.edg-product-visual--studio img {
	position: relative;
	z-index: 1;
	filter: drop-shadow(0 20px 24px rgba(1, 48, 84, .13));
}

.edg-product-detail-visual {
	position: relative;
	overflow: hidden;
	min-height: 22rem;
	margin: 0;
	border: 1px solid var(--edg-line);
	border-radius: 1.5rem;
	background: linear-gradient(145deg, #fff, var(--edg-blue-50));
	box-shadow: 0 14px 42px rgba(2, 79, 137, .09);
}

.edg-product-detail-visual img {
	width: 100%;
	height: 100%;
	min-height: 22rem;
	object-fit: cover;
}

.edg-product-detail-visual figcaption,
.edg-factory-mosaic figcaption {
	position: absolute;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	display: flex;
	flex-direction: column;
	gap: .2rem;
	padding: .9rem 1rem;
	border: 1px solid rgba(255, 255, 255, .48);
	border-radius: 1rem;
	background: rgba(1, 48, 84, .88);
	color: #fff;
	box-shadow: 0 10px 35px rgba(1, 33, 57, .22);
	backdrop-filter: blur(10px);
}

.edg-product-detail-visual figcaption strong,
.edg-factory-mosaic figcaption strong {
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	font-size: .92rem;
}

.edg-product-detail-visual figcaption span,
.edg-factory-mosaic figcaption span {
	font-size: .78rem;
	color: var(--edg-blue-100);
}

.edg-product-spec-section {
	padding-top: clamp(2.5rem, 5vw, 4.5rem);
}

.edg-spec-visual {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	min-height: 100%;
	border: 1px solid var(--edg-line);
	border-radius: 1.75rem;
	background: linear-gradient(145deg, #fff, var(--edg-blue-50));
	box-shadow: 0 12px 38px rgba(2, 79, 137, .08);
}

.edg-spec-visual__media {
	min-height: 24rem;
	padding: clamp(1rem, 2vw, 1.75rem);
}

.edg-spec-visual__media img {
	width: 100%;
	height: 100%;
	min-height: 22rem;
	object-fit: contain;
}

.edg-spec-visual__caption {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	margin-top: auto;
	padding: 1.25rem;
	border-top: 1px solid var(--edg-line);
	background: rgba(255, 255, 255, .88);
}

.edg-spec-visual__caption strong {
	display: block;
	margin-bottom: .25rem;
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	font-size: .95rem;
	color: var(--edg-ink);
}

.edg-spec-visual__caption p {
	font-size: .84rem;
	line-height: 1.6;
}

.edg-application-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: start;
}

.edg-product-promo {
	position: sticky;
	top: calc(var(--edg-header-h) + 1.5rem);
	display: block;
	overflow: hidden;
	border: 1px solid var(--edg-blue-200);
	border-radius: 1.5rem;
	box-shadow: 0 20px 55px rgba(2, 79, 137, .18);
}

.edg-product-promo img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform .45s var(--edg-ease-out);
}

.edg-product-promo:hover img {
	transform: scale(1.018);
}

.edg-about-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.edg-about-gallery figure {
	position: relative;
	overflow: hidden;
	min-height: 13rem;
	margin: 0;
	border: 1px solid var(--edg-line);
	border-radius: 1.25rem;
	background: var(--edg-blue-50);
}

.edg-about-gallery__wide {
	grid-column: 1 / -1;
	min-height: 19rem !important;
}

.edg-about-gallery img {
	width: 100%;
	height: 100%;
	min-height: inherit;
	object-fit: cover;
}

.edg-about-gallery figcaption {
	position: absolute;
	left: .75rem;
	right: .75rem;
	bottom: .75rem;
	padding: .65rem .8rem;
	border-radius: .8rem;
	background: rgba(1, 48, 84, .86);
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	font-size: .78rem;
	font-weight: 700;
	color: #fff;
	backdrop-filter: blur(8px);
}

.edg-factory-mosaic {
	display: grid;
	grid-template-columns: 1.25fr .75fr;
	grid-template-rows: repeat(2, minmax(15rem, 1fr));
	gap: 1.25rem;
}

.edg-factory-mosaic figure {
	position: relative;
	overflow: hidden;
	min-height: 15rem;
	margin: 0;
	border: 1px solid var(--edg-line);
	border-radius: 1.5rem;
	background: #fff;
}

.edg-factory-mosaic__hero {
	grid-row: 1 / 3;
}

.edg-factory-mosaic img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .55s var(--edg-ease-out);
}

.edg-factory-mosaic figure:hover img {
	transform: scale(1.025);
}

.edg-factory-process {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.edg-factory-process__item {
	position: relative;
	padding: 1.5rem;
	border: 1px solid var(--edg-line);
	border-radius: 1.25rem;
	background: linear-gradient(145deg, #fff, var(--edg-blue-50));
}

.edg-factory-process__number {
	position: absolute;
	top: 1rem;
	right: 1rem;
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--edg-blue-200);
}

.edg-factory-process__item h3 {
	margin-top: 1.2rem;
	font-size: 1rem;
	font-weight: 750;
}

.edg-factory-process__item p {
	margin-top: .65rem;
	font-size: .84rem;
	line-height: 1.65;
}

.edg-project-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

.edg-project-grid > article {
	height: 100%;
}

@media (max-width: 1023px) {
	.edg-application-layout,
	.edg-factory-process {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.edg-product-promo {
		position: relative;
		top: auto;
		max-width: 24rem;
		margin-inline: auto;
	}

	.edg-project-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 639px) {
	.edg-application-layout,
	.edg-factory-mosaic,
	.edg-factory-process,
	.edg-project-grid {
		grid-template-columns: 1fr;
	}

	.edg-factory-mosaic {
		grid-template-rows: auto;
	}

	.edg-factory-mosaic__hero {
		grid-row: auto;
	}

	.edg-factory-mosaic figure,
	.edg-factory-mosaic__hero {
		min-height: 18rem;
	}

	.edg-about-gallery {
		grid-template-columns: 1fr;
	}

	.edg-about-gallery__wide {
		grid-column: auto;
	}
}
