/* =========================================================
   CTA Sticky Tab
   Hard Chaw-inspired visual treatment
========================================================= */

.cta-sticky-tab {
	--cta-brown: #45372b;
	--cta-brown-deep: #24170f;
	--cta-gold: #a58830;
	--cta-gold-light: #c7ad58;
	--cta-orange: #f56818;
	--cta-green: #1e8a2f;
	--cta-white: #fff;
	--cta-cream: #f4ead8;
	--cta-trigger-width: min(330px, calc(100vw - 34px));

	position: relative;
	z-index: 99998;
}

body.cta-sticky-tab-open {
	overflow: hidden;
}

/* =========================
   STICKY TRIGGER
========================= */

.cta-sticky-tab__trigger {
	position: fixed;
	top: 50%;
	right: 0;
	z-index: 100001;

	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas:
		"kicker arrow"
		"copy arrow";
	align-items: center;
	column-gap: 15px;
	row-gap: 5px;

	width: var(--cta-trigger-width);
	padding: 18px 20px 18px 22px;

	border: 1px solid rgba(255,255,255,.16);
	border-right: 0;
	border-radius: 3px 0 0 3px;

	background:
		linear-gradient(rgba(36,23,15,.76), rgba(36,23,15,.86)),
		linear-gradient(135deg, #5a4738, #2e2118);

	color: var(--cta-white);

	box-shadow:
		-10px 12px 30px rgba(0,0,0,.28),
		inset 0 1px 0 rgba(255,255,255,.08);

	text-align: left;
	cursor: pointer;

	transform: translateY(-50%) translateX(0);
	transition:
		transform .35s cubic-bezier(.22,1,.36,1),
		box-shadow .25s ease,
		opacity .25s ease;
}

.cta-sticky-tab__trigger::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 5px;
	background: linear-gradient(
		to bottom,
		var(--cta-green) 0 32%,
		var(--cta-white) 32% 64%,
		var(--cta-orange) 64% 100%
	);
}

.cta-sticky-tab__trigger::after {
	content: '';
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 8px;
	height: 1px;
	background: rgba(165,136,48,.65);
}

.cta-sticky-tab__trigger:hover,
.cta-sticky-tab__trigger:focus-visible {
	transform: translateY(-50%) translateX(-7px);
	box-shadow:
		-14px 18px 36px rgba(0,0,0,.34),
		inset 0 1px 0 rgba(255,255,255,.1);
	outline: none;
}

.cta-sticky-tab__trigger-kicker {
	grid-area: kicker;

	font-family: 'BernhardModern-Roman', Georgia, serif !important;
	font-size: .625rem;
	line-height: 1;
	letter-spacing: .18em;
	text-transform: uppercase;

	color: var(--cta-gold-light);
}

.cta-sticky-tab__trigger-copy {
	grid-area: copy;

	font-family: 'BernhardModern-Bold', Georgia, serif !important;
	font-size: 1.1875rem;
	line-height: 1.13;

	color: var(--cta-white);
}

.cta-sticky-tab__trigger-arrow {
	grid-area: arrow;

	font-family: 'BernhardModern-Roman', Georgia, serif !important;
	font-size: 1.75rem;
	color: var(--cta-orange);

	transition: transform .25s ease;
}

.cta-sticky-tab__trigger:hover .cta-sticky-tab__trigger-arrow {
	transform: translateX(4px);
}

/* Hide / restore control */
.cta-sticky-tab__minimize {
	position: fixed;
	top: 50%;
	right: var(--cta-trigger-width);
	z-index: 100002;

	display: grid;
	place-items: center;

	width: 2.25rem;
	height: 3.25rem;
	padding: 0;

	border: 1px solid rgba(255,255,255,.16);
	border-right: 0;
	border-radius: 3px 0 0 3px;

	background: var(--cta-orange);
	color: var(--cta-white);

	box-shadow: -8px 10px 22px rgba(0,0,0,.22);

	cursor: pointer;

	transform: translateY(-50%);
	transition:
		right .35s cubic-bezier(.22,1,.36,1),
		background .2s ease,
		transform .2s ease;
}

