/**
 * Huihai-inspired layout styles for bqchem.com
 */

:root {
	--hh-primary: #0d9488;
	--hh-primary-dark: #0f766e;
	--hh-dark: #0f172a;
	--hh-dark-soft: #1e293b;
	--hh-text: #334155;
	--hh-muted: #64748b;
	--hh-light: #f0fdfa;
	--hh-border: #e2e8f0;
	--hh-container: 1240px;
}

/* Header */
.main-header-bar {
	background: #fff;
	box-shadow: 0 1px 0 var(--hh-border);
}

.site-title a,
.site-title a:hover {
	color: var(--hh-dark);
	font-weight: 700;
}

.main-header-menu > .menu-item > .menu-link {
	color: var(--hh-dark);
	font-weight: 600;
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: 0.06em;
}

.main-header-menu > .menu-item.current-menu-item > .menu-link,
.main-header-menu > .menu-item:hover > .menu-link {
	color: var(--hh-primary);
}

/* Hide default page titles — templates include hero headings */
.home .entry-header,
.page-about-us .entry-header,
.page-services .entry-header,
.page-quality .entry-header,
.page-contact .entry-header {
	display: none !important;
}

.home .site-content > .ast-container,
.page-about-us .site-content > .ast-container,
.page-services .site-content > .ast-container,
.page-quality .site-content > .ast-container,
.page-contact .site-content > .ast-container {
	max-width: 100%;
	padding-left: 0;
	padding-right: 0;
}

.home .entry-content,
.page-about-us .entry-content,
.page-services .entry-content,
.page-quality .entry-content,
.page-contact .entry-content {
	margin: 0;
}

/* Hero */
.hh-hero {
	position: relative;
	background: var(--hh-dark);
}

.hh-hero-slide {
	display: none;
	position: relative;
}

.hh-hero-slide.is-active {
	display: block;
}

.hh-hero-media {
	height: 420px;
	overflow: hidden;
}

.hh-hero-img {
	width: 100%;
	height: 420px;
	object-fit: cover;
	display: block;
}

.hh-hero-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	background: linear-gradient(90deg, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.35) 60%, transparent 100%);
	color: #fff;
}

.hh-hero-overlay h2 {
	font-size: 42px;
	font-weight: 700;
	margin: 0 0 12px;
	color: #fff;
}

.hh-hero-overlay p {
	font-size: 18px;
	margin: 0;
	opacity: 0.92;
}

/* Sections */
.hh-section {
	padding: 72px 0;
}

.hh-section:nth-child(even) {
	background: var(--hh-light);
}

.hh-label {
	display: inline-block;
	color: var(--hh-primary);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-size: 13px;
	margin-bottom: 12px;
}

.hh-section-title {
	font-size: 34px;
	line-height: 1.25;
	margin: 0 0 16px;
	color: var(--hh-dark);
	font-weight: 700;
}

.hh-section-subtitle {
	color: var(--hh-muted);
	font-size: 17px;
	margin: 0 0 28px;
}

.hh-section-head {
	text-align: center;
	max-width: 760px;
	margin: 0 auto 48px;
}

.hh-rich-text {
	color: var(--hh-text);
	line-height: 1.8;
}

.hh-rich-text p:last-child {
	margin-bottom: 0;
}

/* Story */
.hh-story-grid,
.hh-brand-grid,
.hh-contact-grid,
.hh-page-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}

.hh-story-img,
.hh-brand-img,
.hh-product-img,
.hh-gallery-img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 4px;
}

.hh-media-placeholder {
	background: var(--hh-light);
	border: 1px dashed var(--hh-border);
	min-height: 280px;
}

/* Buttons */
.hh-btn {
	display: inline-block;
	background: var(--hh-primary);
	color: #fff !important;
	padding: 12px 28px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 13px;
	border: 2px solid var(--hh-primary);
	transition: all 0.2s ease;
	margin-top: 16px;
}

.hh-btn:hover {
	background: var(--hh-primary-dark);
	border-color: var(--hh-primary-dark);
	color: #fff !important;
}

.hh-btn-outline {
	background: transparent;
	color: var(--hh-primary) !important;
}

.hh-btn-outline:hover {
	background: var(--hh-primary);
	color: #fff !important;
}

/* Product rows — huihai alternating layout */
.hh-product-list {
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.hh-product-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
	background: #fff;
	border: 1px solid var(--hh-border);
	padding: 24px;
}

.hh-section.hh-products {
	background: #fff;
}

.hh-product-row.is-reverse .hh-product-media {
	order: 2;
}

.hh-product-row.is-reverse .hh-product-body {
	order: 1;
}

.hh-product-body h3 {
	margin: 0 0 12px;
	font-size: 24px;
}

.hh-product-body h3 a {
	color: var(--hh-dark);
	text-decoration: none;
}

.hh-product-body h3 a:hover {
	color: var(--hh-primary);
}

.hh-product-media img {
	width: 100%;
	height: 280px;
	object-fit: cover;
}

/* Brand */
.hh-brand {
	background: var(--hh-light);
}

.hh-video-wrap iframe {
	width: 100%;
	min-height: 280px;
	border: 0;
}

.hh-contacts {
	display: grid;
	gap: 12px;
	margin-top: 24px;
}

.hh-contact-card {
	background: #fff;
	border-left: 4px solid var(--hh-primary);
	padding: 16px 18px;
}

.hh-contact-card strong {
	display: block;
	margin-bottom: 6px;
	color: var(--hh-dark);
}

