/* Duinenhuisje brand layer on top of the theme (theme.css). The theme's accent
   colours point to the variables below. */

:root {
	--sand-bg: #f7f4ee;
	--dune: #d8c7a5;
	--sand: #ebd7b2;
	--accent: #4f6d7a;
	--accent-hover: #3c5560;
	--dark: #24323a;
	--darker: #1b262c;
	--text: #333;
	--tint: rgba(79, 109, 122, 0.06);
}

body,
main {
	background: var(--sand-bg);
}

body {
	font-family: Mulish, Helvetica, sans-serif;
	font-size: 17px;
	color: var(--text);
}

h1, h2, h3, h4, h5, h6 {
	font-family: Alice, Georgia, serif;
	font-weight: normal !important;
	letter-spacing: 0;
}

h1 {
	letter-spacing: 0.1rem;
}

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

a:hover {
	color: var(--accent-hover);
}

/* Buttons: dune-coloured pills. White text on sand is unreadable, so the
   text is dark (about 11:1 contrast). Outline buttons are filled the same way. */

.btn_1,
a.btn_1,
.btn_1.outline,
a.btn_1.outline {
	background-color: var(--sand);
	border: 2px solid var(--sand);
	color: var(--dark);
}

.btn_1:hover,
a.btn_1:hover,
.btn_1.outline:hover,
a.btn_1.outline:hover {
	background-color: var(--dune);
	border-color: var(--dune);
	color: var(--dark);
}

/* Brand: logo mark (#logo-mark in template.php) plus site name and "Oostduinkerke".
   Over the banner photo it is all white; on the white sticky header and mobile
   menu it is in colour; in the dark footer the house and roof turn light. */

.logo-sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #fff;
	text-decoration: none;
	text-align: left;
	/* one colour, for the transparent header over the banner photo */
	--logo-sun: currentColor;
	--logo-roof: currentColor;
	--logo-house: currentColor;
	--logo-dune: currentColor;
	--logo-dune-back: currentColor;
	--logo-grass: currentColor;
	--logo-sea: currentColor;
}

a.brand:hover {
	color: #fff;
}

.brand-mark {
	flex: none;
	width: 54px;
	height: 48px;
	/* a tight shadow for crisp edges plus a soft glow, for contrast on bright photos */
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 6px rgba(0, 0, 0, 0.4));
}

.brand-words {
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 0 10px rgba(0, 0, 0, 0.45);
}

.wordmark {
	font-family: Alice, Georgia, serif;
	font-size: 1.75rem;
	line-height: 1;
	white-space: nowrap;
}

.brand-place {
	font-size: 0.62rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	opacity: 0.85;
}

header.fixed_header.sticky .brand,
.logo_panel .brand {
	color: var(--dark);
	--logo-sun: #d9a85b;
	--logo-roof: var(--dark);
	--logo-house: var(--accent);
	--logo-dune: var(--dune);
	--logo-dune-back: var(--sand);
	--logo-grass: #7d8f62;
	--logo-sea: var(--accent);
}

header.fixed_header.sticky .brand-mark,
header.fixed_header.sticky .brand-words,
.logo_panel .brand-mark,
.logo_panel .brand-words {
	filter: none;
	text-shadow: none;
}

@media (max-width: 575px) {
	.brand {
		gap: 9px;
	}

	.brand-mark {
		width: 42px;
		height: 37px;
	}

	.wordmark {
		font-size: 1.45rem;
	}

	.brand-place {
		font-size: 0.55rem;
	}
}

header.fixed_header nav ul li a.btn_1,
header.fixed_header.sticky nav ul li a.btn_1 {
	color: var(--dark);
}

header.fixed_header.sticky nav ul li a.animated_link:before {
	background-color: var(--accent);
}

/* Dark fade behind the transparent header, so the wordmark and menu stay
   readable on bright banner photos. It fades out once the header turns white. */
header.fixed_header::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: calc(100% + 80px);
	z-index: -1;
	pointer-events: none;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0));
	transition: opacity 0.3s ease-in-out;
}

header.fixed_header.sticky::before {
	opacity: 0;
}

/* On mobile the menu is a white panel, so the shadow is for large screens only. */
@media (min-width: 992px) {
	header.fixed_header:not(.sticky) nav ul li a:not(.btn_1) {
		text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 8px rgba(0, 0, 0, 0.5);
	}
}

@media (max-width: 991px) {
	/* The theme hides the first nav item on mobile; Home should stay. */
	header nav ul li:first-child {
		display: block;
	}
}

/* Bootstrap turns on CSS smooth scrolling, which fights the jQuery scroll animation
   for same-page links in site.js. */
:root {
	scroll-behavior: auto;
}

/* Hero. The Paginea CDN cannot blur images, so it is done here. */

.hero {
	position: relative;
	overflow: hidden;
	background-color: var(--dark);
}

/* Hero photos fade in over the dark banner once loaded; their onload attribute
   adds .loaded (it survives jarallax moving the img). */
.hero .jarallax-img,
.hero-garden-img {
	opacity: 0;
	transition: opacity 0.6s ease-out;
}

.hero .jarallax-img.loaded,
.hero-garden-img.loaded {
	opacity: 1;
}

.hero .jarallax-img {
	filter: blur(6px);
	transform: scale(1.08);
}

.hero .wrapper h1 {
	font-size: 3rem;
}

