/*
Theme Name: Næsgaarden Native
Description: A lightweight, block-editor-first theme for Næsgaarden.
Version: 1.0.0
Text Domain: naesgaarden-native
*/

:root {
	--color-ink: #303039;
	--color-navy: #14293c;
	--color-blue: #257a9f;
	--color-green: #276767;
	--color-paper: #fff;
	--content-width: 1200px;
	--space-section: clamp(3rem, 7vw, 6rem);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--color-paper);
	color: var(--color-ink);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 1.125rem;
	line-height: 1.65;
}

a {
	color: var(--color-blue);
}

a:hover,
a:focus-visible {
	color: var(--color-navy);
}

img {
	max-width: 100%;
	height: auto;
}

.skip-link {
	position: absolute;
	z-index: 100;
	top: 0.5rem;
	left: 0.5rem;
	padding: 0.75rem 1rem;
	transform: translateY(-160%);
	background: #fff;
	color: var(--color-ink);
}

.skip-link:focus {
	transform: translateY(0);
}

.site-header {
	position: relative;
	z-index: 10;
	display: flex;
	flex-wrap: wrap;
	min-height: 3rem;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 0.5rem clamp(1rem, 2.5vw, 2.5rem);
	background: #000;
}

.site-logo {
	display: block;
	max-width: calc(100% - 5rem);
	line-height: 0;
}

.site-logo img {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 2rem;
	object-fit: contain;
	object-position: left center;
}

