/*
 * Block styles for Casa Loua, loaded on the site and in the block editor.
 * The homepage sections are regular Group blocks with a "cl-…" CSS class
 * (Block > Advanced > Additional CSS class), so texts and photos stay editable.
 */

: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-serif: 'Cormorant', Georgia, serif;
	--cl-sans: 'Manrope', system-ui, sans-serif;
	--cl-max: 1280px;
	--cl-gutter: clamp(16px, 5vw, 64px);
}

/* ------------------------------------------------------------------
   Shared building blocks
------------------------------------------------------------------ */
.cl-section { scroll-margin-top: 16px; }
.cl-section > *, .cl-wrap > *, .cl-section .wp-block-group > * { margin-block: 0; }

.cl-wrap {
	max-width: var(--cl-max); margin-left: auto !important; margin-right: auto !important;
	padding: 120px var(--cl-gutter);
}

.cl-eyebrow {
	font-size: 13px !important; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
	color: var(--cl-ink); margin: 0 0 16px !important;
}

.cl-display, .cl-h2, .cl-section h3 {
	font-family: var(--cl-serif); color: inherit; letter-spacing: normal;
}
.cl-display em, .cl-h2 em { font-style: italic; color: var(--cl-primary); }

.cl-display {
	margin: 0; font-weight: 500; font-size: clamp(4.5rem, 13vw, 11.5rem) !important;
	line-height: 0.85; letter-spacing: -0.02em;
}
.cl-h2 {
	margin: 0; font-weight: 400; font-size: clamp(2.4rem, 5vw, 4.4rem) !important; line-height: 1.06;
}

.cl-head {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
	gap: 24px; margin-bottom: 56px !important;
}
.cl-head__title { flex: 1 1 520px; min-width: 0; }
.cl-head__intro { flex: 0 1 420px; min-width: 0; }
.cl-section .cl-head__intro > p { margin: 0 0 14px; }
.cl-section .cl-head__intro > p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------
   Hero
------------------------------------------------------------------ */
.cl-hero { max-width: var(--cl-max); margin: 0 auto; padding: 24px var(--cl-gutter) 0; }
.cl-hero__head {
	display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
	gap: 24px; margin-bottom: 32px !important;
}
/* Keep "Casa Loua" on one line; if there is not enough room the intro text moves below it. */
.cl-hero__title { flex: 1 0 auto; min-width: 0; }
.cl-hero__title .cl-display { white-space: nowrap; }
.cl-hero__eyebrow { margin-bottom: 12px !important; }
.cl-lead {
	flex: 0 1 360px; margin: 0 0 12px !important; font-size: 18px !important; line-height: 1.55; color: var(--cl-ink-2);
}

.cl-hero__media { position: relative; border-radius: 28px; overflow: hidden; background: var(--cl-ink-2); }
.cl-hero__media .wp-block-image { margin: 0; }
.cl-hero__media .wp-block-image img { width: 100%; height: 640px; object-fit: cover; }

.cl-pills {
	position: absolute; left: 32px; right: 32px; bottom: 32px;
	display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0 !important; padding: 0;
}
.cl-pills li {
	background: var(--cl-bg); border-radius: 999px; padding: 12px 22px; margin: 0;
	font-size: 15px; font-weight: 600; display: flex; align-items: baseline; gap: 8px; line-height: 1.2;
}
/* Cormorant uses old-style figures by default (4, 5 and 9 drop below the line): use lining figures for numbers. */
.cl-pills strong { font-family: var(--cl-serif); font-size: 24px; font-weight: 500; line-height: 1; color: var(--cl-primary); font-variant-numeric: lining-nums; }

