/* =============================================================
   Elite Pearl Charter — footer + floating contact buttons

   Same monochrome palette as the header: black ground, white
   text, silver secondary, and the white-to-silver gradient as
   the only accent.
   ============================================================= */

.epc-footer {
	background: var(--epc-black);
	border-top: 1px solid var(--epc-line);
	color: var(--epc-silver);
	font-family: var(--epc-font-sans);
}

.epc-footer__inner {
	display: grid;
	gap: 2.5rem;
	width: 100%;
	max-width: var(--epc-container);
	margin-inline: auto;
	padding: 3rem var(--epc-gutter);
}

/* Tablet — the two link columns pair up under the brand block. */
@media (min-width: 768px) {
	.epc-footer__inner {
		grid-template-columns: 1fr 1fr;
		gap: 3rem 2.5rem;
		padding-block: 4rem;
	}

	.epc-footer__col--brand {
		grid-column: 1 / -1;
		max-width: 560px;
	}
}

/* Desktop — brand block wider, then the two link columns. */
@media (min-width: 1200px) {
	.epc-footer__inner {
		grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
		gap: 4rem;
		padding-block: 5rem;
	}

	.epc-footer__col--brand {
		grid-column: auto;
		max-width: 460px;
	}
}

/* --- Brand column -------------------------------------------- */

.epc-footer__brand {
	display: inline-block;
	text-decoration: none;
}

.epc-footer__logo {
	display: block;
	width: auto;
	height: 84px;
}

@media (min-width: 768px) {
	.epc-footer__logo {
		height: 100px;
	}
}

.epc-footer__legal-name {
	margin: 1.25rem 0 0.9rem;
	font-family: var(--epc-font-serif);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--epc-white);
}

.epc-footer__about {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.9;
	color: var(--epc-grey);
}

.epc-footer__about strong {
	font-weight: 600;
	color: var(--epc-white);
}

/* --- Column headings ------------------------------------------ */

.epc-footer__heading {
	margin: 0 0 1.5rem;
	font-family: var(--epc-font-serif);
	font-size: clamp(1.35rem, 2.6vw, 1.75rem);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.2;

	/* The signature gradient, same as .custom-title. */
	background: var(--epc-gradient-title);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* --- Link lists ------------------------------------------------ */

.epc-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.epc-footer__links li + li {
	margin-top: 0.85rem;
}

.epc-footer__links a {
	display: inline-flex;
	align-items: baseline;
	gap: 0.65rem;
	font-size: 0.9375rem;
	color: var(--epc-silver);
	text-decoration: none;
	transition: color var(--epc-speed) var(--epc-ease);
}

.epc-footer__links a:hover,
.epc-footer__links a:focus-visible {
	color: var(--epc-white);
}

/* The arrow nudges right on hover. */
.epc-footer__links a i {
	flex-shrink: 0;
	font-size: 0.8125rem;
	transition: transform var(--epc-speed) var(--epc-ease);
}

.epc-footer__links a:hover i,
.epc-footer__links a:focus-visible i {
	transform: translateX(4px);
}

/* --- Payment icons --------------------------------------------- */

.epc-footer__payments {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.1rem;
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
	font-size: 1.4rem;
	color: var(--epc-white);
}

.epc-footer__payments li {
	display: inline-flex;
	line-height: 1;
}

/* --- Social icons ---------------------------------------------- */

.epc-footer__social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.1rem;
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
}

.epc-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.35rem;
	line-height: 1;
	color: var(--epc-white);
	text-decoration: none;
	transition: color var(--epc-speed) var(--epc-ease),
		transform var(--epc-speed) var(--epc-ease);
}

.epc-footer__social a:hover,
.epc-footer__social a:focus-visible {
	color: var(--epc-silver);
	transform: translateY(-3px);
}

/* --- Oversized wordmark ---------------------------------------- */

/*
 * The rule spans the full width, but the wordmark itself is constrained to the
 * same max-width and gutters as the columns above so the two line up.
 */
.epc-footer__wordmark {
	padding-block: 1.5rem 0.75rem;
	border-top: 1px solid var(--epc-line);
}

