/*
Theme Name: Combitek
Theme URI: https://combitek.com/
Author: Combitek
Author URI: https://combitek.com/
Description: Custom WordPress theme for the Combitek CodeIgniter to WordPress migration.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: combitek
Domain Path: /languages
*/

:root {
	--combitek-color-primary: #005aa9;
	--combitek-color-accent: #f2b705;
	--combitek-color-text: #1e2933;
	--combitek-color-muted: #65758b;
	--combitek-color-border: #d9e2ec;
	--combitek-color-surface: #ffffff;
	--combitek-color-background: #f5f7fa;
	--combitek-font-base: Arial, Helvetica, sans-serif;
	--combitek-layout-width: 1170px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--combitek-color-background);
	color: var(--combitek-color-text);
	font-family: var(--combitek-font-base);
	font-size: 16px;
	line-height: 1.6;
}

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

a:hover,
a:focus {
	text-decoration: underline;
}

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

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

.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-header {
	background: var(--combitek-color-surface);
	border-bottom: 1px solid var(--combitek-color-border);
}

.site-header__inner,
.site-main,
.site-footer__inner {
	width: min(100% - 32px, var(--combitek-layout-width));
	margin: 0 auto;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 18px 0;
}

.site-branding {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.site-title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
}

.site-description {
	margin: 0;
	color: var(--combitek-color-muted);
	font-size: 14px;
}

.primary-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-menu a {
	color: var(--combitek-color-text);
	font-weight: 600;
}

.site-main {
	flex: 1;
	padding: 40px 0;
}

.site-footer {
	background: #17212b;
	color: #d9e2ec;
}

.site-footer__inner {
	padding: 24px 0;
}

.site-footer a {
	color: #ffffff;
}

.page-header,
.entry-header {
	margin-bottom: 24px;
}

.entry-title {
	margin: 0;
	font-size: 32px;
	line-height: 1.25;
}

.entry-content {
	background: var(--combitek-color-surface);
	border: 1px solid var(--combitek-color-border);
	border-radius: 6px;
	padding: 24px;
}

@media (max-width: 768px) {
	.site-header__inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.primary-menu {
		gap: 12px;
	}

	.entry-title {
		font-size: 26px;
	}
}

.combitek-technology-archive {
	background: #f7f9fc;
	padding: 60px 0;
}

.combitek-technology-archive .items {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.combitek-technology-archive .item {
	min-height: 260px;
}

.combitek-technology-archive .item.special {
	grid-column: span 2;
	grid-row: span 2;
}

.combitek-technology-archive .wrap {
	background: #ffffff;
	border: 1px solid #d9e4ff;
	border-radius: 8px;
	color: #222b45;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	position: relative;
}

.combitek-technology-archive .wrap:hover {
	box-shadow: 0 16px 42px rgba(34, 43, 69, 0.14);
	text-decoration: none;
}

.combitek-technology-archive .wrap img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
	width: 100%;
}

.combitek-technology-archive .desc {
	padding: 18px 20px;
}

.combitek-technology-archive h2 {
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0;
}

.combitek-technology-archive p {
	color: #65758b;
	margin: 12px 0 0;
}

.combitek-technology-archive .hide {
	display: none;
}

.combitek-technology-archive .section-readmore {
	margin-top: 32px;
	text-align: center;
}

.combitek-empty-state {
	background: #ffffff;
	border: 1px solid #d9e4ff;
	border-radius: 8px;
	padding: 24px;
}

.combitek-technology-detail .product-gallery {
	background: #f7f9fc;
	padding: 60px 0;
}

.combitek-technology-detail .product-media,
.combitek-technology-detail .gallery-desc,
.combitek-solution-detail .product-media,
.combitek-solution-detail .gallery-desc,
.combitek-content-detail .entry-content {
	background: #ffffff;
	border: 1px solid #d9e4ff;
	border-radius: 8px;
	padding: 24px;
}

.combitek-solution-detail .product-gallery {
	background: #ffffff;
	padding: 62px 0 48px;
}

.combitek-solution-detail .product-media,
.combitek-solution-detail .gallery-desc {
	border: 0;
	border-radius: 0;
	padding: 0;
}

.combitek-technology-detail .photos .wrap {
	align-items: center;
	background: #f7f9fc;
	display: flex;
	justify-content: center;
	min-height: 360px;
}

.combitek-solution-detail .photos .wrap {
	align-items: center;
	background: #ffffff;
	display: flex;
	height: 330px;
	justify-content: center;
}

.combitek-solution-detail .photos .wrap img,
.combitek-solution-detail .photos .wrap .videoplayer {
	display: block;
	height: 100%;
	max-width: 100%;
	object-fit: contain;
	width: 100%;
}

