/*
 * Global UI layer
 * Loads after the legacy bundle and centralizes reusable template styling.
 */
:root {
	--ui-blue-900: #1b2556;
	--ui-blue-700: #2f5fa8;
	--ui-blue-600: #4f7fc7;
	--ui-teal-600: #3f73bd;
	--ui-teal-100: #eef3ff;
	--ui-gold-200: #dbe7ff;
	--ui-ink: #172033;
	--ui-muted: #5f6b7a;
	--ui-soft: #f7f9fc;
	--ui-surface: #fff;
	--ui-line: #dfe6ee;
	--ui-shadow-sm: 0 10px 24px rgba(23, 32, 51, .08);
	--ui-shadow-md: 0 18px 46px rgba(23, 32, 51, .12);
	--ui-shadow-lg: 0 24px 60px rgba(47, 95, 168, .18);
	--ui-radius: 8px;
	--ui-header-gradient: radial-gradient(circle at 72% 16%, rgba(255, 255, 255, .28), transparent 31%), linear-gradient(135deg, #1b2556 0%, #2f5fa8 58%, #6ea2e8 100%);
}

html { scroll-behavior: smooth; }
body { background: var(--ui-soft); color: var(--ui-ink); font-size: 17px; line-height: 1.65; }
@media (min-width: 1200px) { .container { max-width: 1320px; } }
body, button, input, select, textarea { letter-spacing: 0; }
img { max-width: 100%; }
a { text-decoration: none; }
a:focus, button:focus, input:focus, textarea:focus, select:focus { outline: 3px solid rgba(219, 231, 255, .9) !important; outline-offset: 3px; }
p { color: var(--ui-muted); font-size: 17px; line-height: 1.65; }

#header-wrapper { background: var(--ui-header-gradient); overflow: hidden; }
#header-wrapper .banner-wrapper { padding: 64px 0 44px; }
#header-wrapper .banner-wrapper .sub-banner-content { margin: 72px 0; }
#header-wrapper .banner-wrapper .sub-banner-content h1,
#header-wrapper .banner-wrapper .banner-content {
	color: #fff;
	font-size: clamp(38px, 5vw, 68px);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.12;
	text-transform: none;
}

.sticky-header,
.sm-sticky-header {
	background: rgba(47, 95, 168, .96);
	backdrop-filter: blur(12px);
}

.sticky-header.fixed {
	background: rgba(47, 95, 168, .96) !important;
	box-shadow: 0 12px 30px rgba(47, 95, 168, .2);
	border-radius: var(--ui-radius);
	left: 50%;
	max-width: 1320px;
	top: 14px;
	transform: translateX(-50%);
	width: calc(100% - 40px);
}

.header-nav { padding: 14px 0; }
.header-nav .navbar-brand img,
.sm-sticky-header .navbar-brand img { max-height: 58px; width: auto; }

.header-nav .navbar .navbar-collapse .navbar-nav,
.header-nav .navbar .m-navbar-collapse .navbar-nav {
	align-items: center;
	gap: 6px;
}

.header-nav .navbar .navbar-collapse .navbar-nav .nav-link,
.header-nav .navbar .m-navbar-collapse .navbar-nav .nav-link {
	border-radius: 999px;
	color: rgba(255, 255, 255, .9);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	padding: 10px 15px;
}

.header-nav .navbar .navbar-collapse .navbar-nav .nav-link:hover,
.header-nav .navbar .navbar-collapse .navbar-nav .nav-link.active,
.header-nav .navbar .m-navbar-collapse .navbar-nav .nav-link:hover,
.header-nav .navbar .m-navbar-collapse .navbar-nav .nav-link.active {
	background: rgba(255, 255, 255, .16);
	color: #fff;
}

.header-nav .navbar .navbar-collapse .navbar-nav .nav-link.nav-cta,
.header-nav .navbar .m-navbar-collapse .navbar-nav .nav-link.nav-cta {
	background: #fff;
	color: var(--ui-blue-700) !important;
	box-shadow: 0 10px 22px rgba(47, 95, 168, .22);
}

