/*
Theme Name: Y&J Slab
Theme URI: https://yjbathrenovators.com/
Author: Dependent Media
Author URI: https://dependentmedia.com/
Description: Y&J Bath Renovators. White pages, their own job photos set as portrait slabs with thin joints like the large-format tile they install, the logo's navy and amber, a glass-door wipe on the home banner.
Version: 1.0.0
Requires at least: 6.8
Requires PHP: 8.1
License: Proprietary (built for Y&J Bath Renovators)
Text Domain: yjb-slab
*/

@font-face { font-family: Newsreader; font-style: normal; font-weight: 400 600; font-display: swap; src: url(assets/fonts/newsreader-display.woff2) format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(assets/fonts/hanken-grotesk.woff2) format("woff2"); }

:root {
	--navy: #1C3F60;
	--deep: #12293F;
	--amber: #F5A623;
	--amber-hi: #FFBB45;
	--text: #2C3B49;
	--muted: #52626F;
	--pale: #F3F6FA;
	--joint: #D8E0E8;
	--white: #FFFFFF;
	--err: #A82A1E;
	--display: Newsreader, Georgia, "Times New Roman", serif;
	--body: "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
	--gut: clamp(16px, 4vw, 40px);
	--wide: 1240px;
	--joint-w: 4px;
	--head-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body { margin: 0; background: var(--white); color: var(--text); font: 400 1.0625rem/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: .16em; }
a:hover { color: #0F2C47; }
h1, h2 { font-family: var(--display); font-weight: 500; color: var(--navy); line-height: 1.1; letter-spacing: -.012em; margin: 0 0 .55em; }
h1 { font-size: clamp(2.35rem, 1.45rem + 3.1vw, 4.05rem); }
h2 { font-size: clamp(1.85rem, 1.45rem + 1.6vw, 2.8rem); }
h3 { font: 600 1.25rem/1.3 var(--body); color: var(--navy); margin: 0 0 .5em; }
p, ul, ol { margin: 0 0 1em; }
.wp-site-blocks > * { margin-block: 0; }
.yjb-main > * , .yjb-main .wp-block-post-content > * { margin-block: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.yjb-ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.yjb-ico--fill { fill: var(--amber); stroke: var(--amber); }

/* Labels: the logo's tracked capitals */
.yjb-label { font: 700 .8rem/1.3 var(--body); letter-spacing: .15em; text-transform: uppercase; color: var(--navy); margin: 0 0 1em; display: flex; align-items: center; gap: .7em; }
.yjb-label::before { content: ""; width: 22px; height: 3px; background: var(--amber); flex: none; }
.yjb-lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.25rem); line-height: 1.55; color: var(--text); }

/* Buttons: a framed rectangle with a thin inner line, like the lit mirrors they install */
.yjb-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.yjb-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 54px; padding: 13px 22px; border-radius: 2px; font: 700 1rem/1.2 var(--body); text-decoration: none; text-align: center; transition: background-color .18s, color .18s; }
.yjb-btn::after { content: ""; position: absolute; inset: 4px; border: 1px solid currentColor; opacity: .34; border-radius: 1px; pointer-events: none; transition: opacity .18s, inset .18s; }
.yjb-btn:hover::after { opacity: .85; inset: 3px; }
.yjb-btn--amber { background: var(--amber); color: #14283B; }
.yjb-btn--amber:hover { background: var(--amber-hi); color: #14283B; }
.yjb-btn--navy { background: var(--navy); color: var(--white); }
.yjb-btn--navy:hover { background: #122F4B; color: var(--white); }
.yjb-btn--ghost { background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.yjb-btn--ghost::after { opacity: 0; }
.yjb-btn--ghost:hover { background: var(--pale); color: var(--navy); }
.yjb-btn--ghost:hover::after { opacity: .45; }

/* Tags on photos */
.yjb-tag { position: absolute; left: 0; top: 0; background: var(--white); color: var(--navy); font: 700 .78rem/1 var(--body); letter-spacing: .13em; text-transform: uppercase; padding: 8px 12px; }
.yjb-tag--amber { background: var(--amber); color: #14283B; }

/* Header */
.yjb-skip { position: absolute; left: 12px; top: -80px; z-index: 300; background: var(--navy); color: var(--white); padding: 12px 18px; }
.yjb-skip:focus { top: 8px; color: var(--white); }
.yjb-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--joint); }
.yjb-header.is-scrolled { box-shadow: 0 6px 18px rgba(18, 41, 63, .08); }
.yjb-bar__in { max-width: 1440px; margin: 0 auto; padding: 0 var(--gut); min-height: var(--head-h); display: flex; align-items: center; gap: 22px; }
.yjb-brand { flex: none; display: block; }
.yjb-brand img { width: auto; height: 56px; }
.yjb-nav { display: none; flex: 1; justify-content: center; }
.yjb-menu { list-style: none; margin: 0; padding: 0; }
.yjb-menu--bar { display: flex; gap: 6px; align-items: center; }
.yjb-menu--bar > li { position: relative; display: flex; align-items: center; }
.yjb-menu--bar .yjb-menu__link { display: block; padding: 10px 6px 10px 12px; font-weight: 600; color: var(--navy); text-decoration: none; }
.yjb-menu--bar > li:not(.has-sub) .yjb-menu__link { padding-right: 12px; }
.yjb-menu--bar .yjb-menu__link:hover, .yjb-menu--bar .is-in > .yjb-menu__link { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: .34em; }
.yjb-menu__toggle { width: 28px; height: 28px; padding: 0; background: none; border: 0; color: var(--navy); display: grid; place-items: center; cursor: pointer; border-radius: 2px; }
.yjb-menu__toggle .yjb-ico { width: 18px; height: 18px; transition: transform .15s; }
.yjb-menu__toggle[aria-expanded="true"] .yjb-ico { transform: rotate(180deg); }
.yjb-menu--bar .yjb-sub { display: none; position: absolute; top: 100%; left: 0; min-width: 250px; list-style: none; margin: 0; padding: 8px 0; background: var(--white); border: 1px solid var(--joint); box-shadow: 0 14px 34px rgba(18, 41, 63, .14); }
.yjb-menu--bar .has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; display: none; }
.yjb-menu--bar .has-sub:hover::after { display: block; }
.yjb-menu--bar .has-sub:hover > .yjb-sub, .yjb-menu--bar .has-sub.is-open > .yjb-sub { display: block; }
.yjb-sub a { display: block; padding: 8px 12px; color: var(--navy); text-decoration: none; font-weight: 500; }
.yjb-sub a:hover, .yjb-sub a[aria-current] { background: var(--pale); text-decoration: underline; }
.yjb-bar__cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.yjb-bar__tel { display: none; align-items: center; gap: .45em; font-weight: 700; font-size: 1.0625rem; color: var(--navy); text-decoration: none; white-space: nowrap; }
.yjb-bar__tel:hover { text-decoration: underline; }
.yjb-bar__quote { display: none; min-height: 46px; padding: 10px 20px; white-space: nowrap; }
.yjb-bar__menu { display: inline-flex; align-items: center; gap: .4em; min-height: 46px; padding: 8px 12px; background: none; border: 1.5px solid var(--navy); border-radius: 2px; color: var(--navy); font: 700 .95rem/1 var(--body); cursor: pointer; }
.yjb-bar__menu .yjb-ico--close { display: none; }
.yjb-bar__menu[aria-expanded="true"] .yjb-ico--close { display: block; }
.yjb-bar__menu[aria-expanded="true"] .yjb-ico--menu { display: none; }
.yjb-panel { border-top: 1px solid var(--joint); padding: 10px var(--gut) 18px; max-height: calc(100vh - var(--head-h)); overflow-y: auto; background: var(--white); }
.yjb-menu--panel > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--joint); }
.yjb-menu--panel .yjb-menu__link { flex: 1; padding: 14px 0; font-weight: 600; font-size: 1.125rem; color: var(--navy); text-decoration: none; }
.yjb-menu--panel .yjb-menu__toggle { width: 44px; height: 44px; }
.yjb-menu--panel .yjb-sub { display: none; flex-basis: 100%; list-style: none; margin: 0; padding: 0 0 10px; }
.yjb-menu--panel .is-open > .yjb-sub { display: block; }
.yjb-menu--panel .yjb-sub a { padding: 10px 12px; }
.yjb-panel__contact { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 0; }
.yjb-panel__contact a { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; overflow-wrap: anywhere; }
@media (min-width: 768px) {
	.yjb-bar__tel, .yjb-bar__quote { display: inline-flex; }
}
@media (min-width: 1180px) {
	.yjb-nav { display: flex; }
	.yjb-bar__menu, .yjb-panel { display: none !important; }
}

