/**
 * Key Contacts Block Front-end CSS - Modified version with button fixes
 */

/* Background Colors - Named Colors */
.key-contacts.bg-dark-blue,
.key-contacts-section.bg-dark-blue {
	background-color: #0F293E;
}

.key-contacts.bg-dark-brown,
.key-contacts-section.bg-dark-brown {
	background-color: #290B0B;
}

.key-contacts.bg-burgundy,
.key-contacts-section.bg-burgundy {
	background-color: #800020;
}

.key-contacts.bg-gold,
.key-contacts-section.bg-gold {
	background-color: #B8860B;
}

.key-contacts.bg-copper,
.key-contacts-section.bg-copper {
	background-color: #B87333;
}

.key-contacts.bg-periwinkle,
.key-contacts-section.bg-periwinkle {
	background-color: #CCCCFF;
}

.key-contacts.bg-deep-blue,
.key-contacts-section.bg-deep-blue {
	background-color: #00008B;
}

.key-contacts.bg-dark-red,
.key-contacts-section.bg-dark-red {
	background-color: #8B0000;
}

.key-contacts.bg-white,
.key-contacts-section.bg-white {
	background-color: #FFFFFF;
}

.key-contacts.bg-black,
.key-contacts-section.bg-black {
	background-color: #000000;
}

/* Text Colors */
.key-contacts.text-white,
.key-contacts.text-white h1,
.key-contacts.text-white h2,
.key-contacts.text-white h3,
.key-contacts.text-white h4,
.key-contacts.text-white h5,
.key-contacts.text-white h6,
.key-contacts.text-white p,
.key-contacts.text-white .key-contacts-heading,
.key-contacts.text-white .key-contacts-paragraph,
.key-contacts-section.text-white,
.key-contacts-section.text-white h1,
.key-contacts-section.text-white h2,
.key-contacts-section.text-white h3,
.key-contacts-section.text-white h4,
.key-contacts-section.text-white h5,
.key-contacts-section.text-white h6,
.key-contacts-section.text-white p,
.key-contacts-section.text-white .key-contacts-heading,
.key-contacts-section.text-white .key-contacts-paragraph {
	color: #FFFFFF;
}

.key-contacts.text-black,
.key-contacts.text-black h1,
.key-contacts.text-black h2,
.key-contacts.text-black h3,
.key-contacts.text-black h4,
.key-contacts.text-black h5,
.key-contacts.text-black h6,
.key-contacts.text-black p,
.key-contacts.text-black .key-contacts-heading,
.key-contacts.text-black .key-contacts-paragraph,
.key-contacts-section.text-black,
.key-contacts-section.text-black h1,
.key-contacts-section.text-black h2,
.key-contacts-section.text-black h3,
.key-contacts-section.text-black h4,
.key-contacts-section.text-black h5,
.key-contacts-section.text-black h6,
.key-contacts-section.text-black p,
.key-contacts-section.text-black .key-contacts-heading,
.key-contacts-section.text-black .key-contacts-paragraph {
	color: #000000;
}

.key-contacts.text-dark-blue,
.key-contacts.text-dark-blue h1,
.key-contacts.text-dark-blue h2,
.key-contacts.text-dark-blue h3,
.key-contacts.text-dark-blue h4,
.key-contacts.text-dark-blue h5,
.key-contacts.text-dark-blue h6,
.key-contacts.text-dark-blue p,
.key-contacts.text-dark-blue .key-contacts-heading,
.key-contacts.text-dark-blue .key-contacts-paragraph,
.key-contacts-section.text-dark-blue,
.key-contacts-section.text-dark-blue h1,
.key-contacts-section.text-dark-blue h2,
.key-contacts-section.text-dark-blue h3,
.key-contacts-section.text-dark-blue h4,
.key-contacts-section.text-dark-blue h5,
.key-contacts-section.text-dark-blue h6,
.key-contacts-section.text-dark-blue p,
.key-contacts-section.text-dark-blue .key-contacts-heading,
.key-contacts-section.text-dark-blue .key-contacts-paragraph {
	color: #0F293E;
}

/* Add these button styles after your existing button styles */

/* Button Style 1: Default (Blue Background) */
.key-contacts-section .wp-block-button.is-style-default .wp-block-button__link {
	background-color: #A6B8E3;
	color: #000000;
	font-family: 'Hedvig Letters Serif', serif;
	font-size: 18px;
	line-height: 21px;
	font-weight: 400;
	padding: 10px 20px;
	border-radius: 5px;
	text-decoration: none;
	transition: all 0.3s ease;
	display: inline-block;
	width: fit-content;
	align-self: center;
}

.key-contacts-section .wp-block-button.is-style-default .wp-block-button__link:hover {
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.30), 0 1px 3px 0 rgba(0, 0, 0, 0.15);
	transition: 300ms ease-in;
	background-color: #788FC6;
}

