/*
 * Behind the Curtain — responsive layer (phone, tablet, desktop).
 *
 * Breakpoints
 *   phone          < 600px
 *   large phone    600–781px   (WordPress stacks columns below 782px)
 *   tablet         782–1023px
 *   desktop        ≥ 1024px
 *
 */

:root {
	--btc-gutter: var(--wp--style--root--padding-left, 24px);
	--btc-bar-h: 76px;
	--btc-ease: cubic-bezier(.7, 0, .2, 1);
}

/* ===== 1. (Curtain reveal removed in 1.7.1 at Sally’s request) ===== */
@media (prefers-reduced-motion: reduce) {
	.btc-snap { scroll-behavior: auto !important; }
}

/* ===== 2. Comfortable tap targets everywhere (min 44px for standalone links) ===== */
.btc-textlink a,
.btc-footer .wp-block-navigation-item__content,
.btc-footer p a,
main p > a[href^="tel:"],
main p > a[href^="mailto:"] {
	display: inline-block;
	padding-block: 0.6rem;
	line-height: 1.4;
}
.btc-footer p a { padding-block: 0.35rem; }
.btc-footer .wp-block-navigation__container { gap: 0 !important; }
.wp-block-social-links .wp-social-link a { padding: 10px !important; }
.btc-footer .wp-block-social-links .wp-social-link a { padding: 10px 10px 10px 0 !important; }
.skip-link:focus { z-index: 100000; }

/* ===== 3. Menu extras (phone, hours, Book) — only shown inside the mobile menu ===== */
.btc-menu-extras { display: none !important; }

/* ===== 4. Booking bar (phones and tablets) ===== */
.btc-mobile-bar { display: none !important; }