/* Sections */
.yjb-sec { padding: clamp(52px, 4vw + 30px, 96px) var(--gut); }
.yjb-sec > * { max-width: var(--wide); margin-left: auto; margin-right: auto; }
.yjb-sec--pale { background: var(--pale); }
.yjb-sec--tight { padding-top: clamp(28px, 3vw, 44px); }
.yjb-rise { opacity: 0; transition: opacity .7s ease; }
.yjb-rise.is-in { opacity: 1; }
.yjb-sec > .yjb-narrow { max-width: 760px; margin-left: max(0px, calc((100% - var(--wide)) / 2)); }
.yjb-more { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; }
.yjb-center-btn { margin-top: 28px; }
.yjb-img--stock-walkin { object-position: 28% 50%; }
.yjb-img--stock-kitchen-island { object-position: 40% 50%; }
.yjb-sec-gap { height: clamp(24px, 3vw, 40px); }

/* Home banner */
.yjb-hero { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--white); }
.yjb-hero__text { padding: 26px var(--gut) 30px; order: 2; }
.yjb-hero h1 { margin-bottom: .4em; }
.yjb-hero .yjb-btns { margin-top: 20px; }
.yjb-hero__facts { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; color: var(--navy); }
.yjb-rating { display: inline-flex; align-items: center; gap: .4em; color: var(--navy); }
.yjb-stage { position: relative; order: 1; height: clamp(250px, 66vw, 460px); overflow: hidden; background: var(--pale); isolation: isolate; }
.yjb-scene { position: absolute; inset: 0; overflow: hidden; visibility: hidden; display: none; z-index: 1; }
.yjb-scene.is-on { display: block; visibility: visible; }
.yjb-stage.is-ready .yjb-scene { display: block; }
.yjb-scene.is-top { z-index: 2; }
.yjb-scene__in { position: absolute; inset: 0; overflow: hidden; }
.yjb-scene.is-enter { transform: translate3d(100%, 0, 0); }
.yjb-scene.is-enter .yjb-scene__in { transform: translate3d(-100%, 0, 0); }
.yjb-scene.is-moving, .yjb-scene.is-moving .yjb-scene__in { transition: transform 1.3s cubic-bezier(.62, .02, .2, 1); }
/* The glass panel: rides the leading edge of the wipe, like a sliding shower door */
.yjb-scene::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 26px; z-index: 3; opacity: 0; background: linear-gradient(90deg, #AEBBC8 0 2px, rgba(255, 255, 255, .82) 2px 7px, rgba(255, 255, 255, .28) 7px 100%); }
.yjb-scene.is-moving::before { opacity: 1; }
.yjb-scene__main { position: absolute; left: 0; top: 0; width: 100%; height: 122%; object-fit: cover; object-position: 50% 30%; max-width: none; }
.yjb-scene.is-on .yjb-scene__main { animation: yjb-pan 11s linear both; }
.yjb-stage.is-paused .yjb-scene__main { animation-play-state: paused; }
.yjb-stage.is-away .yjb-scene__main { animation: none; }
@keyframes yjb-pan { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -18%, 0); } }
.yjb-scene > .yjb-scene__in > .yjb-tag { left: 12px; top: 12px; }
.yjb-scene__inset { position: absolute; right: 12px; bottom: 12px; width: clamp(84px, 24vw, 150px); aspect-ratio: 3 / 4; margin: 0; border: 4px solid var(--white); overflow: hidden; background: var(--pale); box-shadow: 0 8px 22px rgba(18, 41, 63, .28); }
.yjb-scene__inset img { width: 100%; height: 100%; object-fit: cover; }
.yjb-scene__inset .yjb-tag { padding: 6px 8px; font-size: .68rem; }
.yjb-stage__ctl { position: absolute; left: 12px; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 2px; background: var(--white); box-shadow: 0 4px 14px rgba(18, 41, 63, .2); }
.yjb-pause { display: inline-flex; align-items: center; gap: .35em; min-height: 40px; padding: 4px 10px 4px 8px; background: none; border: 0; color: var(--navy); font: 600 .8125rem/1.1 var(--body); cursor: pointer; text-align: left; }
.yjb-pause .yjb-ico { width: 18px; height: 18px; }
.yjb-pause .yjb-ico--play { display: none; }
.yjb-pause.is-paused .yjb-ico--play { display: block; }
.yjb-pause.is-paused .yjb-ico--pause { display: none; }
.yjb-pause:hover { background: var(--pale); }
.yjb-dots { display: none; align-items: center; gap: 0; padding-right: 4px; }
.yjb-dot { width: 30px; height: 40px; padding: 0; background: none; border: 0; cursor: pointer; display: grid; place-items: center; }
.yjb-dot::before { content: ""; width: 20px; height: 8px; border: 1.5px solid var(--navy); background: var(--white); transition: background-color .2s; }
.yjb-dot[aria-current="true"]::before { background: var(--navy); }
@media (min-width: 420px) { .yjb-dots { display: flex; } }
@media (min-width: 1000px) {
	.yjb-hero { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); min-height: min(calc(100vh - var(--head-h)), 780px); }
	.yjb-hero__text { order: 1; align-self: center; padding: 44px clamp(24px, 2.6vw, 56px) 48px max(var(--gut), calc((100vw - 1440px) / 2 + 40px)); }
	.yjb-stage { order: 2; height: auto; min-height: 560px; }
	.yjb-scene__inset { right: 28px; bottom: 28px; width: clamp(150px, 13vw, 200px); border-width: 6px; }
	.yjb-scene__inset .yjb-tag { padding: 7px 10px; font-size: .74rem; }
	.yjb-scene > .yjb-scene__in > .yjb-tag { left: 28px; top: 28px; }
	.yjb-stage__ctl { left: 28px; bottom: 28px; }
	.yjb-pause { padding: 6px 14px 6px 10px; font-size: .875rem; min-height: 44px; }
}

