/*
 * Hesha – vormgeving. Kleuren en lettertypes staan in theme.json.
 * Dit bestand wordt ook in de editor geladen, zodat je ziet wat je krijgt.
 */

/* ---------- Header ---------- */

.hesha-header {
	background: var(--wp--preset--color--creme);
	padding-top: 10px;
	padding-bottom: 10px;
	position: relative;
	z-index: 20;
}

.hesha-header .wp-block-site-logo img {
	height: auto;
}

.hesha-header .wp-block-navigation {
	gap: 0;
}

.hesha-header .wp-block-navigation {
	font-size: 1em;
}

.hesha-header .wp-block-navigation .wp-block-navigation-item__content {
	padding: 0 14px;
	line-height: 44px;
}

.wp-block-navigation .wp-block-navigation-item__content:hover,
.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--lila);
}

.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--creme);
	padding: 32px 24px;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	line-height: 2.4;
	font-size: 1.3em;
}

/* ---------- Algemene secties ---------- */

/* Vangnet: de website wordt nooit breder dan het scherm (geen zijwaarts schuiven op mobiel). */
html,
body {
	overflow-x: clip;
}

img,
iframe,
video {
	max-width: 100%;
}

/* Blokken in een rij of raster mogen smaller worden dan hun inhoud (anders duwt de carrousel de pagina breder). */
:where(.is-layout-flex, .is-layout-grid) > :where(.wp-block-group, .wp-block-gallery, .hesha-carrousel) {
	min-width: 0;
}

/* Geen witruimte tussen header, pagina en footer. */
.wp-site-blocks > main,
.wp-site-blocks > footer,
.wp-site-blocks > .wp-block-template-part + * {
	margin-block-start: 0;
}

.hesha-main > .wp-block-post-content > :first-child {
	margin-top: 0;
}

.hesha-main > .wp-block-post-content > :last-child {
	margin-bottom: 0;
}

.wp-block-post-content > .alignfull {
	margin-top: 0;
	margin-bottom: 0;
}

.hesha-sectie {
	padding-top: clamp(48px, 7vw, 90px);
	padding-bottom: clamp(48px, 7vw, 90px);
}

.wp-block-post-content > .hesha-sectie + .hesha-sectie {
	margin-top: 0;
}

/* ---------- Homepage: header met foto ---------- */

/* Hoogte schaalt mee met de schermbreedte, zoals op de oude site. */
.hesha-hero.wp-block-cover {
	min-height: clamp(460px, 52.7vw, 1010px) !important;
	padding-top: 32px;
	padding-bottom: 64px;
}

.hesha-hero .hesha-hero-logo {
	margin-bottom: 0;
}

.hesha-hero .hesha-hero-logo img {
	width: min(42vw, 640px);
	height: auto;
}

.hesha-hero .hesha-hero-ondertitel {
	color: var(--wp--preset--color--wit);
	font-size: clamp(22px, 2.75vw, 40px);
	line-height: 1.4;
	margin-top: clamp(28px, 5.5vw, 70px);
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
}

.hesha-hero .wp-block-buttons {
	margin-top: clamp(20px, 3.3vw, 44px);
	gap: clamp(24px, 5.8vw, 80px);
}

.hesha-hero .wp-block-button__link {
	padding: 17px 26px;
	font-size: 0.8em;
	color: var(--wp--preset--color--wit);
}

.hesha-hero-picture {
	display: contents;
}

@media (max-width: 781px) {
	.hesha-hero.wp-block-cover {
		min-height: min(620px, 78svh) !important;
	}

	.hesha-hero .hesha-hero-logo img {
		width: 78vw;
	}

	.hesha-hero .wp-block-buttons {
		gap: 16px;
	}
}

/* ---------- Citaatbalk ---------- */

.wp-block-post-content > .hesha-citaat.alignfull {
	margin-top: 28px;
}