.breadcrumbs-section { color: var(--ui-gold-200); font-weight: 700; letter-spacing: 0; }
.breadcrumbs-section .breadcrumb-item { color: rgba(255, 255, 255, .82); }
.breadcrumbs-section .breadcrumb-item.active,
.breadcrumbs-section .breadcrumb-item:hover { color: var(--ui-gold-200); }

.section,
#container-wrapper > div,
#container-wrapper > section { position: relative; }

.section-title {
	color: var(--ui-blue-900);
	font-size: clamp(30px, 3vw, 44px);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.2;
	text-transform: none !important;
}

.section-eyebrow {
	color: var(--ui-teal-600);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0;
	margin-bottom: 10px;
	text-transform: uppercase;
}

.default-btn,
.secondary-btn,
.products-btn,
.single-products-btn,
.btn-site,
.contactform-submit {
	align-items: center;
	border-radius: 999px !important;
	display: inline-flex;
	font-size: 15px;
	font-weight: 700 !important;
	justify-content: center;
	letter-spacing: 0;
	line-height: 1.2;
	min-height: 48px;
	min-width: 170px;
	padding: 12px 24px !important;
	text-align: center;
	text-transform: uppercase;
	transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease, color .22s ease;
	width: auto;
}

.default-btn,
.btn-site,
.products-btn,
.single-products-btn,
.contactform-submit {
	background: var(--ui-blue-700) !important;
	border-color: var(--ui-blue-700) !important;
	color: #fff !important;
	box-shadow: var(--ui-shadow-sm);
}

.default-btn:hover,
.btn-site:hover,
.products-btn:hover,
.single-products-btn:hover,
.contactform-submit:hover {
	background: var(--ui-blue-900) !important;
	border-color: var(--ui-blue-900) !important;
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: var(--ui-shadow-md);
}

.secondary-btn { background: transparent; border: 1px solid rgba(255,255,255,.72); color: #fff; }
.secondary-btn:hover { background: rgba(255,255,255,.14); color: #fff; }
.hero-kicker { color: #eef3ff; font-size: 14px; font-weight: 800; margin-bottom: 16px; text-transform: uppercase; }
.hero-copy { color: rgba(255,255,255,.9); font-size: 20px; line-height: 1.65; max-width: 640px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-actions .default-btn { background: #fff !important; border-color: #fff !important; color: var(--ui-blue-900) !important; }
.hero-product-frame { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.36); border-radius: var(--ui-radius); box-shadow: var(--ui-shadow-lg); padding: 26px; }
.hero-product-frame img { display: block; filter: drop-shadow(0 18px 24px rgba(47, 95, 168, .24)); margin: 0 auto; }

#container-wrapper .home-about-section,
#container-wrapper .missionvision-section,
#container-wrapper .values-section,
#container-wrapper .products-section,
#container-wrapper .services-section,
#container-wrapper .career-section,
#container-wrapper .contact-section { margin: 0; padding: 64px 0 84px; }

#container-wrapper .home-about-section .section-title,
#container-wrapper .missionvision-section .section-title,
#container-wrapper .values-section .section-title,
#container-wrapper .products-section .section-title,
#container-wrapper .services-section .section-title,
#container-wrapper .career-section .section-title,
#container-wrapper .contact-section .section-title { margin: 0 auto 48px; max-width: 820px; }

.home-story-image,
#container-wrapper .ourstory-section img,
#container-wrapper .services-section img { border-radius: var(--ui-radius); box-shadow: var(--ui-shadow-md); }

.story-panel,
.missionvision-container,
.values-container,
.product-container,
.single-product,
.info-container,
.jobpost-container {
	background: var(--ui-surface) !important;
	border: 1px solid var(--ui-line);
	border-radius: var(--ui-radius) !important;
	box-shadow: var(--ui-shadow-sm);
	color: var(--ui-ink);
}

.story-panel,
.missionvision-container,
.values-container,
.product-container,
.single-product,
.info-container { padding: 28px !important; }

.missionvision-container,
.values-container { height: 100%; min-height: 0 !important; }

#container-wrapper .values-section .row {
	align-items: stretch !important;
}

#container-wrapper .values-section .row > .col-lg-4 {
	display: flex;
	margin-bottom: 0;
	padding-bottom: 30px;
}

#container-wrapper .values-section .values-container {
	align-items: center;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	height: 100% !important;
	justify-content: flex-start;
	min-height: 270px !important;
	text-align: center;
	width: 100%;
}

#container-wrapper .values-section .values-container img {
	display: block;
	height: 88px;
	margin: 0 auto 20px !important;
	object-fit: contain;
	width: 88px;
}