/* Financing strip */
.yjb-finance { display: grid; gap: 18px 40px; align-items: center; }
.yjb-finance__h { font: 600 1.25rem/1.3 var(--body); color: var(--navy); letter-spacing: 0; margin: 0; }
.yjb-finance__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
.yjb-finance__list a { display: block; padding: 6px; }
.yjb-finance__list img { height: 44px; width: auto; }
.yjb-sec--strip { padding-top: 26px; padding-bottom: 26px; border-top: 1px solid var(--joint); border-bottom: 1px solid var(--joint); }
@media (min-width: 900px) { .yjb-finance { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); } .yjb-finance__list { justify-content: flex-end; } }

/* Two columns */
.yjb-intro { display: grid; gap: 18px 56px; align-items: end; margin-bottom: 36px; }
.yjb-intro h2 { margin-bottom: 0; }
.yjb-intro p:last-child { margin-bottom: 0; }
.yjb-oneday { font-family: var(--display); font-size: clamp(1.3rem, 1.1rem + .7vw, 1.65rem); line-height: 1.25; color: var(--navy); border-left: 3px solid var(--amber); padding-left: 14px; margin: 14px 0 0; }
@media (min-width: 900px) { .yjb-intro { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.yjb-split { display: grid; gap: 32px 60px; align-items: center; }
.yjb-split > *:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .yjb-split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Service slabs: one wall, thin joints */
.yjb-slabs { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--joint-w); }
.yjb-slab { position: relative; background: var(--white); }
.yjb-slab__a { display: block; position: relative; color: var(--navy); text-decoration: none; }
.yjb-slab__img { display: block; aspect-ratio: 16 / 11; overflow: hidden; background: var(--pale); }
.yjb-slab__img img { width: 100%; height: 100%; object-fit: cover; }
.yjb-slab__name { position: absolute; left: 0; bottom: 0; max-width: calc(100% - 26px); display: inline-flex; align-items: center; gap: .55em; background: var(--white); padding: 12px 16px 10px 0; font: 500 clamp(1.25rem, 1.1rem + .5vw, 1.5rem)/1.15 var(--display); color: var(--navy); }
.yjb-slab__name .yjb-ico { transition: transform .18s; color: #A86B00; }
.yjb-slab__a:hover .yjb-slab__name { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: .18em; }
.yjb-slab__a:hover .yjb-ico { transform: translateX(3px); }
.yjb-slab__a:focus-visible { outline-offset: -3px; }
.yjb-slab__text { margin: 12px 18px 22px 0; }
.yjb-slabs--text { gap: 34px var(--joint-w); }
.yjb-slab--all { background: var(--pale); }
.yjb-slab__all { display: flex; align-items: center; justify-content: center; gap: .55em; min-height: 120px; height: 100%; font: 500 clamp(1.4rem, 1.2rem + .6vw, 1.75rem)/1.15 var(--display); color: var(--navy); text-decoration: none; }
.yjb-slab__all:hover { background: #E7EDF3; }
.yjb-slab__all .yjb-ico { color: #A86B00; }
@media (min-width: 640px) { .yjb-slabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .yjb-slab__img { aspect-ratio: 4 / 4.2; } }
@media (min-width: 1100px) { .yjb-slabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .yjb-slab__img { aspect-ratio: 4 / 4.6; } }

/* Before/after */
.yjb-ba { position: relative; aspect-ratio: 3 / 4; margin: 0 auto; overflow: hidden; background: var(--pale); --pos: 50%; max-width: 490px; width: 100%; touch-action: pan-y; }
.yjb-ba img { width: 100%; height: 100%; object-fit: cover; }
.yjb-ba__after { position: absolute; inset: 0; }
.yjb-ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.yjb-ba__t1 { left: 12px; top: 12px; }
.yjb-ba__t2 { left: auto; right: 12px; top: 12px; }
.yjb-ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--white); box-shadow: 0 0 0 1px rgba(18, 41, 63, .3); pointer-events: none; }
.yjb-ba__grip { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; width: 52px; height: 44px; background: var(--white); color: var(--navy); box-shadow: 0 4px 14px rgba(18, 41, 63, .35); }
.yjb-ba__grip .yjb-ico { width: 18px; height: 18px; margin: 0 -2px; }
.yjb-ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.yjb-ba:has(.yjb-ba__range:focus-visible) .yjb-ba__grip { outline: 3px solid var(--navy); outline-offset: 2px; }
.yjb-ba-wrap { display: grid; gap: 28px 60px; align-items: center; }
@media (min-width: 900px) { .yjb-ba-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 490px); } }
.yjb-ba-wrap > *:first-child > *:last-child { margin-bottom: 0; }