/* ===== 5. Tablet and below (< 1024px) ===== */
@media (max-width: 1023px) {
	/* Header: logo + menu button only; booking moves to the thumb-zone bar */
	.btc-header .btc-phone,
	.btc-header .wp-block-buttons { display: none !important; }
	.btc-header .wp-block-site-logo img { max-height: 52px; width: auto; }
	.btc-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	.btc-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
	.btc-header .wp-block-navigation__responsive-container-open,
	.btc-header .wp-block-navigation__responsive-container-close {
		width: 48px; height: 48px; align-items: center; justify-content: center;
	}
	.btc-header .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }

	/* Full-screen menu */
	.btc-header .wp-block-navigation__responsive-container.is-menu-open {
		background: var(--wp--preset--color--oxblood) !important;
		color: var(--wp--preset--color--white) !important;
		padding: calc(env(safe-area-inset-top, 0px) + 1rem) var(--btc-gutter) calc(env(safe-area-inset-bottom, 0px) + 2rem) !important;
		animation: btc-menu-in .35s ease both;
	}
	.btc-header .is-menu-open .wp-block-navigation__responsive-container-close { color: var(--wp--preset--color--white); }
	.btc-header .is-menu-open .wp-block-navigation__responsive-container-content {
		padding-top: 4.5rem !important;
		align-items: flex-start !important;
		gap: 0 !important;
	}
	.btc-header .is-menu-open .wp-block-navigation__container {
		gap: 0 !important;
		align-items: flex-start !important;
		width: 100%;
		border-top: 1px solid rgba(168, 131, 74, .55);
	}
	.btc-header .is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid rgba(168, 131, 74, .55); }
	.btc-header .is-menu-open .wp-block-navigation-item__content {
		display: block;
		width: 100%;
		padding: 0.9rem 0 !important;
		font-family: var(--wp--preset--font-family--cormorant);
		font-size: clamp(1.9rem, 7vw, 2.6rem);
		line-height: 1.1;
		letter-spacing: 0;
		color: var(--wp--preset--color--white) !important;
		text-decoration: none;
	}
	.btc-header .is-menu-open .wp-block-navigation-item__content:focus-visible { outline: 2px solid var(--wp--preset--color--brass); outline-offset: 4px; }
	.btc-header .is-menu-open .btc-menu-extras.is-in-menu {
		display: flex !important;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.25rem;
		margin-top: 2rem;
		width: 100%;
		color: var(--wp--preset--color--white);
	}
	.btc-menu-extras.is-in-menu p { margin: 0; }
	.btc-menu-extras.is-in-menu a { color: var(--wp--preset--color--white); }
	.btc-menu-extras__phone a { display: inline-block; padding-block: .5rem; font-size: 1.25rem; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.5); }
	.btc-menu-extras__hours { opacity: .85; font-size: .95rem; }
	.btc-menu-extras.is-in-menu .wp-block-buttons { margin-top: 1.25rem; width: 100%; }
	.btc-menu-extras.is-in-menu .wp-block-button { width: 100%; }
	.btc-menu-extras.is-in-menu .wp-block-button__link {
		width: 100%;
		background: var(--wp--preset--color--cream);
		color: var(--wp--preset--color--ink) !important;
		min-height: 52px;
	}
	@keyframes btc-menu-in { from { opacity: 0; } to { opacity: 1; } }

	/* Booking bar */
	.btc-mobile-bar {
		display: flex !important;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 60;
		margin: 0 !important;
		padding: 0.7rem var(--btc-gutter) calc(0.7rem + env(safe-area-inset-bottom, 0px));
		background: rgba(244, 239, 230, 0.96);
		-webkit-backdrop-filter: saturate(1.2) blur(10px);
		backdrop-filter: saturate(1.2) blur(10px);
		border-top: 1px solid rgba(28, 23, 20, 0.12);
		transform: translateY(110%);
		transition: transform .35s var(--btc-ease), visibility 0s linear .35s;
		visibility: hidden;
	}
	.btc-bar-on .btc-mobile-bar { transform: none; visibility: visible; transition: transform .35s var(--btc-ease); }
	html:not(.btc-js) .btc-mobile-bar { transform: none; visibility: visible; }
	.btc-mobile-bar .wp-block-buttons { width: 100%; gap: 0.6rem; flex-wrap: nowrap; }
	.btc-mobile-bar .wp-block-button { margin: 0; }
	.btc-mobile-bar .btc-mobile-bar__call { flex: 0 0 auto; }
	.btc-mobile-bar .btc-mobile-bar__book { flex: 1 1 auto; }
	.btc-mobile-bar .wp-block-button__link { width: 100%; min-height: 50px; white-space: nowrap; padding-inline: 1.1rem; }
	body { padding-bottom: calc(var(--btc-bar-h) + env(safe-area-inset-bottom, 0px)); }
	body.btc-page-book-appointment { padding-bottom: 0; }
	body.btc-page-book-appointment .btc-mobile-bar { display: none !important; }
	/* hide the bar while the full-screen menu is open */
	body:has(.is-menu-open) .btc-mobile-bar { display: none !important; }

	/* Reviews become a swipe row on tablets too */
	.wp-block-columns.btc-snap--reviews {
		flex-wrap: nowrap !important;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		scrollbar-width: none;
		overscroll-behavior-x: contain;
		margin-inline: calc(-1 * var(--btc-gutter)) !important;
		padding-inline: var(--btc-gutter);
		scroll-padding-inline: var(--btc-gutter);
		gap: 1rem !important;
	}
	.wp-block-columns.btc-snap--reviews > .wp-block-column {
		flex: 0 0 min(46%, 380px) !important;
		scroll-snap-align: start;
	}
}

/* ===== 6. Tablet (782–1023px) ===== */
@media (min-width: 782px) and (max-width: 1023px) {
	.wp-block-columns.btc-price-cols { flex-wrap: wrap !important; column-gap: 2rem !important; }
	.wp-block-columns.btc-price-cols > .wp-block-column { flex: 0 0 calc(50% - 1rem) !important; }
	.btc-work-grid { gap: 1rem !important; }
	.btc-steps-stack, .btc-step { padding-top: 1.25rem; }
}

