/* Villa Balsvik brand layer on Astra (design direction A, 2026-11-12): Peter's navy #302F47, warm white #F6F4EF,
   Cormorant Garamond headings, Mulish body, lots of space, one button style. Loaded by mu-plugins/vb-brand.php. */
:root {
	--vb-navy: #302F47;
	--vb-navy-dark: #1D1C2C;
	--vb-white: #F6F4EF;
	--vb-band: #ECE8DF;
	--vb-text: #24232F;
	--vb-muted: #4A4957;
	--vb-faint: #5F5D6B;
	--vb-line: #DCD8CE;
	--vb-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	--vb-sans: 'Mulish', 'Segoe UI', Arial, sans-serif;
}

/* ---------- Base ---------- */
body,
.ast-separate-container,
.site-content { background: var(--vb-white); }
body,
button,
input,
.entry-content { font-family: var(--vb-sans); color: var(--vb-text); font-size: 17px; line-height: 1.7; }
h1, h2, h3, h4,
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 {
	font-family: var(--vb-serif); color: var(--vb-navy); font-weight: 500; line-height: 1.15; text-wrap: balance;
}
.entry-content h1 { font-size: 56px; margin: 0 0 16px; }
.entry-content h2 { font-size: 40px; margin: 0 0 16px; }
.entry-content h3 { font-size: 26px; font-weight: 600; margin: 0 0 8px; }
a { color: var(--vb-navy); }
a:hover, a:focus { color: var(--vb-navy-dark); }
:focus-visible { outline: 2px solid var(--vb-navy); outline-offset: 3px; }
.entry-content p { margin: 0 0 16px; }
.entry-content img { display: block; }

/* Astra frame: full width, no boxed padding; every section brings its own container (.vb-wrap). */
.page .site-content > .ast-container,
.ast-plain-container .site-content > .ast-container { max-width: none; padding: 0; display: block; }
.page .site-main > article,
.page .entry-content,
.ast-single-post .entry-content { margin: 0; padding: 0; }
.page .entry-header { display: none; }
.vb-wrap { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 32px; padding-right: 32px; box-sizing: border-box; }
.vb-narrow { max-width: 760px; }
/* Astra's page-builder layout gives the direct children of .entry-content its own width and margins; ours win. */
.entry-content > .vb-wrap { max-width: 1200px !important; margin-left: auto !important; margin-right: auto !important; }
.entry-content > .vb-wrap.vb-narrow { max-width: 760px !important; }
#primary, .ast-plain-container #primary, .ast-page-builder-template #primary { margin: 0 !important; padding: 0 !important; }
.page .site-content > .ast-container { padding-bottom: 0 !important; }
/* Whole-card links: no underline on the card text; the "read more" line and the title on hover carry it. */
.entry-content a.vb-tile, .entry-content a.vb-row, .entry-content a.vb-card,
.entry-content a.vb-btn, .entry-content .wp-block-button__link { text-decoration: none !important; }
.vb-row .vb-link, .vb-card .vb-link { text-decoration: underline; text-underline-offset: 3px; }
a.vb-row:hover .vb-row__name, a.vb-card:hover .vb-card__name { text-decoration: underline; text-underline-offset: 6px; }
.entry-content > .wp-block-group { margin-top: 0; margin-bottom: 0; }
.vb-section { padding-top: 56px; padding-bottom: 72px; }
.vb-section--tight { padding-top: 24px; padding-bottom: 48px; }
.vb-band { background: var(--vb-band); }
.vb-band > .vb-wrap,
.vb-band .vb-inner { padding-top: 80px; padding-bottom: 80px; }
.vb-center { text-align: center; margin-left: auto; margin-right: auto; }
.vb-lead { font-size: 19px; color: #3E3D4C; }
.vb-muted { color: var(--vb-muted); font-size: 15px; }
.vb-sub { font-family: var(--vb-serif); font-size: 24px; color: var(--vb-faint); margin-top: -8px; }

/* One button style: navy, warm white text. Secondary actions are plain links (.vb-link). */
.wp-block-button__link,
.wp-element-button,
.vb-btn {
	display: inline-block; background: var(--vb-navy); color: var(--vb-white) !important; border: 0; border-radius: 0;
	padding: 15px 26px; font-family: var(--vb-sans); font-weight: 700; font-size: 16px; line-height: 1.3; text-decoration: none; text-align: center;
}
.wp-block-button__link:hover, .vb-btn:hover,
.wp-block-button__link:focus, .vb-btn:focus { background: var(--vb-navy-dark); color: #fff !important; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.vb-link { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.vb-header { background: var(--vb-white); }
.vb-header__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; padding-top: 18px; padding-bottom: 18px; }
.vb-logo { display: block; line-height: 0; }
.vb-logo img { height: 84px; width: auto; }
.vb-nav__list { display: flex; flex-wrap: wrap; gap: 8px 34px; margin: 0; padding: 0; list-style: none; }
.vb-nav__list a { font-size: 15px; font-weight: 600; text-decoration: none; color: var(--vb-navy); }
.vb-nav__list a:hover, .vb-nav__list .current-menu-item > a, .vb-nav__list .current-page-ancestor > a { text-decoration: underline; text-underline-offset: 5px; }
.vb-lang { display: flex; gap: 12px; font-size: 13px; }
.vb-lang a { color: var(--vb-faint); text-decoration: none; padding: 4px 0; }
.vb-lang a.is-current { color: var(--vb-navy); font-weight: 700; text-decoration: underline; }
.vb-menu-toggle { display: none; background: none; border: 1.5px solid var(--vb-navy); color: var(--vb-navy); font: 700 14px var(--vb-sans); padding: 8px 14px; border-radius: 0; cursor: pointer; }
.vb-crumbs { font-size: 14px; color: var(--vb-faint); padding-top: 4px; }
.vb-crumbs a { color: var(--vb-faint); }

/* ---------- Home ---------- */
.vb-hero img { width: 100%; height: 600px; object-fit: cover; }
.vb-intro { padding: 64px 0 16px; text-align: center; max-width: 680px; margin: 0 auto; }
.vb-intro h1 { font-size: 58px; line-height: 1.1; }
.vb-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.vb-tile { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--vb-text); }
.vb-tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.vb-tile__title { font-family: var(--vb-serif); font-weight: 600; font-size: 32px; line-height: 1.15; color: var(--vb-navy); }
.vb-tile__text { font-size: 16px; color: var(--vb-muted); }
.vb-tile:hover .vb-tile__title { text-decoration: underline; text-underline-offset: 6px; }
.vb-quote { font-family: var(--vb-serif); font-weight: 500; font-size: 30px; line-height: 1.35; color: var(--vb-navy); margin: 0 0 18px; }
.vb-quote-by { font-weight: 600; color: var(--vb-muted); }

