/* ==========================================================================
   Homepage template — boutique barber one-pager
   Monochrome (black/white/gray), bold headers, mobile-first.
   Loaded only on the "Homepage" page template — see functions.php.
   ========================================================================== */

:root {
	--bhp-black: #0d0d0d;
	--bhp-white: #ffffff;
	--bhp-gray-light: #f2f2f2;
	--bhp-gray-mid: #cfcfcf;
	--bhp-gray-dark: #4d4d4d;
}

.bhp {
	font-family: 'Bodoni Moda', 'Playfair Display', Georgia, serif;
	color: var(--bhp-black);
	background: var(--bhp-white);
}

.bhp h1,
.bhp h2,
.bhp h3 {
	font-family: 'Bodoni Moda', 'Playfair Display', Georgia, serif;
	font-weight: 700;
	letter-spacing: 0.01em;
	margin: 0;
}

.bhp-container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Qualified with .bhp so this reliably beats the ".bhp h1/h2/h3 { margin: 0 }"
   reset above (same class-count, but this selector adds .bhp on top). */
.bhp .bhp-section-title {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	text-align: center;
	/*margin-top: 40px;*/
	margin-bottom: 40px;
	text-transform: uppercase;
}

.bhp-section-sub {
	text-align: center;
	color: var(--bhp-gray-dark);
	margin: 0 0 40px;
}

.bhp-btn {
	display: inline-block;
	padding: 14px 32px;
	border: 2px solid var(--bhp-black);
	background: var(--bhp-black);
	color: var(--bhp-white);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.9rem;
	border-radius: 2px;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.bhp-btn:hover,
.bhp-btn:focus-visible {
	background: var(--bhp-white);
	color: var(--bhp-black);
}

.bhp-btn:active {
	transform: scale(0.97);
}

.bhp-btn-lg {
	padding: 16px 44px;
	font-size: 1rem;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.bhp-hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: var(--bhp-black);
}

.bhp-hero-media {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Half-transparent white wash over the photo so the dark logo/button read clearly */
.bhp-hero-overlay {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.55);
}

.bhp-hero-content {
	position: relative;
	z-index: 1;
	text-align: center;
	color: var(--bhp-black);
	padding: 0 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
}

.bhp-hero-logo {
	width: min(80vw, 525px); /* 420px base, enlarged 25% */
	height: auto;
}

.bhp-scroll-cue {
	position: absolute;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%);
	color: var(--bhp-black);
	font-size: 1.4rem;
	opacity: 0.7;
	animation: bhp-bounce 1.8s infinite;
}

@keyframes bhp-bounce {
	0%, 100% { transform: translate(-50%, 0); }
	50% { transform: translate(-50%, 8px); }
}

/* ==========================================================================
   Booking
   ========================================================================== */

.bhp-booking {
	padding: 100px 0;
	background: var(--bhp-gray-light);
}

.bhp-booking-inner {
	text-align: center;
}

.bhp-booking-card {
	/*max-width: 560px;*/
	margin: 0 auto;
	background: var(--bhp-white);
	border: 1px solid var(--bhp-gray-mid);
	border-radius: 6px;
	padding: 40px;
}

.bhp-booking-form {
	text-align: left;
}

/* ==========================================================================
   Team
   ========================================================================== */

.bhp-team {
	padding: 100px 0;
}

.bhp-team-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
}

.bhp-team-portrait {
	width: 275px; /* 220px base, enlarged 25% */
	height: 275px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--bhp-gray-light);
	border: 2px solid var(--bhp-black);
	flex-shrink: 0;
}

.bhp-team-name {
	font-size: 1.6rem;
	text-transform: uppercase;
}

.bhp-team-role {
	color: var(--bhp-gray-dark);
	margin: 6px 0 16px;
	font-weight: 600;
}

.bhp-team-bio {
	color: var(--bhp-gray-dark);
	line-height: 1.7;
}

.bhp-social-links {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 16px;
}

.bhp-social-links a {
	color: var(--bhp-black);
	font-weight: 600;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease;
}

.bhp-social-links a:hover {
	border-color: var(--bhp-black);
}

/* Icon variant (used in the Team section) — same SVG icons as the footer,
   recolored for a light background instead of the footer's dark one. */
.bhp-social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--bhp-gray-light);
	color: var(--bhp-black);
	border-bottom: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.bhp-social-icon:hover,
.bhp-social-icon:focus-visible {
	background: var(--bhp-black);
	color: var(--bhp-white);
	border-bottom: none;
}