.cta-sticky-tab__minimize:hover,
.cta-sticky-tab__minimize:focus-visible {
	background: var(--cta-gold);
	outline: none;
}

.cta-sticky-tab__minimize-icon {
	display: block;
	font-family: Arial, sans-serif;
	font-size: 1.75rem;
	font-weight: 400;
	line-height: 1;
	transform: translateX(.05em);
	transition: transform .35s ease;
}

/* Slide the CTA almost fully off-screen, leaving the restore handle. */
.cta-sticky-tab.is-collapsed .cta-sticky-tab__trigger {
	transform: translateY(-50%) translateX(calc(100% + 2px));
	opacity: 0;
	pointer-events: none;
}

.cta-sticky-tab.is-collapsed .cta-sticky-tab__minimize {
	right: 0;
}

.cta-sticky-tab.is-collapsed .cta-sticky-tab__minimize-icon {
	transform: rotate(180deg);
}

/* =========================
   OVERLAY
========================= */

.cta-sticky-tab__overlay {
	position: fixed;
	inset: 0;
	z-index: 100002;

	background: rgba(24, 15, 10, .52);

	opacity: 0;
	visibility: hidden;

	transition:
		opacity .35s ease,
		visibility .35s ease;
}

/* =========================
   PANEL
========================= */

.cta-sticky-tab__panel {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 100003;

	width: min(820px, 94vw);
	height: 100dvh;

	background:
		linear-gradient(rgba(39,25,16,.97), rgba(28,17,11,.99)),
		radial-gradient(circle at 30% 15%, rgba(165,136,48,.16), transparent 34%);

	color: var(--cta-cream);

	box-shadow: -24px 0 70px rgba(0,0,0,.38);

	overflow-y: auto;
	overscroll-behavior: contain;

	transform: translateX(105%);
	visibility: hidden;

	transition:
		transform .48s cubic-bezier(.22,1,.36,1),
		visibility .48s ease;
}

.cta-sticky-tab__panel::before {
	content: '';
	position: fixed;
	top: 0;
	right: 0;
	width: min(820px, 94vw);
	height: 7px;
	z-index: 4;

	background: linear-gradient(
		90deg,
		var(--cta-green) 0 31%,
		var(--cta-white) 31% 66%,
		var(--cta-orange) 66% 100%
	);
}

.cta-sticky-tab.is-open .cta-sticky-tab__overlay {
	opacity: 1;
	visibility: visible;
}

.cta-sticky-tab.is-open .cta-sticky-tab__panel {
	transform: translateX(0);
	visibility: visible;
}

/* =========================
   CLOSE BUTTON
========================= */

.cta-sticky-tab__close {
	position: absolute;
	top: 24px;
	left: 24px;
	right: auto;
	z-index: 10;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 46px;
	height: 46px;
	padding: 0;

	border: 1px solid rgba(244,234,216,.36);
	border-radius: 0;

	background: rgba(36,23,15,.76);
	color: var(--cta-white);

	font-family: Arial, sans-serif;
	font-size: 0;
	font-weight: 300;
	line-height: 1;

	cursor: pointer;

	transition:
		background .2s ease,
		color .2s ease,
		transform .2s ease;
}

.cta-sticky-tab__close span {
	display: none;
}

.cta-sticky-tab__close::before,
.cta-sticky-tab__close::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 1.45rem;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
	transform-origin: center;
}

.cta-sticky-tab__close::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.cta-sticky-tab__close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.cta-sticky-tab__close:hover,
.cta-sticky-tab__close:focus-visible {
	background: var(--cta-orange);
	color: var(--cta-white);
	transform: rotate(4deg);
	outline: none;
}

