/* ============================================================
   Elko Local Footer
   ============================================================ */
.eft-replace #main-footer { display: none !important; }

.eft-footer {
	--eft-navy: #1B2A4A; --eft-navy-deep: #14213C; --eft-navy-soft: #2A3D66;
	--eft-orange: #E87722; --eft-orange-deep: #C2600F;
	--eft-brick: #9C2F1E; --eft-cream: #F6EFE1; --eft-gold: #D9A404;
	--eft-display: "Bitter", "Iowan Old Style", "Georgia", serif;
	--eft-ease: cubic-bezier(.33,1,.68,1);
	position: relative;
	margin-top: 3.5rem;
	color: #DCE2EF;
	background:
		radial-gradient(ellipse 55% 40% at 82% 12%, rgba(232,119,34,.16), transparent 70%),
		linear-gradient(170deg, var(--eft-navy-soft) 0%, var(--eft-navy) 40%, var(--eft-navy-deep) 100%);
}
/* Mountain ridge rising out of the page content */
.eft-footer::before {
	content: "";
	position: absolute; left: 0; right: 0; top: -34px; height: 35px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 35' preserveAspectRatio='none'%3E%3Cpath d='M0 35 L80 12 L140 26 L210 4 L280 22 L360 0 L440 24 L510 10 L600 20 L600 35 Z' fill='%232A3D66'/%3E%3C/svg%3E") bottom center / 100% 100% no-repeat;
	pointer-events: none;
}
.eft-inner { max-width: 1180px; margin: 0 auto; padding: 0 1.4rem; }

/* Columns */
.eft-cols {
	display: grid; gap: 2.2rem;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	padding: 3rem 0 2.2rem;
}
@media (max-width: 900px) { .eft-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .eft-cols { grid-template-columns: 1fr; gap: 1.7rem; } }

