/*
Theme Name: Laura
Description: One-page theme for Holiday House Laura, Vir. Works together with the Laura Booking plugin.
Version: 1.0.10
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: laura
License: GPLv2 or later
*/

@font-face { font-family: "Karla"; font-weight: 400 700; font-display: swap; src: url(fonts/karla-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Karla"; font-weight: 400 700; font-display: swap; src: url(fonts/karla-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Marcellus"; font-weight: 400; font-display: swap; src: url(fonts/marcellus-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Marcellus"; font-weight: 400; font-display: swap; src: url(fonts/marcellus-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }

:root {
	--bg: #f6f7f5;
	--surface: #ffffff;
	--fg: #1d2a2e;
	--muted: #5b6b6f;
	--sea: #1f5f6b;
	--sea-soft: #d9e8ea;
	--olive: #6d7a3a;
	--booked: #c9d1cf;
	--booked-fg: #6f7c7f;
	--line: #dde3e1;
	--display: "Marcellus", "Iowan Old Style", Georgia, serif;
	--body: "Karla", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--sea); }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { max-width: 65ch; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--fg); text-decoration: none; font-family: var(--display); font-size: 1.45rem; line-height: 1.2; }
.brand small { display: block; font-family: var(--body); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.brand .mark { width: 64px; height: 37px; flex: none; background: var(--fg); -webkit-mask: url(assets/logo-mark.png) center / contain no-repeat; mask: url(assets/logo-mark.png) center / contain no-repeat; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; }
.site-nav a { color: var(--fg); text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: var(--sea); }
.lang-switch { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.lang-switch .current-lang a { color: var(--fg); font-weight: 700; }
.lang-switch a { color: var(--muted); text-decoration: none; }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding-block: 48px 40px; }
.hero .eyebrow { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--olive); font-weight: 700; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); margin: 10px 0 16px; }
.hero .lead { font-size: 1.15rem; color: var(--muted); margin: 0; }
.hero-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }

/* Sections: each H2 in the page content starts a new band */
.section { padding-block: 52px; border-top: 1px solid var(--line); }
.page-content > .wp-block-group { padding-block: 52px; border-top: 1px solid var(--line); }
.page-content > .wp-block-group > * { max-width: 1080px; margin-left: auto; margin-right: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.page-content > .wp-block-group > * + * { margin-top: 20px; }

/* Gallery */
.wp-block-gallery.has-nested-images { gap: 10px; }
.wp-block-gallery figure.wp-block-image img { border-radius: 4px; aspect-ratio: 3 / 2; object-fit: cover; }

/* Gallery mosaic: add class "laura-mosaic" to the gallery and "is-big" to the photos that should be large */
.wp-block-gallery.laura-mosaic { display: grid !important; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; grid-auto-flow: dense; gap: 10px; }
.wp-block-gallery.laura-mosaic > figure.wp-block-image { position: relative; width: auto !important; margin: 0 !important; flex: none !important; aspect-ratio: 3 / 2; }
.wp-block-gallery.laura-mosaic > figure.is-big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.wp-block-gallery.laura-mosaic > figure.wp-block-image > a,
.wp-block-gallery.laura-mosaic > figure.wp-block-image img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.wp-block-gallery.laura-mosaic > figure.wp-block-image img { object-fit: cover; aspect-ratio: auto; border-radius: 4px; }

/* Map */
.laura-map iframe { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; min-height: 360px; border: 0; border-radius: 4px; }

/* Tables (price list) */
.wp-block-table { overflow-x: auto; margin: 0; }
.wp-block-table table { width: 100%; border-collapse: collapse; background: var(--surface); font-variant-numeric: tabular-nums; border: 1px solid var(--line); }
.wp-block-table th, .wp-block-table td { text-align: left; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); }
.wp-block-table thead { border: 0; }
.wp-block-table th { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Columns */
.wp-block-columns { gap: 32px; }

/* FAQ (Details block) */
.wp-block-details { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 14px 18px; max-width: 760px; }
.wp-block-details + .wp-block-details { margin-top: 8px !important; }
.wp-block-details summary { cursor: pointer; font-weight: 700; }
.wp-block-details p { color: var(--muted); margin: 8px 0 0; }

/* Facts list */
.facts ul, ul.facts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
ul.facts li { background: var(--surface); padding: 20px; color: var(--muted); font-size: .92rem; }
ul.facts li strong { display: block; color: var(--fg); font-family: var(--display); font-weight: 400; font-size: 1.15rem; }

/* Plain pages (terms, privacy) */
.plain-page { padding-block: 48px; }
.plain-page .entry { max-width: 760px; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-footer a { color: var(--muted); }

@media (max-width: 820px) {
	.hero .wrap { grid-template-columns: 1fr; }
	ul.facts { grid-template-columns: 1fr 1fr; }
	.wp-block-gallery.laura-mosaic { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Phone header: name, menu button and languages; menu opens below */
.menu-toggle { display: none; }
@media (max-width: 820px) {
	.site-header .wrap { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 8px; padding-block: 10px; }
	.site-header .brand { grid-column: 1; grid-row: 1 / 3; font-size: 1.45rem; gap: 12px; min-width: 0; white-space: nowrap; }
	.site-header .brand .mark { width: 64px; height: 37px; }
	.site-header .brand small { font-size: .72rem; letter-spacing: .14em; }
	.menu-toggle { grid-column: 2; grid-row: 1; justify-self: end; display: grid; place-items: center; width: 48px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; color: var(--fg); cursor: pointer; }
	.menu-toggle svg { width: 28px; height: 28px; }
	.menu-toggle .i-close { display: none; }
	.site-header.is-open .menu-toggle .i-open { display: none; }
	.site-header.is-open .menu-toggle .i-close { display: block; }
	.site-header .site-nav { display: none; }
	.site-header.is-open .site-nav { display: block; grid-column: 1 / -1; grid-row: 3; min-width: 0; margin: 14px 0 0; border: 0; }
	.site-header.is-open .site-nav ul { display: grid; grid-template-columns: 1fr; justify-content: stretch; gap: 0; overflow: visible; padding: 0; }
	.site-header.is-open .site-nav li { border-top: 1px solid var(--line); }
	.site-header.is-open .site-nav a { display: block; padding: 14px 0; font-family: var(--display); font-size: 1.3rem; font-weight: 400; white-space: normal; }
	.site-header .lang-switch { display: flex; grid-column: 2; grid-row: 2; justify-self: end; margin-right: -6px !important; gap: 0; margin: 0; padding: 0; border: 0; font-size: .8rem; letter-spacing: .12em; }
	.site-header .lang-switch a { display: grid; place-items: center; min-width: 34px; min-height: 34px; padding: 0 3px; text-decoration: none; }
	.site-header .lang-switch .current-lang a { color: var(--fg); font-weight: 700; text-decoration: underline; text-decoration-color: var(--olive); text-underline-offset: 5px; text-decoration-thickness: 1px; }
}
@media (max-width: 399px) {
	.site-header .brand { font-size: 1.28rem; gap: 10px; }
	.site-header .brand .mark { width: 54px; height: 31px; }
	.site-header .brand small { font-size: .64rem; letter-spacing: .12em; }
}