.hero .wrapper small {
	text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

@media (max-width: 767px) {
	.hero .wrapper h1 {
		font-size: 2rem;
	}

	/* Heroes are about half as high on smartphones (the theme forces at least
	   600px below 992px). The home hero needs more room for its longer title. */
	.hero.extra-small-height {
		height: 300px;
		min-height: 0;
	}

	/* Centre the text in the part below the fixed header (61px on phones). */
	.hero.extra-small-height .wrapper {
		padding-top: 61px;
	}

	/* Jarallax sizes the photo for a hero that scrolls in from below the screen, so in
	   a hero shorter than the screen mostly the photo's top half shows. Shift it up so
	   it is centred in the hero at scroll 0: (hero height - 100vh) * (1 - speed) / 2,
	   with data-speed 0.2. `translate` combines with jarallax's inline `transform`. */
	.hero.extra-small-height .jarallax-img {
		translate: 0 calc((300px - 100vh) * 0.4);
	}

	.hero.large-height {
		height: 360px;
	}
}

/* Home hero: the garden photo stays sharp so the terrace, tree and loungers
   show. It has no parallax and is anchored at the bottom, so the lawn is not
   cropped away. The text sits low on the lawn, left of the loungers; gradients from the
   bottom (and the left on large screens) keep the white text readable. */

.hero-garden-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 35% 100%;
}

.hero-garden .wrapper {
	padding-bottom: 6vh;
	background-image: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 60%);
}

.hero-garden-text {
	max-width: 600px;
	margin: 0 auto;
	text-align: center;
}

.hero-garden .wrapper small,
.hero-garden .wrapper h1 {
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

@media (min-width: 992px) {
	.hero-garden .wrapper {
		padding-bottom: 7vh;
		background-image: linear-gradient(to right, rgba(0, 0, 0, 0.4), transparent 50%),
			linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 50%);
	}

	.hero-garden-text {
		max-width: 640px;
		margin: 0 auto 0 0;
		text-align: left;
	}

	.hero-garden .wrapper h1 {
		font-size: 2.25rem;
		text-wrap: balance;
	}
}

/* Dark banner (with the transparent header over it) until the content is rendered.
   It has the classes of the real banner, so it has the same height. The light space
   below it keeps the dark footer out of view meanwhile. */
.hero-slot {
	margin-bottom: 100vh;
}

/* Sections */

.small-container {
	max-width: 1000px;
}

.bg_white {
	background-color: #fff;
}

.title small {
	color: var(--accent);
}

/* Home gallery */

#fotos .owl-carousel .item img {
	aspect-ratio: 8 / 5;
	width: 100%;
	object-fit: cover;
}

/* Huisje: facility cards flow over balanced columns. */

.facilities {
	column-count: 1;
	column-gap: 30px;
}

@media (min-width: 768px) {
	.facilities {
		column-count: 2;
	}
}

@media (min-width: 1200px) {
	.facilities {
		column-count: 3;
	}
}

.facility {
	break-inside: avoid;
	border-radius: 10px;
	padding: 25px 25px 5px;
	margin-bottom: 30px;
	background-color: #fff;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}

.facility h3 {
	font-size: 1.4rem;
	margin-bottom: 12px;
}

.facility-images {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 10px;
	margin-bottom: 20px;
}

.facility-images img {
	aspect-ratio: 4 / 3;
	width: 100%;
	object-fit: cover;
}

/* Prices */

.table > :not(caption) > * > * {
	border-bottom-width: 0;
	background-color: transparent;
	padding: 0.7rem 0.75rem;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
	--bs-table-bg-type: var(--tint);
}

.table thead th {
	font-weight: 600;
	color: var(--accent);
	white-space: nowrap;
}

.table tbody th {
	font-weight: 600;
}

#pricing-table td,
#holiday-table td:last-child {
	white-space: nowrap;
}

.table-responsive {
	margin-bottom: 25px;
}

/* Warning above the price table. */
.notice {
	display: flex;
	gap: 15px;
	align-items: flex-start;
	padding: 18px 22px;
	margin-bottom: 25px;
	border-left: 4px solid var(--dune);
	border-radius: 10px;
	background-color: #fff;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}

.notice i {
	font-size: 1.4rem;
	line-height: 1.2;
	color: var(--accent);
}

.notice p {
	margin: 0;
}

.card-panel {
	background-color: #fff;
	border-radius: 10px;
	padding: 25px;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}

.card-panel iframe {
	display: block;
	width: 100%;
	border: 0;
}

/* Contact */

.contact_info ul {
	list-style: none;
	padding: 0;
}

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

/* Footer */

footer {
	background-color: var(--dark);
}

footer .footer_bg .gradient_over {
	background: linear-gradient(to bottom, transparent, var(--dark));
}

footer .brand {
	margin-bottom: 20px;
	--logo-sun: #e2b469;
	--logo-roof: #fff;
	--logo-house: var(--sand-bg);
	--logo-dune: var(--dune);
	--logo-dune-back: #b9a37c;
	--logo-grass: #a9b98a;
	--logo-sea: #9fb9c4;
}

footer .brand-mark,
footer .brand-words {
	filter: none;
	text-shadow: none;
}

footer h3 {
	color: #fff;
	margin-bottom: 16px;
}

footer .copy {
	background-color: var(--darker);
	font-size: 14px;
}

footer .copy a:hover {
	color: #fff;
}

footer .btn_1 {
	margin-top: 10px;
}
