/* ============================================================
   Clarus Glassboards Page — Full Revamp
   ============================================================ */

/* ── Reset for this page ── */
.page-id-425 .site-main {
	margin: 0;
	padding: 0;
}
.page-id-425 .entry-header {
	display: none;
}

/* ── Hero ── */
.cg-hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden;
	padding: 120px 24px 80px;
}

.cg-hero__bg {
	position: absolute;
	inset: 0;
	background-image: url('/wp-content/uploads/2023/05/Clarus-Wall2Wall-in-Office-Shared-Space.jpg');
	background-size: cover;
	background-position: center;
	transform: scale(1.06);
	transition: transform 8s ease;
}
.cg-hero:hover .cg-hero__bg,
.cg-hero.is-loaded .cg-hero__bg {
	transform: scale(1);
}

.cg-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(160deg, rgba(10,10,10,0.78) 0%, rgba(20,10,0,0.65) 60%, rgba(191,106,8,0.30) 100%);
}

.cg-hero__content {
	position: relative;
	z-index: 2;
	max-width: 820px;
}

.cg-hero__logo {
	max-width: 260px;
	margin: 0 auto 36px;
	filter: brightness(0) invert(1);
	opacity: 0;
	transform: translateY(-20px);
	animation: cgFadeDown 0.8s ease 0.3s forwards;
}

.cg-hero__eyebrow {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 12px;
	font-weight: 700;
	color: #f4ad29;
	background: rgba(244,173,41,0.12);
	border: 1px solid rgba(244,173,41,0.35);
	border-radius: 40px;
	padding: 6px 18px;
	margin-bottom: 22px;
	opacity: 0;
	animation: cgFadeUp 0.7s ease 0.6s forwards;
}

.cg-hero__heading {
	font-size: clamp(2.4rem, 5.5vw, 4.4rem);
	font-weight: 800;
	line-height: 1.1;
	color: #ffffff;
	margin: 0 0 22px;
	letter-spacing: -0.02em;
	opacity: 0;
	animation: cgFadeUp 0.7s ease 0.85s forwards;
}

.cg-hero__heading span {
	color: #f4ad29;
}

.cg-hero__sub {
	font-size: 1.15rem;
	color: rgba(255,255,255,0.82);
	max-width: 580px;
	margin: 0 auto 40px;
	line-height: 1.7;
	opacity: 0;
	animation: cgFadeUp 0.7s ease 1.05s forwards;
}

.cg-hero__actions {
	display: flex;
	gap: 14px;
	justify-content: center;
	flex-wrap: wrap;
	opacity: 0;
	animation: cgFadeUp 0.7s ease 1.2s forwards;
}

.cg-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 30px;
	border-radius: 50px;
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	transition: all 0.3s ease;
	letter-spacing: 0.03em;
}

.cg-btn--primary {
	background: #f4ad29;
	color: #1a0e00;
	box-shadow: 0 4px 24px rgba(244,173,41,0.35);
}
.cg-btn--primary:hover {
	background: #ffbe45;
	transform: translateY(-3px);
	box-shadow: 0 8px 32px rgba(244,173,41,0.5);
	color: #1a0e00;
	text-decoration: none;
}

.cg-btn--outline {
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255,255,255,0.55);
}
.cg-btn--outline:hover {
	background: rgba(255,255,255,0.1);
	border-color: #fff;
	transform: translateY(-3px);
	color: #fff;
	text-decoration: none;
}

.cg-hero__scroll {
	position: absolute;
	bottom: 32px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	opacity: 0;
	animation: cgFadeUp 0.7s ease 1.6s forwards;
}
.cg-hero__scroll-line {
	width: 2px;
	height: 48px;
	background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
	margin: 0 auto;
	animation: cgScrollPulse 2s ease-in-out infinite;
}

/* ── Stats bar ── */
.cg-stats {
	background: #1a1a1a;
	padding: 28px 5%;
}

.cg-stats__inner {
	display: flex;
	justify-content: center;
	gap: 0;
	flex-wrap: wrap;
	max-width: 1100px;
	margin: 0 auto;
}

.cg-stat {
	flex: 1 1 180px;
	text-align: center;
	padding: 18px 24px;
	border-right: 1px solid rgba(255,255,255,0.08);
}
.cg-stat:last-child { border-right: 0; }

.cg-stat__number {
	display: block;
	font-size: 2rem;
	font-weight: 800;
	color: #f4ad29;
	line-height: 1;
	margin-bottom: 6px;
}

.cg-stat__label {
	font-size: 0.82rem;
	color: rgba(255,255,255,0.55);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: 600;
}

/* ── Section base ── */
.cg-section {
	padding: 90px 5%;
}

.cg-section--alt {
	background: #f7f5f2;
}

.cg-section--dark {
	background: #111;
	color: #fff;
}

.cg-section__header {
	text-align: center;
	max-width: 680px;
	margin: 0 auto 60px;
}

.cg-section__eyebrow {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-size: 11px;
	font-weight: 700;
	color: #bf6a08;
	margin-bottom: 12px;
}

.cg-section--dark .cg-section__eyebrow {
	color: #f4ad29;
}

.cg-section__title {
	font-size: clamp(1.8rem, 3.5vw, 2.8rem);
	font-weight: 800;
	color: #1a1200;
	line-height: 1.2;
	letter-spacing: -0.02em;
	margin: 0 0 16px;
}

.cg-section--dark .cg-section__title {
	color: #fff;
}

.cg-section__desc {
	font-size: 1.05rem;
	color: #555;
	line-height: 1.7;
}

.cg-section--dark .cg-section__desc {
	color: rgba(255,255,255,0.65);
}

