/* Shared CAPHAVET footer treatment for the IA homepage and WordPress pages. */
body > footer,
.caphavet-ia .caphavet-site-footer {
	background: linear-gradient(145deg, #103922 0%, #123b2b 56%, #0b2c22 100%);
	border-top: 4px solid #c9972f;
	color: #e1ede3;
	padding: clamp(28px, 3vw, 40px) 0 0;
}

body > footer .footer-grid,
.caphavet-ia .caphavet-site-footer .footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .75fr) minmax(0, 1.35fr) minmax(0, 1.65fr);
	gap: 22px clamp(18px, 2vw, 32px);
	align-items: start;
}

body > footer .footer-grid > *,
.caphavet-ia .caphavet-site-footer .footer-grid > * { min-width: 0; }

body > footer .footer-grid > :first-child,
.caphavet-ia .caphavet-site-footer .footer-brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	border: 0;
	padding-bottom: 0;
}

body > footer .footer-logo,
.caphavet-ia .caphavet-site-footer .footer-logo {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
	margin: 0;
	padding: 6px 10px;
	margin-bottom: 0;
}

body > footer .footer-grid > :first-child p,
.caphavet-ia .caphavet-site-footer .footer-brand > p {
	color: #d3e4d6;
	font-size: .88rem;
	line-height: 1.45;
	margin: 0;
	max-width: 65ch;
}

body > footer .footer-social a,
.caphavet-ia .caphavet-site-footer a.footer-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 50%;
	color: #fff;
	font-weight: 700;
}

body > footer .footer-grid h5,
.caphavet-ia .caphavet-site-footer h2:not(.screen-reader-text) {
	color: #fff;
	font-family: 'Poppins', sans-serif;
	font-size: .96rem;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 11px;
}

body > footer .footer-grid h5::after,
.caphavet-ia .caphavet-site-footer .footer-grid h2:not(.screen-reader-text)::after {
	content: '';
	display: block;
	width: 38px;
	height: 2px;
	margin-top: 6px;
	border-radius: 2px;
	background: linear-gradient(90deg, #49a56c, #c9972f);
}

body > footer .footer-grid ul,
.caphavet-ia .caphavet-site-footer .footer-menu { list-style: none; padding: 0; margin: 0; }
body > footer .footer-grid li,
.caphavet-ia .caphavet-site-footer .footer-menu li { margin: 0 0 5px; }

.caphavet-ia .caphavet-site-footer .footer-subsection {
	margin-top: 12px;
	padding-top: 12px;
}

.caphavet-ia .caphavet-site-footer .footer-subsection h2:not(.screen-reader-text) {
	font-size: .8rem;
}

.caphavet-ia .caphavet-site-footer .footer-grid > section:nth-child(3) {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 12px;
	align-content: start;
}
.caphavet-ia .caphavet-site-footer .footer-grid > section:nth-child(3) > h2 {
	grid-column: 1 / -1;
}
.caphavet-ia .caphavet-site-footer .footer-grid > section:nth-child(3) > .footer-subsection {
	margin: 0;
	padding: 0;
	border: 0;
}

body > footer .footer-grid a,
.caphavet-ia .caphavet-site-footer a {
	color: #e0ebe2;
	line-height: 1.35;
	text-decoration: none;
}
body > footer .footer-grid a:hover,
body > footer .footer-grid a:focus-visible,
.caphavet-ia .caphavet-site-footer a:hover,
.caphavet-ia .caphavet-site-footer a:focus-visible { color: #f0c66b; }

body > footer .footer-agencies,
.caphavet-ia .caphavet-site-footer .footer-agencies {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
}
body > footer .footer-agencies li,
.caphavet-ia .caphavet-site-footer .footer-agencies li {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
	margin: 0;
	padding: 6px 8px;
	border: 1px solid rgba(216, 231, 218, .13);
	border-radius: 8px;
	background: rgba(255, 255, 255, .045);
}
body > footer .footer-agencies .footer-agency-name,
.caphavet-ia .caphavet-site-footer .footer-agencies .footer-agency-name { color: #fff; font-weight: 650; font-size: .8rem; }
body > footer .footer-agencies .footer-agency-phone,
.caphavet-ia .caphavet-site-footer .footer-agencies .footer-agency-phone { color: #c5d9cb; font-size: .73rem; overflow-wrap: anywhere; }

body > footer .footer-bottom,
.caphavet-ia .caphavet-site-footer .footer-bottom {
	background: rgba(0, 0, 0, .13);
	border-top: 1px solid rgba(223, 235, 223, .18);
	margin-top: 24px;
	color: #c8d9cd;
}
body > footer .footer-bottom { padding: 13px 24px; }
.caphavet-ia .caphavet-site-footer .footer-bottom-inner {
	min-height: 0;
	padding-block: 13px;
}
body > footer .footer-bottom a,
.caphavet-ia .caphavet-site-footer .footer-bottom a { color: #e0ebe2; }

@media (max-width: 1100px) {
	body > footer .footer-grid,
	.caphavet-ia .caphavet-site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body > footer .footer-agencies,
	.caphavet-ia .caphavet-site-footer .footer-agencies { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
	body > footer,
	.caphavet-ia .caphavet-site-footer { padding-top: 24px; }
	body > footer .footer-grid,
	.caphavet-ia .caphavet-site-footer .footer-grid { grid-template-columns: 1fr; gap: 20px; }
	body > footer .footer-grid > :first-child,
	.caphavet-ia .caphavet-site-footer .footer-brand { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 0 0 16px; border-bottom: 1px solid rgba(223, 235, 223, .2); }
	body > footer .footer-grid > :first-child p,
	.caphavet-ia .caphavet-site-footer .footer-brand > p { font-size: .78rem; }
	body > footer .footer-grid > div:nth-child(2) ul,
	body > footer .footer-grid > div:nth-child(3) ul,
	.caphavet-ia .caphavet-site-footer .footer-grid > section:nth-child(2) .footer-menu { columns: 2; column-gap: 16px; }
	body > footer .footer-grid > div:nth-child(2) li,
	body > footer .footer-grid > div:nth-child(3) li,
	.caphavet-ia .caphavet-site-footer .footer-grid > section:nth-child(2) .footer-menu li { break-inside: avoid; }
	body > footer .footer-agencies,
	.caphavet-ia .caphavet-site-footer .footer-agencies { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body > footer .footer-bottom,
	.caphavet-ia .caphavet-site-footer .footer-bottom { margin-top: 22px; }
}
