/* Kerry Footer Block */
.kerry-footer {
	position: relative;
	width: 100%;
	padding: 64px 24px 32px;
	overflow: hidden;
}

.kerry-footer__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 1;
}

.kerry-footer__overlay {
	position: absolute;
	inset: 0;
	background-color: var(--footer-overlay, transparent);
	z-index: 2;
}

.kerry-footer__inner {
	position: relative;
	z-index: 3;
	max-width: 1200px;
	margin: 0 auto;
}

.kerry-footer__columns {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	align-items: start;
}

.kerry-footer__col {
	color: var(--footer-text, #333333);
}

.kerry-footer__col--logo {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.kerry-footer__logo {
	max-width: 180px;
}

.kerry-footer__logo img {
	max-width: 100%;
	height: auto;
	display: block;
}

.kerry-footer__title {
	font-family: var(--kerry-footer-heading-family, 'Playfair Display', serif);
	font-size: var(--kerry-footer-heading-size, 20px);
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	margin: 0 0 16px;
	color: var(--footer-heading, #333333);
}

.kerry-footer__content {
	font-size: 0.85rem;
	line-height: var(--kerry-footer-content-line-height, 1.6);
}

.kerry-footer__content a {
	color: var(--footer-link, #333333);
	text-decoration: none;
}

.kerry-footer__content a:hover {
	text-decoration: underline;
}

.kerry-footer__content p {
	margin: 0 0 8px;
}

.kerry-footer__content p:last-child {
	margin-bottom: 0;
}

/* Social links */
.kerry-footer__socials {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.kerry-footer__social {
	width: calc(var(--footer-icon-size, 20px) + 16px);
	height: calc(var(--footer-icon-size, 20px) + 16px);
	display: flex;
	align-items: center;
	justify-content: center;
	background: #E91E8C;
	color: #ffffff;
	border-radius: var(--footer-icon-radius, 0);
	font-size: var(--footer-icon-size, 20px);
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.kerry-footer__social:hover {
	opacity: 0.85;
}

.kerry-footer__social .dashicons {
	display: block;
	width: auto;
	height: auto;
	font-size: var(--footer-icon-size, 20px);
	line-height: 1;
	color: currentColor;
}

/* Quick links list (4th column) */
.kerry-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.kerry-footer .kerry-footer__links li {
	margin-bottom: 0;
	padding: 0;
}

.kerry-footer .kerry-footer__links li:last-child {
	margin-bottom: 0;
	padding: 0;
	border-bottom: none;
}

.kerry-footer__links a {
	color: var(--footer-link, #333333);
	text-decoration: none;
	font-size: 0.85rem;
	line-height: var(--kerry-footer-content-line-height, 1.6);
	padding: 0;
	margin: 0;
	display: inline;
}

.kerry-footer__links a:hover {
	text-decoration: underline;
}

/* Editor */
.kerry-footer--editor {
	border: 1px dashed #ccc;
	background: #f5f5f5;
}

/* Tablet */
@media (max-width: 768px) {
	.kerry-footer__columns {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Mobile */
@media (max-width: 480px) {
	.kerry-footer {
		padding: var(--footer-mobile-padding, 16px) var(--footer-mobile-padding, 16px) var(--footer-mobile-padding, 16px);
	}
	.kerry-footer__columns {
		grid-template-columns: 1fr;
	}
}