/* ===== 7. Phones and small tablets (< 782px) ===== */
@media (max-width: 781px) {
	/* Image-led hero: portrait first, edge to edge, headline beneath */
	.btc-hero { padding-top: 0 !important; }
	.btc-hero > .wp-block-columns { flex-direction: column-reverse; gap: 2rem !important; }
	.btc-hero .btc-tall {
		margin-inline: calc(-1 * var(--btc-gutter)) !important;
		width: calc(100% + 2 * var(--btc-gutter));
		max-width: none !important;
	}
	.btc-hero .btc-tall img { aspect-ratio: 4 / 5; max-height: 78svh; border-radius: 0; }
	.btc-hero .wp-block-buttons { flex-direction: column; align-items: stretch; width: 100%; }
	.btc-hero .wp-block-button, .btc-hero .wp-block-button__link { width: 100%; }

	/* Meet Sally and Visit photos run edge to edge too */
	.wp-block-columns > .wp-block-column > .wp-block-image:only-child:not(.btc-tall):not(.btc-cover) img { border-radius: 0; }

	/* Covers on the homepage: swipe row with a peek of the next cover */
	.wp-block-columns.btc-snap--covers:not(.is-not-stacked-on-mobile) {
		flex-wrap: nowrap !important;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		scrollbar-width: none;
		overscroll-behavior-x: contain;
		margin-inline: calc(-1 * var(--btc-gutter)) !important;
		padding-inline: var(--btc-gutter);
		scroll-padding-inline: var(--btc-gutter);
		gap: 1rem !important;
	}
	.wp-block-columns.btc-snap--covers:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex: 0 0 64% !important;
		scroll-snap-align: start;
	}
	.wp-block-columns.btc-snap--covers > .wp-block-column:empty { display: none; }
	.wp-block-columns.btc-snap--reviews > .wp-block-column { flex-basis: 86% !important; }

	/* Covers archive on About: tidy two-up grid */
	.btc-work-grid:not(.btc-snap) { gap: 1.25rem 1rem !important; margin-bottom: 1.25rem; }

	/* Prices: tighter rhythm, keep name and price on one line where possible */
	.btc-price-cols { gap: 2.25rem !important; }
	.is-style-price-row { padding: 0.75rem 0; }

	/* Steps: number beside heading */
	.btc-step { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: .75rem; }
	.btc-step > * { grid-column: 2; margin-block-start: 0 !important; }
	.btc-step > .btc-step-number { grid-column: 1; grid-row: 1 / span 3; font-size: 2.25rem; }
	.btc-step h3 { margin-top: .35rem !important; }
	.btc-step > p:not(.btc-step-number) { margin-top: .6rem !important; }

	/* Studio gallery: one feature image, then pairs */
	.btc-studio-gallery.wp-block-gallery { gap: .5rem !important; }
	.btc-studio-gallery.wp-block-gallery > figure.wp-block-image { width: calc(50% - .25rem) !important; flex-grow: 0 !important; }
	.btc-studio-gallery.wp-block-gallery > figure.wp-block-image:first-child { width: 100% !important; }
	.btc-studio-gallery.wp-block-gallery > figure.wp-block-image:first-child img { aspect-ratio: 3 / 2; }

	/* Review cards a touch tighter */
	.is-style-review-card { padding: 2rem 1.25rem; }

	/* Book page: Amelia gets the full width */
	.btc-amelia-frame { padding: .75rem; min-height: 0; margin-inline: calc(-1 * var(--btc-gutter) + 8px); }

	/* Section rhythm */
	.btc-intro { margin-bottom: 2rem; }
	.btc-footer .wp-block-columns { gap: 2rem !important; }
}

/* ===== 8. Phones (< 600px) ===== */
@media (max-width: 599px) {
	.btc-header .wp-block-site-logo img { max-height: 44px; }
	.btc-display { font-size: clamp(2.5rem, 11vw, 3rem) !important; line-height: 1.05; }
	h2.wp-block-heading { font-size: clamp(2rem, 8.5vw, 2.4rem); }
	.btc-quote p { font-size: 1.45rem; }
	.wp-block-columns.btc-snap--covers:not(.is-not-stacked-on-mobile) > .wp-block-column { flex-basis: 70% !important; }
	.btc-mobile-bar .wp-block-button__link { padding-inline: .9rem; letter-spacing: .1em; }
}