/* ------------------------------------------------------------------
   01 The house
------------------------------------------------------------------ */
.cl-house .cl-wrap { padding-top: 140px; display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.cl-house .cl-eyebrow { flex: 0 0 auto; margin-top: 8px !important; }
.cl-house__body { flex: 1 1 560px; min-width: 0; }
.cl-house__body .cl-h2 { margin-bottom: 40px !important; line-height: 1.08; }
.cl-subhead {
	font-family: var(--cl-sans) !important; font-size: 13px !important; font-weight: 600 !important;
	letter-spacing: 0.22em; text-transform: uppercase; color: var(--cl-primary) !important; margin: 0 0 20px !important;
}
/* Newspaper columns: the text flows from the first column into the second, so a
   short paragraph next to a long one leaves no gap (a grid row would). */
.cl-cols { columns: 2; column-gap: 40px; color: var(--cl-ink-2); }
.cl-cols > p { margin: 0; padding-bottom: 24px; break-inside: avoid; }
.cl-cols > p:last-child { padding-bottom: 0; }

/* ------------------------------------------------------------------
   02 Rooms (dark)
------------------------------------------------------------------ */
.cl-rooms { background: var(--cl-ink); color: var(--cl-bg); }
.cl-rooms .cl-eyebrow { color: var(--cl-mint); }
.cl-rooms .cl-h2 em { color: inherit; }
.cl-rooms .cl-head__intro { color: var(--cl-mist); }

.cl-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.cl-card { display: flex; flex-direction: column; gap: 20px; }
.cl-card .wp-block-image { margin: 0; }
.cl-card .wp-block-image img { width: 100%; height: 380px; object-fit: cover; border-radius: 20px; }
.cl-card h3 { margin: 0; font-weight: 500; font-size: 32px !important; line-height: 1.15; }
.cl-card p { margin: 0; color: var(--cl-mist); }
.cl-rooms__outro {
	margin: 56px 0 0 !important; max-width: 640px; font-family: var(--cl-serif); font-style: italic;
	font-size: 28px !important; line-height: 1.3; color: var(--cl-bg);
}

/* ------------------------------------------------------------------
   03 Photos (mosaic gallery)
------------------------------------------------------------------ */
.cl-photos .cl-head { margin-bottom: 48px !important; }

.wp-block-gallery.has-nested-images.cl-mosaic {
	display: grid !important; grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 220px; grid-auto-flow: dense; gap: 16px !important;
}
.wp-block-gallery.has-nested-images.cl-mosaic > figure.wp-block-image {
	width: auto !important; margin: 0 !important; height: 100%; border-radius: 18px; overflow: hidden;
	position: relative; background: #BFD6CD;
}
.wp-block-gallery.has-nested-images.cl-mosaic > figure.wp-block-image img {
	width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 0;
}
/* Repeating pattern per 8 photos: two tall tiles and two wide tiles fill 4 columns x 3 rows. */
.wp-block-gallery.has-nested-images.cl-mosaic > figure.wp-block-image:nth-child(8n+1),
.wp-block-gallery.has-nested-images.cl-mosaic > figure.wp-block-image:nth-child(8n+3) { grid-row: span 2; }
.wp-block-gallery.has-nested-images.cl-mosaic > figure.wp-block-image:nth-child(8n+7),
.wp-block-gallery.has-nested-images.cl-mosaic > figure.wp-block-image:nth-child(8n) { grid-column: span 2; }

.wp-block-gallery.has-nested-images.cl-mosaic > figure.wp-block-image::before { display: none !important; }
.wp-block-gallery.has-nested-images.cl-mosaic > figure.wp-block-image figcaption {
	position: absolute; left: 14px; right: auto; bottom: 14px; top: auto; width: auto; max-width: calc(100% - 28px); max-height: none;
	margin: 0; padding: 6px 14px; border-radius: 999px; background: var(--cl-bg); flex: none;
	color: var(--cl-ink-2); font-size: 13px; font-weight: 600; line-height: 1.4; text-align: left; text-shadow: none;
	overflow: visible; scrollbar-width: none;
}

@media (max-width: 900px) {
	.wp-block-gallery.has-nested-images.cl-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; gap: 10px !important; }
}

