/* Footer component. The shared palette lives in style.css. */
.yr-footer {
	--yr-color-focus: var(--yr-mint);
	--yr-footer-muted: #c1dfd1;
	--yr-footer-border: rgb(32 227 178 / 26%);
	background: radial-gradient(ellipse at 4% 100%, rgb(32 227 178 / 10%), transparent 55%), var(--yr-gradient-footer);
	color: var(--yr-ivory);
	border-top: 3px solid var(--yr-amber);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.yr-footer__inner {
	box-sizing: border-box;
	width: min(100%, var(--yr-container-width));
	margin-inline: auto;
	padding: 0 var(--yr-container-gutter) 24px;
}

/* Decorative photograph stays beneath the brand gradient and readable copy. */
.yr-footer--photo { position: relative; isolation: isolate; overflow: hidden; }
.yr-footer--photo .yr-footer__background { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; opacity: .26; filter: grayscale(1); pointer-events: none; }
.yr-footer--photo::before { content: ''; position: absolute; z-index: 1; inset: 0; background: linear-gradient(105deg, rgb(0 46 38 / 72%) 0%, rgb(0 61 50 / 40%) 60%, rgb(0 83 63 / 50%) 100%); pointer-events: none; }
.yr-footer--photo .yr-footer__inner { position: relative; z-index: 2; }

.yr-footer__cta {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 64px;
	padding: 64px 0 56px;
	border-bottom: 1px solid var(--yr-footer-border);
	--yr-color-focus: var(--yr-mint);
	box-shadow: none;
}

.yr-footer__cta-copy { max-width: 720px; }
.yr-footer__cta h2 { max-width: 680px; margin: 0 0 20px; color: var(--yr-ivory); font-size: clamp(34px, 4vw, 54px); font-weight: 750; line-height: 1.13; letter-spacing: -1.9px; text-wrap: balance; }
.yr-footer__cta p { max-width: 550px; margin: 0; color: var(--yr-inverse-muted); font-size: 16px; line-height: 1.7; }
.yr-footer__cta .yr-footer__eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--yr-amber); font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.yr-footer__eyebrow::before { content: ""; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: currentColor; }
.yr-footer__cta > nav { flex-shrink: 0; }

.yr-footer__actions,
.yr-footer__links,
.yr-footer__links .sub-menu,
.yr-footer__legal { list-style: none; padding: 0; margin: 0; }

.yr-footer__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.yr-footer__actions a,
.yr-footer__actions a:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 30px;
	min-height: 58px;
	box-sizing: border-box;
	padding: 16px 26px;
	border-radius: 7px;
	background: var(--yr-amber);
	color: var(--yr-forest);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	text-decoration: none;
}

.yr-footer__actions a::after { content: "\2197"; font-size: 19px; line-height: 1; }
.yr-footer__actions a:hover,
.yr-footer__actions a:focus { background: var(--yr-amber-hover); color: var(--yr-forest); }