.hesha-citaat {
	padding-top: 26px;
	padding-bottom: 26px;
}

.hesha-citaat h2 {
	font-size: clamp(20px, 2.5vw, 27px);
	font-weight: 700;
	line-height: 1.08;
	margin: 0;
}

/* ---------- Welkom ---------- */

.hesha-welkom {
	gap: clamp(24px, 5vw, 64px);
	margin-bottom: clamp(48px, 7vw, 90px);
}

.hesha-welkom-kop {
	font-weight: 400;
	line-height: 1.3;
}

.hesha-ondertitel {
	font-family: var(--wp--preset--font-family--roboto);
	font-size: var(--wp--preset--font-size--groot);
	font-weight: 400;
	margin-bottom: 1rem;
}

.hesha-lijn-links {
	border-left: 2px solid var(--wp--preset--color--zwart);
	padding-left: 34px;
	font-size: 1em;
	line-height: 1.7;
}

.hesha-lijn-links > * + * {
	margin-top: 1.7em;
}

.hesha-intro {
	margin-top: clamp(40px, 6vw, 80px);
}

/* ---------- Uitsnede van foto's (instelling "Uitsnede" in de editor) ---------- */

.wp-block-image img {
	object-position: var(--hesha-focus, 50% 50%);
}

/* ---------- Foto op Over ons: zelfde formaat als de carrousel ---------- */

.hesha-sectie > .wp-block-image.aligncenter {
	display: block;
	width: 100%;
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

.hesha-sectie > .wp-block-image.aligncenter img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* ---------- Kamerkaarten (homepage) ---------- */

.hesha-kamerkaarten {
	gap: 24px;
}

.hesha-kamerkaarten .wp-block-image {
	margin-bottom: 1.5rem;
}

/* Mobiel: kamers onder elkaar (standaardgedrag van kolommen), met wat ruimte ertussen. */
@media (max-width: 781px) {
	.wp-block-columns.hesha-kamerkaarten {
		gap: 40px;
	}
}

.hesha-kamerkaarten .wp-block-image img {
	width: 100%;
	transition: transform 0.4s ease;
}

.hesha-kamerkaarten .wp-block-image a {
	display: block;
	overflow: hidden;
}

.hesha-kamerkaarten .wp-block-image a:hover img {
	transform: scale(1.03);
}

/* ---------- Kamers-pagina ---------- */

.hesha-kamer {
	padding-top: clamp(40px, 6vw, 80px);
	padding-bottom: clamp(40px, 6vw, 80px);
	scroll-margin-top: 20px;
}

.hesha-kamer-kolommen {
	gap: clamp(24px, 5vw, 64px);
}

.hesha-kamer h2 {
	margin-top: 0;
}

.hesha-kenmerken {
	list-style: disc;
	padding-left: 1.2em;
	font-family: var(--wp--preset--font-family--georgia);
	font-weight: 600;
	font-size: 1em;
	line-height: 2;
}

.hesha-prijs {
	font-family: var(--wp--preset--font-family--georgia);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--groot);
	margin-top: 2rem;
	margin-bottom: 0;
}

.hesha-klein {
	font-size: var(--wp--preset--font-size--klein);
	line-height: 1.6;
	margin-top: 0.3rem;
}

#voorzieningen {
	scroll-margin-top: 20px;
}

.hesha-voorzieningen h3 {
	font-family: var(--wp--preset--font-family--roboto);
	font-weight: 700;
	font-size: 1.1em;
	margin-top: 1.6em;
	margin-bottom: 0.4em;
}

.hesha-voorzieningen .wp-block-column > h3:first-child {
	margin-top: 0;
}

.hesha-voorzieningen ul {
	margin-top: 0;
	padding-left: 1.2em;
	font-size: 1em;
	line-height: 1.9;
}

.wp-block-separator.is-style-wide {
	border-width: 1px 0 0;
	margin-bottom: 2.5rem;
}