/* ===== 9. Swipe-row dots ===== */
.btc-dots { display: none; }
.btc-dots[hidden] { display: none !important; }
@media (max-width: 1023px) {
	.btc-dots { display: flex; justify-content: center; gap: 2px; margin-top: 0.75rem; }
	.btc-snap::-webkit-scrollbar { display: none; }
	.btc-snap:focus-visible { outline: 2px solid var(--wp--preset--color--oxblood); outline-offset: 6px; }
}
.btc-dot {
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.btc-dot::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: 1px solid var(--wp--preset--color--ink-soft);
	transition: background .2s, transform .2s;
}
.btc-dot[aria-current="true"]::before { background: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--ink); transform: scale(1.15); }
.btc-dot:focus-visible { outline: 2px solid var(--wp--preset--color--oxblood); outline-offset: 0; border-radius: 50%; }

/* ===== 10. Desktop refinements (≥ 1024px) ===== */
@media (min-width: 1024px) {
	.btc-header .wp-block-navigation-item__content {
		background-image: linear-gradient(currentColor, currentColor);
		background-size: 0 1px;
		background-position: 0 100%;
		background-repeat: no-repeat;
		transition: background-size .25s ease;
		padding-bottom: 2px;
	}
	.btc-header .wp-block-navigation-item__content:hover,
	.btc-header .wp-block-navigation-item__content:focus-visible,
	.btc-header .current-menu-item > .wp-block-navigation-item__content { background-size: 100% 1px; }
}

/* ===== 11. Large screens: keep line lengths readable ===== */
@media (min-width: 1440px) {
	.btc-hero .btc-display { font-size: 5rem; }
}

/* ===== 12. Fixes after first visual pass ===== */
/* Book button inside the mobile menu must stay visible */
@media (max-width: 1023px) {
	.btc-header .btc-menu-extras.is-in-menu .wp-block-buttons { display: flex !important; }
}
/* Studio grid on phones: feature image, pairs, and a full-width closer when the count is even */
@media (max-width: 781px) {
	.btc-studio-gallery.wp-block-gallery > figure.wp-block-image:last-child:nth-child(even) { width: 100% !important; }
	.btc-studio-gallery.wp-block-gallery > figure.wp-block-image:last-child:nth-child(even) img { aspect-ratio: 3 / 2; }
}
/* Eyebrow labels fit on one line on phones */
@media (max-width: 599px) {
	.is-style-eyebrow { letter-spacing: 0.12em; font-size: 0.75rem; }
}

/* ===================================================================
 * 13. Review-team fixes (design critique, responsive QA, accessibility)
 * =================================================================== */

/* Typography: no lone words, lining figures for prices */
h1, h2, h3, .btc-display, .btc-pull, .btc-quote p { text-wrap: balance; }
.wp-block-button__link { text-wrap: balance; }
.btc-nowrap { white-space: nowrap; }
.is-style-price-row > p:last-child, .btc-step-number, .btc-step-meta { font-variant-numeric: lining-nums tabular-nums; }

