/* =================================================================
   ChemWTS BD - main.css
   Design tokens, layout, components.
   Mobile-first, ~1 file for simplicity on shared hosting.
   ================================================================= */

:root {
	--c-primary:        #003B73;
	--c-primary-dark:   #002650;
	--c-primary-light:  #0B6E99;
	--c-secondary:      #1FA257;
	--c-secondary-dark: #157a41;
	--c-accent:         #F57C00;
	--c-accent-dark:    #c25e00;
	--c-text:           #1F2937;
	--c-text-muted:     #4B5563;
	--c-border:         #E5E7EB;
	--c-bg:             #FFFFFF;
	--c-bg-alt:         #F4F6F8;
	--c-bg-dark:        #0B1B33;
	--c-success:        #1FA257;
	--c-error:          #D32F2F;

	--font-heading: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--font-body:    'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

	--container: 1180px;
	--container-narrow: 820px;

	--radius-sm: 6px;
	--radius:    10px;
	--radius-lg: 18px;

	--shadow-sm: 0 1px 2px rgba(15,23,42,.05);
	--shadow:    0 6px 18px rgba(15,23,42,.08);
	--shadow-lg: 0 14px 36px rgba(15,23,42,.12);

	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 24px;
	--space-6: 32px;
	--space-7: 48px;
	--space-8: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--c-text);
	background: var(--c-bg);
}
img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 700;
	color: var(--c-primary);
	margin: 0 0 var(--space-4);
	line-height: 1.25;
}
h1 { font-size: clamp(1.8rem, 4vw + 1rem, 3rem); }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 var(--space-4); }
a  { color: var(--c-primary-light); text-decoration: none; transition: color .15s; }
a:hover { color: var(--c-accent); }

ul { padding-left: 1.2em; }

/* Skip link */
.skip-link {
	position: absolute; top: -40px; left: 0;
	background: var(--c-primary); color: #fff; padding: 8px 16px; z-index: 200;
}
.skip-link:focus { top: 0; }

/* Anchor scroll offset for sticky header */
section[id] { scroll-margin-top: 88px; }

/* Layout */
.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--space-5);
}
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; }