#container-wrapper .values-section .values-container br {
	display: none;
}

#container-wrapper .values-section .values-container span {
	align-items: center;
	display: flex !important;
	justify-content: center;
	min-height: 2.5em;
	text-align: center;
}

#container-wrapper .values-section .values-container p {
	flex: 1 1 auto;
	margin-top: 12px !important;
	max-width: 300px;
	text-align: center;
}

.missionvision-card {
	align-items: stretch;
	display: flex;
	gap: 34px;
	text-align: left;
}

.missionvision-copy {
	flex: 1 1 auto;
	min-width: 0;
	padding: 4px 0;
}

.missionvision-copy p {
	text-align: left !important;
}

.missionvision-image {
	align-items: center;
	background: var(--ui-teal-100);
	border-radius: var(--ui-radius);
	display: flex;
	flex: 0 0 250px;
	justify-content: center;
	min-height: 260px;
	padding: 32px;
}

.missionvision-image img {
	display: block;
	height: 150px;
	margin: 0 auto;
	object-fit: contain;
	width: 150px;
}

.missionvision-container span,
.values-container span,
.product-container span,
.single-product span,
.info-container span {
	color: var(--ui-blue-900) !important;
	display: block;
	font-weight: 700 !important;
	letter-spacing: 0;
	line-height: 1.25;
}

.missionvision-container p,
.values-container p,
.product-container p,
.single-product p,
.info-container p {
	color: var(--ui-muted) !important;
	font-size: 16px !important;
	line-height: 1.58 !important;
	margin: 16px 0 0;
}

#container-wrapper .ourproducts-section,
#container-wrapper .ourstory-section {
	background: linear-gradient(rgba(27, 37, 86, .9), rgba(47, 95, 168, .86)), url("../images/content-bg.jpg") center no-repeat;
	background-size: cover;
	color: #fff;
}

#container-wrapper .ourproducts-section .section-title,
#container-wrapper .ourstory-section .section-title { color: #fff; }
#container-wrapper .ourproducts-section .section-eyebrow { color: #dbe7ff; }
#container-wrapper .ourproducts-section .products-home-container { padding-bottom: 28px; padding-top: 28px; }

#container-wrapper .ourproducts-section .product-container,
#container-wrapper .products-section .product-container,
#container-wrapper .products-section .single-product {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	text-align: center;
	text-decoration: none;
	transition: transform .22s ease, box-shadow .22s ease;
}

#container-wrapper .ourproducts-section .product-container:hover,
#container-wrapper .products-section .product-container:hover,
#container-wrapper .products-section .single-product:hover {
	color: var(--ui-ink);
	transform: translateY(-5px);
	box-shadow: var(--ui-shadow-md);
}

#container-wrapper .ourproducts-section .product-container img,
#container-wrapper .products-section .product-container img,
#container-wrapper .products-section .single-product img { height: 180px; object-fit: contain; width: 100%; }

#container-wrapper .ourproducts-section .products-btn,
#container-wrapper .products-section .products-btn,
#container-wrapper .products-section .single-products-btn { margin: auto auto 0; }