/* Contrast: brass text uses the deep brass (AA); light brass stays for rules only */
.btc-step-number { color: var(--wp--preset--color--brass-deep, #7A5C2B); }

/* Review cards: equal height, name and role pinned to the bottom; body reads left-aligned */
.is-style-review-card { display: flex; flex-direction: column; }
.is-style-review-card > .wp-block-separator { margin-top: auto !important; padding-top: 0; }
.is-style-review-card > p:not(.btc-pull):not(.btc-name):not(.btc-role) { text-align: left; max-width: 60ch; margin-inline: auto; }
.is-style-review-card > .btc-pull { margin-bottom: .5rem; }

/* Section rhythm: two plain cream sections in a row never double their padding */
.wp-block-post-content > .wp-block-group.alignfull:not(.has-background):not(.btc-cta) + .wp-block-group.alignfull:not(.has-background):not(.btc-cta) { padding-top: 0 !important; }

/* About hero portrait (seated, off-centre) */
.btc-focus-right img { object-position: 62% 50%; }

/* Header phone gets a proper click target */
.btc-header .btc-phone a { display: inline-block; padding-block: .75rem; }
.btc-header .btc-phone, .btc-header .wp-block-button__link { white-space: nowrap; }

/* Menu: extras sit at the bottom of the full-screen menu */
@media (max-width: 1023px) {
	.btc-header .is-menu-open .wp-block-navigation__responsive-container-content { min-height: calc(100svh - 6rem); }
	.btc-header .is-menu-open .btc-menu-extras.is-in-menu { margin-top: auto; padding-top: 2.5rem; }
	.btc-menu-extras__address { font-size: .95rem; opacity: .85; }
}

/* Desktop: hero sits closer to the header; header never wraps at narrow desktop widths */
@media (min-width: 1024px) {
	.btc-hero { padding-top: var(--wp--preset--spacing--50) !important; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
	.btc-header .btc-phone { display: none; }
	.btc-header .wp-block-navigation__container { gap: 1.1rem !important; }
	.btc-header .wp-block-group { column-gap: 1.25rem !important; }
}

/* Tablet: balanced hero and Meet Sally; price groups flow into two even columns */
@media (min-width: 782px) and (max-width: 1023px) {
	.btc-hero > .wp-block-columns { align-items: stretch !important; }
	.btc-hero > .wp-block-columns > .wp-block-column { align-self: stretch !important; }
	.btc-hero .btc-tall { height: 100%; margin: 0; }
	.btc-hero .btc-tall img { height: 100%; aspect-ratio: auto; object-fit: cover; }
	.btc-hero .wp-block-buttons { flex-wrap: nowrap; gap: .75rem; }
	.btc-hero .wp-block-button__link { padding-inline: 1.1rem; }
	.wp-block-columns.btc-price-cols { display: block !important; columns: 2; column-gap: 2rem; }
	.wp-block-columns.btc-price-cols > .wp-block-column { break-inside: avoid; margin-bottom: 2.25rem; width: auto !important; }
	.wp-block-columns:not(.btc-price-cols):not(.btc-snap) { align-items: flex-start; }
	.wp-block-columns.are-vertically-aligned-center > .wp-block-column.is-vertically-aligned-center:has(> .wp-block-image) { align-self: flex-start; }
}

/* Small phones: buttons stay on one line */
@media (max-width: 359px) {
	.wp-block-button__link { letter-spacing: .08em; padding-inline: 1rem; }
}

/* Phones held sideways / short screens: compact hero, bar always available, compact menu */
@media (max-width: 1023px) and (max-height: 500px) and (orientation: landscape) {
	.btc-hero .btc-display { font-size: 2.4rem !important; }
	.btc-hero .btc-tall img { max-height: 80svh; width: auto; margin-inline: auto; }
	.btc-mobile-bar { transform: none !important; visibility: visible !important; }
	.btc-header .is-menu-open .wp-block-navigation-item__content { font-size: 1.5rem; padding: .5rem 0 !important; }
	.btc-header .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 3.5rem !important; min-height: 0; }
	.btc-header .is-menu-open .btc-menu-extras.is-in-menu { margin-top: 1.5rem; padding-top: 0; }
}

/* No JavaScript: show the menu links as a simple wrapped list instead of a dead hamburger */
@media (max-width: 1023px) {
	html:not(.btc-js) .btc-header .wp-block-navigation__responsive-container-open { display: none !important; }
	html:not(.btc-js) .btc-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: block !important;
		position: static !important;
		background: transparent !important;
		padding: 0 !important;
	}
	html:not(.btc-js) .btc-header .wp-block-navigation__container { flex-wrap: wrap; gap: .25rem 1rem !important; font-size: .9rem; }
	html:not(.btc-js) .btc-header > .wp-block-group { flex-wrap: wrap !important; row-gap: .5rem; }
}
@media (max-width: 1023px) {
	html:not(.btc-js) .btc-header .wp-block-navigation__responsive-container-close { display: none !important; }
}

/* ===== 14. Accessibility review fixes ===== */
/* Focus rings visible on oxblood (footer, full-screen menu) */
.btc-footer :focus-visible,
.wp-block-navigation__responsive-container.is-menu-open :focus-visible {
	outline: 2px solid var(--wp--preset--color--cream) !important;
	outline-offset: 3px;
}
/* Focused links never hide behind the booking bar */
@media (max-width: 1023px) {
	html { scroll-padding-bottom: calc(var(--btc-bar-h) + 20px + env(safe-area-inset-bottom, 0px)); }
}
/* Swipe rows: site focus ring when they are a keyboard stop */
.btc-snap[tabindex]:focus-visible { outline: 2px solid var(--wp--preset--color--oxblood); outline-offset: 6px; }
/* Services page price titles are H2s now; keep their look */
h2.btc-price-heading { font-size: var(--wp--preset--font-size--large) !important; }
/* Comfortable targets for secondary links */
.btc-footer .has-x-small-font-size a { display: inline-block; padding-block: .75rem; }
.btc-textlink a { padding-block: .8rem; }
@media (min-width: 1024px) {
	.btc-header .wp-block-navigation-item__content { padding-block: .7rem; background-position: 0 calc(100% - .55rem); }
}

/* ===================================================================
 * 15. Homepage hero: "ink split" (Nov 2026)
 *     Solid ink panel with cream text on the left, photo running to the
 *     right edge. No text sits on the photo, so contrast never depends
 *     on the image. Applies to the homepage opening automatically; add
 *     the class btc-hero-ink to use it on another page.
 * =================================================================== */
:is(.home .btc-hero, .btc-hero-ink) {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--cream);
	padding: 0 !important;
	margin-block: 0 !important;
}
:is(.home .btc-hero, .btc-hero-ink) > .wp-block-columns {
	max-width: none !important;
	width: 100%;
	margin: 0 !important;
	gap: 0 !important;
}
:is(.home .btc-hero, .btc-hero-ink) > .wp-block-columns > .wp-block-column { box-sizing: border-box; min-width: 0; }
:is(.home .btc-hero, .btc-hero-ink) :is(.btc-tall, .btc-hero-slides) { margin: 0 !important; }
:is(.home .btc-hero, .btc-hero-ink) :is(.btc-tall, .btc-hero-slides) img { border-radius: 0; object-position: 35% 35%; }