.section { padding: var(--space-8) 0; }
.section-alt { background: var(--c-bg-alt); }
.section-dark { background: var(--c-bg-dark); color: #cdd6e0; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-center { text-align: center; }

/* Top bar */
.topbar {
	background: var(--c-primary-dark);
	color: #cdd6e0;
	font-size: .875rem;
}
.topbar a { color: #cdd6e0; }
.topbar a:hover { color: #fff; }
.topbar-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 38px;
	gap: var(--space-4);
	flex-wrap: wrap;
}
.topbar-item { margin-right: var(--space-5); }
.topbar-cta {
	background: var(--c-secondary);
	color: #fff !important;
	padding: 6px 14px;
	border-radius: 999px;
	font-weight: 600;
}
.topbar-cta:hover { background: var(--c-secondary-dark); color: #fff !important; }

@media (max-width: 720px) {
	.topbar-hide-mobile { display: none; }
}

/* Header */
.site-header {
	background: #fff;
	border-bottom: 1px solid var(--c-border);
	position: sticky; top: 0; z-index: 50;
	transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.site-header-inner {
	display: flex; align-items: center; justify-content: space-between;
	min-height: 78px;
	gap: var(--space-5);
}

.site-title {
	display: inline-flex; align-items: center; gap: var(--space-3);
	font-family: var(--font-heading); font-weight: 700;
	color: var(--c-primary);
	font-size: 1.25rem;
}
.site-title:hover { color: var(--c-primary); }
.logo-mark {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px;
	background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
	color: #fff; border-radius: 10px;
	font-weight: 700;
}
.logo-text { line-height: 1.1; }
.logo-text small {
	display: block;
	font-size: .7rem; color: var(--c-text-muted);
	font-family: var(--font-body); font-weight: 500;
}
.logo-text-single {
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
	white-space: nowrap;
}

.primary-navigation { display: flex; align-items: center; gap: var(--space-5); }
.primary-navigation .menu {
	list-style: none; padding: 0; margin: 0;
	display: flex; gap: var(--space-5);
}
.primary-navigation .menu a {
	color: var(--c-text); font-weight: 500;
	padding: 8px 0;
	display: inline-block;
}
.primary-navigation .menu a:hover,
.primary-navigation .menu .current-menu-item > a { color: var(--c-primary); border-bottom: 2px solid var(--c-accent); }

.header-cta {
	padding: 10px 18px;
	border-radius: var(--radius);
}

/* Mobile menu */
.menu-toggle {
	display: none;
	background: none; border: 0; cursor: pointer;
	width: 44px; height: 44px;
	flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.menu-toggle span {
	display: block; width: 24px; height: 2px; background: var(--c-primary); transition: .2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
	.menu-toggle { display: flex; }
	.primary-navigation {
		display: none;
		position: absolute; left: 0; right: 0; top: 100%;
		background: #fff; border-top: 1px solid var(--c-border);
		flex-direction: column; padding: var(--space-5);
		box-shadow: var(--shadow);
	}
	.primary-navigation.is-open { display: flex; align-items: stretch; }
	.primary-navigation .menu { flex-direction: column; width: 100%; gap: 0; }
	.primary-navigation .menu li { border-bottom: 1px solid var(--c-border); }
	.primary-navigation .menu a { display: block; padding: 14px 0; }
	.header-cta { width: 100%; text-align: center; margin-top: var(--space-4); }
}

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	gap: var(--space-2);
	padding: 12px 22px;
	border-radius: var(--radius);
	font-weight: 600; font-family: var(--font-heading);
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform .1s, background .15s, color .15s, border-color .15s;
	text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--c-accent); color: #fff; }
.btn-accent:hover { background: var(--c-accent-dark); color: #fff; }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn-secondary { background: var(--c-secondary); color: #fff; }
.btn-secondary:hover { background: var(--c-secondary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn-outline:hover { background: var(--c-primary); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--c-primary); }
.btn-sm { padding: 8px 14px; font-size: .875rem; }
.btn-block { width: 100%; }

/* Hero (home) */
.hero {
	position: relative;
	background:
		linear-gradient(135deg, rgba(0,59,115,.92) 0%, rgba(11,110,153,.85) 100%),
		url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 700"><defs><linearGradient id="g" x1="0" x2="0" y1="0" y2="1"><stop offset="0" stop-color="%230B6E99"/><stop offset="1" stop-color="%23003B73"/></linearGradient></defs><rect fill="url(%23g)" width="1200" height="700"/><g fill="rgba(255,255,255,.05)"><circle cx="100" cy="600" r="120"/><circle cx="1000" cy="120" r="180"/></g></svg>') center/cover no-repeat;
	color: #fff;
	padding: var(--space-8) 0 calc(var(--space-8) + 40px);
	min-height: 540px;
	display: flex;
	align-items: center;
}
.hero h1 { color: #fff; max-width: 820px; }
.hero .hero-lead { font-size: 1.15rem; max-width: 720px; opacity: .9; }
.hero .hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.hero .hero-meta { display: flex; gap: var(--space-5); flex-wrap: wrap; margin-top: var(--space-6); opacity: .85; font-size: .9rem; }
.hero .hero-meta span::before { content: "✓"; color: var(--c-secondary); font-weight: 700; margin-right: 6px; }

/* Hero carousel */
.hero-carousel {
	position: relative;
	overflow: hidden;
	background: var(--c-primary-dark); /* fallback while slides load */
}
.hero-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 1s ease-in-out;
	z-index: 0;
}
.hero-slide.is-active { opacity: 1; }
.hero-carousel .hero-content {
	position: relative;
	z-index: 2;
}
.hero-dots {
	position: absolute;
	bottom: 20px; left: 0; right: 0;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 10px;
}
.hero-dot {
	width: 11px; height: 11px;
	border-radius: 50%;
	border: 2px solid rgba(255,255,255,.7);
	background: transparent;
	cursor: pointer;
	padding: 0;
	transition: background .2s, transform .2s;
}
.hero-dot.is-active { background: #fff; transform: scale(1.15); }
.hero-dot:hover { background: rgba(255,255,255,.6); }

/* Hero prev/next arrows */
.hero-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 48px; height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: rgba(255,255,255,.15);
	color: #fff;
	cursor: pointer;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	transition: background .2s, transform .2s;
}
.hero-arrow:hover { background: rgba(255,255,255,.3); }
.hero-arrow:active { transform: translateY(-50%) scale(.92); }
.hero-arrow-prev { left: 16px; }
.hero-arrow-next { right: 16px; }
@media (max-width: 600px) {
	.hero-arrow { width: 40px; height: 40px; }
	.hero-arrow-prev { left: 8px; }
	.hero-arrow-next { right: 8px; }
}

/* Hero text fade-in-from-bottom */
.hero-anim {
	opacity: 0;
	transform: translateY(28px);
	animation: heroFadeUp .7s ease forwards;
	animation-delay: var(--hero-delay, 0s);
}
@keyframes heroFadeUp {
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.hero-anim { opacity: 1; transform: none; animation: none; }
}

/* Stats counters */
.stats-section { padding: var(--space-7) 0; background: var(--c-bg-alt); }
.stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--space-5);
	text-align: center;
}
.stat-item { padding: var(--space-4); }
.stat-icon { font-size: 2rem; margin-bottom: var(--space-2); }
.stat-number {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: clamp(2rem, 4vw, 2.75rem);
	color: var(--c-secondary);
	line-height: 1;
	display: inline-flex;
	align-items: baseline;
}
.stat-suffix { font-size: .7em; }
.stat-label {
	margin-top: var(--space-2);
	font-weight: 600;
	color: var(--c-primary);
	font-size: .95rem;
}
@media (max-width: 720px) {
	.stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
}

/* Page hero (interior pages) */
.page-hero {
	background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
	color: #fff;
	padding: var(--space-7) 0;
}
.page-hero h1 { color: #fff; }
.page-hero .hero-lead, .page-hero p { color: #d6e1ec; max-width: 760px; }
.page-hero-sm { padding: var(--space-6) 0; }
.hero-breadcrumb a { color: #d6e1ec; }

/* Trust strip */
.trust-strip {
	background: var(--c-bg-alt);
	padding: var(--space-5) 0;
	border-bottom: 1px solid var(--c-border);
}
.trust-strip-inner {
	display: flex; align-items: center; justify-content: center; gap: var(--space-7);
	flex-wrap: wrap; opacity: .75;
}
.trust-strip-inner .trust-logo {
	display: flex; align-items: center; justify-content: center;
	height: 48px; min-width: 110px;
	color: var(--c-text-muted); font-weight: 600; font-size: .9rem;
	border: 1px dashed var(--c-border);
	border-radius: 8px;
	padding: 0 16px;
	background: #fff;
}

/* Section title */
.section-title {
	text-align: center;
	margin-bottom: var(--space-7);
}
.section-title .eyebrow {
	display: inline-block;
	font-size: .8rem; font-weight: 700;
	color: var(--c-secondary);
	letter-spacing: .12em;
	text-transform: uppercase;
	margin-bottom: var(--space-3);
}
.section-title p { color: var(--c-text-muted); max-width: 640px; margin-left: auto; margin-right: auto; }

/* Three columns: What We Do */
.three-cols {
	display: grid; gap: var(--space-5);
	grid-template-columns: repeat( auto-fit, minmax(260px, 1fr) );
}
.three-cols .col {
	background: #fff; border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	padding: var(--space-6); box-shadow: var(--shadow-sm);
	transition: transform .15s, box-shadow .15s, border-color .15s;
}
.three-cols .col:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--c-primary-light); }
.three-cols .col .icon-circle {
	width: 56px; height: 56px;
	border-radius: 14px;
	background: rgba(11,110,153,.1);
	color: var(--c-primary);
	display: flex; align-items: center; justify-content: center;
	font-size: 28px;
	margin-bottom: var(--space-4);
}

/* Product category quick-nav bar */
.product-nav-bar {
	background: var(--c-bg-alt);
	border-bottom: 1px solid var(--c-border);
	position: sticky;
	top: 78px; /* below sticky header */
	z-index: 20;
}
.product-nav {
	display: flex;
	gap: var(--space-2);
	overflow-x: auto;
	padding: 12px 0;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}
.product-nav a {
	flex: 0 0 auto;
	padding: 7px 14px;
	border-radius: 999px;
	font-size: .85rem;
	font-weight: 600;
	color: var(--c-primary);
	background: #fff;
	border: 1px solid var(--c-border);
	white-space: nowrap;
	transition: background .15s, color .15s, border-color .15s;
}
.product-nav a:hover {
	background: var(--c-primary);
	color: #fff;
	border-color: var(--c-primary);
}

/* Product showcase rows (alternating) */
.product-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-7);
	align-items: stretch;
	padding: var(--space-7) 0;
	border-bottom: 1px solid var(--c-border);
	scroll-margin-top: 150px; /* header offset for anchor jumps */
}
.product-row:last-child { border-bottom: 0; }
.product-row-reverse .product-row-media { order: 2; }
.product-row-media {
	display: flex;
}
.product-row-media img {
	width: 100%;
	height: 100%;
	min-height: 320px;
	max-height: 560px;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	object-fit: cover;
	object-position: center;
}
.product-row-body { align-self: center; }
.product-row-body .eyebrow {
	display: inline-block;
	font-size: .78rem; font-weight: 700;
	color: var(--c-secondary);
	letter-spacing: .12em;
	text-transform: uppercase;
	margin-bottom: var(--space-2);
}
.product-row-body h2 { margin-top: 0; margin-bottom: var(--space-3); }
.product-row-body > p { color: var(--c-text-muted); }
.product-points {
	list-style: none;
	padding: 0;
	margin: 0 0 var(--space-5);
}
.product-points li {
	position: relative;
	padding-left: 26px;
	margin-bottom: var(--space-2);
	color: var(--c-text);
}
.product-points li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--c-secondary);
	font-weight: 700;
}
.product-code {
	display: inline-block;
	margin-left: 10px;
	padding: 3px 10px;
	border-radius: 6px;
	background: var(--c-bg-alt);
	color: var(--c-primary-light);
	font-size: .7em;
	font-weight: 700;
	vertical-align: middle;
	letter-spacing: .04em;
}
.product-specs {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 var(--space-5);
	font-size: .92rem;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	overflow: hidden;
}
.product-specs th,
.product-specs td {
	text-align: left;
	padding: 9px 14px;
	border-bottom: 1px solid var(--c-border);
}
.product-specs tr:last-child th,
.product-specs tr:last-child td { border-bottom: 0; }
.product-specs th {
	width: 45%;
	background: var(--c-bg-alt);
	color: var(--c-primary);
	font-weight: 600;
}
.product-usage {
	font-size: .9rem;
	color: var(--c-text-muted);
	background: var(--c-bg-alt);
	border-left: 3px solid var(--c-secondary);
	padding: 12px 16px;
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	margin-bottom: var(--space-5);
}
@media (max-width: 820px) {
	.product-row {
		grid-template-columns: 1fr;
		gap: var(--space-5);
		padding: var(--space-6) 0;
	}
	.product-row-reverse .product-row-media { order: 0; }
}
@media (max-width: 820px) {
	.product-nav-bar { top: 0; } /* header collapses into mobile menu */
}

/* Card grid */
.card-grid {
	display: grid; gap: var(--space-5);
	grid-template-columns: repeat( auto-fit, minmax(260px, 1fr) );
	align-items: stretch;
}
.card {
	background: #fff; border: 1px solid var(--c-border);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex; flex-direction: column;
	box-shadow: var(--shadow-sm);
	transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-image {
	display: block;
	aspect-ratio: 16/10;
	background: var(--c-bg-alt);
	overflow: hidden;
	position: relative;
}
.card-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.card-image-placeholder {
	display: block; width: 100%; height: 100%;
	background: linear-gradient(135deg, #d4e3ee 0%, #c2dde7 100%);
}
.card-body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.card-body h3 { margin: 0; font-size: 1.1rem; }
.card-body h3 a { color: var(--c-primary); }
.card-body p { color: var(--c-text-muted); margin: 0; font-size: .95rem; }
.readmore { font-weight: 600; color: var(--c-accent); margin-top: auto; }

/* Industry grid (with icon) */
.industry-grid {
	display: grid; gap: var(--space-4);
	grid-template-columns: repeat( auto-fill, minmax(180px, 1fr) );
}
.industry-tile {
	background: #fff; border: 1px solid var(--c-border);
	border-radius: var(--radius);
	padding: var(--space-5);
	text-align: center;
	transition: transform .15s, border-color .15s, box-shadow .15s;
}
.industry-tile:hover { transform: translateY(-2px); border-color: var(--c-secondary); box-shadow: var(--shadow); }
.industry-tile .icon {
	font-size: 32px; margin-bottom: var(--space-3);
}
.industry-tile h4 { font-size: .95rem; margin: 0 0 4px; }
.industry-tile p { font-size: .8rem; color: var(--c-text-muted); margin: 0; }

/* USP cards */
.usp-grid {
	display: grid; gap: var(--space-5);
	grid-template-columns: repeat( auto-fit, minmax(220px, 1fr) );
}
.usp-card {
	padding: var(--space-5);
	border-left: 4px solid var(--c-accent);
	background: var(--c-bg-alt);
	border-radius: var(--radius);
}
.usp-card h4 { color: var(--c-primary); margin-bottom: var(--space-2); }
.usp-card p  { font-size: .9rem; color: var(--c-text-muted); margin: 0; }

/* CEO / Founder message */
.ceo-grid {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: var(--space-7);
	align-items: center;
}
.ceo-photo img {
	width: 100%;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	aspect-ratio: 3/4;
	object-fit: cover;
	object-position: center top;
}
.ceo-quote {
	font-size: 1.25rem;
	line-height: 1.55;
	font-style: italic;
	color: var(--c-text);
	border-left: 4px solid var(--c-accent);
	padding-left: var(--space-5);
	margin: var(--space-3) 0 var(--space-5);
}
.ceo-name {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--c-primary);
}
.ceo-role { color: var(--c-text-muted); font-size: .95rem; }
@media (max-width: 720px) {
	.ceo-grid { grid-template-columns: 1fr; gap: var(--space-5); text-align: center; }
	.ceo-photo { max-width: 240px; margin: 0 auto; }
	.ceo-quote { border-left: 0; border-top: 4px solid var(--c-accent); padding-left: 0; padding-top: var(--space-4); text-align: left; }
}

/* Testimonials */
.testimonial-grid {
	display: grid; gap: var(--space-5);
	grid-template-columns: repeat( auto-fit, minmax(280px, 1fr) );
}
.testimonial-card {
	background: #fff;
	padding: var(--space-6);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	position: relative;
}
.testimonial-card::before {
	content: "“"; position: absolute; top: -20px; left: 24px;
	font-size: 80px; font-family: var(--font-heading); color: var(--c-accent);
	line-height: 1;
}
.testimonial-card blockquote {
	margin: 0 0 var(--space-4);
	color: var(--c-text);
	font-style: italic;
}
.testimonial-author {
	display: flex; align-items: center; gap: var(--space-3);
}
.testimonial-author .avatar {
	width: 44px; height: 44px; border-radius: 50%;
	background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
	color: #fff; font-weight: 700;
	display: flex; align-items: center; justify-content: center;
}
.testimonial-author .name { font-weight: 600; color: var(--c-primary); }
.testimonial-author .role { font-size: .85rem; color: var(--c-text-muted); }

/* Blog cards */
.blog-grid {
	display: grid; gap: var(--space-5);
	grid-template-columns: repeat( auto-fill, minmax(280px, 1fr) );
}
.blog-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.blog-card-image {
	display: block;
	aspect-ratio: 16/9;
	background: var(--c-bg-alt);
	overflow: hidden;
	position: relative;
}
.blog-card-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.blog-card-image-placeholder { background: linear-gradient(135deg, #d4e3ee, #c2dde7); }
.blog-card-body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.blog-card-body h3 { font-size: 1.1rem; margin: 0; }
.blog-card-meta { font-size: .8rem; color: var(--c-text-muted); margin: 0; }

/* CTA strip (before footer) */
.cta-strip {
	background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
	color: #fff;
	padding: var(--space-7) 0;
}
.cta-strip h2 { color: #fff; margin: 0 0 var(--space-2); }
.cta-strip p  { margin: 0; color: #d6e1ec; }
.cta-strip-inner {
	display: flex; justify-content: space-between; align-items: center; gap: var(--space-5);
	flex-wrap: wrap;
}
.cta-strip-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* Footer */
.site-footer {
	background: var(--c-bg-dark);
	color: #b3c0d1;
	padding: var(--space-8) 0 0;
}
.site-footer a { color: #cdd6e0; }
.site-footer a:hover { color: #fff; }
.footer-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr;
	gap: var(--space-7);
}
.footer-col h4 {
	color: #fff;
	margin: 0 0 var(--space-4);
	font-size: 1rem;
	font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: var(--space-2); font-size: .95rem; }

.footer-brand .site-title { color: #fff; margin-bottom: var(--space-4); display: inline-flex; }
.footer-brand .logo-text-single { color: #fff; }
.footer-tagline { color: #8b97a8; font-size: .95rem; margin: 0 0 var(--space-5); max-width: 360px; }

.footer-contact {
	list-style: none;
	padding: 0;
	margin: 0 0 var(--space-5);
	display: grid;
	gap: var(--space-3);
}
.footer-contact li {
	display: grid;
	grid-template-columns: 80px 1fr;
	align-items: start;
	gap: var(--space-3);
	font-size: .9rem;
	margin: 0;
}
.footer-contact-label {
	color: #6a7689;
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-weight: 600;
	padding-top: 2px;
}

.footer-social { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.footer-social a {
	padding: 6px 12px; border: 1px solid #2a3a55; border-radius: 6px;
	font-size: .85rem;
}
.footer-social a:hover { border-color: #4a5d7a; }
.footer-bottom {
	border-top: 1px solid #1a2742;
	margin-top: var(--space-7);
	padding: var(--space-5) 0;
	font-size: .85rem;
	color: #6a7689;
}
.footer-bottom-inner { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.footer-bottom-inner p { margin: 0; }

@media (max-width: 880px) {
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.footer-grid { grid-template-columns: 1fr; }
}

/* WhatsApp floating button */
.whatsapp-fab {
	position: fixed; right: 18px; bottom: 18px; z-index: 90;
	background: #25D366; color: #fff;
	display: inline-flex; align-items: center; gap: 10px;
	padding: 14px 18px;
	border-radius: 999px;
	box-shadow: 0 8px 20px rgba(37,211,102,.4);
	font-weight: 600;
	transition: transform .15s, box-shadow .15s;
}
.whatsapp-fab:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(37,211,102,.55); }
.call-fab {
	position: fixed; left: 18px; bottom: 18px; z-index: 90;
	background: var(--c-accent); color: #fff;
	width: 54px; height: 54px;
	border-radius: 50%;
	display: none;
	align-items: center; justify-content: center;
	box-shadow: 0 8px 20px rgba(245,124,0,.4);
}
@media (max-width: 720px) {
	.call-fab { display: inline-flex; }
	.whatsapp-fab span { display: none; }
	.whatsapp-fab { padding: 14px; }
}

/* Cookie banner */
.cookie-banner {
	position: fixed; bottom: 0; left: 0; right: 0;
	background: #0b1b33;
	color: #d6e1ec;
	padding: 14px 18px;
	font-size: .9rem;
	display: flex; gap: var(--space-4); align-items: center; justify-content: center;
	flex-wrap: wrap;
	box-shadow: 0 -4px 18px rgba(0,0,0,.15);
	z-index: 95;
}
.cookie-banner p { margin: 0; max-width: 720px; }
.cookie-banner[hidden] { display: none; }

/* Forms */
.inquiry-form {
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	padding: var(--space-6);
	box-shadow: var(--shadow);
}
.form-lead { color: var(--c-text-muted); margin-top: -8px; }

.form label {
	display: block;
	font-weight: 600;
	color: var(--c-primary);
	font-size: .9rem;
	margin-bottom: var(--space-4);
}
.form input,
.form select,
.form textarea {
	display: block; width: 100%;
	margin-top: 6px;
	padding: 12px 14px;
	font: inherit;
	color: var(--c-text);
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	transition: border-color .15s, box-shadow .15s;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
	outline: 0;
	border-color: var(--c-primary-light);
	box-shadow: 0 0 0 3px rgba(11,110,153,.15);
}
.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-4);
}
@media (max-width: 560px) {
	.form-row { grid-template-columns: 1fr; }
}
.form-note { font-size: .8rem; color: var(--c-text-muted); margin-top: var(--space-3); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.form-alert {
	padding: 12px 16px; border-radius: var(--radius-sm);
	margin-bottom: var(--space-4); font-weight: 500;
}
.form-alert-success { background: #e7f7ee; color: #157a41; border: 1px solid #b6e2c8; }
.form-alert-error   { background: #fdecea; color: #a32418; border: 1px solid #f5b7b1; }

.search-form-inline {
	display: flex; gap: var(--space-3); margin-bottom: var(--space-6);
}
.search-form-inline input {
	flex: 1; padding: 12px 14px; border: 1px solid var(--c-border); border-radius: var(--radius-sm);
}

/* Prose (article body) */
.prose h2 { margin-top: var(--space-6); }
.prose h3 { margin-top: var(--space-5); }
.prose ul, .prose ol { padding-left: 1.2em; margin-bottom: var(--space-4); }
.prose li { margin-bottom: 6px; }
.prose img { border-radius: var(--radius); margin: var(--space-5) 0; }
.prose table {
	width: 100%; border-collapse: collapse; margin: var(--space-5) 0;
	font-size: .95rem;
}
.prose th, .prose td {
	border: 1px solid var(--c-border);
	padding: 10px 12px;
	text-align: left;
}
.prose th { background: var(--c-bg-alt); color: var(--c-primary); }

/* Two-column layout (industry/solution pages) */
.two-col {
	display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-7);
}
@media (max-width: 880px) {
	.two-col { grid-template-columns: 1fr; }
}

/* Pagination */
.pagination { margin-top: var(--space-6); text-align: center; }
.pagination .page-numbers {
	display: inline-block; padding: 8px 14px; margin: 0 4px;
	border: 1px solid var(--c-border); border-radius: var(--radius-sm);
	color: var(--c-primary); font-weight: 600;
}
.pagination .page-numbers.current { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.screen-reader-text {
	position: absolute !important; clip: rect(1px,1px,1px,1px); height: 1px; width: 1px; overflow: hidden;
}

/* Reveal-on-scroll (minimal fade-up) */
.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .6s ease, transform .6s ease;
	will-change: opacity, transform;
}
.reveal.is-visible {
	opacity: 1;
	transform: none;
}
/* Stagger child cards/cols inside a revealed section.
   Grids live inside .container, so target the grid items wherever they are. */
.reveal.reveal-stagger.is-visible .card-grid > *,
.reveal.reveal-stagger.is-visible .three-cols > *,
.reveal.reveal-stagger.is-visible .usp-grid > *,
.reveal.reveal-stagger.is-visible .industry-grid > *,
.reveal.reveal-stagger.is-visible .testimonial-grid > *,
.reveal.reveal-stagger.is-visible .stats-grid > * {
	animation: chemFadeUp .5s ease both;
}
.reveal.reveal-stagger.is-visible .card-grid > *:nth-child(1),
.reveal.reveal-stagger.is-visible .three-cols > *:nth-child(1),
.reveal.reveal-stagger.is-visible .usp-grid > *:nth-child(1),
.reveal.reveal-stagger.is-visible .industry-grid > *:nth-child(1),
.reveal.reveal-stagger.is-visible .testimonial-grid > *:nth-child(1),
.reveal.reveal-stagger.is-visible .stats-grid > *:nth-child(1) { animation-delay: .05s; }
.reveal.reveal-stagger.is-visible .card-grid > *:nth-child(2),
.reveal.reveal-stagger.is-visible .three-cols > *:nth-child(2),
.reveal.reveal-stagger.is-visible .usp-grid > *:nth-child(2),
.reveal.reveal-stagger.is-visible .industry-grid > *:nth-child(2),
.reveal.reveal-stagger.is-visible .testimonial-grid > *:nth-child(2),
.reveal.reveal-stagger.is-visible .stats-grid > *:nth-child(2) { animation-delay: .12s; }
.reveal.reveal-stagger.is-visible .card-grid > *:nth-child(3),
.reveal.reveal-stagger.is-visible .three-cols > *:nth-child(3),
.reveal.reveal-stagger.is-visible .usp-grid > *:nth-child(3),
.reveal.reveal-stagger.is-visible .industry-grid > *:nth-child(3),
.reveal.reveal-stagger.is-visible .testimonial-grid > *:nth-child(3),
.reveal.reveal-stagger.is-visible .stats-grid > *:nth-child(3) { animation-delay: .19s; }
.reveal.reveal-stagger.is-visible .card-grid > *:nth-child(4),
.reveal.reveal-stagger.is-visible .usp-grid > *:nth-child(4),
.reveal.reveal-stagger.is-visible .industry-grid > *:nth-child(4),
.reveal.reveal-stagger.is-visible .stats-grid > *:nth-child(4) { animation-delay: .26s; }
.reveal.reveal-stagger.is-visible .card-grid > *:nth-child(5),
.reveal.reveal-stagger.is-visible .usp-grid > *:nth-child(5),
.reveal.reveal-stagger.is-visible .industry-grid > *:nth-child(5) { animation-delay: .33s; }
.reveal.reveal-stagger.is-visible .card-grid > *:nth-child(6),
.reveal.reveal-stagger.is-visible .usp-grid > *:nth-child(6),
.reveal.reveal-stagger.is-visible .industry-grid > *:nth-child(6) { animation-delay: .40s; }
.reveal.reveal-stagger.is-visible .card-grid > *:nth-child(7),
.reveal.reveal-stagger.is-visible .industry-grid > *:nth-child(7) { animation-delay: .47s; }
.reveal.reveal-stagger.is-visible .card-grid > *:nth-child(8),
.reveal.reveal-stagger.is-visible .industry-grid > *:nth-child(8) { animation-delay: .54s; }

@keyframes chemFadeUp {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: none; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
	.reveal.reveal-stagger.is-visible .card-grid > *,
	.reveal.reveal-stagger.is-visible .three-cols > *,
	.reveal.reveal-stagger.is-visible .usp-grid > *,
	.reveal.reveal-stagger.is-visible .industry-grid > *,
	.reveal.reveal-stagger.is-visible .testimonial-grid > *,
	.reveal.reveal-stagger.is-visible .stats-grid > * { animation: none; }
}

/* Print */
@media print {
	.site-header, .site-footer, .whatsapp-fab, .call-fab, .cookie-banner, .topbar { display: none !important; }
}