.contact-section .bc-gray { background: #eef3ff !important; }
.contact-section iframe { border-radius: var(--ui-radius); box-shadow: var(--ui-shadow-sm); }
.contactform-field { border: 1px solid var(--ui-line) !important; border-radius: var(--ui-radius); color: var(--ui-ink) !important; min-height: 48px; padding: 12px 14px !important; }
textarea.contactform-field { min-height: 150px; }

.footer-border { border-top: 1px solid var(--ui-line); }
#footer-wrapper { background: var(--ui-surface); color: var(--ui-muted); }
#footer-wrapper a { color: var(--ui-muted); }
#footer-wrapper a:hover { color: var(--ui-blue-700); }
#footer-wrapper .bottom-footer { background: var(--ui-blue-900); }
#to-top { background: var(--ui-blue-700); box-shadow: var(--ui-shadow-sm); }
#to-top:hover { background: var(--ui-blue-900); }

#container-wrapper .products-section .row > [class*="col-"] { display: flex; flex-direction: column; padding-bottom: 24px; }
#container-wrapper .products-section .product-container { flex: 1 1 auto; }
#container-wrapper .products-section .single-product { flex: 1 1 auto; justify-content: flex-start; margin-bottom: 0 !important; height: auto !important; min-height: 320px; }
#container-wrapper .products-section .product-container .w-180,
#container-wrapper .products-section .w-180 { display: flex; justify-content: center; margin: auto auto 0; max-width: 190px; width: 100% !important; }
#container-wrapper .products-section .single-product + .w-180 { margin: 18px auto 32px; }
#container-wrapper .products-section a:has(.products-btn),
#container-wrapper .products-section a:has(.single-products-btn),
#container-wrapper .ourproducts-section a:has(.products-btn) { color: #fff; display: inline-flex; width: 100%; }
#container-wrapper .ourproducts-section .products-btn,
#container-wrapper .products-section .products-btn,
#container-wrapper .products-section .single-products-btn { color: #fff !important; flex: 1 1 auto; margin: auto auto 0; max-width: 190px; width: 100%; }
#container-wrapper .products-section .product-container span,
#container-wrapper .products-section .single-product span { min-height: 2.6em; }
#container-wrapper .ourproducts-section .product-container img,
#container-wrapper .products-section .product-container img,
#container-wrapper .products-section .single-product img { display: block; height: 190px; margin: 0 auto 22px; object-fit: contain; width: 100%; }
#container-wrapper .products-section .single-product span { align-items: center; display: flex; justify-content: center; margin-top: auto; }
#container-wrapper .products-section .single-product br,
#container-wrapper .products-section .product-container br { display: none; }

.catalog-manager-section .container { max-width: 1320px; }
.catalog-manager-grid { display: grid; gap: 24px; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); margin-bottom: 32px; }
.catalog-panel { background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: var(--ui-radius); box-shadow: var(--ui-shadow-sm); padding: 24px; width: 100%; }
.catalog-panel h2 { color: var(--ui-blue-900); font-size: 24px; font-weight: 700; margin: 0 0 20px; }
.catalog-panel p { margin-bottom: 0; }
.catalog-panel pre { background: #f4f7fb; border: 1px solid var(--ui-line); border-radius: var(--ui-radius); margin: 16px 0 0; overflow-x: auto; padding: 14px; }
.catalog-form label,
.catalog-login-panel label { color: var(--ui-ink); display: block; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.catalog-form input,
.catalog-form select,
.catalog-form textarea,
.catalog-login-panel input,
.catalog-toolbar select { background: #fff; border: 1px solid var(--ui-line); border-radius: var(--ui-radius); color: var(--ui-ink); display: block; margin-top: 7px; min-height: 46px; padding: 10px 12px; width: 100%; }
.catalog-form textarea { resize: vertical; }
.catalog-actions,
.catalog-row-actions,
.catalog-toolbar { align-items: center; display: flex; gap: 12px; }
.catalog-toolbar { justify-content: space-between; margin-bottom: 16px; }
.catalog-toolbar h2 { margin-bottom: 4px; }
.catalog-toolbar p { color: var(--ui-muted); font-size: 14px; line-height: 1.4; }
.catalog-toolbar form { min-width: 220px; }
.catalog-primary-btn,
.catalog-secondary-btn,
.catalog-row-actions a,
.catalog-row-actions button { align-items: center; border-radius: 999px; border: 1px solid var(--ui-blue-700); display: inline-flex; font-size: 14px; font-weight: 700; justify-content: center; min-height: 40px; padding: 9px 16px; }
.catalog-primary-btn { background: var(--ui-blue-700); color: #fff; }
.catalog-secondary-btn,
.catalog-row-actions a { background: #fff; color: var(--ui-blue-700); }
.catalog-row-actions button { background: #fff; color: #b42318; border-color: #f3b8b2; }
.catalog-row-actions form,
.catalog-logout-form { margin: 0; }
.catalog-logout-form { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.catalog-alert { border-radius: var(--ui-radius); font-weight: 700; margin-bottom: 18px; padding: 14px 16px; }
.catalog-alert-success { background: #ecfdf3; border: 1px solid #abefc6; color: #067647; }
.catalog-alert-error { background: #fef3f2; border: 1px solid #fecdca; color: #b42318; }
.catalog-grid-panel { min-width: 0; }
.catalog-table-wrap { border: 1px solid var(--ui-line); border-radius: var(--ui-radius); max-height: 760px; overflow: auto; }
.catalog-table { border-collapse: separate; border-spacing: 0; min-width: 1040px; table-layout: fixed; width: 100%; }
.catalog-table th,
.catalog-table td { background: #fff; border-bottom: 1px solid var(--ui-line); color: var(--ui-ink); padding: 12px; text-align: left; vertical-align: middle; }
.catalog-table th { background: #f7f9fc; border-bottom: 1px solid var(--ui-line); color: var(--ui-muted); font-size: 12px; padding: 11px 12px; position: sticky; text-align: left; text-transform: uppercase; top: 0; vertical-align: middle; z-index: 3; }
.catalog-table tr:hover td { background: #fbfdff; }
.catalog-table th:nth-child(1) { width: 86px; }
.catalog-table th:nth-child(2) { width: 160px; }
.catalog-table th:nth-child(3) { width: 220px; }
.catalog-table th:nth-child(4) { width: 180px; }
.catalog-table th:nth-child(5) { width: 104px; }
.catalog-table th:nth-child(6) { width: 112px; }
.catalog-table th:nth-child(7) { width: 146px; }
.catalog-image-cell img { background: #f4f7fb; border: 1px solid var(--ui-line); border-radius: var(--ui-radius); display: block; height: 58px; object-fit: contain; padding: 5px; width: 68px; }
.catalog-empty-image { align-items: center; background: #f4f7fb; border: 1px dashed var(--ui-line); border-radius: var(--ui-radius); color: var(--ui-muted); display: inline-flex; font-size: 12px; height: 58px; justify-content: center; text-align: center; width: 68px; }
.catalog-name-cell strong { color: var(--ui-blue-900); display: block; font-size: 15px; line-height: 1.3; }
.catalog-name-cell small { color: var(--ui-muted); display: block; font-size: 12px; line-height: 1.35; margin-top: 4px; }
.catalog-image-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.catalog-peek,
.catalog-peek-link { position: relative; }
.catalog-peek-link { background: #fff; border: 1px solid var(--ui-line); border-radius: 999px; color: var(--ui-blue-700); display: inline-flex; font-size: 12px; font-weight: 700; line-height: 1; padding: 8px 10px; }
.catalog-peek-card { background: #fff; border: 1px solid var(--ui-line); border-radius: var(--ui-radius); box-shadow: var(--ui-shadow-md); left: 0; opacity: 0; padding: 12px; pointer-events: none; position: absolute; top: calc(100% + 10px); transform: translateY(-4px); transition: opacity .16s ease, transform .16s ease; width: 260px; z-index: 12; }
.catalog-peek-card img { border: 1px solid var(--ui-line); border-radius: var(--ui-radius); display: block; height: 190px; object-fit: contain; padding: 10px; width: 100%; }
.catalog-peek-card span { color: var(--ui-muted); display: block; font-size: 12px; line-height: 1.35; margin-top: 8px; overflow-wrap: anywhere; }
.catalog-peek:hover .catalog-peek-card,
.catalog-peek:focus-within .catalog-peek-card,
.catalog-peek-link:hover .catalog-peek-card,
.catalog-peek-link:focus .catalog-peek-card { opacity: 1; pointer-events: auto; transform: translateY(0); }
.catalog-status { background: var(--ui-teal-100); border-radius: 999px; color: var(--ui-blue-900); display: inline-flex; font-size: 13px; font-weight: 700; padding: 5px 10px; text-transform: capitalize; }
.catalog-updated-cell { color: var(--ui-muted) !important; font-size: 13px; white-space: nowrap; }
.catalog-login-panel,
.catalog-setup-panel { margin: 0 auto 32px; max-width: 680px; }

.catalog-manager-section .container { max-width: 1320px; }
.catalog-manager-grid { gap: 20px; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); }
.catalog-panel { padding: 22px; }
.catalog-toolbar { margin-bottom: 14px; }
.catalog-toolbar form { min-width: 210px; }
.catalog-grid-panel { min-width: 0; overflow: hidden; }
.catalog-table-wrap { overflow-x: hidden; overflow-y: auto; }
.catalog-table { min-width: 0 !important; table-layout: fixed; width: 100%; }
.catalog-table th,
.catalog-table td { font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; padding: 8px 9px; }
.catalog-table th { font-size: 11px; padding: 9px; }
.catalog-table th:nth-child(1) { width: 68px; }
.catalog-table th:nth-child(2) { width: 118px; }
.catalog-table th:nth-child(3) { width: 170px; }
.catalog-table th:nth-child(4) { width: 138px; }
.catalog-table th:nth-child(5) { width: 78px; }
.catalog-table th:nth-child(6) { width: 86px; }
.catalog-table th:nth-child(7) { width: 112px; }
.catalog-image-cell img,
.catalog-empty-image { height: 52px; width: 56px; }
.catalog-image-actions,
.catalog-row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.catalog-row-actions a,
.catalog-row-actions button,
.catalog-peek-link { font-size: 11px; min-height: 30px; padding: 7px 9px; }
.catalog-status { font-size: 12px; padding: 5px 9px; }
.catalog-updated-cell { font-size: 12px !important; white-space: normal; }

@media (max-width: 991px) {
	.catalog-manager-grid { grid-template-columns: 1fr; }
	.catalog-toolbar { align-items: stretch; flex-direction: column; }
	.catalog-toolbar form { min-width: 0; width: 100%; }
}

@media (max-width: 991px) {
	.sm-sticky-header { padding: 12px 16px; }
	.sticky-header.fixed { border-radius: 0; left: 0; top: 0; transform: none; width: 100%; }
	.sm-sticky-header .navbar-brand img { max-height: 50px; }
	.m-navbar-collapse { background: rgba(27, 37, 86, .42); border-radius: var(--ui-radius); margin-top: 14px; padding: 8px 0; width: 100%; }
	.header-nav .navbar .navbar-collapse .navbar-nav,
	.header-nav .navbar .m-navbar-collapse .navbar-nav { align-items: stretch; }
	#header-wrapper .banner-wrapper { padding-top: 112px; text-align: center; }
	.hero-actions { justify-content: center; }
	.hero-product-frame { margin-top: 34px; }
}

@media (max-width: 576px) {
	body { font-size: 16px; }
	p,
	.missionvision-container p,
	.values-container p,
	.product-container p,
	.single-product p,
	.info-container p { font-size: 15px !important; }
	#header-wrapper .banner-wrapper .sub-banner-content h1,
	#header-wrapper .banner-wrapper .banner-content { font-size: 34px; }
	.hero-copy { font-size: 17px; }
	.default-btn,
	.secondary-btn,
	.products-btn,
	.single-products-btn,
	.btn-site,
	.contactform-submit { width: 100%; }
	.story-panel,
	.missionvision-container,
	.values-container,
	.product-container,
	.single-product,
	.info-container { padding: 22px !important; }
	.missionvision-card { flex-direction: column; }
	.missionvision-image { flex: 0 0 auto; min-height: 180px; width: 100%; }
	.missionvision-image img { height: 110px; width: 110px; }
}