.epc-footer__wordmark-inner {
	max-width: var(--epc-container);
	margin-inline: auto;
	padding-inline: var(--epc-gutter);

	/*
	 * Makes this box the reference for the cqi unit below, so the text scales
	 * to the CONTENT width rather than the viewport. Without this the wordmark
	 * kept growing past the container on wide screens.
	 */
	container-type: inline-size;

	/* Safety net: clip rather than force the page to scroll sideways. */
	overflow: hidden;
}

.epc-footer__wordmark-text {
	margin: 0;
	font-family: var(--epc-font-serif);
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.05;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;

	/*
	 * "Elite Pearl Charter®" measures ~12.3em wide in Cardo 600 (calibrated
	 * against the live site: 100.8px type spanning ~1240px), so 100/12.3 ≈ 8.1
	 * fills the content box almost exactly.
	 *
	 * The clamp is the fallback for browsers without container query units;
	 * those that support cqi use the second declaration and ignore the first.
	 */
	font-size: clamp(1.4rem, 7.4vw, 7rem);
	font-size: 8.1cqi;
}

.epc-footer__wordmark-text sup {
	font-size: 0.17em;
	vertical-align: super;
	color: var(--epc-silver);
	-webkit-text-fill-color: var(--epc-silver);
}

/* --- Copyright bar --------------------------------------------- */

.epc-footer__bar {
	padding: 0 var(--epc-gutter) 2rem;
	text-align: center;
}

.epc-footer__bar p {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--epc-grey);
}

/* =============================================================
   Floating call + WhatsApp buttons
   ============================================================= */

.epc-float {
	position: fixed;
	right: 0.75rem;
	bottom: 0.75rem;
	z-index: calc(var(--epc-z-header) + 20);
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

@media (min-width: 768px) {
	.epc-float {
		right: 1.25rem;
		bottom: 1.25rem;
		gap: 0.75rem;
	}
}

/*
 * The floating pair sits at --epc-z-header + 20, which put it on top of the
 * open drawer. It also duplicates the drawer's own call and WhatsApp buttons,
 * so it is simply taken out of the way while the drawer is open rather than
 * restacked.
 */
body.epc-nav-open .epc-float {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.epc-float__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	overflow: hidden;
	font-size: 1.25rem;
	line-height: 1;
	color: var(--epc-black);
	background: var(--epc-gradient-title);
	border-radius: 50%;
	text-decoration: none;
	box-shadow: 0 4px 16px rgb(0 0 0 / 45%);
	/* Gradients cannot be transitioned, so the hover fill is a separate layer. */
	transition: transform 260ms var(--epc-ease),
		box-shadow 260ms var(--epc-ease);
}

@media (min-width: 768px) {
	.epc-float__btn {
		width: 56px;
		height: 56px;
		font-size: 1.45rem;
	}
}

.epc-float__fill {
	position: absolute;
	inset: 0;
	background: var(--epc-white);
	opacity: 0;
	pointer-events: none;
	transition: opacity 260ms var(--epc-ease);
}

.epc-float__btn i {
	position: relative;
	z-index: 1;
}

.epc-float__btn:hover,
.epc-float__btn:focus-visible {
	transform: translateY(-3px) scale(1.05);
	box-shadow: 0 8px 24px rgb(0 0 0 / 55%);
}

.epc-float__btn:hover .epc-float__fill,
.epc-float__btn:focus-visible .epc-float__fill {
	opacity: 1;
}

.epc-float__btn:active {
	transform: translateY(0) scale(1);
}

.epc-float__btn:focus-visible {
	outline: 2px solid var(--epc-white);
	outline-offset: 3px;
}

/* --- Reduced motion -------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.epc-footer__links a,
	.epc-footer__links a i,
	.epc-footer__social a,
	.epc-float__btn,
	.epc-float__fill {
		transition-duration: 0.01ms !important;
	}

	.epc-float__btn:hover,
	.epc-float__btn:focus-visible,
	.epc-footer__social a:hover,
	.epc-footer__social a:focus-visible {
		transform: none;
	}
}
