/* =========================================================================
   JD Allen — Site Header & Footer
   Locked brand system: do not change hex values.
   ========================================================================= */
.jdhf {
	--bg: #0A0A0A; --surface: #111111; --green: #3B5A3F; --gold: #C9A84C; --gold-hover: #E2BF6E;
	--cream: #F5F0E8; --body: #D4CFC6; --muted: #8A8680; --red: #C0392B; --line: #2A2A2A;
	--serif: "Playfair Display", Georgia, serif;
	--sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-family: var(--sans); color: var(--body); -webkit-font-smoothing: antialiased; line-height: 1.5;
}
.jdhf *, .jdhf *::before, .jdhf *::after { box-sizing: border-box; }
.jdhf a { color: inherit; text-decoration: none; transition: color .2s, background .2s, border-color .2s, transform .2s, opacity .2s; }
.jdhf ul, .jdhf ol { list-style: none; margin: 0; padding: 0; }
.jdhf li { margin: 0; padding: 0; }
.jdhf p { margin: 0; }
.jdhf h2, .jdhf h3 { font-family: var(--serif); color: var(--cream); margin: 0; font-weight: 600; letter-spacing: -.01em; text-transform: none; line-height: 1.15; }
.jdhf svg { width: 1em; height: 1em; flex: none; display: block; }
.jdhf img { display: block; max-width: 100%; }
.jdhf sup.jdhf-tm { font-size: .5em; vertical-align: super; line-height: 0; margin-left: .05em; }
.jdhf-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }

/* ---------- Buttons ---------- */
.jdhf .jdhf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 999px; font-size: 14.5px; font-weight: 700; white-space: nowrap; letter-spacing: .01em; }
.jdhf .jdhf-btn-gold { background: var(--gold); color: var(--bg); }
.jdhf .jdhf-btn-gold:hover { background: var(--gold-hover); color: var(--bg); transform: translateY(-1px); }
.jdhf .jdhf-btn-ghost { border: 1px solid rgba(201,168,76,.45); color: var(--cream); }
.jdhf .jdhf-btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.jdhf .jdhf-btn-lg { height: 52px; padding: 0 26px; font-size: 15.5px; }

/* ---------- Brand ---------- */
.jdhf .jdhf-brand { display: inline-flex; align-items: center; gap: 12px; }
.jdhf .jdhf-brand-photo { width: 44px; height: 44px; border-radius: 50%; padding: 2px; border: 1.5px solid var(--gold); box-shadow: 0 0 0 2.5px var(--bg), 0 0 0 3.5px rgba(201,168,76,.5); flex: none; }
.jdhf .jdhf-brand-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.jdhf .jdhf-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.jdhf .jdhf-brand-name { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--cream); }
.jdhf .jdhf-brand-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }
.jdhf .jdhf-brand:hover .jdhf-brand-name { color: var(--gold-hover); }

/* =========================================================================
   HEADER
   ========================================================================= */
.jdhf-header {
	position: sticky; top: 0; top: var(--wp-admin--admin-bar--height, 0px); z-index: 9990;
	border-bottom: 1px solid transparent; transition: border-color .3s;
}
/* Blur lives on a background layer so the fixed mobile menu is not trapped inside the bar. */
.jdhf-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10,10,10,.86);
	backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); transition: background .3s; }
.jdhf-header.is-scrolled::before { background: rgba(10,10,10,.95); }
.jdhf-header.is-open::before { background: var(--bg); }
.jdhf-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(201,168,76,.55), transparent); opacity: .5; transition: opacity .3s; }
.jdhf-header.is-scrolled { border-bottom-color: var(--line); }
.jdhf-header.is-scrolled::after { opacity: 0; }
.jdhf-header-inner { display: flex; align-items: center; gap: 28px; height: 78px; transition: height .3s; }
.jdhf-header.is-scrolled .jdhf-header-inner { height: 66px; }
.jdhf-header.is-scrolled .jdhf-drawer { top: 66px; }

.jdhf-nav { margin-left: auto; }
.jdhf-nav ul { display: flex; align-items: center; gap: 4px; }
.jdhf-nav a { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; font-size: 15px; font-weight: 500; color: var(--body); }
.jdhf-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.jdhf-nav a:hover, .jdhf-nav a.is-current { color: var(--cream); }
.jdhf-nav a:hover::after, .jdhf-nav a.is-current::after { transform: scaleX(1); }
.jdhf-ext { font-size: 11px; opacity: .55; }
.jdhf-actions { display: flex; gap: 10px; }

.jdhf-burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; padding: 0; position: relative; }
.jdhf-burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--cream); transition: transform .3s, opacity .3s, top .3s; }
.jdhf-burger span:nth-child(1) { top: 15px; }
.jdhf-burger span:nth-child(2) { top: 21px; }
.jdhf-burger span:nth-child(3) { top: 27px; }
.jdhf-header.is-open .jdhf-burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.jdhf-header.is-open .jdhf-burger span:nth-child(2) { opacity: 0; }
.jdhf-header.is-open .jdhf-burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Mobile drawer */
.jdhf-drawer { position: fixed; left: 0; right: 0; bottom: 0; top: 78px; background: var(--bg); overflow-y: auto; z-index: 9989;
	background-image: radial-gradient(600px 400px at 100% 0%, rgba(59,90,63,.4), transparent 70%); }