/* About block on home + About page */
.yjb-duo { position: relative; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: var(--joint-w); align-items: stretch; }
.yjb-duo__a, .yjb-duo__b { overflow: hidden; background: var(--pale); }
.yjb-duo__a { aspect-ratio: 3 / 4; }
.yjb-duo img { width: 100%; height: 100%; object-fit: cover; }
.yjb-years { position: absolute; left: 0; bottom: 0; background: var(--navy); color: var(--white); padding: 14px 18px 12px; line-height: 1.2; max-width: 62%; }
.yjb-years strong { display: block; font: 500 clamp(2.5rem, 2rem + 1.4vw, 3.3rem)/1 var(--display); }
.yjb-years span { font-size: .9375rem; }
.yjb-ticks { list-style: none; padding: 0; }
.yjb-ticks li { position: relative; padding-left: 30px; margin-bottom: .45em; }
.yjb-ticks li::before { content: ""; position: absolute; left: 3px; top: .36em; width: 13px; height: 7px; border-left: 2.5px solid #A86B00; border-bottom: 2.5px solid #A86B00; transform: rotate(-45deg); }

/* Reviews */
.yjb-reviews { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: var(--joint-w); }
.yjb-reviews > li { display: flex; }
.yjb-review { margin: 0; background: var(--white); padding: clamp(24px, 3vw, 38px); flex: 1; }
.yjb-sec:not(.yjb-sec--pale) .yjb-review { background: var(--pale); }
.yjb-review p { font: 400 clamp(1.25rem, 1.1rem + .5vw, 1.5rem)/1.35 var(--display); color: var(--navy); }
.yjb-review footer { font-weight: 700; color: var(--text); }
.yjb-reviews__rating { margin: 22px auto 0; font-weight: 600; }
.yjb-badges { list-style: none; margin: 12px auto 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; }
.yjb-badges img { height: 52px; width: auto; }
@media (min-width: 760px) { .yjb-reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Gallery */
.yjb-wall { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--joint-w); }
.yjb-wall a { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--pale); }
.yjb-wall img { width: 100%; height: 100%; object-fit: cover; }
.yjb-wall a:focus-visible { outline-offset: -3px; outline-color: var(--amber); }
.yjb-wall .yjb-tag { left: 0; top: 0; }
@media (min-width: 700px) { .yjb-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .yjb-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } .yjb-wall--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.yjb-wall--strip a { aspect-ratio: 3 / 4; }
.yjb-lb { border: 0; padding: 0; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; background: rgba(10, 20, 31, .94); color: var(--white); overflow: hidden; }
.yjb-lb[open] { display: flex; flex-direction: column; }
.yjb-lb::backdrop { background: rgba(10, 20, 31, .94); }
.yjb-lb > img { flex: 1; min-height: 0; width: 100%; height: auto; object-fit: contain; padding: 14px 14px 0; }
.yjb-lb__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding: 12px var(--gut) 16px; max-width: 1240px; width: 100%; margin: 0 auto; }
.yjb-lb__cap { margin: 0; flex: 1 1 280px; font-size: .9375rem; line-height: 1.4; }
.yjb-lb__btns { display: flex; gap: 8px; }
.yjb-lb__btn { width: 48px; height: 48px; display: grid; place-items: center; background: var(--white); color: var(--navy); border: 0; border-radius: 2px; cursor: pointer; }
.yjb-lb__btn:focus-visible { outline-color: var(--amber); }