/* ------------------------------------------------------------------
   04 The area
------------------------------------------------------------------ */
.cl-area { background: var(--cl-soft); }
.cl-area .cl-wrap { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.cl-area__intro { flex: 1 1 420px; min-width: 0; }
.cl-area__intro .cl-h2 { margin-bottom: 24px !important; }
.cl-area__intro p:not(.cl-eyebrow) { max-width: 480px; color: var(--cl-ink-2); }
.cl-distances { flex: 1 1 480px; min-width: 0; }
.cl-distance {
	display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
	padding: 28px 0; border-top: 1px solid var(--cl-line);
}
.cl-distance:last-child { border-bottom: 1px solid var(--cl-line); }
.cl-distance h3 { margin: 0; font-weight: 500; font-size: 30px !important; line-height: 1.15; }
.cl-distance p { margin: 4px 0 0; font-size: 15px; color: var(--cl-muted); }
.cl-distance .cl-distance__value {
	margin: 0; font-family: var(--cl-serif); font-size: 48px !important; line-height: 1; color: var(--cl-primary); white-space: nowrap;
	font-variant-numeric: lining-nums;
}

/* ------------------------------------------------------------------
   05 Book
------------------------------------------------------------------ */
.cl-book__card {
	border-radius: 32px; background: var(--cl-primary); color: var(--cl-bg);
	padding: clamp(40px, 7vw, 96px); display: flex; flex-wrap: wrap; gap: 48px; align-items: center; justify-content: space-between;
}
.cl-book__text { flex: 1 1 480px; min-width: 0; }
.cl-book__text .cl-eyebrow { color: var(--cl-bg); }
.cl-book__text .cl-h2 { font-size: clamp(2.6rem, 5.5vw, 5rem) !important; line-height: 1; margin-bottom: 20px !important; }
.cl-book__text .cl-h2 em { color: inherit; }
.cl-book__text p:not(.cl-eyebrow) { max-width: 480px; color: #DDE9E4; }

.cl-book__actions { flex: 0 1 360px; display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.cl-book__actions .wp-block-button { width: 100%; margin: 0; }
.cl-book__actions .wp-block-button__link {
	display: block; width: 100%; text-align: center; text-decoration: none; border-radius: 999px;
	font-family: var(--cl-sans); font-size: 17px; padding: 18px 28px;
}
.cl-book__actions .cl-btn-light .wp-block-button__link { background: var(--cl-bg); color: var(--cl-ink); font-weight: 700; }
.cl-book__actions .cl-btn-light .wp-block-button__link:hover { background: #fff; }
.cl-book__actions .cl-btn-outline .wp-block-button__link {
	background: transparent; color: var(--cl-on-primary); font-weight: 600; border: 1.5px solid var(--cl-on-primary); padding: 16px 28px;
}
.cl-book__actions .cl-btn-outline .wp-block-button__link:hover { background: var(--cl-on-primary); color: #fff; }

/* ------------------------------------------------------------------
   Regular page content (About us, Contact, ...)
------------------------------------------------------------------ */
.entry-content { font-size: 18px; color: var(--cl-ink-2); }
.entry-content > * { margin-top: 0; margin-bottom: 1.1em; }
.entry-content h2, .entry-content h3 {
	font-family: var(--cl-serif); font-weight: 500; color: var(--cl-ink); line-height: 1.1;
}
.entry-content h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 1.4em; }
.entry-content h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.4em; }
.entry-content .wp-block-image img { border-radius: 20px; }
.entry-content .has-text-align-center { font-family: var(--cl-serif); font-size: 1.35em; font-style: italic; line-height: 1.45; color: var(--cl-ink); }

.entry-content .wp-block-gallery:not(.cl-mosaic) {
	display: grid !important; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px !important;
	margin: 2em 0;
}
.entry-content .wp-block-gallery:not(.cl-mosaic) > .wp-block-image { width: auto !important; margin: 0 !important; aspect-ratio: 3 / 4; }
.entry-content .wp-block-gallery:not(.cl-mosaic) > .wp-block-image img {
	width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 16px;
}

/* ------------------------------------------------------------------
   About us (template "Secties (volle breedte)")
------------------------------------------------------------------ */
.cl-about-hero { max-width: var(--cl-max); margin: 0 auto; padding: 48px var(--cl-gutter) 120px; }
.cl-about-hero__head { margin-bottom: 64px !important; }
.cl-about-hero__title { font-size: clamp(3.6rem, 10vw, 9rem) !important; line-height: 0.9; }

.cl-about-intro {
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center;
}
.cl-about-intro__photo { margin: 0 !important; position: relative; }
.cl-about-intro__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 200px 200px 28px 28px; }
.cl-about-intro__text > * + * { margin-top: 40px !important; }
.cl-about-lead {
	font-family: var(--cl-serif); font-size: clamp(1.9rem, 3.2vw, 2.9rem) !important; line-height: 1.15; color: var(--cl-ink);
}
.cl-about-lead em { font-style: italic; color: var(--cl-primary); }

.cl-about-quote { background: var(--cl-ink); color: var(--cl-bg); text-align: center; }
.cl-about-quote .cl-wrap { max-width: 1040px; }
.cl-about-quote .cl-eyebrow { color: var(--cl-mint); margin-bottom: 32px !important; }
.cl-about-quote__text {
	font-family: var(--cl-serif); font-weight: 400; font-size: clamp(2.2rem, 4.6vw, 4rem) !important; line-height: 1.12;
}
.cl-about-quote__text::before, .cl-about-quote__text::after { color: var(--cl-mint); }
.cl-about-quote__text::before { content: '“'; }
.cl-about-quote__text::after { content: '”'; }
.cl-about-quote__text em { color: var(--cl-mint); }

.cl-about-welcome .cl-wrap {
	display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center;
}
.cl-about-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.cl-about-photos .wp-block-image { margin: 0 !important; }
.cl-about-photos .wp-block-image img { width: 100%; aspect-ratio: 3 / 5; object-fit: cover; border-radius: 20px; }
.cl-about-photos .wp-block-image:nth-child(2) { margin-top: 64px !important; }
.cl-about-welcome__text { color: var(--cl-ink-2); }
.cl-about-welcome__text > * + * { margin-top: 24px !important; }
.cl-about-welcome__highlight {
	font-family: var(--cl-serif); font-style: italic; font-size: 30px !important; line-height: 1.25; color: var(--cl-ink);
	padding-left: 24px; border-left: 2px solid var(--cl-primary);
}
.cl-signature { font-family: var(--cl-serif); font-size: 24px !important; line-height: 1.3; color: var(--cl-ink); }
.cl-signature strong { display: inline-block; margin-top: 4px; font-size: 34px; font-weight: 500; font-style: italic; color: var(--cl-primary); }

.cl-about-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px !important; }
.cl-about-actions .wp-block-button { margin: 0; }
.cl-about-actions .wp-block-button__link {
	display: inline-block; text-decoration: none; border-radius: 999px; font-family: var(--cl-sans);
	font-size: 16px; font-weight: 600; padding: 15px 26px; line-height: 1.2;
}
.cl-about-actions .cl-btn-primary .wp-block-button__link { background: var(--cl-ink); color: #fff; }
.cl-about-actions .cl-btn-primary .wp-block-button__link:hover { background: var(--cl-primary); }
.cl-about-actions .cl-btn-ghost .wp-block-button__link {
	background: transparent; color: var(--cl-ink); border: 1.5px solid var(--cl-ink); padding: 13.5px 24.5px;
}
.cl-about-actions .cl-btn-ghost .wp-block-button__link:hover { background: var(--cl-ink); color: #fff; }

@media (max-width: 860px) {
	.cl-about-intro, .cl-about-welcome .cl-wrap { grid-template-columns: 1fr; }
	.cl-about-intro__photo { max-width: 460px; }
	.cl-about-hero { padding-bottom: 80px; }
	.cl-about-hero__head { margin-bottom: 40px !important; }
}
@media (max-width: 500px) {
	.cl-about-photos { gap: 8px; }
	.cl-about-photos .wp-block-image:nth-child(2) { margin-top: 32px !important; }
	.cl-about-photos .wp-block-image img { border-radius: 14px; }
}

/* ------------------------------------------------------------------
   Small screens
------------------------------------------------------------------ */
@media (max-width: 700px) {
	.cl-cols { columns: 1; }
	.cl-wrap { padding-top: 80px; padding-bottom: 80px; }
	.cl-house .cl-wrap { padding-top: 96px; gap: 24px; }
	.cl-hero__media .wp-block-image img { height: 520px; }
	.cl-pills { left: 16px; right: 16px; bottom: 16px; gap: 8px; }
	.cl-pills li { padding: 8px 16px; font-size: 14px; }
	.cl-pills strong { font-size: 20px; }
	.cl-card .wp-block-image img { height: 300px; }
	.cl-distance .cl-distance__value { font-size: 36px !important; }
	.cl-rooms__outro { font-size: 24px !important; }
}