.combitek-technology-detail .photo-thumbs {
	margin-top: 16px;
}

.combitek-solution-detail .photo-thumbs {
	margin-top: 22px;
	max-width: 430px;
}

.combitek-technology-detail .photo-thumbs .item {
	border: 1px solid #d9e4ff;
	cursor: pointer;
	height: 96px;
	overflow: hidden;
}

.combitek-solution-detail .photo-thumbs .item {
	border: 0;
	border-bottom: 3px solid transparent;
	cursor: pointer;
	height: 72px;
	overflow: hidden;
	padding-bottom: 8px;
}

.combitek-solution-detail .photo-thumbs .item.active {
	border-color: #ff2e73;
}

.combitek-technology-detail .photo-thumbs img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.combitek-solution-detail .photo-thumbs img {
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.combitek-solution-detail .gallery-desc {
	padding-top: 8px;
}

.combitek-solution-detail .gallery-desc .section-title {
	margin-bottom: 24px;
}

.combitek-solution-detail .gallery-desc .desc {
	color: #24314d;
	font-size: 1.5rem;
	line-height: 1.7;
	margin-bottom: 24px;
}

.solution-benefits {
	border-bottom: 1px solid #e2e8f4;
	list-style: none;
	margin: 0 0 18px;
	padding: 0 0 18px;
}

.solution-benefits li {
	align-items: center;
	color: #24314d;
	display: flex;
	font-size: 1.8rem;
	font-weight: 700;
	gap: 16px;
	margin: 12px 0;
}

.benefit-icon {
	border-radius: 50%;
	display: inline-block;
	flex: 0 0 12px;
	height: 12px;
	width: 12px;
}

.benefit-tech {
	background: #ff7a1a;
}

.benefit-solution {
	background: #0aa6c2;
}

.benefit-energy {
	background: #f0b429;
}

.solution-share {
	align-items: center;
	border-bottom: 1px solid #e2e8f4;
	color: #8c98ad;
	display: flex;
	font-size: 1.4rem;
	font-weight: 700;
	gap: 14px;
	padding: 0 0 20px;
	text-transform: uppercase;
}

.solution-share a {
	color: #8c98ad;
	font-size: 1.8rem;
	text-decoration: none;
}

.combitek-content-detail {
	padding: 40px 0 70px;
}

.combitek-content-detail .entry-content img {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.combitek-article-toc {
	background: #f7f9fc;
	border: 1px solid #d9e4ff;
	border-radius: 8px;
	margin: 0 0 28px;
	padding: 18px 20px;
	position: relative;
}

.combitek-article-toc__header {
	align-items: center;
	display: flex;
	gap: 16px;
	justify-content: flex-start;
	margin: 0 0 12px;
	padding-right: 34px;
}

.combitek-article-toc__title {
	color: #17212b;
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0;
}

.combitek-article-toc__toggle {
	align-items: center;
	background: #ffffff;
	border: 0;
	border-radius: 4px;
	box-shadow: 0 0 0 1px #d9e4ff;
	color: var(--combitek-color-primary);
	cursor: pointer;
	display: inline-flex;
	height: 28px;
	justify-content: center;
	padding: 0;
	position: absolute;
	right: 16px;
	top: 16px;
	width: 28px;
}

.combitek-article-toc__toggle:hover {
	box-shadow: 0 0 0 1px var(--combitek-color-primary);
}

.combitek-article-toc__toggle::before {
	border-color: transparent transparent currentColor;
	border-style: solid;
	border-width: 0 5px 6px;
	content: "";
	display: block;
	transition: transform 0.2s ease;
}

.combitek-article-toc.is-collapsed .combitek-article-toc__toggle::before {
	transform: rotate(180deg);
}

.combitek-article-toc__list {
	counter-reset: combitek-toc-parent;
	list-style: none !important;
	margin: 0;
	padding-left: 0;
}

.combitek-article-toc__item {
	color: #38506b;
	list-style: none !important;
	line-height: 1.45;
	margin: 8px 0;
	padding-left: 28px;
	position: relative;
}

.combitek-article-toc__item::before {
	left: 0;
	position: absolute;
	top: 0;
}

.combitek-article-toc__item--parent {
	counter-increment: combitek-toc-parent;
}

.combitek-article-toc__item--parent::before {
	content: counter(combitek-toc-parent) ".";
}

.combitek-article-toc__item--h3 {
	margin-left: 28px;
}

.combitek-article-toc__item--child::before {
	content: "•";
}

.combitek-article-toc.is-collapsed .combitek-article-toc__item--child {
	display: none;
}

.combitek-article-toc__item--h4,
.combitek-article-toc__item--h5,
.combitek-article-toc__item--h6 {
	margin-left: 44px;
}

.combitek-article-toc__item a {
	color: inherit;
	text-decoration: none;
}

.combitek-article-toc__item a:hover {
	color: var(--combitek-color-primary);
	text-decoration: underline;
}

.combitek-toc-anchor,
.combitek-content-detail .entry-content h2,
.combitek-content-detail .entry-content h3,
.combitek-content-detail .entry-content h4,
.combitek-content-detail .entry-content h5,
.combitek-content-detail .entry-content h6 {
	scroll-margin-top: 96px;
}

.combitek-technology-detail .product-media,
.combitek-technology-detail .gallery-desc {
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0;
}

.combitek-technology-detail .product-gallery .feature-list {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
}

.combitek-technology-detail .product-gallery .feature-list li {
	align-items: center;
	color: #222b45;
	display: flex;
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.35;
	margin: 0 0 10px;
}

.combitek-technology-detail .product-gallery .feature-list li::before {
	color: #222b45;
	content: "•";
	display: inline-block;
	font-size: 1.4rem;
	line-height: 1;
	margin: 0 10px 0 0;
}

.combitek-technology-detail .product-gallery .feature-list li img {
	display: block;
	height: 18px;
	margin: 0 12px 0 0;
	width: 18px;
}

.combitek-software-archive {
	background: #f7f9fc;
	padding: 60px 0;
}

.combitek-software-archive .section-title {
	margin-bottom: 44px;
}

.combitek-software-archive .box-software b a {
	color: #222b45;
}

.combitek-software-archive .box-software b a:hover {
	color: #ff3d71;
	text-decoration: none;
}

.combitek-detail-hero {
	background: #f7f9fc;
	padding: 60px 0;
}

.combitek-detail-grid {
	display: grid;
	gap: 32px;
	grid-template-columns: minmax(220px, 360px) 1fr;
}

.combitek-detail-media,
.combitek-detail-summary,
.combitek-download-item {
	background: #ffffff;
	border: 1px solid #d9e4ff;
	border-radius: 8px;
}

.combitek-detail-media {
	align-items: center;
	display: flex;
	justify-content: center;
	min-height: 320px;
	padding: 36px;
}

.combitek-detail-media img {
	max-height: 260px;
	object-fit: contain;
}

.combitek-detail-summary {
	padding: 34px;
}

.combitek-kicker {
	color: #ff3d71;
	font-weight: 700;
	letter-spacing: 0;
	margin: 0 0 10px;
}

.combitek-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

.combitek-downloads {
	padding: 44px 0 0;
}

.combitek-download-list {
	display: grid;
	gap: 16px;
}

.combitek-download-item {
	align-items: center;
	display: flex;
	gap: 20px;
	justify-content: space-between;
	padding: 18px 22px;
}

.combitek-download-item strong {
	color: #222b45;
}

.combitek-download-item p {
	color: #65758b;
	margin: 4px 0 0;
}

.combitek-download-item span {
	background: #f7f9fc;
	border: 1px solid #d9e4ff;
	border-radius: 999px;
	color: #005aa9;
	font-size: 0.85rem;
	font-weight: 700;
	padding: 4px 10px;
}

.combitek-card-archive {
	background: #f7f9fc;
	padding: 60px 0;
}

.combitek-card-archive .section-title {
	margin-bottom: 44px;
}

.combitek-card-grid {
	display: grid;
	gap: 28px 24px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.combitek-card {
	background: #ffffff;
	border: 1px solid #d9e4ff;
	border-radius: 8px;
	overflow: hidden;
	padding: 18px;
}

.combitek-card .img {
	align-items: center;
	background: #f7f9fc;
	display: flex;
	justify-content: center;
	min-height: 190px;
}

.combitek-card .img img {
	aspect-ratio: 1 / 1;
	object-fit: contain;
	width: 100%;
}

.combitek-card .desc {
	padding-top: 16px;
}

.combitek-card h2 {
	font-size: 1.15rem;
	line-height: 1.35;
	margin: 14px 0 6px;
}

.combitek-partner-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.combitek-partner-card {
	text-align: center;
}

.combitek-partner-logo {
	align-items: center;
	background: #ffffff;
	display: flex;
	height: 120px;
	justify-content: center;
}

.combitek-partner-logo img {
	max-height: 90px;
	object-fit: contain;
}

.combitek-card-link {
	color: #ff3d71;
	font-weight: 700;
}

@media (max-width: 991.98px) {
	.combitek-technology-archive .items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.combitek-technology-archive .item.special {
		grid-column: span 2;
		grid-row: span 1;
	}

	.combitek-detail-grid {
		grid-template-columns: 1fr;
	}

	.combitek-card-grid,
	.combitek-partner-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575.98px) {
	.combitek-technology-archive {
		padding: 40px 0;
	}

	.combitek-technology-archive .items {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.combitek-technology-archive .item.special {
		grid-column: span 1;
	}

	.combitek-card-grid,
	.combitek-partner-grid {
		grid-template-columns: 1fr;
	}
}

/* Knowledge Page */
#bp_knowledge {
	padding: 34px 0 70px;
}

.combitek-knowledge-page {
	background: #ffffff;
}

.knowledge-hero,
.knowledge-stream-card {
	overflow: hidden;
}

.knowledge-hero {
	margin: 0 auto 24px;
	max-width: 1014px;
	position: relative;
}

.knowledge-media,
.knowledge-stream-media {
	background: #e4e9f2;
	display: block;
	overflow: hidden;
	position: relative;
}

.knowledge-hero .knowledge-media {
	aspect-ratio: 1014 / 466;
}

.knowledge-hero .knowledge-media::after {
	background: linear-gradient(to bottom, rgba(0, 0, 0, .04) 35%, rgba(0, 0, 0, .72) 100%);
	bottom: 0;
	content: "";
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
	z-index: 1;
}

.knowledge-media img,
.knowledge-stream-media img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform .28s ease;
	width: 100%;
}

.knowledge-hero:hover img,
.knowledge-stream-card:hover img {
	transform: scale(1.04);
}

.knowledge-copy {
	bottom: 34px;
	left: 40px;
	max-width: 760px;
	padding-right: 28px;
	position: absolute;
	z-index: 2;
}

.knowledge-copy h2 {
	font-size: 3rem;
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 8px;
}

.knowledge-copy h2 a {
	color: #ffffff;
}

.knowledge-copy h2 a:hover {
	color: #ffffff;
	text-decoration: none;
}

.knowledge-copy .meta {
	color: #ffffff;
	font-size: 1.2rem;
	font-weight: 500;
	margin: 0;
}

.knowledge-stream {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0 auto;
	max-width: 1014px;
}

.knowledge-stream-card {
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.knowledge-stream-media {
	aspect-ratio: 16 / 10;
}

.knowledge-stream-copy {
	padding: 14px 0 0;
}

.knowledge-stream-copy h3 {
	font-size: 2rem;
	font-weight: 800;
	line-height: 1.28;
	margin: 0 0 8px;
}

.knowledge-stream-card h3 a {
	color: #222b45;
}

.knowledge-stream-card h3 a:hover {
	color: #ff3d71;
	text-decoration: none;
}

.knowledge-stream-card p {
	color: #65758b;
	line-height: 1.55;
	margin: 0;
}

.knowledge-stream-copy .meta {
	color: #8f9bb2;
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 8px;
	text-transform: uppercase;
}

.combitek-knowledge-page .hide {
	display: none;
}

.combitek-knowledge-page .section-readmore {
	margin-top: 34px;
	text-align: center;
}

@media (max-width: 991.98px) {
	.knowledge-hero,
	.knowledge-stream {
		max-width: 100%;
	}

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

@media (max-width: 575.98px) {
	.knowledge-copy {
		bottom: 20px;
		left: 20px;
		padding-right: 20px;
	}

	.knowledge-copy h2 {
		font-size: 2.4rem;
	}

	.knowledge-stream {
		grid-template-columns: 1fr;
	}
}

/* Solutions Page */
.combitek-solutions-page .section-intro {
	margin-bottom: 40px;
	text-align: center;
	color: #65758b;
	font-size: 1.6rem;
}

.solutions-grid {
	margin-top: 30px;
}

.solution-card {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 30px;
	transition: transform 0.3s, box-shadow 0.3s;
}

.solution-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.solution-media {
	display: block;
	overflow: hidden;
	height: 200px;
}

.solution-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.solution-card:hover .solution-media img {
	transform: scale(1.05);
}

.solution-content {
	padding: 20px;
}

.solution-content h3 {
	font-size: 1.8rem;
	margin: 0 0 12px;
}

.solution-content h3 a {
	color: #1a2332;
	text-decoration: none;
}

.solution-content h3 a:hover {
	color: #0066cc;
}

.solution-content p {
	color: #65758b;
	line-height: 1.6;
	margin-bottom: 15px;
}

.solution-content .btn-link {
	color: #0066cc;
	text-decoration: none;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.solution-content .btn-link:hover {
	text-decoration: underline;
}

/* Google Maps */
#google_map {
	padding-bottom: 0;
	margin-bottom: 20px;
}

#google_map iframe {
	display: block;
}