/* Area map */
.yjb-area { display: grid; gap: 30px 60px; align-items: center; }
.yjb-area__list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; font-weight: 600; color: var(--navy); }
.yjb-area__map { margin: 0; }
.yjb-area__map figcaption { font-size: .8125rem; color: var(--muted); margin-top: 6px; }
.yjb-map { display: block; width: 100%; max-width: 480px; height: auto; margin: 0 auto; }
.yjb-map__ctx path { fill: #E7EDF3; stroke: var(--white); stroke-width: 1.2; }
.yjb-map__on path { fill: var(--navy); stroke: var(--white); stroke-width: 1.4; }
.yjb-map__txt text { font: 700 19px/1 var(--body); fill: var(--navy); }
.yjb-map__lead { fill: none; stroke: #8DA0B2; stroke-width: 1.4; }
@media (min-width: 900px) { .yjb-area { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* Posts */
.yjb-posts { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 34px 26px; }
.yjb-posts__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--pale); }
.yjb-posts__img img { width: 100%; height: 100%; object-fit: cover; }
.yjb-posts__date { font-size: .9375rem; color: var(--muted); margin: 14px 0 4px; }
.yjb-posts__h { font: 500 clamp(1.35rem, 1.15rem + .6vw, 1.65rem)/1.2 var(--display); margin: 0 0 .4em; }
.yjb-posts__h a { color: var(--navy); text-decoration-color: transparent; }
.yjb-posts__h a:hover { text-decoration-color: var(--amber); }
.yjb-posts--list .yjb-posts__item { display: grid; gap: 0 28px; }
@media (min-width: 760px) {
	.yjb-posts--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.yjb-posts--list .yjb-posts__item { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
	.yjb-posts--list .yjb-posts__date { margin-top: 0; }
}

/* Closing band */
.yjb-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; }
.yjb-cta h2 { margin-bottom: 0; }

/* Quote band + form */
.yjb-quote { display: grid; gap: 30px 64px; }
.yjb-quote__offer { font-family: var(--display); font-size: clamp(1.4rem, 1.2rem + .7vw, 1.75rem); color: var(--navy); border-left: 3px solid var(--amber); padding-left: 14px; margin: 16px 0 18px; line-height: 1.2; }
.yjb-quote__tel { margin: 0 0 14px; }
.yjb-quote__tel a { display: inline-flex; align-items: center; gap: .45em; font: 700 clamp(1.5rem, 1.3rem + .7vw, 1.875rem)/1.2 var(--body); color: var(--navy); text-decoration: none; min-height: 44px; }
.yjb-quote__tel a:hover { text-decoration: underline; }
.yjb-hours { list-style: none; padding: 0; margin: 0 0 12px; max-width: 340px; }
.yjb-hours li { display: flex; justify-content: space-between; gap: 18px; padding: 5px 0; border-bottom: 1px solid var(--joint); }
.yjb-quote__lic { font-size: .9375rem; color: var(--muted); }
.yjb-sec--pale .yjb-quote__lic { color: #4A5966; }
@media (min-width: 900px) { .yjb-quote { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.yjb-quote__form { background: var(--white); border: 1px solid var(--joint); padding: clamp(18px, 2.4vw, 32px); }
.yjb-form .nf-form-fields-required { font-size: .9375rem; color: var(--muted); margin: 0 0 12px; }
.yjb-form nf-fields-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 18px; }
.yjb-form nf-field { display: block; min-width: 0; }
@media (min-width: 640px) { .yjb-form nf-fields-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } .yjb-form nf-field { grid-column: 1 / -1; } .yjb-form nf-field:has(.yjb-half) { grid-column: auto; } }
.yjb-form .nf-field-container { margin: 0 0 16px; }
.yjb-form .nf-field-label { margin: 0 0 5px; }
.yjb-form .nf-field-label label, .yjb-form .nf-field-label .nf-label-span { font: 600 1rem/1.3 var(--body); color: var(--navy); }
.yjb-form .ninja-forms-req-symbol { color: var(--err); }
.yjb-form input.ninja-forms-field:not([type="submit"]):not([type="button"]), .yjb-form textarea, .yjb-form select { width: 100%; min-height: 50px; padding: 11px 13px; border: 1.5px solid #76879A; border-radius: 2px; background: var(--white); color: var(--text); font: 400 1.0625rem/1.4 var(--body); }
.yjb-form textarea { min-height: 130px; height: 130px; resize: vertical; }
.yjb-form input:focus, .yjb-form textarea:focus, .yjb-form select:focus { outline: 3px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.yjb-form .nf-error .ninja-forms-field { border-color: var(--err); }
.yjb-form .nf-error-msg, .yjb-form .nf-error-required-error { color: var(--err); font-size: .9375rem; margin-top: 5px; }
.yjb-form .nf-form-errors .nf-error-msg { margin: 0 0 12px; font-weight: 700; }
.yjb-form .nf-field-element input[type="submit"], .yjb-form .nf-field-element input[type="button"] { width: 100%; min-height: 56px; padding: 13px 26px; background: var(--amber); color: #14283B; border: 0; border-radius: 2px; box-shadow: inset 0 0 0 4px var(--amber), inset 0 0 0 5px rgba(20, 40, 59, .4); font: 700 1.0625rem/1.2 var(--body); cursor: pointer; transition: background-color .18s, box-shadow .18s; }
.yjb-form .nf-field-element input[type="submit"]:hover, .yjb-form .nf-field-element input[type="button"]:hover { background: var(--amber-hi); box-shadow: inset 0 0 0 3px var(--amber-hi), inset 0 0 0 4px rgba(20, 40, 59, .8); }
.yjb-form .nf-field-element input[type="submit"]:focus-visible, .yjb-form .nf-field-element input[type="button"]:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.yjb-form .nf-after-form-content, .yjb-form .nf-before-form-content { margin: 0; }
.yjb-form__note { margin: 10px 0 0; font-size: .9375rem; color: var(--muted); }
.nf-form-hp, .nf-form-hp * { position: absolute !important; left: -9999px !important; }

/* The happy thank-you */
.yjb-thanks { text-align: left; }
.yjb-thanks:focus { outline: none; }
.yjb-thanks__check { width: 72px; height: 72px; display: grid; place-items: center; background: var(--amber); color: #14283B; margin-bottom: 16px; animation: yjb-pop .5s cubic-bezier(.3, 1.5, .5, 1) both; }
.yjb-thanks__check .yjb-ico { width: 40px; height: 40px; stroke-width: 2.6; }
@keyframes yjb-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.yjb-thanks h2 { margin-bottom: .4em; }
.yjb-confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 400; pointer-events: none; }

/* Inner page head */
.yjb-head { display: grid; background: var(--pale); }
.yjb-head__text { padding: clamp(24px, 3vw, 44px) var(--gut) clamp(30px, 4vw, 56px); align-self: center; width: 100%; }
.yjb-head:not(.yjb-head--photo) .yjb-head__text { max-width: calc(var(--wide) + 2 * var(--gut)); margin: 0 auto; }
.yjb-head h1 { margin-bottom: .3em; }
.yjb-head .yjb-lead { margin: 0; max-width: 640px; }
.yjb-head__photo { overflow: hidden; height: clamp(220px, 56vw, 340px); order: -1; background: var(--joint); }
.yjb-head__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
@media (min-width: 1000px) {
	.yjb-head--photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 400px; }
	.yjb-head--photo .yjb-head__text { padding-left: max(var(--gut), calc((100vw - 1240px) / 2)); padding-right: 56px; }
	.yjb-head__photo { order: 0; height: auto; position: relative; }
	.yjb-head__photo img { position: absolute; inset: 0; }
}
.yjb-crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; font-size: .9375rem; color: var(--muted); }
.yjb-crumbs li + li::before { content: "/"; margin: 0 .5em; color: #6C7B89; }
.yjb-crumbs a { color: var(--navy); }
.yjb-crumbs span[aria-current] { color: #4A5966; }

/* Service page text */
.yjb-svc { display: grid; gap: 30px 60px; }
.yjb-svc__text > *:last-child { margin-bottom: 0; }
.yjb-svc__text h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); margin-top: 1em; }
.yjb-svc__text h2:first-child { margin-top: 0; }
.yjb-svc__photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--joint-w); align-content: start; }
.yjb-svc__photos figure { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: var(--pale); }
.yjb-svc__photos figure:only-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.yjb-svc__photos img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .yjb-svc { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }

/* FAQ */
.yjb-faq { border-top: 1px solid var(--joint); }
.yjb-faq details { border-bottom: 1px solid var(--joint); }
.yjb-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; font: 500 clamp(1.25rem, 1.1rem + .5vw, 1.5rem)/1.25 var(--display); color: var(--navy); }
.yjb-faq summary::-webkit-details-marker { display: none; }
.yjb-faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg) translate(-3px, -3px); transition: transform .15s; }
.yjb-faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.yjb-faq details p { margin: 0 0 20px; max-width: 760px; }
.yjb-faq h2 { margin-bottom: .6em; }

