/* =========================================================
   TRADEZOON — site tokens (page-level, complements mega-nav.css)
   ========================================================= */
:root {
	--chd-container-max: 1320px;
	--chd-font-body: 'Exo 2', sans-serif;
	--chd-bg-page: #ede9e3;   /* warm cream — default site background */
	--chd-ink: #53280a;       /* deep brown — default text color */
	--chd-ink-soft: rgba(83, 40, 10, 0.7);
}

body {
	font-family: var(--chd-font-body);
	background: var(--chd-bg-page);
	color: var(--chd-ink);
}

.chd-hero,
.chd-nav-link,
.chd-logo-text,
.chd-nav-cta,
.chd-hero-cta {
	font-family: var(--chd-font-body);
}

.chd-container {
	max-width: var(--chd-container-max);
	margin: 0 auto;
	padding: 0 32px;
}

/* Bring the nav/topbar/mega-menu in line with the site-wide 1320px standard. */
.chd-topbar-inner,
.chd-nav-inner,
.chd-mega-inner {
	max-width: var(--chd-container-max);
}

/* =========================================================
   FIXED-HEADER OFFSET
   The topbar+nav cluster is `position: fixed` (see mega-nav.css),
   so it no longer reserves space in normal document flow. Regular
   pages need that space pushed back in via body padding; hero pages
   deliberately skip it so the hero can sit behind the bar.
   ========================================================= */
body {
	padding-top: calc(var(--chnav-topbar-height) + var(--chnav-height));
}

body.chd-hero-template {
	padding-top: 0;
}

/* =========================================================
   KILL GENERATEPRESS'S SIDEBAR GRID ON HERO TEMPLATES
   This is what was pushing the hero to the left and the page
   content into a phantom sidebar column on the right.
   ========================================================= */
body.chd-hero-template #content.site-content,
body.chd-hero-template .site-content {
	display: block !important;
	grid-template-columns: none !important;
	width: 100% !important;
	max-width: none !important;
}

/* =========================================================
   HERO — shared base
   ========================================================= */
.chd-hero {
	position: relative;
	width: 100%;
	min-height: 100vh;
	overflow: hidden;
	background-color: #1f120a; /* fallback if no image set */
	display: flex;
	color: #ffffff;
}

/* Separate layer for the image so we can zoom it independently on hover
   without touching the text layer above it. */
.chd-hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transform: scale(1);
	transition: transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
	z-index: 0;
}
.chd-hero:hover .chd-hero-bg {
	transform: scale(1.06);
}

.chd-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(31, 18, 10, 0.35) 0%, rgba(31, 18, 10, 0.65) 100%);
	z-index: 1;
}

.chd-hero-inner {
	position: relative;
	z-index: 2;
	max-width: var(--chd-container-max);
	width: 100%;
	margin: 0 auto;
	padding: 0 32px;
}

.chd-hero-title {
	color: #ffffff;
	font-weight: 700;
	line-height: 1.1;
	margin: 0 0 24px;
	transition: letter-spacing 0.4s ease;
}
.chd-hero-title:hover { letter-spacing: 0.01em; }

/* Entrance animation — staggered fade + rise on load */
@keyframes chdHeroRise {
	from { opacity: 0; transform: translateY(22px); }
	to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
	.chd-hero-tagline, .chd-hero-title, .chd-hero-cta { animation: none !important; }
}

/* =========================================================
   HERO — Main template (centered)
   ========================================================= */
.chd-hero--main { align-items: center; }

.chd-hero-inner--main {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 4px;
	padding-top: 60px;
	padding-bottom: 60px;
}

.chd-hero--main .chd-hero-tagline {
	color: rgba(255, 255, 255, 0.9);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin: 0 0 18px;
	animation: chdHeroRise 0.7s ease both;
	animation-delay: 0.1s;
	transition: letter-spacing 0.4s ease, color 0.3s ease;
}
.chd-hero--main .chd-hero-tagline:hover {
	letter-spacing: 0.24em;
	color: var(--chnav-accent);
}