.site-logo-text {
	color: #fff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2rem, 8vw, 7rem);
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

.menu-toggle {
	display: none;
	width: 2rem;
	height: 2rem;
	flex: 0 0 auto;
	place-content: center;
	gap: 0.45rem;
	border: 0;
	background: transparent;
	color: #54a9d8;
	cursor: pointer;
}

.menu-toggle span {
	display: block;
	width: 1.5rem;
	height: 3px;
	background: currentColor;
	transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
	transform: translateY(0.57rem) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:last-child {
	transform: translateY(-0.57rem) rotate(-45deg);
}

.site-navigation {
	margin-left: auto;
}

.site-header.is-collapsed {
	flex-wrap: nowrap;
}

.is-collapsed .menu-toggle {
	display: grid;
}

.is-collapsed .site-navigation:not(.navigation-measure) {
	position: absolute;
	top: 100%;
	right: 0;
	width: min(28rem, 100vw);
	padding: 1.5rem 2rem;
	background: #080808;
	box-shadow: 0 1rem 2rem rgb(0 0 0 / 20%);
}

.site-navigation[hidden] {
	display: none;
}

.site-menu,
.site-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-menu li + li {
	border-top: 0;
}

.site-menu,
.site-menu > ul {
	display: flex;
	gap: 1.25rem;
}

.site-menu li {
	position: relative;
}

.site-menu a {
	white-space: nowrap;
}

.site-menu .sub-menu,
.site-menu .children {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 12rem;
	padding: 0.5rem 1rem;
	background: #080808;
}

.site-menu li:hover > ul,
.site-menu li:focus-within > ul {
	display: block;
}

.site-menu ul ul {
	top: 0;
	left: 100%;
}

.is-collapsed .site-navigation:not(.navigation-measure) .site-menu,
.is-collapsed .site-navigation:not(.navigation-measure) .site-menu > ul {
	display: block;
}

.is-collapsed .site-navigation:not(.navigation-measure) li + li {
	border-top: 1px solid rgb(255 255 255 / 14%);
}

.is-collapsed .site-navigation:not(.navigation-measure) ul ul {
	display: block;
	position: static;
	min-width: 0;
	padding: 0 0 0 1rem;
}

.navigation-measure {
	position: fixed;
	top: 0;
	left: 0;
	width: max-content;
	margin: 0;
	visibility: hidden;
	pointer-events: none;
}

.site-menu a {
	display: block;
	padding: 0.8rem 0;
	color: #fff;
	text-decoration: none;
}

.site-menu a:hover,
.site-menu a:focus-visible,
.site-menu .current-menu-item > a {
	color: #72c4ef;
}

.home-hero,
.page-hero {
	position: relative;
	display: grid;
	min-height: clamp(30rem, 52vw, 52rem);
	place-items: center;
	overflow: hidden;
	background: var(--color-navy);
	color: #fff;
	text-align: center;
}

.hero-image,
.hero-shade {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.hero-image {
	object-fit: cover;
	object-position: center 52%;
}

.hero-shade {
	background: rgb(0 0 0 / 34%);
}

.hero-content {
	position: relative;
	z-index: 1;
	width: min(100% - 2rem, 1100px);
	padding: 3rem 0;
}

.hero-content h1 {
	margin: 0 auto 2.5rem;
	color: #fff;
	font-size: clamp(2.4rem, 6vw, 5rem);
	font-weight: 700;
	line-height: 1.1;
	text-transform: uppercase;
}

.button,
.wp-block-button__link {
	display: inline-block;
	border: 0;
	border-radius: 999px;
	padding: 0.8rem 1.6rem;
	background: var(--color-blue);
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.4;
	text-decoration: none;
	transition: background-color 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
	background: var(--color-navy);
	color: #fff;
}

.content-area {
	width: min(100% - 2.5rem, var(--content-width));
	margin: 0 auto;
	padding-block: var(--space-section);
}

.home-content {
	width: min(100% - 2.5rem, 1500px);
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	color: var(--color-ink);
	line-height: 1.2;
}

.entry-content h1 {
	margin-bottom: 2.5rem;
	font-size: clamp(2rem, 4vw, 3.2rem);
	text-align: center;
}

.entry-content h2 {
	font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.entry-content h3,
.entry-content h4 {
	font-size: 1.4rem;
}

.entry-content p {
	margin-block: 0 1.25rem;
}

.entry-content .wp-block-columns {
	gap: clamp(1.5rem, 4vw, 4rem);
	margin-block: 2.5rem;
}

.entry-content .wp-block-column > :first-child {
	margin-top: 0;
}

.facility-grid {
	gap: 1.5rem !important;
}

.facility-grid .wp-block-column {
	padding: 0;
	background: transparent;
}

.facility-layout > .wp-block-column:first-child {
	flex-basis: 68%;
}

.facility-layout > .wp-block-column:last-child {
	flex-basis: 32%;
}

.facility-card {
	padding: clamp(1.25rem, 2.5vw, 2rem);
	background: #f5f6f7;
}

.facility-card + .facility-card {
	margin-top: 1.5rem;
}

.facility-grid h2,
.facility-grid h3,
.facility-grid h4 {
	margin-top: 0;
	color: var(--color-blue);
}

.information-panel {
	padding: clamp(1.5rem, 3vw, 3rem);
	background: var(--color-green);
	color: #fff;
}

.information-panel h2,
.information-panel h3,
.information-panel h4,
.information-panel a {
	color: #fff;
}

.information-panel a:hover,
.information-panel a:focus-visible {
	color: #e5f5ff;
}

.booking-panel {
	padding: clamp(1.5rem, 3vw, 3rem);
	background: var(--color-navy);
	color: #fff;
}

.booking-panel h2,
.booking-panel h3,
.booking-panel h4 {
	color: #fff;
}

.booking-panel .wp-block-image {
	margin-top: 2rem;
}

.wp-block-image img {
	display: block;
}

.wp-block-gallery {
	gap: 0.75rem;
}

.wp-block-gallery .wp-block-image {
	margin: 0;
}

.wp-block-gallery .wp-block-image img {
	width: 100%;
	height: 15rem;
	object-fit: cover;
}

.wp-block-table {
	overflow-x: auto;
}

.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
}

.wp-block-table th,
.wp-block-table td {
	padding: 0.8rem 1rem;
	border: 1px solid #d6dde1;
	text-align: left;
}

.wp-block-table thead {
	background: var(--color-navy);
	color: #fff;
}

.wp-block-table tbody tr:nth-child(even) {
	background: #f2f5f6;
}

.booking-calendar {
	width: 100%;
	min-height: 25rem;
	border: 0;
}

.site-footer {
	padding: 1.7rem 1.25rem;
	background: var(--color-navy);
	color: #fff;
	font-size: 0.95rem;
	text-align: center;
}

.site-footer p {
	margin: 0;
}

.post-list {
	display: grid;
	gap: 2rem;
}

.post-card {
	padding-bottom: 2rem;
	border-bottom: 1px solid #d6dde1;
}

.post-card h2 {
	margin-top: 0;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 767px) {
	.site-header {
		min-height: 3.75rem;
		padding: 0.3125rem 0.9375rem;
	}

	.site-logo {
		max-width: calc(100% - 4.25rem);
	}

	.site-logo img {
		max-height: 3.125rem;
	}

	.menu-toggle {
		width: 2.75rem;
		height: 2.75rem;
	}

	.menu-toggle span {
		width: 2rem;
	}
}

@media (max-width: 700px) {
	body {
		font-size: 1rem;
	}

	.home-hero {
		min-height: 32rem;
	}

	.hero-content h1 {
		font-size: clamp(2rem, 10vw, 3.5rem);
	}

	.entry-content .wp-block-columns {
		display: block;
	}

	.entry-content .wp-block-column + .wp-block-column {
		margin-top: 1.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	* {
		transition-duration: 0.01ms !important;
	}
}