/* ---------- Knoppen ---------- */

.wp-block-button.is-style-donker .wp-block-button__link {
	background-color: var(--wp--preset--color--donkerpaars);
	color: var(--wp--preset--color--wit);
}

.wp-block-button.is-style-donker .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--paars);
}

/* ---------- Locatie ---------- */

.hesha-iconenlijst {
	list-style: none;
	padding-left: 0;
	line-height: 2.2;
}

.hesha-kaart iframe {
	display: block;
	width: 100%;
	margin-top: 1rem;
}

/* ---------- Contact ---------- */

.hesha-label {
	font-family: var(--wp--preset--font-family--georgia);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--klein);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--lila);
	margin-bottom: 0;
}

.hesha-label + p {
	margin-top: 0.2rem;
}

.hesha-contactgegevens {
	margin-bottom: 2rem;
}

#reserveren,
#booking,
#contactformulier {
	scroll-margin-top: 20px;
	margin-top: clamp(40px, 6vw, 70px);
}

.hesha-boeken {
	display: block;
	width: 100%;
	background: var(--wp--preset--color--wit);
}

.hesha-formulier label {
	display: block;
	font-weight: 500;
	margin-bottom: 0.3rem;
}

.hesha-formulier input[type="text"],
.hesha-formulier input[type="email"],
.hesha-formulier textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #cfc6bb;
	border-radius: 2px;
	background: var(--wp--preset--color--wit);
	font: inherit;
	box-sizing: border-box;
}

.hesha-formulier input:focus,
.hesha-formulier textarea:focus {
	outline: 2px solid var(--wp--preset--color--lila);
	outline-offset: 1px;
	border-color: var(--wp--preset--color--lila);
}

.hesha-formulier .wp-block-button__link {
	border: 0;
	cursor: pointer;
}

.hesha-veld-hp {
	position: absolute !important;
	left: -9999px !important;
	height: 1px;
	overflow: hidden;
}

.hesha-formulier-melding {
	padding: 14px 18px;
	border-left: 4px solid var(--wp--preset--color--lila);
	background: var(--wp--preset--color--beige);
}

.hesha-formulier-melding.is-fout {
	border-left-color: #b3261e;
}

/* ---------- Footer ---------- */

.hesha-footer {
	background: var(--wp--preset--color--wit);
	padding-top: 36px;
	padding-bottom: 36px;
	font-size: var(--wp--preset--font-size--klein);
}

.hesha-footer > * + * {
	margin-top: 14px;
}

.hesha-footer-contact {
	line-height: 1.8;
}

.hesha-footer-contact a {
	color: inherit;
	text-decoration: none;
}

.hesha-footer-contact a:hover {
	color: var(--wp--preset--color--donkerpaars);
}

/* ---------- Taalknop (vlaggetje) ---------- */

.hesha-menu-taal {
	display: flex;
	align-items: center;
	gap: 6px;
}

.hesha-taalknop {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 4px 6px 10px;
	color: var(--wp--preset--color--donkerblauw);
	font-family: var(--wp--preset--font-family--georgia);
	font-size: 0.8em;
	font-weight: 600;
	text-decoration: none;
	line-height: 1;
}

.hesha-taalknop svg {
	display: block;
	width: 26px;
	height: auto;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
	transition: transform 0.2s;
}

.hesha-taalknop:hover,
.hesha-taalknop:focus-visible {
	color: var(--wp--preset--color--lila);
}

.hesha-taalknop:hover svg {
	transform: scale(1.08);
}

/* ---------- Knop naar boven ---------- */

.hesha-naar-boven {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 50;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--lila);
	color: var(--wp--preset--color--wit);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background 0.2s;
}

.hesha-naar-boven.is-zichtbaar {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.hesha-naar-boven:hover,
.hesha-naar-boven:focus-visible {
	background: var(--wp--preset--color--donkerpaars);
	color: var(--wp--preset--color--wit);
}