/* ---------- The flip card: square logo that flips to the motto ---------- */
.eft-coin { width: 148px; height: 148px; perspective: 900px; }
.eft-coin-inner {
	position: relative; width: 100%; height: 100%;
	transform-style: preserve-3d;
	transition: transform .7s var(--eft-ease);
}
.eft-coin:hover .eft-coin-inner,
.eft-coin:focus-within .eft-coin-inner { transform: rotateY(180deg); }
.eft-coin-front, .eft-coin-back {
	position: absolute; inset: 0;
	border-radius: 16px; overflow: hidden;
	backface-visibility: hidden; -webkit-backface-visibility: hidden;
	display: grid; place-items: center;
	border: 3px solid var(--eft-orange);
	box-shadow: 0 6px 18px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.25);
}
.eft-coin-front { background: var(--eft-cream); padding: 8px; }
.eft-coin-front img { width: 100%; height: 100%; object-fit: contain; display: block; }
.eft-coin-back {
	transform: rotateY(180deg);
	background:
		radial-gradient(ellipse 70% 55% at 50% 18%, rgba(217,164,4,.35), transparent 70%),
		linear-gradient(170deg, var(--eft-navy-soft) 0%, var(--eft-navy) 45%, var(--eft-navy-deep) 100%);
	border-color: var(--eft-gold);
	padding: 16px;
}
.eft-coin-back span {
	font-family: var(--eft-display);
	font-weight: 700; font-size: .92rem; line-height: 1.4;
	text-align: center; color: #F2C14E;
	text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
/* Touchscreens can't hover — show the motto as text under the coin there */
.eft-tagline-touch { display: none; }
@media (hover: none) { .eft-tagline-touch { display: block; } }
.eft-sitename {
	font-family: var(--eft-display); font-size: 1.6rem; font-weight: 800;
	color: #fff; text-decoration: none;
}
.eft-tagline { margin: .7rem 0 0; color: #AAB6CE; font-size: .95rem; max-width: 30ch; }

.eft-col h4 {
	font-family: var(--eft-display); color: #fff;
	font-size: .95rem; letter-spacing: .12em; text-transform: uppercase;
	margin: 0 0 .9rem; padding-bottom: .55rem; position: relative;
}
.eft-col h4::after {
	content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 2px;
	background: linear-gradient(90deg, var(--eft-orange), var(--eft-brick));
}
.eft-col ul { list-style: none; margin: 0; padding: 0; }
.eft-col li { margin: 0 0 .55rem; padding: 0; }
.eft-col a {
	color: #C6CFE1; text-decoration: none; font-size: .95rem;
	border-bottom: 1px solid transparent;
	transition: color .16s var(--eft-ease), border-color .16s var(--eft-ease), padding-left .16s var(--eft-ease);
}
.eft-col a:hover { color: #fff; border-bottom-color: var(--eft-orange); padding-left: 3px; }

/* Social */
.eft-social { display: flex; gap: .55rem; margin-top: 1rem; }
.eft-social-btn {
	width: 40px; height: 40px; border-radius: 50%;
	display: grid; place-items: center;
	font-size: 1rem; font-weight: 800; color: #fff; text-decoration: none;
	background: rgba(255,255,255,.1);
	border: 1px solid rgba(255,255,255,.22);
	transition: transform .14s var(--eft-ease), background .14s, border-color .14s;
}
.eft-social-btn:hover { transform: translateY(-2px); background: var(--eft-orange); border-color: var(--eft-orange); color: #fff; }

/* CTA row */
.eft-cta-row {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
	padding: 1.2rem 1.4rem; margin-bottom: 2.2rem; border-radius: 14px;
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.12);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.eft-cta-label { font-family: var(--eft-display); font-weight: 700; color: #fff; font-size: 1.05rem; }
.eft-cta-btns { display: flex; gap: .6rem; flex-wrap: wrap; }
.eft-cta-btn {
	padding: .55rem 1.1rem; border-radius: 999px;
	font-weight: 700; font-size: .88rem; color: #fff; text-decoration: none;
	background: linear-gradient(180deg, #F2853A 0%, var(--eft-orange) 45%, var(--eft-orange-deep) 100%);
	box-shadow: 0 1px 2px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.28);
	transition: transform .13s var(--eft-ease), filter .13s;
}
.eft-cta-btn:hover { transform: translateY(-2px); filter: brightness(1.07); color: #fff; }

/* Bottom bar with the tricolor ribbon */
.eft-bottom {
	border-top: 1px solid rgba(255,255,255,.12);
	background: rgba(0,0,0,.18);
	position: relative;
}
.eft-bottom::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
	background: linear-gradient(90deg, var(--eft-navy-soft) 0 62%, var(--eft-orange) 62% 84%, var(--eft-brick) 84% 100%);
}
.eft-bottom-inner {
	display: flex; justify-content: space-between; gap: .8rem; flex-wrap: wrap;
	padding-top: 1rem; padding-bottom: 1.2rem;
	font-size: .84rem; color: #93A0BB;
}

/* Back to top */
.eft-top {
	position: fixed; right: 22px; bottom: 22px; z-index: 9999;
	width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
	font-size: 1.25rem; font-weight: 800; color: #fff;
	background: linear-gradient(180deg, #F2853A, var(--eft-orange-deep, #C2600F));
	box-shadow: 0 4px 14px rgba(20,33,60,.35), inset 0 1px 0 rgba(255,255,255,.3);
	transition: transform .15s var(--eft-ease), filter .15s;
}
.eft-top:hover { transform: translateY(-3px); filter: brightness(1.07); }
.eft-top:focus-visible, .eft-col a:focus-visible, .eft-cta-btn:focus-visible, .eft-social-btn:focus-visible {
	outline: 3px solid var(--eft-orange, #E87722); outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.eft-footer *, .eft-top { transition: none !important; }
	.eft-coin-inner { transition: none !important; }
	.eft-tagline-touch { display: block; }
}
