/**
 * Site footer — Framer Footer Section 2 layout, Yulia Saksen brand colors.
 * Sized ~20% tighter than the original reference scale.
 */

@font-face {
	font-family: "Brushine Collective";
	src: url("../fonts/BrushineCollective-Serif.otf") format("opentype");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: "Brushine Collective";
	src: url("../fonts/BrushineCollective-Oblique.otf") format("opentype");
	font-style: italic;
	font-weight: 400;
	font-display: swap;
}

:root {
	--ys-client-coral: #FF665E;
	--ys-client-coral-hi: #FF8A82;
	--ys-client-coral-lo: #F2584F;
	--ys-client-cream: #FFF3E4;
	--ys-client-paper: #FFFAF3;
	--ys-client-navy: #253453;
	/* Derived deeper shade of the provisional client navy. */
	--ys-client-navy-deep: #1A2540;
	--ys-client-navy-shadow: color-mix(in srgb, var(--ys-client-navy-deep) 35%, transparent);
	--ys-client-hair-on-coral: color-mix(in srgb, var(--ys-client-cream) 45%, transparent);
	--ys-client-hair-on-navy: color-mix(in srgb, var(--ys-client-cream) 14%, transparent);
	--ys-client-coral-glow: #FF7168;
}

.ys-site-footer {
	--ys-footer-bg: var(--ys-client-navy-deep);
	--ys-footer-ink: var(--ys-client-cream);
	--ys-footer-muted: color-mix(in srgb, var(--ys-client-cream) 70%, transparent);
	--ys-footer-subtle: color-mix(in srgb, var(--ys-client-cream) 55%, transparent);
	--ys-footer-input-line: color-mix(in srgb, var(--ys-client-cream) 30%, transparent);
	--ys-footer-line: var(--ys-client-hair-on-navy);
	--ys-footer-accent: var(--ys-client-coral);
	--ys-footer-ease: cubic-bezier(0.23, 1, 0.32, 1);

	background: var(--ys-footer-bg);
	color: var(--ys-footer-ink);
	padding: clamp(2.8rem, 6.4vw, 5.2rem) clamp(1rem, 4vw, 3.2rem) clamp(1.2rem, 2.4vw, 1.8rem);
}

.ys-site-footer__inner {
	width: min(100%, 72rem);
	margin: 0 auto;
}

.ys-site-footer__main {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(2rem, 4vw, 3.2rem);
	padding-bottom: clamp(1.6rem, 3.2vw, 2.4rem);
}

.ys-site-footer__brand {
	max-width: 22.4rem;
}

.ys-site-footer__logo,
.ys-site-footer__logo-link {
	display: inline-block;
	color: var(--ys-footer-ink);
	text-decoration: none;
}

.ys-site-footer__logo {
	margin: 0 0 0.8rem;
	font-family: "Brushine Collective", Georgia, "Times New Roman", serif;
	font-size: clamp(1.6rem, 3.6vw, 2.4rem);
	line-height: 0.95;
	letter-spacing: 0.02em;
	font-weight: 400;
}

.ys-site-footer__logo-img {
	display: block;
	height: clamp(1.8rem, 3.2vw, 2.4rem);
	width: auto;
	margin-bottom: 0.8rem;
}

.ys-site-footer__blurb {
	margin: 0;
	max-width: 36ch;
	font-size: clamp(0.76rem, 1.2vw, 0.84rem);
	line-height: 1.55;
	color: var(--ys-footer-muted);
	font-weight: 400;
}

.ys-site-footer__credentials,
.ys-site-footer__locations {
	display: block;
}

.ys-site-footer__locations {
	margin-top: 0.44rem;
}

.ys-site-footer__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 1.2rem 0 0;
	padding: 0;
	list-style: none;
}

.ys-site-footer__social {
	display: grid;
	place-items: center;
	width: 1.92rem;
	height: 1.92rem;
	border: 1px solid var(--ys-footer-line);
	border-radius: 999px;
	color: var(--ys-footer-ink);
	text-decoration: none;
	transition:
		border-color 0.35s var(--ys-footer-ease),
		background-color 0.35s var(--ys-footer-ease),
		transform 0.35s var(--ys-footer-ease);
}

.ys-site-footer__social:hover,
.ys-site-footer__social:focus-visible {
	border-color: var(--ys-footer-accent);
	background: color-mix(in srgb, var(--ys-footer-accent) 12%, transparent);
	transform: translateY(-2px);
	outline: none;
}

.ys-site-footer__social img {
	display: block;
	width: 0.8rem;
	height: 0.8rem;
	object-fit: contain;
	/* Tint monochrome image icons to the client cream. */
	filter: brightness(0) saturate(100%) invert(94%) sepia(13%) saturate(444%) hue-rotate(326deg) brightness(103%) contrast(101%);
}

.ys-site-footer__nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.2rem, 2.4vw, 2rem) clamp(0.8rem, 2.4vw, 1.6rem);
}