/* =========================
   PANEL LAYOUT
========================= */

.cta-sticky-tab__panel-inner {
	min-height: 100%;
	display: grid;
	grid-template-columns: minmax(260px, .78fr) 1.22fr;
}

/* =========================
   VISUAL / PHOTO
========================= */

.cta-sticky-tab__visual {
	position: sticky;
	top: 0;

	min-height: 100vh;
	height: 100vh;

	overflow: hidden;
	background: #15100c;
}

.cta-sticky-tab__image {
	position: absolute;
	inset: 0;

	width: 100%;
	height: 100%;

	object-fit: cover;
	object-position: center top;

	display: block;

	filter:
		saturate(.86)
		contrast(1.04)
		brightness(.84);
}

.cta-sticky-tab__visual-overlay {
	position: absolute;
	inset: 0;

	background:
		linear-gradient(
			to top,
			rgba(21,13,8,.9) 0%,
			rgba(21,13,8,.18) 48%,
			rgba(21,13,8,.18) 100%
		),
		linear-gradient(
			to right,
			rgba(30,138,47,.18),
			transparent 30%,
			transparent 68%,
			rgba(245,104,24,.18)
		);

	pointer-events: none;
}

.cta-sticky-tab__visual-copy {
	position: absolute;
	left: 28px;
	right: 28px;
	bottom: 34px;
	z-index: 2;

	display: flex;
	flex-direction: column;
	align-items: center;

	text-align: center;
	color: var(--cta-white);
}

.cta-sticky-tab__badge {
	font-family: 'BernhardModern-Bold', Georgia, serif !important;
	font-size: 1.75rem;
	line-height: 1;
	letter-spacing: .02em;
	text-transform: uppercase;
	text-shadow: 0 3px 14px rgba(0,0,0,.45);
}

.cta-sticky-tab__visual-line {
	width: 78px;
	height: 1px;
	margin: 12px 0 9px;
	background: var(--cta-gold);
}

.cta-sticky-tab__visual-small {
	font-family: 'BernhardModern-Roman', Georgia, serif !important;
	font-size: .6875rem;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: var(--cta-cream);
}

/* =========================
   CONTENT
========================= */

.cta-sticky-tab__content {
	position: relative;

	padding: 92px 56px 72px;

	background:
		repeating-linear-gradient(
			0deg,
			rgba(255,255,255,.012) 0,
			rgba(255,255,255,.012) 1px,
			transparent 1px,
			transparent 4px
		);
}

.cta-sticky-tab__content::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 1px;
	background: rgba(165,136,48,.45);
}

.cta-sticky-tab__eyebrow {
	margin-bottom: 14px;
	font-weight: 600;
	font-family: 'BernhardModern-Roman', Georgia, serif !important;
	font-size: .75rem;
	line-height: 1.2;
	letter-spacing: .18em;
	text-transform: uppercase;

	color: var(--cta-gold-light);
}

.cta-sticky-tab__heading {
	margin: 0 0 18px !important;

	font-family: 'BernhardModern-Bold', Georgia, serif !important;
	font-size: clamp(2.625rem, 4.3vw, 3.25rem) !important;
	font-weight: normal !important;
	line-height: .92 !important;
	letter-spacing: -.02em;

	color: var(--cta-white) !important;
}

.cta-sticky-tab__ornament {
	display: flex;
	align-items: center;
	gap: 10px;

	margin: 20px 0 28px;

	color: var(--cta-gold);
}

.cta-sticky-tab__ornament span {
	width: 42px;
	height: 1px;
	background: var(--cta-gold);
}

.cta-sticky-tab__ornament i {
	font-style: normal;
	font-size: .5rem;
	color: var(--cta-orange);
}

.cta-sticky-tab__body {
	font-family: 'BernhardModern-Roman', Georgia, serif !important;
	font-size: 1.1875rem;
	line-height: 1.58;
	color: var(--cta-cream);
}