.chd-hero--main .chd-hero-title {
	font-size: clamp(36px, 5.5vw, 68px);
	max-width: 900px;
	margin-bottom: 28px;
	animation: chdHeroRise 0.8s ease both;
	animation-delay: 0.25s;
}

.chd-hero--main .chd-hero-cta {
	animation: chdHeroRise 0.8s ease both;
	animation-delay: 0.42s;
}

/* =========================================================
   CTA — the "stunning" premium button
   Gold gradient fill, lift + glow on hover, shimmer sweep.
   ========================================================= */
.chd-hero-cta {
	position: relative;
	display: inline-flex;
	align-items: center;
	overflow: hidden;
	background: linear-gradient(135deg, #e0b169 0%, #c9974b 45%, #a97a34 100%);
	color: #2a1810;
	font-weight: 700;
	font-size: 16px;
	letter-spacing: 0.02em;
	padding: 16px 38px;
	border-radius: 999px;
	text-decoration: none;
	box-shadow: 0 8px 24px rgba(201, 151, 75, 0.35), 0 2px 6px rgba(0, 0, 0, 0.25);
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.chd-hero-cta::before {
	content: '';
	position: absolute;
	top: 0;
	left: -60%;
	width: 40%;
	height: 100%;
	background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
	transform: skewX(-20deg);
	transition: left 0.6s ease;
}

.chd-hero-cta:hover {
	transform: translateY(-3px) scale(1.03);
	box-shadow: 0 14px 32px rgba(201, 151, 75, 0.5), 0 4px 10px rgba(0, 0, 0, 0.3);
}
.chd-hero-cta:hover::before { left: 130%; }

/* =========================================================
   HERO — Subpage template (bottom-left)
   ========================================================= */
.chd-hero--sub {
	align-items: flex-end;
	min-height: 80vh;
}

.chd-hero-inner--sub {
	padding-bottom: 64px;
	text-align: left;
}

.chd-hero--sub .chd-hero-title {
	font-size: clamp(30px, 4.2vw, 50px);
	max-width: 760px;
	margin-bottom: 0;
	animation: chdHeroRise 0.8s ease both;
	animation-delay: 0.15s;
}

/* =========================================================
   PAGE CONTENT (below hero)
   ========================================================= */
.chd-page-content {
	padding: 64px 0;
	background: var(--chd-bg-page);
}
.chd-page-content .chd-container { color: var(--chd-ink); }

/* =========================================================
   FOOTER — 4 columns + copyright bar
   ========================================================= */
.chd-footer {
	background: var(--chnav-bg-scrolled);
	color: rgba(255, 255, 255, 0.75);
	margin-top: 0;
}

.chd-footer-inner {
	max-width: var(--chd-container-max);
	margin: 0 auto;
	padding: 64px 32px 40px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
}

.chd-footer-widget-title {
	color: #ffffff;
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 16px;
}

.chd-footer-widget,
.chd-footer-col {
	font-size: 14px;
	line-height: 1.7;
}

.chd-footer-col a {
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	transition: color 0.2s ease;
}
.chd-footer-col a:hover { color: var(--chnav-accent); }

.chd-footer-placeholder {
	color: rgba(255, 255, 255, 0.35);
	font-style: italic;
	font-size: 13px;
}

.chd-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chd-footer-bottom-inner {
	max-width: var(--chd-container-max);
	margin: 0 auto;
	padding: 20px 32px;
	text-align: center;
}

.chd-footer-copy {
	margin: 0;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.5);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
	.chd-footer-inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }

	body { padding-top: calc(var(--chnav-topbar-height) + 72px); } /* matches mobile --chnav-height */
	body.chd-hero-template { padding-top: 0; }
}

@media (max-width: 768px) {
	.chd-hero--main { min-height: 90vh; }
	.chd-hero--sub { min-height: 70vh; }
	.chd-hero-inner--main { padding-top: 40px; padding-bottom: 40px; }
	.chd-hero-inner--sub { padding-bottom: 36px; }
	.chd-footer-inner { grid-template-columns: 1fr; text-align: center; padding: 48px 20px 32px; }
	.chd-footer-col a { justify-content: center; }
	.chd-container { padding: 0 20px; }
}
