/*
 * Footer of the /proyectos pages styled like the Kirby footer (wp-footer-sync).
 * Mirrors the `.footer` rules of /assets/css/index.css (including the
 * footer-responsive reflow), scoped to the WordPress footer. Loaded after
 * style.css, whose older footer rules it overrides.
 */

/* FS Albert from the Kirby site (style.css only knows "FS Albert Thin") */
@font-face {
	font-family: 'FS Albert';
	src: url('/assets/css/typography/FSAlbert-Thin.woff2') format('woff2');
	font-weight: 100;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'FS Albert';
	src: url('/assets/css/typography/FSAlbert-Light.woff2') format('woff2');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'FS Albert';
	src: url('/assets/css/typography/FSAlbert.woff2') format('woff2');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

.new-footer-by-guillem .footer-container {
	padding-top: 50px;
}
.new-footer-by-guillem .footer-wrapper,
.new-footer-by-guillem .footer-wrapper p,
.new-footer-by-guillem .footer-wrapper a,
.new-footer-by-guillem .footer-wrapper h4 {
	font-family: 'FS Albert', sans-serif;
}
.new-footer-by-guillem .footer-about p {
	font-weight: 200; /* Kirby's .footer-about (300 only on service pages, where services-common.css leaks a bare p rule) */
	line-height: normal;
}
.new-footer-by-guillem .footer-nav h4 {
	color: #fff;
	font-size: 18px;
	font-weight: 100;
	line-height: normal;
	opacity: .5;
}
.new-footer-by-guillem .footer-nav nav,
.new-footer-by-guillem .footer-contact p {
	font-weight: 200;
	line-height: 1.85rem;
}
.new-footer-by-guillem .footer-nav a:not(.no-underline):before {
	bottom: 2px;
}
.new-footer-by-guillem .footer-bottom,
.new-footer-by-guillem .footer-bottom a {
	font-weight: 300;
	line-height: normal;
}
.new-footer-by-guillem .copyright a {
	text-transform: lowercase;
}
.new-footer-by-guillem .legal a + a,
.new-footer-by-guillem .social a + a {
	margin-left: .5rem;
}
@media (min-width: 768px) {
	.new-footer-by-guillem .footer-about {
		width: 40%;
	}
	.new-footer-by-guillem .footer-nav {
		width: 50%;
	}
}
@media (max-width: 767px) {
	.new-footer-by-guillem .copyright {
		font-size: 12px;
	}
}

/* reflow instead of squeezing four columns (Kirby: footer-responsive) */
.new-footer-by-guillem .footer-contact p,
.new-footer-by-guillem .footer-contact a,
.new-footer-by-guillem .footer-nav a {
	overflow-wrap: anywhere;
}
.new-footer-by-guillem .footer-bottom {
	flex-wrap: wrap;
	gap: .5rem 1rem;
}
@media (max-width: 1099px) {
	.new-footer-by-guillem .footer-content.flex-md-row {
		flex-direction: column !important;
	}
	.new-footer-by-guillem .footer-about,
	.new-footer-by-guillem .footer-nav {
		width: 100%;
	}
	.new-footer-by-guillem .footer-about {
		margin-bottom: 2rem;
	}
	.new-footer-by-guillem .footer-nav.d-flex {
		display: grid !important;
		gap: 2rem;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.new-footer-by-guillem .footer-nav h4 {
		margin-top: 0;
	}
}
@media (max-width: 575px) {
	.new-footer-by-guillem .footer-nav.d-flex {
		grid-template-columns: minmax(0, 1fr);
	}
	.new-footer-by-guillem .footer-contact + .footer-contact h4 {
		display: none;
	}
}
@media (min-width: 1100px) and (max-width: 1439px) {
	.new-footer-by-guillem .footer-about {
		width: 30%;
	}
	.new-footer-by-guillem .footer-nav {
		width: 65%;
	}
}

/* below 768px the blocks above the footer were wider than the screen
   (horizontal scroll): the get-in-touch row's -23px margins (same fix as
   Kirby's index.css) and the related projects' negative side margins */
@media (max-width: 767.98px) {
	.new-footer-by-guillem .get-in-touch .layout {
		padding: 0 23px;
	}
	.new-footer-by-guillem .related-projects-container {
		margin-left: 0 !important; /* style.css sets -2.5vw !important */
		margin-right: 0 !important;
	}
}

/* style.css antialiases the whole page, Kirby doesn't: the same font looked
   thinner here. Keep the browser default inside the footer, like Kirby. */
.new-footer-by-guillem,
.new-footer-by-guillem * {
	-webkit-font-smoothing: auto;
	-moz-osx-font-smoothing: auto;
}

/* "Let's get in touch" like Kirby's (index.css .get-in-touch + .text .h1/.h2),
   values measured on the Kirby footer */
.new-footer-by-guillem .get-in-touch {
	background: #efe2d9;
}
.new-footer-by-guillem .get-in-touch .row {
	align-items: center;
	justify-content: space-between;
	padding: 65px 8px;
}
.new-footer-by-guillem .get-in-touch .cta-text,
.new-footer-by-guillem .get-in-touch .cta-headline {
	padding: 0 23px;
}
.new-footer-by-guillem .get-in-touch .cta-text p,
.new-footer-by-guillem .get-in-touch .cta-text a {
	color: #301e12;
	font-family: 'FS Albert', sans-serif;
	font-size: 35px;
	font-weight: 200;
	line-height: 38px;
}
.new-footer-by-guillem .get-in-touch .cta-text p {
	margin: 0;
}
.new-footer-by-guillem .get-in-touch .cta-text p.mb-4 {
	margin-bottom: 24px;
}
.new-footer-by-guillem .get-in-touch .cta-text a {
	text-decoration: none;
}
.new-footer-by-guillem .get-in-touch .cta-headline {
	color: #301e12;
	font-family: 'DM Serif Text', serif;
	font-size: 78px !important;
	font-weight: 400;
	line-height: 60px !important;
}
.new-footer-by-guillem .get-in-touch .cta-headline span {
	display: block;
	margin-left: 0;
}
.new-footer-by-guillem .get-in-touch .cta-headline span:first-child {
	line-height: 50px;
}
.new-footer-by-guillem .get-in-touch .cta-headline span:nth-child(2) {
	margin-left: 5rem;
}
.new-footer-by-guillem .get-in-touch .cta-headline span:nth-child(3) {
	margin-left: 2rem;
}
@media (max-width: 767.98px) {
	.new-footer-by-guillem .get-in-touch .row {
		padding: 45px 8px;
	}
}
/* Kirby uses a 10-column grid (col-lg-4 = 40%, offset-lg-1 = 10%), the
   WordPress theme a 12-column one, so the widths are set here */
.new-footer-by-guillem .get-in-touch .cta-text,
.new-footer-by-guillem .get-in-touch .cta-headline {
	flex: 0 0 100%;
	margin-left: 0;
	max-width: 100%;
}
.new-footer-by-guillem .get-in-touch .cta-text p:last-child {
	margin-bottom: 31px;
}
@media (min-width: 992px) {
	.new-footer-by-guillem .get-in-touch .cta-text,
	.new-footer-by-guillem .get-in-touch .cta-headline {
		flex: 0 0 40%;
		margin-left: 10%;
		max-width: 40%;
	}
	.new-footer-by-guillem .get-in-touch .cta-headline {
		margin-bottom: 0 !important; /* .mb-4 is !important in style.css; Kirby's mb-lg-0 */
	}
}
/* Kirby's .layout widths (editor.css) */
.new-footer-by-guillem .get-in-touch .layout {
	margin: 0 auto;
	max-width: none;
	width: 100%;
}
@media (min-width: 768px) {
	.new-footer-by-guillem .get-in-touch .layout {
		padding: 0; /* style.css adds side padding; Kirby's has none */
		width: 720px;
	}
}
@media (min-width: 992px) {
	.new-footer-by-guillem .get-in-touch .layout {
		width: 960px;
	}
}
@media (min-width: 1200px) {
	.new-footer-by-guillem .get-in-touch .layout {
		width: 1140px;
	}
}