.hh-contact-card span {
	display: block;
	color: var(--hh-muted);
	font-size: 14px;
}

/* CTA */
.hh-cta-box {
	background: var(--hh-dark);
	color: #fff;
	padding: 48px;
	text-align: center;
}

.hh-cta-box h2 {
	color: #fff;
	margin-bottom: 12px;
}

.hh-cta-box .hh-rich-text {
	color: rgba(255, 255, 255, 0.88);
}

.hh-cta-actions {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 8px;
}

.hh-cta-actions .hh-btn-outline {
	border-color: #fff;
	color: #fff !important;
}

.hh-cta-actions .hh-btn-outline:hover {
	background: #fff;
	color: var(--hh-dark) !important;
}

/* Inner pages */
.hh-page-hero {
	background: var(--hh-dark);
	color: #fff;
	padding: 56px 0;
}

.hh-page-hero h1 {
	color: #fff;
	margin: 0;
	font-size: 38px;
}

.hh-page-main h2 {
	margin-top: 32px;
	color: var(--hh-dark);
}

.hh-page-gallery {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.hh-page-gallery figure {
	margin: 0;
}

.hh-page-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 24px;
}

.hh-cards-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

.hh-card {
	background: #fff;
	border: 1px solid var(--hh-border);
	padding: 28px;
	border-top: 3px solid var(--hh-primary);
}

.hh-card h3 {
	margin: 0 0 10px;
	color: var(--hh-dark);
}

.hh-card p {
	margin: 0;
	color: var(--hh-muted);
	line-height: 1.7;
}

.hh-intro-block {
	max-width: 820px;
	margin-bottom: 32px;
}

.hh-contact-list {
	list-style: none;
	padding: 0;
	margin: 24px 0 0;
}

.hh-contact-list li {
	padding: 10px 0;
	border-bottom: 1px solid var(--hh-border);
}

.hh-contact-box {
	background: var(--hh-light);
	padding: 32px;
	border-left: 4px solid var(--hh-primary);
}

/* Footer bar */
.hh-footer-bar {
	background: #111822;
	color: #ccc;
	padding: 48px 0 24px;
	margin-top: 0;
}

.hh-footer-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.hh-footer-col h4 {
	color: #fff;
	margin: 0 0 12px;
}

.hh-footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.hh-footer-links a {
	color: #ddd;
	text-decoration: none;
}

.hh-footer-links a:hover {
	color: #fff;
}

.hh-footer-copy {
	margin: 28px 0 0;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 13px;
	color: #999;
	text-align: center;
}

.site-footer {
	background: #111822;
}

.site-footer .site-below-footer-wrap {
	display: none;
}

@media (max-width: 921px) {
	.hh-story-grid,
	.hh-brand-grid,
	.hh-contact-grid,
	.hh-page-grid,
	.hh-product-row,
	.hh-cards-grid,
	.hh-footer-grid {
		grid-template-columns: 1fr;
	}

	.hh-product-row.is-reverse .hh-product-media,
	.hh-product-row.is-reverse .hh-product-body {
		order: unset;
	}

	.hh-hero-media,
	.hh-hero-img {
		height: 280px;
	}

	.hh-hero-overlay h2 {
		font-size: 28px;
	}

	.hh-section {
		padding: 48px 0;
	}

	.hh-news-grid {
		grid-template-columns: 1fr;
	}
}

/* News archive & single */
.hh-news-archive .ast-archive-description,
.hh-news-archive .entry-header,
.blog .entry-header {
	display: none !important;
}

.hh-page-hero-intro {
	margin: 12px 0 0;
	font-size: 18px;
	opacity: 0.9;
	max-width: 720px;
}

.hh-page-hero--compact {
	padding: 40px 0;
}

.hh-news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.hh-news-card {
	background: #fff;
	border: 1px solid var(--hh-border);
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.hh-news-card:hover {
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
	transform: translateY(-4px);
}

.hh-news-thumb img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.hh-news-body {
	padding: 22px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.hh-news-meta {
	font-size: 13px;
	color: var(--hh-muted);
	margin: 0 0 10px;
}

.hh-news-meta--light {
	color: rgba(255, 255, 255, 0.85);
}

.hh-news-title {
	font-size: 20px;
	margin: 0 0 10px;
	line-height: 1.35;
}

.hh-news-title a {
	color: var(--hh-dark);
	text-decoration: none;
}

.hh-news-title a:hover {
	color: var(--hh-primary);
}

.hh-news-excerpt {
	color: var(--hh-muted);
	font-size: 15px;
	line-height: 1.7;
	margin-bottom: 16px;
	flex: 1;
}

.hh-news-read {
	margin-top: auto;
	align-self: flex-start;
}

.hh-pagination {
	margin-top: 36px;
	text-align: center;
}

.hh-pagination .nav-links {
	display: inline-flex;
	gap: 8px;
}

.hh-pagination a,
.hh-pagination span {
	padding: 8px 14px;
	border: 1px solid var(--hh-border);
}

.hh-pagination .current {
	background: var(--hh-primary);
	border-color: var(--hh-primary);
	color: #fff;
}

.hh-single-wrap {
	max-width: 860px;
	margin: 0 auto;
}

.hh-single-featured {
	margin-bottom: 28px;
}

.hh-single-featured img {
	width: 100%;
	height: auto;
	border-radius: 4px;
}

.hh-single-back {
	margin-top: 36px;
}