.jdhf-drawer[hidden] { display: none; }
.jdhf-drawer-inner { padding: 28px 24px 40px; display: flex; flex-direction: column; gap: 30px; min-height: 100%; }
.jdhf-drawer-nav li { border-bottom: 1px solid var(--line); }
.jdhf-drawer-nav a { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; font-family: var(--serif); font-size: 26px; color: var(--cream); }
.jdhf-drawer-nav a em { font-style: normal; font-family: var(--sans); font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: .1em; }
.jdhf-drawer-nav a:hover { color: var(--gold-hover); }
.jdhf-drawer-ctas { display: grid; gap: 10px; }
.jdhf-drawer-ctas .jdhf-btn { height: 52px; font-size: 16px; }
body.jdhf-locked { overflow: hidden; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.jdhf-footer { background: var(--bg); border-top: 1px solid var(--line); position: relative; z-index: 1; }
.jdhf .jdhf-eyebrow { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.jdhf .jdhf-bar { width: 36px; height: 2px; background: var(--gold); display: inline-block; }

.jdhf-band { position: relative; overflow: hidden; padding: 72px 0; border-bottom: 1px solid var(--line);
	background: radial-gradient(800px 380px at 0% 0%, rgba(59,90,63,.55), transparent 65%), radial-gradient(600px 300px at 100% 100%, rgba(201,168,76,.09), transparent 70%), #0c0e0c; }
.jdhf-band::after { content: ""; position: absolute; right: 6%; top: 50%; transform: translateY(-50%); width: 320px; height: 320px; border-radius: 50%;
	border: 1px solid rgba(201,168,76,.22); box-shadow: 0 0 0 26px rgba(201,168,76,.035), 0 0 0 52px rgba(201,168,76,.02); pointer-events: none; }
.jdhf-band-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr auto; gap: 40px; align-items: center; }
.jdhf .jdhf-band h2 { font-size: clamp(30px, 3.6vw, 46px); margin-top: 16px; max-width: 18ch; }
.jdhf .jdhf-band-text { margin-top: 14px; font-size: 17px; max-width: 52ch; color: var(--body); }
.jdhf-band-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.jdhf-footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding-top: 64px; padding-bottom: 56px; }
.jdhf .jdhf-brand-lg .jdhf-brand-photo { width: 56px; height: 56px; }
.jdhf .jdhf-brand-lg .jdhf-brand-name { font-size: 26px; }
.jdhf .jdhf-footer-blurb { margin-top: 20px; font-size: 15px; line-height: 1.65; color: var(--body); max-width: 40ch; }
.jdhf-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.jdhf .jdhf-social { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--body); font-size: 17px; }
.jdhf .jdhf-social:hover { color: var(--bg); background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.jdhf .jdhf-social-youtube:hover { background: var(--red); border-color: var(--red); color: var(--cream); }

.jdhf .jdhf-col h3 { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.jdhf .jdhf-col li + li { margin-top: 11px; }
.jdhf .jdhf-col a { font-size: 15px; color: var(--body); display: inline-block; }
.jdhf .jdhf-col a:hover { color: var(--cream); transform: translateX(3px); }

.jdhf-footer-bottom { position: relative; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 26px; font-size: 13px; color: var(--muted); }
.jdhf-footer-bottom::before { content: ""; position: absolute; top: 0; left: 28px; right: 28px; height: 1px; background: var(--line); }
.jdhf .jdhf-footer-bottom a:hover { color: var(--gold); }
.jdhf .jdhf-top { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--body); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1180px) {
	.jdhf-nav a { padding: 10px 9px; font-size: 14.5px; }
	.jdhf-actions .jdhf-btn-ghost { display: none; }
}
@media (max-width: 1000px) {
	.jdhf-nav, .jdhf-actions { display: none; }
	.jdhf-burger { display: block; }
	.jdhf-footer-main { grid-template-columns: 1fr 1fr; }
	.jdhf-footer-brand { grid-column: 1 / -1; }
	.jdhf-band-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.jdhf-wrap { padding-left: 20px; padding-right: 20px; }
	.jdhf-footer-bottom::before { left: 20px; right: 20px; }
	.jdhf-header-inner { height: 68px; }
	.jdhf-drawer { top: 68px; }
	.jdhf .jdhf-brand-name { font-size: 19px; }
	.jdhf .jdhf-brand-tag { font-size: 9.5px; letter-spacing: .14em; }
	.jdhf-band { padding: 52px 0; }
	.jdhf-band::after { display: none; }
	.jdhf-band-ctas .jdhf-btn { width: 100%; }
	.jdhf-footer-main { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; }
	.jdhf .jdhf-top { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.jdhf *, .jdhf *::before, .jdhf *::after { transition: none !important; }
}