/* Text colours on ink (cream on ink 15:1; softer lines stay above 10:1) */
:is(.home .btc-hero, .btc-hero-ink) :is(h1, h2, p, li) { color: var(--wp--preset--color--cream); }
:is(.home .btc-hero, .btc-hero-ink) .is-style-eyebrow,
:is(.home .btc-hero, .btc-hero-ink) .btc-small { color: rgba(244, 239, 230, .82); }
:is(.home .btc-hero, .btc-hero-ink) p:not(.is-style-eyebrow):not(.btc-small) { color: rgba(244, 239, 230, .9); }
:is(.home .btc-hero, .btc-hero-ink) a:not(.wp-block-button__link) { color: var(--wp--preset--color--cream); }

/* Buttons: solid cream, and a cream outline */
:is(.home .btc-hero, .btc-hero-ink) .wp-block-button:not(.is-style-outline-ink) .wp-block-button__link {
	background: var(--wp--preset--color--cream); color: var(--wp--preset--color--ink); border: 1px solid var(--wp--preset--color--cream);
}
:is(.home .btc-hero, .btc-hero-ink) .wp-block-button:not(.is-style-outline-ink) .wp-block-button__link:hover {
	background: var(--wp--preset--color--white); color: var(--wp--preset--color--oxblood);
}
:is(.home .btc-hero, .btc-hero-ink) .wp-block-button.is-style-outline-ink .wp-block-button__link {
	background: transparent; color: var(--wp--preset--color--cream); border-color: var(--wp--preset--color--cream);
}
:is(.home .btc-hero, .btc-hero-ink) .wp-block-button.is-style-outline-ink .wp-block-button__link:hover {
	background: var(--wp--preset--color--cream); color: var(--wp--preset--color--ink);
}
:is(.home .btc-hero, .btc-hero-ink) :focus-visible { outline-color: var(--wp--preset--color--cream) !important; }