/* Contact cards */
.yjb-cards { display: grid; gap: var(--joint-w); margin-bottom: 44px; }
.yjb-card { background: var(--pale); padding: clamp(22px, 2.6vw, 34px); }
.yjb-card h2 { display: flex; align-items: center; gap: .5em; font-size: clamp(1.5rem, 1.3rem + .8vw, 1.9rem); margin-bottom: .5em; }
.yjb-card__big { font: 700 clamp(1.3rem, 1.1rem + .8vw, 1.75rem)/1.25 var(--body); margin: 0; overflow-wrap: anywhere; }
.yjb-card__mail { font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem); }
@media (min-width: 760px) { .yjb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Articles + legal */
.yjb-article > * { max-width: 760px; }
.yjb-article h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem); }
.yjb-article h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); margin-top: 1.5em; }
.yjb-article h3 { margin-top: 1.4em; }
.yjb-article__img { margin: 0 0 30px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--pale); }
.yjb-article__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.yjb-article .wp-block-post-content > * { max-width: none; margin-left: 0; margin-right: 0; }
.yjb-article ul { padding-left: 1.2em; }
.yjb-tip { background: var(--pale); border-left: 3px solid var(--amber); padding: 14px 18px; }
.yjb-legal > * { max-width: 760px; }
.yjb-legal h2 { font-size: clamp(1.4rem, 1.25rem + .6vw, 1.75rem); margin-top: 1.4em; }
.yjb-more-wrap { margin: 22px auto 0; }