@media (min-width: 640px) {
	.bhp-team-card {
		flex-direction: row;
		text-align: left;
	}

	.bhp-team-role,
	.bhp-social-links {
		justify-content: flex-start;
	}
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.bhp-gallery {
	padding: 100px 0;
	background: var(--bhp-gray-light);
}

.bhp-gallery-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.bhp-gallery-item {
	overflow: hidden;
	border-radius: 4px;
}

.bhp-gallery-placeholder {
	aspect-ratio: 1 / 1;
	background: linear-gradient(135deg, #d8d8d8 0%, #b8b8b8 100%);
	transition: transform 0.35s ease, filter 0.35s ease;
	filter: grayscale(0%);
}

.bhp-gallery-item:hover .bhp-gallery-placeholder {
	transform: scale(1.06);
	filter: grayscale(100%);
}

.bhp-gallery-link {
	display: block;
}

.bhp-gallery-img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	cursor: zoom-in;
	transition: transform 0.35s ease, filter 0.35s ease;
	filter: grayscale(0%);
}

.bhp-gallery-item:hover .bhp-gallery-img {
	transform: scale(1.06);
	filter: grayscale(100%);
}

@media (min-width: 640px) {
	.bhp-gallery-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Click-to-enlarge lightbox, built by homepage.js */
.bhp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(13, 13, 13, 0.92);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.bhp-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.bhp-lightbox-img {
	max-width: min(90vw, 1000px);
	max-height: 85vh;
	object-fit: contain;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.bhp-lightbox-close,
.bhp-lightbox-prev,
.bhp-lightbox-next {
	position: absolute;
	background: none;
	border: none;
	color: var(--bhp-white);
	font-size: 2rem;
	line-height: 1;
	padding: 12px;
	cursor: pointer;
}

.bhp-lightbox-close {
	top: 12px;
	right: 16px;
}

.bhp-lightbox-prev {
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
}

.bhp-lightbox-next {
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
}

body.bhp-lightbox-locked {
	overflow: hidden;
}

/* ==========================================================================
   Services
   ========================================================================== */

.bhp-services {
	position: relative;
	padding: 100px 24px;
	overflow: hidden;
}

/* Same treatment as Visit Us: full-bleed grayscale photo. Parallax motion
   comes from homepage.js (translateY on scroll) rather than
   background-attachment: fixed, which iOS/most mobile browsers ignore.
   homepage.js oversizes and repositions this element at runtime -- see the
   comment there for why that's driven from JS rather than CSS. */
.bhp-services-media {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center 30%; /* biased up so the subject stays in frame under the parallax zoom */
	background-repeat: no-repeat;
	filter: grayscale(100%);
}

.bhp-services-overlay {
	position: absolute;
	inset: 0;
	background: rgba(13, 13, 13, 0.55);
}

.bhp-services > .bhp-container {
	position: relative;
	z-index: 1;
}

.bhp-services .bhp-section-title,
.bhp-services .bhp-section-sub {
	color: var(--bhp-white);
}

.bhp-services-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

/* Each tile is its own frosted-glass box floating over the photo */
.bhp-service-tile {
	background: rgba(255, 255, 255, 0.55);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 8px;
	padding: 32px;
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.bhp-service-tile:hover {
	background: rgba(255, 255, 255, 0.75);
	transform: translateY(-4px);
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.bhp-service-name {
	font-size: 1.2rem;
	text-transform: uppercase;
	margin-bottom: 10px;
	color: var(--bhp-black);
}

.bhp-service-desc {
	color: var(--bhp-gray-dark);
	margin: 0 0 20px;
	line-height: 1.6;
}

.bhp-service-meta {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	border-top: 1px solid rgba(13, 13, 13, 0.15);
	padding-top: 16px;
}

.bhp-service-price {
	font-weight: 800;
	font-size: 1.1rem;
}

.bhp-service-duration {
	color: var(--bhp-gray-dark);
	font-size: 0.9rem;
}

@media (min-width: 720px) {
	.bhp-services-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ==========================================================================
   Location & contact
   ========================================================================== */

.bhp-location {
	position: relative;
	padding: 100px 24px;
	overflow: hidden;
}

/* Background photo, forced to grayscale to stay on the monochrome palette.
   Parallax motion comes from homepage.js (translateY on scroll), sized and
   positioned at runtime — see the comment in homepage.js for why. */
.bhp-location-media {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center 30%; /* biased up so the subject stays in frame under the parallax zoom */
	background-repeat: no-repeat;
	filter: grayscale(100%);
}

/* Dark wash so the card on top stays legible */
.bhp-location-overlay {
	position: absolute;
	inset: 0;
	background: rgba(13, 13, 13, 0.5);
}

/* The floating "visit us" panel, centered over the photo. Semi-transparent
   with a backdrop blur so the parallax photo shows through while the
   contact details on top stay readable. */
.bhp-location-card {
	position: relative;
	z-index: 1;
	max-width: 1000px;
	margin: 0 auto;
	background: rgba(255, 255, 255, 0.55);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	padding: 48px 8px;
}

.bhp-location-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px;
	align-items: center;
}

.bhp-location-info {
	text-align: center;
}

.bhp-location-info .bhp-section-title {
	text-align: center;
}

.bhp-contact-list {
	list-style: none;
	margin: 24px 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	color: var(--bhp-gray-dark);
}

.bhp-contact-list a {
	color: var(--bhp-black);
	font-weight: 600;
}

.bhp-map-placeholder {
	aspect-ratio: 4 / 3;
	background: var(--bhp-white);
	border: 1px solid var(--bhp-gray-mid);
	border-radius: 6px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--bhp-gray-dark);
}

.bhp-map-placeholder iframe {
	width: 100%;
	height: 100%;
	display: block;
	filter: grayscale(100%);
}

@media (min-width: 860px) {
	.bhp-location-grid {
		grid-template-columns: 1fr 1fr;
	}
}

/* ==========================================================================
   Parallax (JS-driven, see homepage.js)
   ==========================================================================
   background-attachment: fixed (the pure-CSS parallax trick) is ignored on
   iOS and most mobile browsers, so homepage.js sizes and slides this
   element itself instead — see the comment there for the reasoning
   (a background-position-only version was tried and reverted because its
   range depends on the photo's aspect ratio and was ~zero on mobile). */

.bhp-parallax {
	will-change: transform;
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.bhp-scroll-cue {
		animation: none;
	}

	.bhp-parallax {
		transform: none !important;
	}

	.bhp {
		scroll-behavior: auto;
	}
}
