/* BHLH Builder — front-end styles, modelled on the live bighouselittlehouse.com.au theme.
   Colours/fonts are CSS variables set from plugin settings (see bhlh_enqueue). */

body.bhlh-site { margin: 0; background: var(--bhlh-bg); color: var(--bhlh-text); font-family: var(--bhlh-font-body); font-weight: 300; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.bhlh-site *, .bhlh-site *::before, .bhlh-site *::after { box-sizing: border-box; }
.bhlh-site a { color: inherit; text-decoration: none; }
.bhlh-site h1, .bhlh-site h2, .bhlh-site h3, .bhlh-site h4 { color: var(--bhlh-heading); font-family: var(--bhlh-font-heading); font-weight: 500; line-height: 1.2; margin: 0 0 .5rem; }
.bhlh-site ::selection { background: var(--bhlh-brand); color: #fff; }
.bhlh-wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.bhlh-wrap--wide { max-width: none; padding: 0 clamp(8px, 1.5vw, 24px); }
.bhlh-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.bhlh-header { position: sticky; top: 0; z-index: 1000; background: var(--bhlh-header-bg); color: var(--bhlh-header-text); transition: opacity .5s ease; }
.admin-bar .bhlh-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .bhlh-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .bhlh-header { top: 0; } }
.bhlh-overlay-header .bhlh-header { position: fixed; left: 0; right: 0; background: transparent; }
.bhlh-has-intro:not(.bhlh-intro-done) .bhlh-header { opacity: 0; pointer-events: none; }
.bhlh-header__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; min-height: 112px; padding: 16px clamp(15px, 2vw, 30px) 20px; max-width: none; }
.bhlh-logo { display: inline-flex; align-items: center; align-self: center; }
.bhlh-logo img { display: block; height: 72px; width: auto; max-width: 62vw; }
.bhlh-nav ul { list-style: none; display: flex; align-items: center; margin: 0; padding: 0 0 4px; }
.bhlh-nav li + li::before { content: ""; display: inline-block; width: 1px; height: 14px; background: rgba(255,255,255,.35); vertical-align: middle; }
.bhlh-nav a { display: inline-block; padding: 0 1.5rem; font-family: var(--bhlh-font-heading); font-size: 1rem; font-weight: 300; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.6); transition: color .2s; }
.bhlh-nav li:last-child a { padding-right: 0; }
.bhlh-nav a:hover, .bhlh-nav a:focus-visible { color: #fff; }
.bhlh-nav .is-current a { color: #fff; font-weight: 400; }
.bhlh-nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: inherit; align-self: center; }
.bhlh-nav-toggle span:not(.bhlh-sr) { display: block; width: 26px; height: 1.5px; margin: 6px 0; background: currentColor; transition: transform .25s, opacity .25s; }
@media (max-width: 991px) {
	.bhlh-header__inner { min-height: 92px; align-items: center; }
	.bhlh-logo img { height: 56px; }
	.bhlh-nav-toggle { display: block; }
	.bhlh-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--bhlh-header-bg); max-height: 0; overflow: hidden; transition: max-height .35s ease; }
	.bhlh-nav ul { flex-direction: column; align-items: stretch; padding: 0 15px; }
	.bhlh-nav li + li::before { display: none; }
	.bhlh-nav li { border-top: 1px solid rgba(255,255,255,.08); }
	.bhlh-nav a { display: block; padding: 16px 0; }
	.bhlh-nav-open .bhlh-nav { max-height: 420px; }
	.bhlh-nav-open .bhlh-nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
	.bhlh-nav-open .bhlh-nav-toggle span:nth-child(2) { opacity: 0; }
	.bhlh-nav-open .bhlh-nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
	.bhlh-overlay-header.bhlh-nav-open .bhlh-header { background: var(--bhlh-header-bg); }
}

/* ---------- Footer (off by default — the live site has none) ---------- */
.bhlh-footer { border-top: 1px solid var(--bhlh-line); margin-top: 48px; }
.bhlh-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--bhlh-muted); }