.ys-site-footer__heading {
	margin: 0 0 0.68rem;
	font-family: "Instrument Sans", sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ys-footer-accent);
}

.ys-site-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.44rem;
}

.ys-site-footer__list a {
	background-image: linear-gradient(currentColor, currentColor);
	background-position: left bottom;
	background-repeat: no-repeat;
	background-size: 0% 1px;
	color: var(--ys-footer-ink);
	text-decoration: none;
	font-family: "Instrument Sans", sans-serif;
	font-size: clamp(0.76rem, 1.2vw, 0.84rem);
	line-height: 1.35;
	transition:
		color 0.3s var(--ys-footer-ease),
		background-size 0.3s var(--ys-footer-ease);
}

.ys-site-footer__list a:hover,
.ys-site-footer__list a:focus-visible {
	color: var(--ys-client-coral-hi);
	background-size: 100% 1px;
}

.ys-site-footer__newsletter-text {
	margin: 0 0 0.68rem;
	font-size: 0.74rem;
	line-height: 1.45;
	color: var(--ys-footer-muted);
}

.ys-site-footer__newsletter-text p {
	margin: 0;
}

.ys-site-footer__newsletter-form .form-field input,
.ys-site-footer__newsletter-form input[type="email"],
.ys-site-footer__newsletter-form input[type="text"] {
	width: 100%;
	border: none;
	border-bottom: 1px solid var(--ys-footer-input-line);
	border-radius: 0;
	background: transparent;
	color: var(--ys-footer-ink);
	padding: 0.44rem 0;
	font-family: "Instrument Sans", sans-serif;
	font-size: 0.76rem;
}

.ys-site-footer__newsletter-form .form-field input:focus,
.ys-site-footer__newsletter-form input:focus {
	outline: none;
	border-bottom-color: var(--ys-footer-accent);
}

.ys-site-footer__newsletter-form input::placeholder {
	color: var(--ys-footer-subtle);
	opacity: 1;
}

.ys-site-footer__newsletter-form .wpcf7-submit,
.ys-site-footer__newsletter-form button[type="submit"],
.ys-site-footer__newsletter-form input[type="submit"] {
	margin-top: 0.6rem;
	border: 1px solid var(--ys-footer-accent);
	border-radius: 999px;
	background: var(--ys-footer-accent);
	color: var(--ys-client-navy);
	padding: 0.52rem 0.88rem;
	font-family: "Instrument Sans", sans-serif;
	font-size: 0.64rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition:
		background-color 0.3s var(--ys-footer-ease),
		border-color 0.3s var(--ys-footer-ease),
		color 0.3s var(--ys-footer-ease);
}

.ys-site-footer__newsletter-form .wpcf7-submit:hover,
.ys-site-footer__newsletter-form button[type="submit"]:hover,
.ys-site-footer__newsletter-form input[type="submit"]:hover {
	background: var(--ys-client-coral-hi);
	border-color: var(--ys-client-coral-hi);
	color: var(--ys-client-navy);
}

.ys-site-footer a:focus-visible,
.ys-site-footer button:focus-visible,
.ys-site-footer__newsletter-form input[type="submit"]:focus-visible {
	outline: 2px solid var(--ys-footer-ink);
	outline-offset: 3px;
}

.ys-site-footer__bar {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	padding-top: clamp(1rem, 2vw, 1.4rem);
	border-top: 1px solid var(--ys-footer-line);
}

.ys-site-footer__copy {
	margin: 0;
	font-size: 0.68rem;
	line-height: 1.4;
	color: var(--ys-footer-subtle);
}

.ys-site-footer__bar-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.68rem 1rem;
}

.ys-site-footer__bar-links a,
.ys-site-footer__top {
	font-family: "Instrument Sans", sans-serif;
	font-size: 0.68rem;
	line-height: 1.3;
	color: var(--ys-footer-subtle);
	text-decoration: none;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: color 0.3s var(--ys-footer-ease);
}

.ys-site-footer__bar-links a:hover,
.ys-site-footer__bar-links a:focus-visible,
.ys-site-footer__top:hover,
.ys-site-footer__top:focus-visible {
	color: var(--ys-footer-ink);
}

.ys-site-footer__top {
	display: inline-flex;
	align-items: center;
	gap: 0.28rem;
}

@media (min-width: 900px) {
	.ys-site-footer__main {
		grid-template-columns: minmax(12.8rem, 1.15fr) minmax(0, 2fr);
		align-items: start;
		gap: clamp(1.6rem, 3.2vw, 3.6rem);
	}

	.ys-site-footer__nav {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ys-site-footer__bar {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ys-site-footer__social,
	.ys-site-footer__list a,
	.ys-site-footer__bar-links a,
	.ys-site-footer__top,
	.ys-site-footer__newsletter-form .wpcf7-submit,
	.ys-site-footer__newsletter-form button[type="submit"],
	.ys-site-footer__newsletter-form input[type="submit"] {
		transition: none;
	}

	.ys-site-footer__social:hover,
	.ys-site-footer__social:focus-visible {
		transform: none;
	}
}