/* Tablet and desktop: text panel left, photo bleeds to the right edge, fills the first screen */
@media (min-width: 782px) {
	:is(.home .btc-hero, .btc-hero-ink) > .wp-block-columns {
		align-items: stretch !important;
		min-height: max(560px, calc(100svh - var(--btc-header-h, 97px)));
	}
	:is(.home .btc-hero, .btc-hero-ink) > .wp-block-columns > .wp-block-column { align-self: stretch !important; }
	:is(.home .btc-hero, .btc-hero-ink) > .wp-block-columns > .wp-block-column:first-child {
		flex: 0 0 50% !important;
		display: flex; flex-direction: column; justify-content: center;
		padding: var(--wp--preset--spacing--50) clamp(1.5rem, 3vw, 3rem) var(--wp--preset--spacing--50) max(var(--btc-gutter), calc((100vw - var(--btc-max, 1200px)) / 2));
	}
	:is(.home .btc-hero, .btc-hero-ink) > .wp-block-columns > .wp-block-column:last-child { flex: 1 1 50% !important; position: relative; }
	:is(.home .btc-hero, .btc-hero-ink) :is(.btc-tall, .btc-hero-slides) { position: absolute !important; inset: 0; height: 100%; }
	:is(.home .btc-hero, .btc-hero-ink) :is(.btc-tall, .btc-hero-slides) img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
}
@media (min-width: 1024px) {
	:is(.home .btc-hero, .btc-hero-ink) > .wp-block-columns > .wp-block-column:first-child { flex-basis: 42% !important; }
	:is(.home .btc-hero, .btc-hero-ink) > .wp-block-columns > .wp-block-column:last-child { flex-basis: 58% !important; }
	:is(.home .btc-hero, .btc-hero-ink) .btc-display { font-size: clamp(2.5rem, 3.5vw, 3.75rem) !important; line-height: 1.08; }
	:is(.home .btc-hero, .btc-hero-ink) .wp-block-buttons { gap: .75rem; }
	:is(.home .btc-hero, .btc-hero-ink) .wp-block-button__link { padding-inline: 1.25rem; letter-spacing: .12em; }
	:is(.home .btc-hero, .btc-hero-ink) p:not(.is-style-eyebrow):not(.btc-small) { max-width: 52ch; }
}

/* Phones: photo first, edge to edge, then the ink text panel */
@media (max-width: 781px) {
	:is(.home .btc-hero, .btc-hero-ink) { padding-bottom: var(--wp--preset--spacing--60) !important; }
	:is(.home .btc-hero, .btc-hero-ink) > .wp-block-columns { gap: 0 !important; }
	:is(.home .btc-hero, .btc-hero-ink) > .wp-block-columns > .wp-block-column:first-child { padding: 2rem var(--btc-gutter) 0; }
	/* Explicit frame height (not aspect-ratio on the image): Safari on iPhone otherwise lets the
	   photo spill over the headline below it. Shorter photo so the headline shows on the first screen. */
	:is(.home .btc-hero, .btc-hero-ink) > .wp-block-columns > .wp-block-column { flex: 0 0 auto !important; width: 100% !important; }
	:is(.home .btc-hero, .btc-hero-ink) :is(.btc-tall, .btc-hero-slides) {
		position: relative !important; display: block !important;
		width: 100% !important; margin: 0 !important;
		height: max(260px, min(42vh, 115vw)) !important; height: max(260px, min(42svh, 115vw)) !important;
		overflow: hidden;
	}
	:is(.home .btc-hero, .btc-hero-ink) :is(.btc-tall, .btc-hero-slides) img {
		display: block; width: 100% !important; height: 100% !important;
		max-height: none !important; aspect-ratio: auto !important;
		object-fit: cover; object-position: 35% 30%;
	}
}
/* Phones held sideways: photo still fills its half */
@media (min-width: 782px) and (max-width: 1023px) and (max-height: 500px) and (orientation: landscape) {
	:is(.home .btc-hero, .btc-hero-ink) :is(.btc-tall, .btc-hero-slides) img { max-height: none; width: 100%; height: 100%; }
	:is(.home .btc-hero, .btc-hero-ink) > .wp-block-columns { min-height: 0; }
}

/* ===================================================================
 * 16. Desktop width (v1.6.1): less empty space at the sides
 *     Content runs up to --btc-max wide (was 1200px), and the side margin
 *     scales with the screen (24px on small laptops, up to 56px).
 *     To adjust: change the two numbers in the :root rule below.
 * =================================================================== */
