/*
Theme Name: Casa Loua
Theme URI: https://deolijfdroom.nl
Description: Theme for De Olijfdroom / Casa Loua, based on the "Casa Loua – nieuw website-ontwerp" design. The homepage is built from regular blocks, so all texts and photos stay editable in the block editor.
Version: 1.1.6
Requires at least: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: casa-loua
*/

/* ------------------------------------------------------------------
   Tokens
------------------------------------------------------------------ */
:root {
	--cl-bg: #D1E4DD;
	--cl-soft: #E6F0EC;
	--cl-ink: #28303D;
	--cl-ink-2: #39414D;
	--cl-muted: #4A5563;
	--cl-primary: #789D93;
	--cl-on-primary: #1E242E;
	--cl-mint: #9FD1BE;
	--cl-mist: #B9CCC5;
	--cl-line: #A3BDB4;
	--cl-line-dark: #3E4654;
	--cl-serif: 'Cormorant', Georgia, serif;
	--cl-sans: 'Manrope', system-ui, sans-serif;
	--cl-max: 1280px;
	--cl-gutter: clamp(16px, 5vw, 64px);
}

/* ------------------------------------------------------------------
   Base
------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--cl-bg);
	color: var(--cl-ink);
	font-family: var(--cl-sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--cl-primary); }
a:hover { color: var(--cl-ink); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cl-primary); outline-offset: 3px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 100; top: 12px; left: 12px;
	background: var(--cl-ink); color: #fff; padding: 10px 16px; border-radius: 999px;
}

.cl-container { max-width: var(--cl-max); margin: 0 auto; padding-left: var(--cl-gutter); padding-right: var(--cl-gutter); }

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------ */
.cl-header {
	position: relative; z-index: 10;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
	padding-top: 24px; padding-bottom: 24px;
}

.cl-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--cl-ink); }
.cl-brand:hover { color: var(--cl-ink); }
.cl-brand__logo { width: 96px; height: 96px; flex: none; display: flex; align-items: center; justify-content: center; }
@media (max-width: 600px) { .cl-brand__logo { width: 80px; height: 80px; } }
.cl-brand__logo img { width: 100%; height: 100%; object-fit: contain; }
.cl-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.cl-brand__name {
	font-size: 22px; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase;
	text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.cl-brand__tagline { font-size: 16px; margin-top: 6px; }

.cl-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; }
.cl-nav a { display: inline-block; text-decoration: none; color: var(--cl-ink); font-size: 15px; font-weight: 500; padding: 10px 0; }
.cl-nav a:hover, .cl-nav .current-menu-item > a:not([href*="#"]) { color: var(--cl-primary); }
.cl-nav .cl-menu-cta > a {
	color: var(--cl-on-primary); font-weight: 600; background: var(--cl-primary); padding: 12px 22px; border-radius: 999px;
}
.cl-nav .cl-menu-cta > a:hover { background: var(--cl-ink); color: #fff; }

.cl-nav-toggle {
	display: none; align-items: center; gap: 10px;
	font: 600 15px/1 var(--cl-sans); color: var(--cl-ink);
	background: transparent; border: 1.5px solid var(--cl-ink); border-radius: 999px; padding: 12px 18px; cursor: pointer;
}
.cl-nav-toggle__bars, .cl-nav-toggle__bars::before, .cl-nav-toggle__bars::after {
	display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; content: '';
}
.cl-nav-toggle__bars::before { position: absolute; top: -5px; }
.cl-nav-toggle__bars::after { position: absolute; top: 5px; }

@media (max-width: 1220px) {
	.cl-nav-toggle { display: inline-flex; }
	.cl-nav { flex-basis: 100%; display: none; }
	.cl-nav.is-open { display: block; }
	.cl-nav ul { flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--cl-line); }
	.cl-nav li { border-bottom: 1px solid var(--cl-line); }
	.cl-nav a { display: block; padding: 14px 0; font-size: 17px; }
	.cl-nav .cl-menu-cta { border-bottom: 0; padding-top: 16px; }
	.cl-nav .cl-menu-cta > a { text-align: center; }
}

/* Language link (Polylang): one link to the other language, just before the CTA. */
.cl-nav .cl-menu-lang > a {
	font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
	padding: 8px 14px; border: 1.5px solid var(--cl-ink); border-radius: 999px; line-height: 1.2;
}
.cl-nav .cl-menu-lang > a:hover { background: var(--cl-ink); color: #fff; }
.cl-menu-lang__name {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
@media (max-width: 1220px) {
	.cl-nav .cl-menu-lang > a {
		border: 0; border-radius: 0; padding: 14px 0; font-size: 17px; font-weight: 500; letter-spacing: normal;
	}
	.cl-nav .cl-menu-lang > a:hover { background: none; color: var(--cl-primary); }
	.cl-menu-lang__code { display: none; }
	.cl-menu-lang__name { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

/* ------------------------------------------------------------------
   Regular pages
------------------------------------------------------------------ */
.cl-page-head { padding-top: 48px; padding-bottom: 48px; }
.cl-page-head__eyebrow {
	margin: 0 0 16px; font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
}
.cl-page-head__title {
	margin: 0; font-family: var(--cl-serif); font-weight: 500;
	font-size: clamp(3rem, 8vw, 6.5rem); line-height: 0.95; letter-spacing: -0.01em;
}
.cl-page-body { padding-bottom: 120px; }
.cl-page-body .entry-content { max-width: 760px; }

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------ */
.cl-footer { background: var(--cl-ink); color: var(--cl-mist); }
.cl-footer a { color: var(--cl-bg); font-weight: 600; }
.cl-footer a:hover { color: #fff; }
.cl-footer__grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 48px;
	padding-top: 96px; padding-bottom: 64px; border-bottom: 1px solid var(--cl-line-dark);
}
.cl-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.cl-footer__logo {
	width: 88px; height: 88px; border-radius: 50%; overflow: hidden; background: var(--cl-bg);
	display: flex; align-items: center; justify-content: center; padding: 4px;
}
.cl-footer__logo img { width: 100%; height: 100%; object-fit: contain; }
.cl-footer__name { font-size: 22px; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; color: var(--cl-bg); }
.cl-footer__tagline { font-size: 16px; margin-top: -10px; }
.cl-footer__col h2, .cl-footer__col h3, .cl-footer__col .widget-title {
	margin: 0 0 14px; font-family: var(--cl-sans); font-size: 13px; font-weight: 600;
	letter-spacing: 0.22em; text-transform: uppercase; color: var(--cl-mint);
}
.cl-footer__col p { margin: 0 0 12px; }
.cl-footer__col .widget { margin: 0; }
.cl-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
	padding-top: 28px; padding-bottom: 40px; font-size: 14px;
}
.cl-footer__bottom a { color: var(--cl-mist); font-weight: 400; }