/* ---------- Front page: two doors (owner trial 2026-11-12) ----------
   Two equal full-height halves (the villa, the kitchen business), one sentence, then the footer. The content is built by
   scripts/nrk/build-content.php ($T['home']); the header sits over the photos only while the front page content carries
   the vb-doors marker (body.vb-landing, set in vb-brand.php), so the old front page, if restored, brings the old header back. */
.vb-sr-only, .entry-content .vb-sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px !important; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.entry-content > .vb-doors-wrap { max-width: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
.vb-doors { display: flex; margin: 0; height: clamp(600px, 100vh, 1000px); height: clamp(600px, 100svh, 1000px); position: relative; background: var(--vb-navy-dark); }
.vb-doors__seam { flex: none; width: 1px; background: rgba(255, 255, 255, .55); position: relative; z-index: 1; }
.entry-content a.vb-door { position: relative; display: block; flex: 1 1 0; min-width: 0; overflow: hidden; color: #fff; text-decoration: none !important; background: var(--vb-navy-dark); transition: flex-grow .6s ease; }
.entry-content a.vb-door:hover, .entry-content a.vb-door:focus { color: #fff; }
.vb-door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s ease; }
.vb-door::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(29, 28, 44, .7) 0%, rgba(29, 28, 44, 0) 32%, rgba(29, 28, 44, 0) 34%, rgba(29, 28, 44, .54) 58%, rgba(29, 28, 44, .84) 100%); }
.vb-door__text { position: absolute; left: clamp(24px, 3.9vw, 56px); right: clamp(24px, 3.9vw, 56px); bottom: 64px; z-index: 1; display: flex; flex-direction: column; gap: 12px; }
.vb-door__kicker { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4; }
.entry-content .vb-door__h { font-family: var(--vb-serif); font-weight: 500; font-size: clamp(40px, 4.45vw, 64px); line-height: 1.02; color: #fff; margin: 0; }
.vb-door__p { max-width: 420px; font-size: 18px; line-height: 1.5; }
.vb-door__cta { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.vb-door__line { display: inline-block; width: 36px; height: 1px; background: #fff; transition: width .4s ease; }
.vb-door:hover .vb-door__line, .vb-door:focus-visible .vb-door__line { width: 60px; }
.entry-content a.vb-door:focus-visible { outline: 3px solid #fff; outline-offset: -8px; }
.vb-story { padding-top: 80px; padding-bottom: 80px; }
.entry-content .vb-story__text { font-family: var(--vb-serif); font-weight: 500; font-size: 32px; line-height: 1.3; color: var(--vb-navy); margin: 0 0 16px; }
@media (min-width: 922px) {
	/* The header over the photos: the white logo centred, the menu left and the language switcher right, all white. */
	.vb-landing .vb-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; background: transparent; }
	.vb-landing .vb-header__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; max-width: none; padding: 22px 40px; gap: 24px; }
	.vb-landing .vb-logo { grid-column: 2; grid-row: 1; }
	.vb-landing .vb-logo img { height: 104px; }
	.vb-landing .vb-nav { grid-column: 1; grid-row: 1; padding-top: 10px; }
	.vb-landing .vb-nav__list { gap: 8px 26px; }
	.vb-landing .vb-lang { grid-column: 3; grid-row: 1; justify-self: end; padding-top: 10px; }
	.vb-landing .vb-nav__list a, .vb-landing .vb-lang a, .vb-landing .vb-lang a.is-current { color: #fff; text-shadow: 0 1px 10px rgba(29, 28, 44, .45); }
	.vb-landing .vb-nav__list a:hover, .vb-landing .vb-nav__list a:focus { color: #fff; }
	.vb-landing .vb-header :focus-visible { outline-color: #fff; }
}
@media (min-width: 922px) and (prefers-reduced-motion: no-preference) {
	.entry-content a.vb-door:hover, .entry-content a.vb-door:focus-visible { flex-grow: 1.18; }
	.vb-door:hover img, .vb-door:focus-visible img { transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
	.entry-content a.vb-door, .vb-door img, .vb-door__line { transition: none; }
}

/* ---------- Stay ---------- */
.vb-houses { display: flex; flex-direction: column; gap: 72px; }
.vb-row { display: grid; grid-template-columns: 3fr 2fr; gap: 40px; align-items: center; text-decoration: none; color: var(--vb-text); }
.vb-row--rev { grid-template-columns: 2fr 3fr; }
.vb-row--rev .vb-row__img { order: 2; }
.vb-row img, .vb-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.vb-row__name, .vb-card__name { font-family: var(--vb-serif); font-weight: 600; font-size: 38px; line-height: 1.1; color: var(--vb-navy); display: block; margin-bottom: 12px; }
.vb-row__text, .vb-card__text { display: block; margin-bottom: 10px; }
.vb-facts-line { display: block; font-size: 15px; color: var(--vb-muted); margin-bottom: 12px; }
.vb-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.vb-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--vb-text); }
.vb-card__name { font-size: 32px; margin: 0; }
.vb-panel { aspect-ratio: 2 / 1; display: flex; align-items: center; justify-content: center; background: var(--vb-band); color: var(--vb-navy); font-family: var(--vb-serif); font-size: 26px; text-align: center; padding: 16px; }
.vb-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.vb-split img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- House pages ---------- */
.vb-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.vb-gallery__side { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.vb-gallery img { width: 100%; height: 100%; object-fit: cover; }
.vb-gallery__main img { height: 540px; }
.vb-gallery__side img { height: 264px; }
.vb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.vb-box { background: #fff; border: 1px solid var(--vb-line); padding: 28px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; }
.vb-box dl { margin: 0; display: grid; grid-template-columns: auto auto; gap: 9px 12px; font-size: 15px; }
.vb-box dt { font-weight: 400; }
.vb-box dd { margin: 0; font-weight: 700; text-align: right; }
.vb-box .vb-btn { display: block; }
.vb-box p { margin: 0; font-size: 14px; color: var(--vb-faint); }
.vb-rooms { margin: 0 0 44px; border-top: 1px solid var(--vb-line); }
.vb-rooms > div { display: grid; grid-template-columns: 210px 1fr; gap: 4px 28px; padding: 14px 0; border-bottom: 1px solid var(--vb-line); }
.vb-rooms dt { font-family: var(--vb-serif); font-weight: 600; font-size: 22px; color: var(--vb-navy); }
.vb-rooms dd { margin: 0; }
.vb-good { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 44px; margin-bottom: 44px; }
.vb-good b { display: block; }
.vb-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.vb-photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.vb-faq h3 { font-family: var(--vb-sans); font-size: 18px; font-weight: 700; color: var(--vb-text); margin-top: 24px; }

/* ---------- Area, kitchens, about, contact, rules ---------- */
.vb-topics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 56px; }
.vb-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.vb-step__no { font-family: var(--vb-serif); font-size: 40px; color: var(--vb-navy); line-height: 1; display: block; margin-bottom: 8px; }
.vb-contact { margin: 24px 0; display: grid; grid-template-columns: 140px 1fr; gap: 10px 24px; }
.vb-contact dt { font-weight: 700; }
.vb-contact dd { margin: 0; }
.vb-rules { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--vb-line); }
.vb-rules li { display: grid; grid-template-columns: 240px 1fr; gap: 4px 28px; padding: 16px 0; border-bottom: 1px solid var(--vb-line); }
.vb-rules strong { font-family: var(--vb-serif); font-size: 22px; font-weight: 600; color: var(--vb-navy); }
.vb-policy table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; }
.vb-policy th, .vb-policy td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--vb-line); }
.vb-policy th { background: var(--vb-band); }
.vb-sitemap ul { list-style: none; margin: 0 0 0 0; padding: 0; }
.vb-sitemap ul ul { margin-left: 24px; }
.vb-sitemap li { padding: 4px 0; }

/* ---------- Footer ---------- */
.vb-footer { background: var(--vb-navy); color: #E7E5EE; font-size: 15px; }
.vb-footer a { color: #E7E5EE; }
.vb-footer a:hover, .vb-footer a:focus { color: #fff; }
.vb-footer :focus-visible { outline-color: #fff; }
.vb-footer__in { display: flex; flex-wrap: wrap; gap: 36px 72px; justify-content: space-between; align-items: flex-start; padding-top: 64px; padding-bottom: 36px; }
.vb-footer__logo { height: 110px; width: auto; }
.vb-footer__contact { display: flex; flex-direction: column; gap: 6px; }
.vb-footer__muted { color: #C3C0D2; }
.vb-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.vb-footer__legal { padding-bottom: 28px; font-size: 13px; color: #B3B0C4; }
.site-footer { display: none; }

/* ---------- Phones and tablets ---------- */
@media (max-width: 921px) {
	.vb-wrap { padding-left: 20px; padding-right: 20px; }
	.vb-header__in { gap: 12px 20px; }
	.vb-logo img { height: 64px; }
	.vb-menu-toggle { display: inline-block; margin-left: auto; }
	.vb-nav { display: none; flex-basis: 100%; order: 3; }
	.vb-header.is-open .vb-nav { display: block; }
	.vb-nav__list { flex-direction: column; gap: 4px; padding: 8px 0; }
	.vb-nav__list a { display: block; padding: 8px 0; font-size: 17px; }
	.vb-lang { order: 2; }
	.entry-content h1, .vb-intro h1 { font-size: 40px; }
	.entry-content h2 { font-size: 32px; }
	.vb-hero img { height: 360px; }
	.vb-tiles, .vb-cards, .vb-split, .vb-topics, .vb-steps, .vb-good, .vb-photos { grid-template-columns: 1fr; }
	.vb-row, .vb-row--rev { grid-template-columns: 1fr; gap: 20px; }
	.vb-row--rev .vb-row__img { order: 0; }
	.vb-layout { grid-template-columns: 1fr; gap: 40px; }
	.vb-box { position: static; order: -1; } /* the facts and the booking button first on a phone */
	.vb-gallery { grid-template-columns: 1fr; }
	.vb-gallery__main img { height: 300px; }
	.vb-gallery__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
	.vb-gallery__side img { height: 160px; }
	.vb-rooms > div, .vb-rules li, .vb-contact { grid-template-columns: 1fr; }
	.vb-quote { font-size: 24px; }
	.vb-section { padding-top: 36px; padding-bottom: 48px; }
	.vb-band > .vb-wrap, .vb-band .vb-inner { padding-top: 56px; padding-bottom: 56px; }
	.vb-policy table { display: block; overflow-x: auto; }
	/* Front page on a phone: the header as on other pages, the two doors stacked (400 px each), then the sentence. */
	.vb-doors { display: block; height: auto; }
	.vb-doors__seam { display: block; width: auto; height: 4px; background: var(--vb-white); }
	.entry-content a.vb-door { height: 400px; height: clamp(320px, calc((100svh - 106px) / 2), 400px); } /* both doors fit the first screen of a phone */
	.vb-door::after { background: linear-gradient(180deg, rgba(29, 28, 44, 0) 15%, rgba(29, 28, 44, .5) 55%, rgba(29, 28, 44, .86) 100%); }
	.vb-door__text { left: 20px; right: 20px; bottom: 24px; gap: 6px; }
	.vb-door__kicker { display: none; }
	.entry-content .vb-door__h { font-size: 40px; line-height: 1.05; }
	.vb-door__p { max-width: none; font-size: 15px; line-height: 1.45; }
	.vb-door__cta { font-size: 13px; }
	.vb-story { padding-top: 48px; padding-bottom: 48px; }
	.entry-content .vb-story__text { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