.cta-sticky-tab__body p,
.cta-sticky-tab__body li {
	font-family: 'BernhardModern-Roman', Georgia, serif !important;
	font-size: 1.3125rem;
	line-height: 1.25;
	color: var(--cta-cream);
}

.cta-sticky-tab__body p {
	margin: 0 0 1.15em;
}

.cta-sticky-tab__body em {
	color: var(--cta-gold-light);
}

.cta-sticky-tab__body ul {
	margin: 18px 0 26px;
	padding: 0;
	list-style: none;
}

.cta-sticky-tab__body li {
	position: relative;
	margin: 0 0 15px;
	padding-left: 22px;
}

.cta-sticky-tab__body li::before {
	content: '◆';
	position: absolute;
	left: 0;
	top: .34em;
	font-size: .5rem;
	color: var(--cta-orange);
}

.cta-sticky-tab__body strong {
	font-family: 'BernhardModern-Bold', Georgia, serif !important;
	color: var(--cta-white);
}

.cta-sticky-tab__body a {
	color: var(--cta-gold-light);
	text-decoration-color: var(--cta-orange);
}

/* =========================
   RESPONSIVE
========================= */

@media screen and (max-width: 980px) {

	.cta-sticky-tab__panel-inner {
		grid-template-columns: 1fr;
	}

	.cta-sticky-tab__visual {
		position: relative;
		height: 48vh;
		min-height: 380px;
	}

	.cta-sticky-tab__content {
		padding: 56px 38px 64px;
	}

	.cta-sticky-tab__heading {
		font-size: 3rem !important;
	}
}

@media screen and (max-width: 700px) {

	.cta-sticky-tab {
		--cta-trigger-width: calc(100vw - 28px);
	}

	.cta-sticky-tab__trigger {
		top: auto;
		right: 14px;
		bottom: 14px;

		width: var(--cta-trigger-width);

		border-right: 1px solid rgba(255,255,255,.16);
		border-radius: 3px;

		transform: translateX(0);
	}

	.cta-sticky-tab__trigger:hover,
	.cta-sticky-tab__trigger:focus-visible {
		transform: translateY(-3px);
	}

	.cta-sticky-tab__minimize {
		top: auto;
		right: 14px;
		bottom: calc(14px + 5.15rem);

		width: 2.65rem;
		height: 2.65rem;

		border-right: 1px solid rgba(255,255,255,.16);
		border-radius: 3px;

		transform: none;
	}

	.cta-sticky-tab.is-collapsed .cta-sticky-tab__trigger {
		transform: translateX(calc(100% + 20px));
		opacity: 0;
		pointer-events: none;
	}

	.cta-sticky-tab.is-collapsed .cta-sticky-tab__minimize {
		right: 14px;
		bottom: 14px;
	}

	.cta-sticky-tab__panel {
		width: 100%;
	}

	.cta-sticky-tab__panel::before {
		width: 100%;
	}

	.cta-sticky-tab__visual {
		height: 42vh;
		min-height: 300px;
	}

	.cta-sticky-tab__content {
		padding: 46px 24px 54px;
	}

	.cta-sticky-tab__heading {
		font-size: 2.5rem !important;
	}

	.cta-sticky-tab__body,
	.cta-sticky-tab__body p,
	.cta-sticky-tab__body li {
		font-size: 1.5rem;
	}

	.cta-sticky-tab__close {
		top: 20px;
		left: 18px;
		right: auto;
	}
}

@media (prefers-reduced-motion: reduce) {

	.cta-sticky-tab__trigger,
	.cta-sticky-tab__panel,
	.cta-sticky-tab__overlay,
	.cta-sticky-tab__close,
	.cta-sticky-tab__trigger-arrow,
	.cta-sticky-tab__minimize,
	.cta-sticky-tab__minimize-icon {
		transition: none !important;
	}
}