/* Button Style 2: Solid (Brown Background) */
.key-contacts-section .wp-block-button.is-style-solid .wp-block-button__link {
	background-color: #AA632C;
	color: #FFFFFF;
	font-family: 'Hedvig Letters Serif', serif;
	font-size: 18px;
	line-height: 21px;
	font-weight: 400;
	padding: 10px 20px;
	border-radius: 5px;
	text-decoration: none;
	transition: all 0.3s ease;
	display: inline-block;
	width: fit-content;
	align-self: center;
	border: none;
	cursor: pointer;
	text-align: center;
}

.key-contacts-section .wp-block-button.is-style-solid .wp-block-button__link:hover {
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.30), 0 1px 3px 0 rgba(0, 0, 0, 0.15);
	transition: 300ms ease-in;
}

/* Button Style 3: Arrow */
.key-contacts-section .wp-block-button.is-style-arrow .wp-block-button__link {
	background-color: transparent;
	color: inherit;
	font-family: 'Hedvig Letters Serif', serif;
	font-size: 18px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	font-weight: 400;
	position: relative;
	border-radius: 0;
}

.key-contacts-section .wp-block-button.is-style-arrow .wp-block-button__link::after {
	content: "";
	display: inline-block;
	width: 29px;
	height: 16px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='16' viewBox='0 0 29 16' fill='none'%3E%3Cpath d='M28.7071 8.70711C29.0976 8.31659 29.0976 7.68342 28.7071 7.2929L22.3431 0.928934C21.9526 0.53841 21.3195 0.53841 20.9289 0.928934C20.5384 1.31946 20.5384 1.95262 20.9289 2.34315L26.5858 8L20.9289 13.6569C20.5384 14.0474 20.5384 14.6805 20.9289 15.0711C21.3195 15.4616 21.9526 15.4616 22.3431 15.0711L28.7071 8.70711ZM-8.74228e-08 9L28 9L28 7L8.74228e-08 7L-8.74228e-08 9Z' fill='%23AA622C'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	margin-left: 10px;
	transition: transform 0.3s ease;
}

.key-contacts-section .wp-block-button.is-style-arrow .wp-block-button__link:hover::after {
	transform: translateX(5px);
}

/* Gradient Line at the top */
.key-contacts-gradient-line {
	width: 100%;
	margin: 0 auto;
	height: 1px;
	box-sizing: border-box;
}

.key-contacts-gradient-line svg {
	width: 100%;
	height: 1px;
	display: block;
}
.key-contacts-content-container{
	display: flex;
}


/* Eyebrow Styles */
.key-contacts-section .key-contacts-eyebrow {
	font-family: 'DM Sans', sans-serif;
	font-size: 18px;
	font-style: normal;
	font-weight: 400;
	line-height: 22px;
	letter-spacing: 6.72px;
	text-transform: uppercase;
	margin-bottom: 24px;
	display: block;
}

/* Eyebrow style variations */
.key-contacts-section .key-contacts-eyebrow-style-uppercase {
	font-weight: 400;
	text-transform: uppercase;
}

.key-contacts-section .key-contacts-eyebrow-style-default {
	font-weight: 400;
	text-transform: uppercase;
}

.key-contacts-section .key-contacts-eyebrow-style-bold {
	font-weight: 700;
	text-transform: uppercase;
}

.key-contacts-section .key-contacts-eyebrow-style-elegant {
	font-style: italic;
}

/* Title and Description Styles */
.key-contacts-section .key-contacts-heading,
.key-contacts-section .wp-block-heading {
	font-family: 'Hedvig Letters Serif', serif;
	font-size: 48px;
	line-height: 114%;
	margin-bottom: 32px;
	font-weight: 400;
	text-align: left;
}

.key-contacts-section .key-contacts-paragraph,
.key-contacts-section .wp-block-paragraph,
.key-contacts-section p {
	font-family: 'DM Sans', sans-serif;
	font-size: 18px;
	letter-spacing: -0.48px;
	text-align: left;
}

/* InnerBlocks Container */
.key-contacts-innerblocks-container {
	width: 100%;
	max-width: 450px;
}



/* Main container for the Key Contacts block */
.key-contacts-section {
	position: relative;
	padding: 30px 0;
	width: 100%;
}

.key-contacts-container {
	max-width: 1440px;
	margin: 0 auto;
	padding-bottom: 20px;
	padding-left: 30px;
	padding-right: 30px;
}

@media (max-width: 1500px) {
	.key-contacts-container{
		max-width: 1200px;
	}

	.key-contact-image-wrapper{
		max-width: 160px;
	}
}

@media (max-width: 1500px) {
	.key-contacts-section .key-contacts-eyebrow {
		font-size: 16px !important;
	}

	.key-contacts-section .key-contacts-paragraph,
	.key-contacts-section .wp-block-paragraph,
	.key-contacts-section p {
		font-size: 16px !important;
	}

	.key-contact-location {
		font-size: 16px !important;
	}

	.key-contacts-section .wp-block-button.is-style-default .wp-block-button__link {
		font-size: 16px !important;
	}

	.key-contacts-section .wp-block-button.is-style-solid .wp-block-button__link {
		font-size: 16px !important;
	}

	.key-contacts-section .wp-block-button.is-style-arrow .wp-block-button__link {
		font-size: 16px !important;
	}
}