:root { --btc-max: 1360px; --btc-side: clamp(24px, 3.5vw, 56px); }
@media (min-width: 1024px) {
	html body {
		--wp--style--root--padding-left: var(--btc-side);
		--wp--style--root--padding-right: var(--btc-side);
		--wp--style--global--wide-size: var(--btc-max);
		--btc-gutter: var(--btc-side);
	}
	.wp-site-blocks .alignfull.is-layout-constrained:not(.btc-hero-ink):not(.home .btc-hero) > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
	.wp-site-blocks .btc-header.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
	.wp-site-blocks .btc-footer.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
	.wp-site-blocks .is-layout-constrained:not(.btc-hero-ink):not(.home .btc-hero) > .alignwide { max-width: var(--btc-max) !important; }
}

/* ===================================================================
 * 17. Homepage hero slideshow (v1.7)
 *     A Gallery block of salon photos that cross-fades on its own:
 *     no dots or arrows, just a small pause button (WCAG 2.2.2).
 *     Still for anyone who has "reduce motion" switched on.
 * =================================================================== */
.btc-hero-slides {
	position: relative !important; overflow: hidden; margin: 0 !important; padding: 0 !important;
	display: block !important; background: var(--wp--preset--color--ink);
}
.wp-block-gallery.has-nested-images.btc-hero-slides figure.wp-block-image:not(#individual-image) {
	position: absolute; inset: 0; margin: 0 !important; width: 100% !important; height: 100%;
	opacity: 0; transition: opacity 1.6s ease-in-out;
}
.btc-hero-slides > figure:first-child,
.btc-hero-slides > figure.is-active { opacity: 1 !important; }
.btc-hero-slides.is-running > figure:first-child:not(.is-active) { opacity: 0 !important; }
.wp-block-gallery.has-nested-images.btc-hero-slides figure.wp-block-image img {
	position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none;
	object-fit: cover; object-position: center;
}
.btc-hero-slides img[src*="salon-interior"] { object-position: 35% 35% !important; }
.btc-hero-slides figcaption { display: none; }
@media (prefers-reduced-motion: reduce) {
	.wp-block-gallery.has-nested-images.btc-hero-slides figure.wp-block-image:not(#individual-image) { transition: none; }
}

/* Pause / play button: small and quiet, bottom-right of the photos */
.btc-slides-toggle {
	position: absolute; right: 14px; bottom: 14px; z-index: 3;
	width: 36px; height: 36px; padding: 0; border: 1px solid rgba(244, 239, 230, .7); border-radius: 50%;
	background: rgba(28, 23, 20, .72); color: var(--wp--preset--color--cream);
	display: grid; place-items: center; cursor: pointer;
	transition: background .2s ease;
}
.btc-slides-toggle:hover { background: rgba(28, 23, 20, .92); }
.btc-slides-toggle:focus-visible { outline: 2px solid var(--wp--preset--color--cream); outline-offset: 3px; }
.btc-slides-toggle svg { width: 12px; height: 12px; display: block; fill: currentColor; }
.btc-slides-toggle .btc-icon-play { display: none; }
.btc-slides-toggle[data-state="paused"] .btc-icon-play { display: block; }
.btc-slides-toggle[data-state="paused"] .btc-icon-pause { display: none; }

/* Logo icon under the opening hours in the hero */
.btc-hero-icon { margin: 1.75rem 0 0 !important; }
.btc-hero-icon img { width: 48px !important; height: auto; display: block; }
@media (max-width: 781px) { .btc-hero-icon { margin-top: 1.5rem !important; } .btc-hero-icon img { width: 40px !important; } }

/* Header: words-only logo (wide), footer: icon only */
.btc-header .wp-block-site-logo img[src*="logo-words"] { max-height: none; height: auto; width: clamp(190px, 17vw, 250px) !important; }
@media (max-width: 1023px) { .btc-header .wp-block-site-logo img[src*="logo-words"] { width: 170px !important; } }
.btc-footer-logo img[src*="icon"] { width: 72px !important; height: auto; }