.yr-footer__main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, .9fr); align-items: start; gap: 40px; padding-block: 52px; }
.yr-footer__brand { max-width: 390px; }
.yr-footer .yr-brand { align-items: center; }
.yr-footer .yr-brand__symbol,
.yr-footer .yr-brand__name { transform: none; }
.yr-footer .custom-logo-link { display: inline-flex; vertical-align: top; }
.yr-footer .custom-logo { display: block; width: auto; height: auto; max-width: 230px; max-height: 48px; }
.yr-footer .yr-generated-logo { width: 230px; height: 44px; object-fit: cover; object-position: center; }
.yr-footer .yr-brand,
.yr-footer .yr-brand:visited { color: var(--yr-ivory); }
.yr-footer .yr-brand:hover,
.yr-footer .yr-brand:focus { color: var(--yr-mint); }
.yr-footer__wordmark { color: var(--yr-ivory); font-size: 26px; font-weight: 650; letter-spacing: -1px; text-decoration: none; }
.yr-footer__tagline { margin: 20px 0 10px; color: var(--yr-ivory); font-size: 17px; font-weight: 600; line-height: 1.4; }
.yr-footer__description { margin: 0; color: var(--yr-footer-muted); font-size: 14px; line-height: 1.75; }
.yr-footer__column h2 { margin: 4px 0 16px; color: var(--yr-mint); font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: 1.5px; text-transform: uppercase; }
.yr-footer__column--blog { padding: 24px; border: 1px solid var(--yr-footer-border); border-radius: 12px; background: linear-gradient(135deg, rgb(32 227 178 / 8%), rgb(32 227 178 / 2%)); }
.yr-footer__column--blog h2 { display: flex; align-items: center; gap: 10px; color: var(--yr-amber); }
.yr-footer__column--blog h2::before { content: ""; width: 24px; height: 24px; background: currentColor; mask: url('../icons/article.svg') center / contain no-repeat; }
.yr-footer__blog-intro { margin: 0 0 14px; color: var(--yr-footer-muted); font-size: 14px; line-height: 1.7; }
.yr-footer__column--blog .yr-footer__links a { gap: 20px; color: var(--yr-ivory); font-weight: 600; }
.yr-footer__column--blog .yr-footer__links a::after { content: "\2197"; color: var(--yr-amber); font-size: 20px; }
.yr-footer__links li { margin: 0; }
#yr-footer-product { columns: 2; column-gap: 24px; }
#yr-footer-product > li { break-inside: avoid; }
.yr-footer__links a,
.yr-footer__links a:visited { display: inline-flex; align-items: center; min-height: 40px; padding-block: 7px; color: var(--yr-footer-muted); font-size: 14px; line-height: 1.6; text-decoration: none; overflow-wrap: anywhere; }
.yr-footer__links a:hover,
.yr-footer__links a:focus,
.yr-footer__links .current-menu-item > a { color: var(--yr-mint); text-decoration: underline; text-underline-offset: 4px; }
.yr-footer__links .sub-menu { padding-inline-start: 16px; border-inline-start: 1px solid var(--yr-footer-border); }
.yr-footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 32px; padding-top: 24px; border-top: 1px solid var(--yr-footer-border); }
.yr-footer__bottom p { margin: 0; color: var(--yr-footer-muted); font-size: 12px; line-height: 1.6; }
.yr-footer__top, .yr-footer__top:visited { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--yr-ivory); font-size: 12px; text-decoration: none; }
.yr-footer__top span { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--yr-footer-border); border-radius: 50%; color: var(--yr-amber); font-size: 18px; }
.yr-footer__top:hover, .yr-footer__top:focus { color: var(--yr-amber); }
.yr-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.yr-footer__legal a,
.yr-footer__legal a:visited { display: inline-flex; align-items: center; min-height: 36px; color: var(--yr-footer-muted); font-size: 12px; line-height: 1.6; text-decoration: none; }
.yr-footer__legal a:hover,
.yr-footer__legal a:focus { color: var(--yr-mint); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 900px) {
	.yr-footer__inner { padding: 0 var(--yr-container-gutter) 20px; }
	.yr-footer__cta { align-items: flex-start; flex-direction: column; gap: 28px; padding: 44px 0; }
	.yr-footer__main { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; padding-block: 36px; }
	.yr-footer__brand { grid-column: 1 / -1; max-width: 440px; }
}

@media (max-width: 700px) {
	.yr-footer__column { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
	.yr-footer__inner { padding: 0 var(--yr-container-gutter) 20px; }
	.yr-footer__cta { padding: 36px 0; }
	.yr-footer__cta h2 { letter-spacing: -1.1px; }
	.yr-footer__cta-copy { min-width: 0; }
	.yr-footer__cta > nav,
	.yr-footer__actions,
	.yr-footer__actions li,
	.yr-footer__actions a { width: 100%; }
	.yr-footer__main { gap: 28px 20px; }
	.yr-footer__column--blog { padding: 18px; }
	.yr-footer__column--blog { grid-column: 1 / -1; }
	.yr-footer__bottom { align-items: flex-start; flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: no-preference) {
	.yr-footer__actions a { transition: background-color 180ms ease; }
	.yr-footer__actions a::after { transition: transform 180ms ease; }
	.yr-footer__actions a:hover::after { transform: translate(2px, -2px); }
	.yr-footer__top span { transition: background-color 180ms ease, border-color 180ms ease; }
	.yr-footer__top:hover span { border-color: var(--yr-amber); background: rgb(255 176 0 / 8%); }
}
