/*
Theme Name: Custom Heavy Components
Theme URI: https://customheavycomponents.com/
Description: Lightweight WordPress theme for custom heavy-component manufacturing.
Author: Leland Technology (Suzhou) Co., Ltd.
Version: 1.0.0
Text Domain: custom-heavy-core
*/

:root {
	--chc-ink: #101820;
	--chc-steel: #34424e;
	--chc-mist: #eef2f4;
	--chc-signal: #f28c28;
	--chc-content: 900px;
	--chc-wide: 1440px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	background: #fff;
	color: var(--chc-ink);
	font-family: "Montserrat", Arial, Helvetica, sans-serif;
	margin: 0;
}

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

a {
	color: inherit;
}

.chc-container {
	margin: 0 auto;
	max-width: var(--chc-wide);
	padding-left: 2rem;
	padding-right: 2rem;
}

.chc-content {
	margin: 0 auto;
	max-width: var(--chc-content);
}

.chc-site-header {
	left: 0;
	position: sticky;
	right: 0;
	top: 0;
	z-index: 50;
}

.chc-topbar {
	background: var(--chc-ink);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.chc-topbar-content,
.chc-mainbar-content,
.chc-footer-cta,
.chc-footer-bottom {
	align-items: center;
	display: flex;
	justify-content: space-between;
}

.chc-topbar-content {
	min-height: 2.25rem;
}

.chc-topbar a,
.chc-site-footer a {
	color: inherit;
}

.chc-topbar-contact {
	font-size: 0.6875rem;
	letter-spacing: 0.04em;
	text-transform: none;
}

.chc-mainbar {
	background: rgba(255, 255, 255, 0.98);
	border-bottom: 1px solid rgba(16, 24, 32, 0.14);
	box-shadow: 0 12px 24px rgba(16, 24, 32, 0.12);
}

.chc-mainbar-content {
	gap: 1.5rem;
	min-height: 5.25rem;
}

.chc-brand {
	display: grid;
	line-height: 1.1;
	max-width: 12.5rem;
	text-decoration: none;
}

.chc-brand img {
	display: block;
	height: 3.25rem;
	object-fit: contain;
	width: auto;
}

.chc-wordmark {
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.chc-brand-note {
	color: var(--chc-steel);
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	margin-top: 0.35rem;
	text-transform: uppercase;
}

.chc-primary-nav ul,
.chc-primary-nav details ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.chc-primary-nav > ul {
	align-items: center;
	display: flex;
	gap: 1.2rem;
}

.chc-primary-nav a,
.chc-primary-nav summary {
	cursor: pointer;
	font-size: 0.84rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.chc-primary-nav details {
	position: relative;
}

.chc-primary-nav details > ul {
	background: #fff;
	border: 1px solid rgba(16, 24, 32, 0.14);
	box-shadow: 0 12px 24px rgba(16, 24, 32, 0.12);
	left: 0;
	min-width: 13.5rem;
	padding: 0.8rem;
	position: absolute;
	top: 100%;
}

.chc-primary-nav details li + li {
	margin-top: 0.7rem;
}

.chc-primary-nav li {
	position: relative;
}

.chc-primary-nav .sub-menu {
	background: #fff;
	border: 1px solid rgba(16, 24, 32, 0.14);
	box-shadow: 0 12px 24px rgba(16, 24, 32, 0.12);
	display: none;
	left: 0;
	min-width: 13.5rem;
	padding: 0.8rem;
	position: absolute;
	top: 100%;
}

.chc-primary-nav li:hover > .sub-menu,
.chc-primary-nav li:focus-within > .sub-menu {
	display: block;
}

.chc-primary-nav .sub-menu li + li {
	margin-top: 0.7rem;
}

.chc-menu-toggle {
	background: transparent;
	border: 1px solid currentColor;
	cursor: pointer;
	display: none;
	font: inherit;
	font-weight: 700;
	padding: 0.65rem 0.85rem;
}

.chc-quote-button,
.chc-secondary-button {
	display: inline-block;
	font-size: 0.84rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	padding: 0.95rem 1.2rem;
	text-decoration: none;
	text-transform: uppercase;
}

.chc-quote-button {
	background: var(--chc-signal);
	color: #fff;
}

.wp-block-button.chc-quote-button .wp-block-button__link {
	background: var(--chc-signal);
	border-radius: 0;
	color: #fff;
}

.chc-secondary-button {
	border: 1px solid currentColor;
	color: #fff;
}

.wp-block-button.chc-secondary-button .wp-block-button__link {
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 0;
	color: #fff;
}

.chc-hero {
	background: linear-gradient(120deg, rgba(16, 24, 32, 0.96), rgba(16, 24, 32, 0.74));
	color: #fff;
	min-height: 620px;
	padding: 7rem 0;
}

body.home .chc-entry {
	padding: 0;
}

body.home .chc-entry-content > .chc-home-hero,
body.home .chc-entry-content > .chc-home-section {
	margin: 0;
	max-width: none;
	width: 100%;
}

.chc-home-hero {
	--chc-home-hero-overlay: linear-gradient(105deg, rgba(16, 24, 32, 0.65) 0%, rgba(16, 24, 32, 0.45) 45%, rgba(16, 24, 32, 0.14) 100%);
	background-color: var(--chc-ink);
	background-image: var(--chc-home-hero-overlay), url("assets/images/welded-bearing-support-assembly.jpg");
	background-position: center 55%;
	background-repeat: no-repeat;
	background-size: cover;
	color: #fff;
	animation: chc-home-hero-background 18s infinite;
	min-height: 580px;
	padding: 6rem clamp(4rem, 8vw, 10rem);
}

@keyframes chc-home-hero-background {
	0%,
	32% {
		background-image: var(--chc-home-hero-overlay), url("assets/images/welded-bearing-support-assembly.jpg");
	}

	33%,
	65% {
		background-image: var(--chc-home-hero-overlay), url("assets/images/machining-circular-flange.jpg");
	}

	66%,
	100% {
		background-image: var(--chc-home-hero-overlay), url("assets/images/fabricated-cylindrical-housing.jpg");
	}
}

@media (prefers-reduced-motion: reduce) {
	.chc-home-hero {
		animation: none;
	}
}

.chc-home-hero > * {
	margin-left: auto !important;
	margin-right: auto !important;
	max-width: min(var(--chc-content), 45rem);
}

.chc-home-section > * {
	margin-left: auto !important;
	margin-right: auto !important;
	max-width: var(--chc-content);
}

.chc-home-hero > .wp-block-buttons,
.chc-home-section > .wp-block-columns {
	max-width: var(--chc-wide);
}

.chc-home-hero > .wp-block-buttons {
	max-width: min(var(--chc-content), 45rem);
	width: 100%;
}

.chc-home-section {
	padding: 5.5rem 2rem;
}

.chc-home-section-mist {
	background: var(--chc-mist);
}

.chc-home-card {
	background: #fff;
	box-shadow: 0 12px 28px rgba(16, 24, 32, 0.08);
	padding: 1.75rem;
}

.chc-home-process {
	border-top: 3px solid var(--chc-signal);
	padding-top: 1rem;
}

.chc-hero-content {
	max-width: var(--chc-content);
}

.chc-eyebrow {
	color: var(--chc-signal);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	margin: 0;
	text-transform: uppercase;
}

.chc-hero h1,
.chc-section h2,
.chc-entry h1,
.chc-entry h2,
.chc-site-footer h2 {
	line-height: 1.08;
}

.chc-hero h1 {
	font-size: clamp(2.5rem, 5vw, 4.9rem);
	margin: 1rem 0 1.5rem;
}

.chc-lead {
	font-size: 1.15rem;
	line-height: 1.65;
	max-width: 56rem;
}

.chc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 2rem;
}

.chc-section,
.chc-entry {
	padding: 5.5rem 0;
}

.chc-section-mist {
	background: var(--chc-mist);
}

.chc-card-grid,
.chc-photo-grid,
.chc-process-grid,
.chc-footer-columns {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chc-footer-columns {
	gap: clamp(2rem, 2.5vw, 3rem);
	grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
}

.chc-card {
	background: #fff;
	box-shadow: 0 12px 28px rgba(16, 24, 32, 0.08);
	padding: 1.75rem;
}

.chc-card h3 {
	margin-top: 0;
}

.chc-card a,
.chc-text-link,
.chc-entry a {
	color: #0f566e;
}

.chc-photo-grid figure {
	margin: 0;
}

.chc-photo-grid img {
	aspect-ratio: 4 / 3;
	display: block;
	object-fit: cover;
	width: 100%;
}

.chc-photo-grid figcaption {
	font-weight: 700;
	padding-top: 0.75rem;
}

.chc-process-grid article {
	border-top: 3px solid var(--chc-signal);
	padding-top: 1rem;
}

.chc-entry-header {
	margin-bottom: 2rem;
}

.chc-entry h1 {
	font-size: clamp(2.25rem, 4vw, 3.75rem);
	margin: 0;
}

.chc-entry-content {
	line-height: 1.7;
}

.chc-entry-content > * + * {
	margin-top: 1.5rem;
}

.chc-site-footer {
	background: #0b253e;
	border-top: 4px solid var(--chc-signal);
	color: #fff;
	padding: 4rem 0 1.5rem;
}

.chc-footer-cta {
	border-bottom: 1px solid rgba(255, 255, 255, 0.25);
	display: grid;
	gap: clamp(1.75rem, 4vw, 4.5rem);
	grid-template-columns: minmax(0, 1fr) minmax(16rem, 23rem);
	padding: 0 clamp(2.5rem, 6vw, 6rem) 3rem;
}

.chc-footer-cta-copy {
	max-width: 42rem;
}

.chc-footer-cta-copy .chc-eyebrow {
	margin-bottom: 1.1rem;
}

.chc-footer-cta-copy h2 {
	margin: 0;
}

.chc-footer-cta-copy .chc-quote-button {
	margin-top: 1.4rem;
}

.chc-footer-cta-media {
	align-self: stretch;
	border: 1px solid rgba(255, 255, 255, 0.24);
	margin: 0;
	overflow: hidden;
}

.chc-footer-cta-media img {
	display: block;
	height: 100%;
	min-height: 11rem;
	object-fit: cover;
	width: 100%;
}

.chc-footer-columns {
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
	padding: 3.5rem 2rem 3.25rem;
}

.chc-footer-columns p,
.chc-footer-columns li {
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.85rem;
}

.chc-footer-wordmark,
.chc-footer-company {
	display: block;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.chc-footer-wordmark {
	margin-bottom: 0.85rem;
}

.chc-footer-columns > div > h3 {
	color: #fff;
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	margin-bottom: 1.3rem;
	margin-top: 0;
	text-transform: uppercase;
}

.chc-footer-columns > div:first-child h3 {
	color: rgba(255, 255, 255, 0.82);
	font-size: 1rem;
	letter-spacing: 0;
	line-height: 1.45;
	margin-bottom: 0.9rem;
	max-width: 25ch;
	text-transform: none;
}

.chc-footer-contact-label {
	color: var(--chc-signal) !important;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	margin-bottom: 0.2rem;
	text-transform: none;
}

.chc-footer-tax-number {
	color: #e24b3b !important;
	font-weight: 700;
}

.chc-footer-email {
	font-size: 0.68rem;
	letter-spacing: 0;
	white-space: nowrap;
}

.chc-footer-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.chc-footer-list li,
.chc-footer-contact p {
	line-height: 1.5;
	margin: 0;
}

.chc-footer-list li + li,
.chc-footer-contact p + p {
	margin-top: 0.65rem;
}

.chc-footer-list a,
.chc-footer-contact a {
	transition: color 0.2s ease;
}

.chc-footer-list a:hover,
.chc-footer-contact a:hover {
	color: var(--chc-signal);
}

.chc-footer-contact p + p {
	margin-top: 0.4rem;
}

.chc-footer-note {
	color: var(--chc-signal) !important;
	font-weight: 700;
}

.chc-footer-bottom {
	color: rgba(255, 255, 255, 0.65);
	font-size: 0.8rem;
	padding: 1.75rem 2rem 0;
}

@media (max-width: 1100px) {
	.chc-primary-nav > ul {
		gap: 0.7rem;
	}

	.chc-primary-nav a,
	.chc-primary-nav summary {
		font-size: 0.74rem;
	}
}

@media (max-width: 781px) {
	.chc-container {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}

	.chc-topbar-content,
	.chc-mainbar-content,
	.chc-footer-cta,
	.chc-footer-bottom {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.65rem;
	}

	.chc-mainbar-content {
		padding-bottom: 0.75rem;
		padding-top: 0.75rem;
	}

	.chc-menu-toggle {
		display: inline-block;
	}

	.chc-primary-nav {
		display: none;
		width: 100%;
	}

	.chc-primary-nav.is-open {
		display: block;
	}

	.chc-primary-nav > ul {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.9rem;
		padding-top: 0.5rem;
	}

	.chc-primary-nav details > ul {
		box-shadow: none;
		margin-top: 0.75rem;
		position: static;
	}

	.chc-primary-nav .sub-menu {
		box-shadow: none;
		display: block;
		margin-top: 0.75rem;
		position: static;
	}

	.chc-mainbar .chc-quote-button {
		display: none;
	}

	.chc-hero {
		min-height: 520px;
		padding: 4.5rem 0;
	}

	.chc-home-hero {
		min-height: 520px;
		padding: 4.5rem 1.5rem;
	}

	.chc-home-section {
		padding: 4rem 1.25rem;
	}

	.chc-section,
	.chc-entry {
		padding: 4rem 0;
	}

	.chc-card-grid,
	.chc-photo-grid,
	.chc-process-grid,
	.chc-footer-columns {
		grid-template-columns: 1fr;
	}

	.chc-footer-columns {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}

	.chc-footer-cta {
		gap: 1.25rem;
		grid-template-columns: 1fr;
		padding: 0 1.25rem 2rem;
	}

	.chc-footer-cta-media {
		aspect-ratio: 16 / 8;
	}
}