/* About page */
.yjb-trio { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: var(--joint-w); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.yjb-trio li { background: var(--pale); padding: 16px 8px; text-align: center; font: 500 clamp(1.1rem, 1rem + .5vw, 1.35rem)/1.15 var(--display); color: var(--navy); overflow-wrap: anywhere; }
.yjb-statement { font: 400 clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem)/1.2 var(--display); color: var(--navy); margin: 0; }

/* Footer: the one dark band */
.yjb-foot { background: var(--deep); color: #E6ECF2; font-size: 1rem; }
.yjb-foot a { color: var(--white); text-decoration: none; }
.yjb-foot a:hover { text-decoration: underline; }
.yjb-foot :focus-visible { outline-color: var(--amber); }
.yjb-foot__in { max-width: calc(var(--wide) + 2 * var(--gut)); margin: 0 auto; padding: 52px var(--gut) 34px; display: grid; gap: 30px 44px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.yjb-foot__co { grid-column: 1 / -1; }
.yjb-foot__col:last-child { grid-column: 1 / -1; }
.yjb-foot__co img { width: 196px; height: auto; margin-bottom: 14px; }
.yjb-foot__co p { margin: 0 0 10px; }
.yjb-foot__social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.yjb-foot__social a { display: inline-block; padding: 6px 0; text-decoration: underline; text-underline-offset: .2em; text-decoration-color: rgba(255, 255, 255, .5); }
.yjb-foot__h { font: 700 .8rem/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin: 0 0 12px; }
.yjb-foot__col ul { list-style: none; margin: 0; padding: 0; }
.yjb-foot__col li a { display: inline-block; padding: 4px 0; }
.yjb-foot__big { font: 700 1.3rem/1.2 var(--body); margin: 0 0 8px; }
.yjb-foot__col p { margin: 0 0 8px; overflow-wrap: anywhere; }
.yjb-foot__base { max-width: calc(var(--wide) + 2 * var(--gut)); margin: 0 auto; padding: 16px var(--gut) 22px; border-top: 1px solid rgba(255, 255, 255, .16); display: flex; flex-wrap: wrap; gap: 6px 26px; justify-content: space-between; font-size: .9375rem; color: #D6DFE7; }
.yjb-foot__base p { margin: 0; }
.yjb-foot__legal a { display: inline-block; padding: 2px 0; }
.yjb-foot__legal { display: flex; gap: 22px; }
.yjb-foot__legal a { text-decoration: underline; text-underline-offset: .18em; text-decoration-color: rgba(255, 255, 255, .5); }
.yjb-foot__base a.yjb-credit__a, .yjb-foot__base a.yjb-credit__a:hover, .yjb-foot__base a.yjb-credit__a:focus { text-decoration: underline; text-underline-offset: .18em; }
@media (min-width: 900px) {
	.yjb-foot__in { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.2fr); }
	.yjb-foot__co, .yjb-foot__col:last-child { grid-column: auto; }
}

/* Phones: the bottom bar, exactly two buttons */
.yjb-callbar { display: none; }
@media (max-width: 767.98px) {
	:root { --head-h: 68px; }
	html { scroll-padding-bottom: 84px; }
	body { padding-bottom: 62px; }
	.yjb-brand img { height: 48px; }
	.yjb-callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr; background: var(--white); box-shadow: 0 -4px 16px rgba(18, 41, 63, .16); padding-bottom: env(safe-area-inset-bottom); }
	.yjb-callbar a { display: flex; align-items: center; justify-content: center; gap: .45em; min-height: 62px; font: 700 1.0625rem/1 var(--body); text-decoration: none; }
	.yjb-foot .yjb-callbar__call, .yjb-foot .yjb-callbar__call:hover { background: var(--navy); color: var(--white); }
	.yjb-foot .yjb-callbar__quote, .yjb-foot .yjb-callbar__quote:hover { background: var(--amber); color: #14283B; }
	.yjb-label { font-size: .75rem; letter-spacing: .1em; gap: .55em; }
	.yjb-label::before { width: 16px; }
	.yjb-btns .yjb-btn { flex: 1 1 100%; }
}

/* Block defaults that would fight the layout */
.wp-block-group { box-sizing: border-box; }
.wp-block-image { margin: 0; }
.wp-block-heading { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.yjb-rise { opacity: 1; }
}