/* ── Features grid ── */
.cg-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
	max-width: 1140px;
	margin: 0 auto;
}

.cg-feature {
	background: #fff;
	border-radius: 16px;
	padding: 36px 28px;
	box-shadow: 0 2px 16px rgba(0,0,0,0.06);
	border: 1px solid rgba(0,0,0,0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cg-feature:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.cg-feature__icon {
	width: 52px;
	height: 52px;
	background: linear-gradient(135deg, #f4ad29, #bf6a08);
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 22px;
}

.cg-feature__icon svg {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: #fff;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cg-feature__title {
	font-size: 1.15rem;
	font-weight: 700;
	color: #1a1200;
	margin-bottom: 10px;
}

.cg-feature__desc {
	font-size: 0.92rem;
	color: #666;
	line-height: 1.65;
}

/* ── Product lines ── */
.cg-products {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 28px;
	max-width: 1200px;
	margin: 0 auto;
}

.cg-product {
	border-radius: 20px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 4px 24px rgba(0,0,0,0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

.cg-product:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 60px rgba(0,0,0,0.14);
}

.cg-product__image-wrap {
	height: 260px;
	overflow: hidden;
	position: relative;
}

.cg-product__image-wrap::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
}

.cg-product__image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.cg-product:hover .cg-product__image-wrap img {
	transform: scale(1.07);
}

.cg-product__badge {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 1;
	background: #f4ad29;
	color: #1a0e00;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 4px 12px;
	border-radius: 20px;
}

.cg-product__body {
	padding: 28px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.cg-product__title {
	font-size: 1.4rem;
	font-weight: 800;
	color: #1a1200;
	margin-bottom: 10px;
}

.cg-product__desc {
	font-size: 0.92rem;
	color: #666;
	line-height: 1.7;
	flex: 1;
	margin-bottom: 22px;
}

.cg-product__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #bf6a08;
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: none;
	transition: gap 0.2s ease;
}
.cg-product__link:hover {
	text-decoration: none;
	gap: 10px;
	color: #bf6a08;
}
.cg-product__link::after {
	content: '→';
	transition: transform 0.2s ease;
}
.cg-product__link:hover::after {
	transform: translateX(4px);
}

/* ── Gallery ── */
.cg-gallery {
	columns: 3;
	column-gap: 16px;
	max-width: 1200px;
	margin: 0 auto;
}

.cg-gallery__item {
	break-inside: avoid;
	margin-bottom: 16px;
	border-radius: 12px;
	overflow: hidden;
	position: relative;
	display: block;
}

.cg-gallery__item img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.5s ease;
}

.cg-gallery__item::after {
	content: attr(data-caption);
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 60%);
	display: flex;
	align-items: flex-end;
	padding: 16px;
	color: rgba(255,255,255,0);
	font-size: 0.85rem;
	font-weight: 600;
	transition: color 0.3s ease, background 0.3s ease;
}

.cg-gallery__item:hover img {
	transform: scale(1.05);
}

.cg-gallery__item:hover::after {
	color: rgba(255,255,255,0.9);
}

/* ── CTA strip ── */
.cg-cta {
	background: linear-gradient(135deg, #1a0e00 0%, #3d2200 50%, #bf6a08 100%);
	padding: 100px 5%;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.cg-cta::before {
	content: '';
	position: absolute;
	width: 600px;
	height: 600px;
	border-radius: 50%;
	background: rgba(244,173,41,0.08);
	top: -200px;
	right: -100px;
	pointer-events: none;
}

.cg-cta::after {
	content: '';
	position: absolute;
	width: 400px;
	height: 400px;
	border-radius: 50%;
	background: rgba(244,173,41,0.06);
	bottom: -150px;
	left: -80px;
	pointer-events: none;
}

.cg-cta__inner {
	position: relative;
	z-index: 1;
	max-width: 680px;
	margin: 0 auto;
}

.cg-cta__title {
	font-size: clamp(2rem, 4vw, 3.2rem);
	font-weight: 800;
	color: #fff;
	line-height: 1.15;
	margin-bottom: 18px;
	letter-spacing: -0.02em;
}

.cg-cta__sub {
	font-size: 1.05rem;
	color: rgba(255,255,255,0.72);
	margin-bottom: 40px;
	line-height: 1.7;
}

.cg-cta__actions {
	display: flex;
	gap: 14px;
	justify-content: center;
	flex-wrap: wrap;
}

/* ── Animations ── */
@keyframes cgFadeDown {
	to { opacity: 1; transform: translateY(0); }
}

@keyframes cgFadeUp {
	from { opacity: 0; transform: translateY(24px); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes cgScrollPulse {
	0%, 100% { opacity: 0.6; transform: scaleY(1); }
	50%       { opacity: 1;   transform: scaleY(0.7); }
}

/* scroll-reveal */
.cg-reveal {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}
.cg-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}
.cg-reveal--delay-1 { transition-delay: 0.1s; }
.cg-reveal--delay-2 { transition-delay: 0.2s; }
.cg-reveal--delay-3 { transition-delay: 0.3s; }
.cg-reveal--delay-4 { transition-delay: 0.4s; }

/* ── Responsive ── */
@media (max-width: 900px) {
	.cg-gallery { columns: 2; }
	.cg-stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
	.cg-stat:last-child { border-bottom: 0; }
}

@media (max-width: 600px) {
	.cg-hero { padding: 100px 20px 70px; }
	.cg-hero__logo { max-width: 180px; }
	.cg-gallery { columns: 1; }
	.cg-section { padding: 60px 5%; }
	.cg-stats__inner { flex-direction: column; }
	.cg-stat { border-right: 0; }
}