.key-contacts-content-container {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	gap: 130px;
	margin-top: 30px;
}

/* Content column styles */
.key-contacts-content-column {
	width: 35%;
	min-width: 400px;
}

.key-contacts-content-wrapper {
	width: 100%;
}

/* Contact list column styles */
.key-contacts-list-column {
	width: 65%;
	display: flex;
	flex-direction: row;
	gap: 30px;
	flex-wrap: wrap;
	justify-content: flex-start;
}

/* Individual contact item styles */
.key-contact-list-item {
	display: flex;
	flex-direction: row;
	margin-bottom: 20px;
	max-width: 48%;
	width: calc(50% - 15px);
	gap: 20px;
}

.key-contact-image-wrapper {
	flex: 0 0 auto;
	width: 190px;
	height: 196px;
}

.key-contact-image-wrapper a {
	display: block;
	width: 100%;
	height: 100%;
	transition: transform 0.3s ease;
}


.key-contact-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.key-contact-info-wrapper {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex: 1;
	padding-top: 10px;
	padding-bottom: 10px;
}

.key-contact-name {
	font-family: 'Hedvig Letters Serif', serif;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.2;
	max-width: 350px;
	margin-bottom: 16px;
	letter-spacing: 0.02em;
}

.key-contact-position {
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	line-height: 1.2;
	text-transform: uppercase;
	margin-bottom: 0;
}

.key-contact-location {
	font-family: 'DM Sans', sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 10px;
}


.key-contact-details {
	display: flex;
	flex-direction: column;
}

.key-contact-phone{
	margin-bottom: 16px;
}

.key-contact-phone, .key-contact-email {
	display: flex;
	align-items: center;
	gap: 10px;
}

.key-contact-phone-icon {
	display: inline-flex;
	color: #000;
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 700;
	line-height: 22px; /* 137.5% */
}


.key-contact-email-icon {
	position: relative;
}

.key-contact-email-icon:after {
	content: "";
	display: block;
	width: 12px;
	height: 12px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.key-contact-phone a, .key-contact-email a {
	color: inherit;
	text-decoration: none;
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
}

.key-contact-phone a:hover, .key-contact-email a:hover {
	text-decoration: underline;
}

/* Button and CTA Styles - Updated */
/* Default CTA link style */
.key-contacts-cta-wrapper {
	width: 100%;
	margin-top: 20px;
	display: flex;
	justify-content: flex-start;
}



/* Handle button alignment */
.key-contacts-section .wp-block-buttons {
	display: flex;
	margin-bottom: 48px;
}

.key-contacts-section .wp-block-buttons .wp-block-button {
	margin: 0;
}

/* Force correct color overrides */
.key-contacts-section .has-text-color {
	color: inherit !important;
}

.key-contacts-section .has-background {
	background-color: #AA632C !important;
}

/* Responsive styles */
@media (max-width: 1200px) {
	.key-contacts-content-container {
		gap: 40px;
	}

	.key-contacts-list-column {
		gap: 20px;
	}

	.key-contact-list-item {
		max-width: 400px;
	}

	.key-contact-image-wrapper {
		width: 150px;
		height: 155px;
	}
}

@media (max-width: 992px) {
	.key-contacts-content-container {
		flex-direction: column;
	}

	.key-contacts-content-column {
		width: 100%;
		min-width: 0;
	}

	.key-contacts-list-column {
		width: 100%;
	}

	.key-contact-list-item {
		width: calc(50% - 10px);
	}
}

@media (max-width: 768px) {
	.key-contacts-section {
		padding: 0;
	}
	.key-contacts-container {
		padding: 0 20px;
	}


	.key-contacts-content-container {
		flex-direction: column;
		gap: 30px;
		margin-bottom: 30px;
		margin-top: 62px;
	}

	.key-contacts-content-column {
		width: 100%;
	}

	.key-contacts-list-column {
		flex-direction: column;
		gap: 24px;
		width: 100%;
	}

	.key-contacts-section .key-contacts-heading,
	.key-contacts-section .wp-block-heading {
		font-size: 36px;
		margin-bottom: 20px;
	}


	.key-contact-list-item {
		flex-direction: row;
		gap: 16px;
		margin-bottom: 16px;
		align-items: flex-start;
		width: 100%;
		max-width: 100%;
	}

	.key-contact-image-wrapper {
		align-self: center;
		width: 150px;
		height: 155px;
		align-self: center;
	}

	.key-contact-info-wrapper {
		align-items: flex-start;
		flex: 1;
		margin: auto 0;
	}



	.key-contact-divider {
		height: 16px;
		margin: 0 10px;
	}

	.key-contact-phone a, .key-contact-email a {
		font-size: 14px;
	}

	.key-contacts-cta-wrapper {
		justify-content: center;
		margin-top: 24px;
	}

	/* Make the email icon smaller on mobile */
	.key-contact-email svg {
		width: 20px;
		height: 20px;
	}
}


