/*
Theme Name: Kilteelagh
Description: Lightweight block theme for Kilteelagh House.
Author: Kilteelagh House
Version: 1.0.2
Requires at least: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: kilteelagh
*/

:root {
	--kh-gutter: 40px;
	--kh-header-gutter: 40px;
	--kh-header-h: 80px;
	--kh-logo-h: 35px;
}

@media (max-width: 899px) {
	:root {
		--kh-header-gutter: 16px;
		--kh-logo-h: 30px;
	}
}

@media (max-width: 599px) {
	:root {
		--kh-gutter: 24px;
		--kh-header-h: 50px;
		--kh-logo-h: 20px;
	}
}

html {
	background-color: #2b2c36;
}

.wp-site-blocks {
	position: relative;
}

:root :is(p, h1, h2, h3, h4, h5, h6, ul, ol, blockquote, .wp-block-image, .wp-block-buttons, .wp-block-table) {
	margin-top: 0;
	margin-bottom: 1.5rem;
}

:root :is(p, h1, h2, h3, h4, h5, h6, ul, ol, blockquote, .wp-block-image, .wp-block-buttons, .wp-block-table):last-child {
	margin-bottom: 0;
}

:root .wp-block-columns {
	margin-bottom: 1.75em;
}

.kh-header {
	position: relative;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--kh-header-h);
	padding-inline: max(var(--kh-header-gutter), calc((100% - 1300px) / 2));
	background-color: #2b2c36;
	color: #edf0f2;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.home .kh-header {
	position: absolute;
	inset: 0 0 auto;
	background-color: transparent;
	color: #ffffff;
	box-shadow: none;
}

:root .kh-header .kh-logo {
	margin: 0;
	line-height: 0;
}

.kh-header .kh-logo img {
	width: auto;
	height: var(--kh-logo-h);
}

.kh-header .wp-block-navigation {
	gap: 0;
	font-size: 16px;
}

.kh-header .wp-block-navigation .wp-block-navigation-item__content {
	padding: 0 1.2rem;
	line-height: var(--kh-header-h);
	color: inherit;
}

.kh-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.kh-header .wp-block-navigation .wp-block-navigation-item__content:hover {
	color: #7bc7a0;
}

.kh-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--kh-header-gutter);
	background-color: #2b2c36;
	color: #edf0f2;
}

.kh-header .wp-block-navigation .is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: flex-start;
	padding-top: var(--kh-header-h);
}

.kh-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start;
}

.kh-header .wp-block-navigation .is-menu-open .wp-block-navigation-item__content {
	padding: 0.7rem 0;
	font-size: 1.1rem;
	line-height: 1.6;
}

:root .kh-display {
	font-family: var(--wp--preset--font-family--playfair-display);
	font-style: italic;
	font-weight: 300;
	font-size: 36px;
	line-height: 1.25;
	color: #2b2c36;
	margin-bottom: 1.25rem;
}

:root .kh-card-grid {
	gap: 24px;
}

.kh-card.wp-block-cover {
	min-height: 420px;
	padding: 32px;
	transition: transform 240ms ease;
}

.kh-card.wp-block-cover::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.05) 45%, rgba(0, 0, 0, 0.35) 100%);
	pointer-events: none;
}

.kh-card .wp-block-cover__inner-container {
	position: relative;
	z-index: 1;
}

:root .kh-card .kh-card-heading {
	font-family: var(--wp--preset--font-family--playfair-display);
	font-style: italic;
	font-weight: 300;
	font-size: 32px;
	line-height: 1.2;
	color: #ffffff;
	margin: 0;
}

.kh-card:hover {
	transform: translateY(-2px);
}

.kh-cta {
	text-align: center;
}

.wp-block-button.kh-btn .wp-block-button__link {
	background-color: #649e80;
	color: #ffffff;
	font-family: var(--wp--preset--font-family--open-sans);
	font-weight: 700;
	font-size: 15px;
	line-height: 28px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: 0;
	padding: 16px 32px;
	transition: background-color 200ms ease;
}

.wp-block-button.kh-btn .wp-block-button__link:hover {
	background-color: #578870;
}

:root .kh-contact-cols {
	gap: 64px;
}

.kh-contact-block {
	text-align: center;
}

.kh-contact-block.kh-icon-pin::before,
.kh-contact-block.kh-icon-envelope::before {
	content: "";
	display: block;
	width: 56px;
	height: 56px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background-color: #649e80;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 22px 22px;
}

.kh-contact-block.kh-icon-pin::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/><circle cx='12' cy='10' r='3'/></svg>");
}

.kh-contact-block.kh-icon-envelope::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path 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'/><polyline points='22,6 12,13 2,6'/></svg>");
}

:root .kh-address {
	font-family: var(--wp--preset--font-family--playfair-display);
	font-size: 20px;
	font-weight: 400;
	font-style: italic;
	color: #2b2c36;
	margin-bottom: 24px;
	line-height: 1.4;
}

:root .kh-email {
	font-family: var(--wp--preset--font-family--playfair-display);
	font-size: 22px;
	font-weight: 400;
	font-style: italic;
	margin-bottom: 24px;
}

.kh-email a {
	color: #649e80;
	text-decoration: none;
}

.kh-email a:hover {
	color: #578870;
}

:root .kh-contact-body {
	font-size: 15px;
	line-height: 1.7;
	color: #333333;
	margin-bottom: 1em;
}

.kh-contact-image img {
	border-radius: 2px;
}

.kh-footer-top,
.kh-footer-bottom {
	background-color: #2b2c36;
	color: #f2f4f5;
}

.kh-footer-top {
	padding-top: 80px;
	padding-bottom: 30px;
}

.kh-footer-bottom {
	padding-top: 20px;
	padding-bottom: 30px;
}

.kh-footer-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
}

@media (max-width: 767px) {
	.kh-footer-columns {
		grid-template-columns: 1fr;
		gap: 30px;
	}
}

:root .kh-footer-top h4 {
	font-size: 1.8rem;
	font-weight: 300;
	color: #f2f4f5;
	margin-bottom: 1.5rem;
}

:root .kh-footer-nav {
	list-style: none;
	padding: 0;
	margin: 0;
	line-height: 2.1;
}

.kh-footer-nav li + li {
	margin-top: 8px;
}

.kh-footer-nav a {
	color: #7bc7a0;
	text-decoration: none;
}

.kh-footer-nav a:hover {
	color: #ffffff;
}

:root .kh-footer-about {
	color: #9698a3;
	line-height: 1.7;
	margin-bottom: 0;
}

:root .kh-footer-copyright {
	text-align: center;
	color: #9698a3;
	margin: 0;
}