/* ---------- Social ---------- */
.bhlh-social { display: flex; gap: 6px; align-items: center; margin-left: -6px; }
.bhlh-social a { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; color: #fff; transition: color .2s; }
.bhlh-social a:hover, .bhlh-social a:focus-visible { color: var(--bhlh-brand); }
.bhlh-social .dashicons { font-size: 20px; width: 20px; height: 20px; }
.bhlh-social__txt { font-family: var(--bhlh-font-body); font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: lowercase; }

/* ---------- Intro overlay (home) ---------- */
.bhlh-intro { position: fixed; inset: 0; z-index: 8000; background: rgba(21,21,21,.9); cursor: pointer; transition: opacity .5s ease, visibility .5s; }
.bhlh-intro.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.bhlh-intro__inner { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -80%); display: flex; align-items: flex-end; gap: 1rem; transition: opacity .5s ease; }
.bhlh-intro.is-leaving .bhlh-intro__inner { opacity: 0; }
.bhlh-intro__mark { width: auto; height: 6.2rem; flex: none; }
.bhlh-intro__mark path { fill: none; stroke: var(--bhlh-brand); stroke-width: 242.5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: bhlh-draw 2s cubic-bezier(.65,0,.35,1) forwards; }
@keyframes bhlh-draw { to { stroke-dashoffset: 0; } }
.bhlh-intro__text { color: #fff; font-family: var(--bhlh-font-display); text-transform: uppercase; font-size: 2.42rem; line-height: 1; }
.bhlh-intro__title { white-space: nowrap; margin-bottom: .55rem; opacity: 0; animation: bhlh-fade 1.5s ease 1.5s forwards; }
.bhlh-intro__sub { display: flex; justify-content: space-between; font-size: 1.5rem; letter-spacing: 3px; line-height: .75; color: #636363; }
.bhlh-intro__sub span { opacity: 0; animation: bhlh-fade 1.5s ease var(--d, 2s) forwards; }
@keyframes bhlh-fade { to { opacity: 1; } }
@media (max-width: 767px) {
	.bhlh-intro__inner { flex-direction: column; align-items: center; text-align: center; }
	.bhlh-intro__text { font-size: 2rem; }
	.bhlh-intro__sub { font-size: 1rem; gap: .5rem; justify-content: center; }
}

/* ---------- Hero slideshow (home) ---------- */
.bhlh-hero { position: relative; height: var(--bhlh-hero-h, 100vh); min-height: 420px; overflow: hidden; background: #000; color: #fff; }
.bhlh-hero__slides, .bhlh-hero__slide { position: absolute; inset: 0; }
.bhlh-hero__slide { background-size: cover; background-position: top center; opacity: 0; transition: opacity 1.5s ease; }
.bhlh-hero__slide.is-active { opacity: 1; }
.bhlh-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 337px; z-index: 1; opacity: .56; background: linear-gradient(to top, rgba(0,0,0,0), #000); pointer-events: none; }
.bhlh-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,.5), rgba(0,0,0,.2) 14%, rgba(0,0,0,0) 28%); }
.bhlh-hero__arrow { position: absolute; top: 0; bottom: 0; z-index: 2; width: 25vw; background: none; border: 0; color: #fff; cursor: pointer; display: flex; align-items: center; padding: 0 28px; opacity: .85; transition: opacity .2s; }
.bhlh-hero__arrow:hover, .bhlh-hero__arrow:focus-visible { opacity: 1; }
.bhlh-hero__arrow svg { width: 20px; height: 40px; }
.bhlh-hero__arrow--prev { left: 0; justify-content: flex-start; }
.bhlh-hero__arrow--next { right: 0; justify-content: flex-end; }
.bhlh-hero__dots { position: absolute; left: .5rem; bottom: .5rem; z-index: 3; display: flex; align-items: center; }
.bhlh-hero__dots button { width: 18px; height: 20px; padding: 0; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.bhlh-hero__dots button::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #d6d6d6; opacity: .5; transition: all .2s; }
.bhlh-hero__dots button.is-active::before { width: 6px; height: 6px; background: #fff; opacity: 1; }
.bhlh-hero__kicker { position: absolute; right: 1rem; bottom: 1rem; z-index: 3; margin: 0; color: #fff; text-transform: uppercase; letter-spacing: 1px; text-align: right; }
@media (max-width: 767px) { .bhlh-hero__arrow { width: 20vw; padding: 0 12px; } .bhlh-hero__kicker { font-size: 13px; } }

/* ---------- Filter bar + grid ---------- */
.bhlh-listing { padding: 24px 0 48px; }
.bhlh-filters { position: sticky; top: 112px; z-index: 45; display: flex; flex-wrap: wrap; align-items: center; margin: 0 0 1.25rem; padding: 1.5rem clamp(8px, 1.5vw, 24px) .5rem; background: var(--bhlh-header-bg); }
.admin-bar .bhlh-filters { top: 144px; }
@media (max-width: 991px) { .bhlh-filters { top: 92px; } .admin-bar .bhlh-filters { top: 124px; } }
@media (max-width: 600px) { .admin-bar .bhlh-filters { top: 92px; } }
.bhlh-filters button { position: relative; background: none; border: 0; padding: 0 1rem; font: inherit; font-weight: 300; text-transform: uppercase; color: var(--bhlh-text); cursor: pointer; transition: color .2s; }
.bhlh-filters button:first-child { padding-left: 0; }
.bhlh-filters button + button::before { content: ""; position: absolute; left: 0; top: 50%; height: 60%; width: 1px; transform: translateY(-55%); background: #fff; }
.bhlh-filters button:hover, .bhlh-filters button:focus-visible { color: #fff; }
.bhlh-filters button.is-active { color: #fff; }
.bhlh-grid { display: grid; grid-template-columns: repeat(var(--bhlh-cols, 4), minmax(0, 1fr)); gap: 0 16px; padding: 0 clamp(8px, 1.5vw, 24px); }
@media (max-width: 991px) { .bhlh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .bhlh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; } }
@media (max-width: 479px) { .bhlh-grid { grid-template-columns: 1fr; } }
.bhlh-tile { position: relative; display: block; margin-bottom: 1rem; }
.bhlh-tile[hidden] { display: none; }
.bhlh-tile__media { position: relative; display: block; overflow: hidden; aspect-ratio: var(--bhlh-tile-ratio, 16 / 9); background: #1d1d1d; }
.bhlh-tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease-in-out, transform .6s ease; }
.bhlh-tile__media::after { content: ""; position: absolute; inset: 0; opacity: 0; background: linear-gradient(0deg, #151515 0%, rgba(21,21,21,0) 33%, rgba(21,21,21,0) 66%, #151515 100%); transition: opacity .2s ease-in-out; pointer-events: none; }
.bhlh-tile .bhlh-tile__hover { opacity: 0; }
.bhlh-tile:hover .bhlh-tile__hover, .bhlh-tile:focus-visible .bhlh-tile__hover { opacity: 1; }
.bhlh-tile:hover .bhlh-tile__media::after { opacity: .2; }
.bhlh-tile__caption { display: block; padding: .5rem 0 .5rem; color: #d0d0d0; font-size: 14px; font-weight: 300; letter-spacing: 1px; }
.bhlh-tile__caption .bhlh-tile__name { color: #fff; }
.bhlh-tile__caption .bhlh-tile__sub { color: var(--bhlh-muted); }
.bhlh-tile:hover .bhlh-tile__name { color: #fff; }
/* overlay variant */
.bhlh-tile__meta { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 16px; color: #fff; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .35s ease; }
.bhlh-tile:not(.bhlh-tile--caption) { aspect-ratio: var(--bhlh-tile-ratio, 16 / 9); overflow: hidden; }
.bhlh-tile:not(.bhlh-tile--caption) .bhlh-tile__media { position: absolute; inset: 0; aspect-ratio: auto; }
.bhlh-tile:hover .bhlh-tile__meta { opacity: 1; }
.bhlh-tile__meta .bhlh-tile__name { font-size: 16px; letter-spacing: 2px; text-transform: uppercase; }
.bhlh-tile__meta .bhlh-tile__sub { margin-top: 4px; font-size: 12px; letter-spacing: 1px; opacity: .8; }
.bhlh-grid-empty { padding: 0 clamp(8px, 1.5vw, 24px); color: var(--bhlh-muted); }

/* ---------- Single project ---------- */
.bhlh-main { min-height: 60vh; padding-bottom: 48px; }
.bhlh-project__head { padding-top: 3rem; padding-bottom: 0; }
.bhlh-kicker { display: none; }
.bhlh-project__title { margin: 0; color: var(--bhlh-heading); font-size: 1.375rem; font-weight: 500; letter-spacing: 0; text-transform: uppercase; }
.bhlh-project__meta { margin: 0; text-transform: uppercase; }
.bhlh-project .bhlh-gallery { margin-top: 1rem; }
.bhlh-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bhlh-gallery__item { display: block; overflow: hidden; background: #1d1d1d; cursor: zoom-in; }
.bhlh-gallery__item:nth-child(3n+1) { grid-column: 1 / -1; }
.bhlh-gallery__item img { display: block; width: 100%; height: auto; transition: opacity .2s; }
.bhlh-gallery__item:hover img { opacity: .92; }
@media (max-width: 767px) { .bhlh-gallery { grid-template-columns: 1fr; } }
.bhlh-project__body { padding-top: 1.5rem; }
.bhlh-credits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; }
.bhlh-credit h4 { font-size: 1.1875rem; }
.bhlh-credit p { margin: 0 0 1rem; }
@media (max-width: 575px) { .bhlh-credits { grid-template-columns: 1fr; } }
.bhlh-pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; padding-top: 2.5rem; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.bhlh-pager a { color: var(--bhlh-text); transition: color .2s; }
.bhlh-pager a:hover { color: #fff; }
.bhlh-pager > span:last-child { text-align: right; }

/* ---------- Lightbox ---------- */
.bhlh-lightbox { position: fixed; inset: 0; z-index: 99999; background: rgba(30,30,30,.97); display: flex; align-items: center; justify-content: center; }
.bhlh-lightbox[hidden] { display: none; }
.bhlh-lightbox img { max-width: 94vw; max-height: 90vh; object-fit: contain; }
.bhlh-lightbox button { position: absolute; background: none; border: 0; color: #ccc; font-size: 40px; line-height: 1; padding: 16px 20px; cursor: pointer; transition: color .2s; }
.bhlh-lightbox button:hover { color: #fff; }
.bhlh-lightbox .bhlh-lb-close { top: 4px; right: 4px; }
.bhlh-lightbox .bhlh-lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.bhlh-lightbox .bhlh-lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
.bhlh-lightbox .bhlh-lb-count { position: absolute; top: 18px; left: 20px; color: #ccc; font-size: 13px; letter-spacing: 1px; }

/* ---------- Contact + enquiry ---------- */
.bhlh-contact h4, .bhlh-enquiry h4 { margin: 0 0 1rem; font-size: 1.1875rem; }
.bhlh-contact p { margin: 0 0 .25rem; }
.bhlh-contact a { color: var(--bhlh-text); }
.bhlh-contact a:hover { color: #fff; }
.bhlh-contact .bhlh-social { margin-top: 1rem; }
.bhlh-enquiry__notice { margin: 0 0 1.25rem; }
.bhlh-enquiry form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.bhlh-field { margin: 0 0 1rem; display: flex; flex-direction: column; }
.bhlh-field--textarea, .bhlh-enquiry form > .bhlh-field:last-child { grid-column: 1 / -1; }
@media (max-width: 575px) { .bhlh-enquiry form { grid-template-columns: 1fr; } }
.bhlh-field label { margin-bottom: .35rem; font-size: 14px; }
.bhlh-field input, .bhlh-field select, .bhlh-field textarea { width: 100%; font: inherit; font-weight: 300; color: #fdf7f7; background: #222; border: 1px solid #222; border-radius: 1px; padding: .375rem .75rem; min-height: calc(1.5em + .75rem + 2px); transition: border-color .15s; }
.bhlh-field textarea { min-height: 140px; resize: vertical; }
.bhlh-field input:focus, .bhlh-field select:focus, .bhlh-field textarea:focus { outline: none; border-color: #626262; }
.bhlh-btn { justify-self: start; align-self: flex-start; background: #222; color: #fff; border: 1px solid #222; padding: .5rem 1.75rem; font: inherit; font-weight: 300; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: background .2s, border-color .2s; }
.bhlh-btn:hover, .bhlh-btn:focus-visible { background: #2e2e2e; border-color: #626262; }
.bhlh-enquiry__msg { padding: 12px 16px; border-left: 3px solid; margin: 0 0 1.25rem; color: #fff; }
.bhlh-enquiry__msg.is-ok { border-color: #18bc9c; background: rgba(24,188,156,.1); }
.bhlh-enquiry__msg.is-err { border-color: var(--bhlh-brand); background: rgba(236,0,137,.1); }
.bhlh-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Elementor content on our pages ---------- */
.bhlh-site .elementor-widget-text-editor { color: var(--bhlh-text); }
.bhlh-site .elementor-widget-text-editor a { color: var(--bhlh-text); }
.bhlh-site .elementor-widget-text-editor a:hover { color: var(--bhlh-brand); }

@media (prefers-reduced-motion: reduce) {
	.bhlh-hero__slide, .bhlh-tile__media img, .bhlh-intro, .bhlh-intro__inner { transition: none; }
	.bhlh-intro__mark path, .bhlh-intro__title, .bhlh-intro__sub span { animation-duration: .01s; animation-delay: 0s; }
}
