/* Photos by Chenar — Home page patterns. */

/* ------------------------------------------------------------------ Hero */
.pbc-hero {
	align-items: center;
	background:
		radial-gradient(ellipse 80% 60% at 20% 80%, rgba(212, 145, 92, 0.08) 0%, transparent 60%),
		radial-gradient(ellipse 60% 50% at 80% 20%, rgba(10, 186, 181, 0.05) 0%, transparent 50%),
		linear-gradient(175deg, var(--wp--preset--color--cream) 0%, var(--wp--preset--color--warm-white) 40%, var(--wp--preset--color--cream-dark) 100%);
	display: flex;
	justify-content: center;
	min-height: calc(100svh - 5rem);
	overflow: hidden;
}

.pbc-hero::before {
	animation: pbc-hero-drift 18s ease-in-out infinite alternate;
	background:
		radial-gradient(circle at 25% 30%, rgba(10, 186, 181, 0.22) 0%, transparent 18%),
		radial-gradient(circle at 75% 60%, rgba(212, 145, 92, 0.18) 0%, transparent 16%),
		radial-gradient(circle at 50% 20%, rgba(129, 216, 208, 0.16) 0%, transparent 14%),
		radial-gradient(circle at 15% 70%, rgba(168, 181, 160, 0.14) 0%, transparent 20%),
		radial-gradient(circle at 85% 25%, rgba(10, 186, 181, 0.12) 0%, transparent 15%),
		radial-gradient(circle at 40% 75%, rgba(232, 182, 138, 0.15) 0%, transparent 12%);
	content: "";
	filter: blur(28px);
	inset: -15%;
	pointer-events: none;
	position: absolute;
}

@keyframes pbc-hero-drift {
	from { transform: translate3d(-2%, -1%, 0) scale(1); }
	to { transform: translate3d(2%, 2%, 0) scale(1.06); }
}

.pbc-hero::after {
	animation: pbc-scroll-pulse 2s ease-in-out infinite;
	background: linear-gradient(to bottom, var(--wp--preset--color--tiffany), transparent);
	bottom: 3rem;
	content: "";
	height: 48px;
	left: 50%;
	position: absolute;
	width: 1px;
}

@keyframes pbc-scroll-pulse {
	0%, 100% { opacity: 0.4; transform: scaleY(1); }
	50% { opacity: 1; transform: scaleY(1.2); }
}

.pbc-hero .pbc-hero__content {
	position: relative;
	text-align: center;
	width: 100%;
	z-index: 1;
}

.pbc-hero .pbc-hero__title {
	color: var(--wp--preset--color--charcoal);
	font-size: clamp(2rem, 5.5vw, 4.2rem);
	font-weight: 300;
	letter-spacing: -0.02em;
	line-height: 1.15;
	margin: 0;
}

.pbc-hero .pbc-hero__title em {
	animation: pbc-shimmer 6s ease-in-out infinite;
	background: linear-gradient(135deg, var(--wp--preset--color--tiffany) 0%, var(--wp--preset--color--tiffany-light) 50%, var(--wp--preset--color--tiffany) 100%);
	background-clip: text;
	-webkit-background-clip: text;
	background-size: 200% 100%;
	color: var(--wp--preset--color--tiffany);
	display: block;
	font-size: clamp(4rem, 12vw, 10rem);
	font-style: italic;
	font-weight: 300;
	letter-spacing: -0.03em;
	line-height: 1;
	margin-top: 0.5rem;
	-webkit-text-fill-color: transparent;
	text-shadow:
		0 0 60px rgba(10, 186, 181, 0.25),
		0 0 120px rgba(10, 186, 181, 0.1);
}

@keyframes pbc-shimmer {
	0%, 100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}

.pbc-hero .pbc-hero__actions {
	margin-top: 4rem;
}

/* ------------------------------------------------------------- Portfolio */
.pbc-gallery.is-layout-grid {
	gap: 1rem;
	grid-auto-flow: dense;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pbc-gallery .pbc-gallery__item {
	aspect-ratio: 4 / 5;
	margin: 0;
	min-height: 280px;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.pbc-gallery .is-style-pbc-gallery-wide,
.pbc-gallery .pbc-gallery__item--wide {
	aspect-ratio: 16 / 10;
	grid-column: span 2;
}

.pbc-gallery .is-style-pbc-gallery-tall,
.pbc-gallery .pbc-gallery__item--tall {
	aspect-ratio: auto;
	grid-row: span 2;
	min-height: 580px;
}

.pbc-gallery .pbc-gallery__item:has(> img[style*="border-radius:8px"]) {
	border-radius: 8px;
}

.pbc-gallery .pbc-gallery__item:has(> img[style*="border-radius:16px"]) {
	border-radius: 16px;
}

.pbc-gallery .pbc-gallery__item img {
	display: block;
	height: 112%;
	inset: -6% 0;
	max-width: none;
	object-fit: cover;
	position: absolute;
	transform: translate3d(0, var(--pbc-parallax-y, 0%), 0) scale(var(--pbc-scale, 1));
	transition:
		transform var(--pbc-duration-slow) var(--pbc-ease-out-expo),
		filter var(--pbc-duration-slow) var(--pbc-ease-out-expo);
	width: 100%;
}

/* Paw watermark */
.pbc-gallery .pbc-gallery__item::before {
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80' fill='%23ffffff'%3E%3Cellipse cx='40' cy='52' rx='15' ry='12'/%3E%3Cellipse cx='25' cy='34' rx='7' ry='9' transform='rotate(-15 25 34)'/%3E%3Cellipse cx='55' cy='34' rx='7' ry='9' transform='rotate(15 55 34)'/%3E%3Cellipse cx='20' cy='50' rx='5.5' ry='7' transform='rotate(-30 20 50)'/%3E%3Cellipse cx='60' cy='50' rx='5.5' ry='7' transform='rotate(30 60 50)'/%3E%3C/svg%3E") center / contain no-repeat;
	bottom: 15%;
	content: "";
	height: 50px;
	opacity: 0.05;
	pointer-events: none;
	position: absolute;
	right: 15%;
	transition: opacity var(--pbc-duration-slow) var(--pbc-ease-out-expo), transform var(--pbc-duration-slow) var(--pbc-ease-out-expo);
	width: 50px;
	z-index: 1;
}

/* Turquoise glow frame */
.pbc-gallery .pbc-gallery__item::after {
	border: 2px solid transparent;
	border-radius: inherit;
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	transition: border-color var(--pbc-duration-slow) var(--pbc-ease-out-expo), box-shadow var(--pbc-duration-slow) var(--pbc-ease-out-expo);
	z-index: 3;
}

/* Caption becomes the hover label */
.pbc-gallery .pbc-gallery__item .wp-element-caption,
.pbc-gallery .pbc-gallery__placeholder .pbc-gallery__label {
	align-items: center;
	background: linear-gradient(to top, rgba(44, 44, 44, 0.65) 0%, rgba(44, 44, 44, 0.15) 50%, transparent 100%);
	color: #fff;
	display: flex;
	flex-direction: column;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.2rem, 2vw, 1.6rem);
	font-style: italic;
	font-weight: 400;
	inset: 0;
	justify-content: flex-end;
	margin: 0;
	max-width: none;
	opacity: 0;
	padding: 0 1rem 12%;
	position: absolute;
	text-align: center;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	transition: opacity var(--pbc-duration-normal) var(--pbc-ease-out-expo);
	z-index: 2;
}

.pbc-gallery .pbc-gallery__item .wp-element-caption::after,
.pbc-gallery .pbc-gallery__placeholder .pbc-gallery__label::after {
	color: var(--wp--preset--color--tiffany-light);
	content: "→";
	display: block;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	font-style: normal;
	margin-top: 0.5rem;
}

.pbc-gallery .pbc-gallery__placeholder {
	padding: 0;
}

.pbc-gallery .pbc-gallery__placeholder > .pbc-gallery__label {
	margin: 0;
}

@media (hover: hover) {
	.pbc-gallery .pbc-gallery__item:hover .wp-element-caption,
	.pbc-gallery .pbc-gallery__item:focus-within .wp-element-caption,
	.pbc-gallery .pbc-gallery__placeholder:hover .pbc-gallery__label,
	.pbc-gallery .pbc-gallery__placeholder:focus-within .pbc-gallery__label {
		opacity: 1;
	}

	.pbc-gallery .pbc-gallery__item:hover img {
		--pbc-scale: 1.06;
		filter: saturate(1.06) contrast(1.02);
	}

	.pbc-gallery .pbc-gallery__item:hover::before {
		opacity: 0;
		transform: scale(0.8);
	}

	.pbc-gallery .pbc-gallery__item:hover::after,
	.pbc-gallery .pbc-gallery__item:focus-within::after {
		border-color: var(--wp--preset--color--tiffany);
		box-shadow:
			inset 0 0 30px rgba(10, 186, 181, 0.1),
			0 0 20px rgba(10, 186, 181, 0.08);
	}
}

@media (hover: none) {
	.pbc-gallery .pbc-gallery__item .wp-element-caption,
	.pbc-gallery .pbc-gallery__placeholder .pbc-gallery__label {
		background: linear-gradient(to top, rgba(44, 44, 44, 0.55) 0%, transparent 60%);
		opacity: 1;
	}
}

/* ------------------------------------------------------------ Experience */
.pbc-experience {
	background: linear-gradient(180deg, var(--wp--preset--color--warm-white) 0%, var(--wp--preset--color--cream) 50%, var(--wp--preset--color--warm-white) 100%);
	overflow: hidden;
}

.pbc-experience .wp-block-column.pbc-service {
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	background: rgba(253, 246, 238, 0.85);
	border: 1px solid rgba(212, 145, 92, 0.08);
	padding: 4rem 2rem;
	position: relative;
	text-align: center;
	transition:
		box-shadow var(--pbc-duration-normal) var(--pbc-ease-out-expo),
		border-color var(--pbc-duration-normal) var(--pbc-ease-out-expo);
}

.pbc-service .pbc-service__icon {
	align-items: center;
	display: flex;
	height: 100px;
	justify-content: center;
	margin: 0 auto 2rem;
	position: relative;
	width: 100px;
}

.pbc-service .pbc-service__icon::before {
	background: radial-gradient(circle, rgba(10, 186, 181, 0.06) 0%, transparent 70%);
	border-radius: 50%;
	content: "";
	inset: 0;
	position: absolute;
	transition: transform var(--pbc-duration-normal) var(--pbc-ease-out-expo), background var(--pbc-duration-normal) var(--pbc-ease-out-expo);
}

.pbc-service .pbc-service__icon img {
	height: 64px;
	position: relative;
	transition: transform var(--pbc-duration-normal) var(--pbc-ease-out-expo);
	width: 64px;
}

.pbc-service .pbc-service__title {
	font-size: 1.6rem;
	font-weight: 400;
	margin: 0 0 1rem;
}

.pbc-service .pbc-service__text {
	color: var(--wp--preset--color--warm-gray);
	font-size: 0.95rem;
	line-height: 1.8;
	margin: 0 auto 1rem;
}

.pbc-service .pbc-service__link {
	margin: 0;
}

.pbc-service .pbc-service__link::before {
	background: linear-gradient(90deg, var(--wp--preset--color--tiffany), var(--wp--preset--color--tiffany-light));
	border-radius: 1px;
	content: "";
	display: block;
	height: 2px;
	margin: 0 auto 2rem;
	transition: width var(--pbc-duration-normal) var(--pbc-ease-out-expo);
	width: 40px;
}

.pbc-service .pbc-service__link a {
	color: var(--wp--preset--color--tiffany);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-decoration: none;
	text-transform: uppercase;
	transition: color var(--pbc-duration-fast) ease;
}

.pbc-service .pbc-service__link a::after {
	content: " →";
	display: inline-block;
	transition: transform var(--pbc-duration-fast) ease;
}

@media (hover: hover) {
	.pbc-experience .wp-block-column.pbc-service:hover {
		border-color: rgba(10, 186, 181, 0.2);
		box-shadow:
			0 30px 60px rgba(44, 44, 44, 0.08),
			0 10px 20px rgba(44, 44, 44, 0.04);
	}

	.pbc-service:hover .pbc-service__icon::before {
		background: radial-gradient(circle, rgba(10, 186, 181, 0.12) 0%, transparent 70%);
		transform: scale(1.3);
	}

	.pbc-service:hover .pbc-service__icon img {
		transform: scale(1.1);
	}

	.pbc-service:hover .pbc-service__link::before {
		width: 80px;
	}

	.pbc-service .pbc-service__link a:hover {
		color: var(--pbc-tiffany-dark);
	}

	.pbc-service .pbc-service__link a:hover::after {
		transform: translateX(4px);
	}
}

/* ------------------------------------------------------------ Statistics */
.pbc-stats {
	overflow: hidden;
}

.pbc-stats::before {
	background:
		radial-gradient(ellipse 50% 80% at 20% 50%, rgba(10, 186, 181, 0.08) 0%, transparent 60%),
		radial-gradient(ellipse 50% 80% at 80% 50%, rgba(212, 145, 92, 0.06) 0%, transparent 60%);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.pbc-stats .pbc-stats__grid {
	position: relative;
	z-index: 1;
}

.pbc-stats .wp-block-column.pbc-stat {
	padding: 3rem 1rem;
	position: relative;
	text-align: center;
}

.pbc-stats .wp-block-column.pbc-stat:not(:last-child)::after {
	background: linear-gradient(to bottom, transparent, rgba(129, 216, 208, 0.2), transparent);
	content: "";
	height: 60%;
	position: absolute;
	right: -1rem;
	top: 20%;
	width: 1px;
}

.pbc-stat .pbc-stat__value {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(3rem, 6vw, 5rem);
	font-weight: 300;
	line-height: 1;
	margin: 0 0 1rem;
	text-shadow: 0 0 40px rgba(10, 186, 181, 0.2);
}

.pbc-stat .pbc-stat__suffix {
	color: var(--wp--preset--color--tiffany-light);
	font-size: 0.6em;
	font-weight: 400;
}

.pbc-stat .pbc-stat__label {
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	margin: 0;
	text-transform: uppercase;
}

.pbc-stat .pbc-stat__label::after {
	background: var(--wp--preset--color--amber);
	content: "";
	display: block;
	height: 1px;
	margin: 1rem auto 0;
	opacity: 0.4;
	width: 30px;
}

/* ----------------------------------------------------------- Testimonial */
.pbc-testimonial {
	overflow: hidden;
}

.pbc-testimonial .pbc-testimonial__inner {
	padding: 4rem 2rem;
	position: relative;
	text-align: center;
}

.pbc-testimonial .pbc-testimonial__inner::before,
.pbc-testimonial .pbc-testimonial__inner::after {
	color: var(--wp--preset--color--tiffany);
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(8rem, 20vw, 16rem);
	font-weight: 300;
	line-height: 1;
	opacity: 0.06;
	pointer-events: none;
	position: absolute;
	user-select: none;
}

.pbc-testimonial .pbc-testimonial__inner::before {
	content: "“";
	left: -0.1em;
	top: -0.15em;
}

.pbc-testimonial .pbc-testimonial__inner::after {
	bottom: -0.6em;
	content: "”";
	right: -0.05em;
}

.pbc-testimonial .pbc-testimonial__inner .pbc-divider {
	margin-bottom: 4rem;
}

.pbc-testimonial .pbc-testimonial__quote {
	border: 0;
	margin: 0;
	padding: 0;
	position: relative;
	z-index: 1;
}

.pbc-testimonial .pbc-testimonial__quote p {
	color: var(--wp--preset--color--charcoal);
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	font-style: italic;
	font-weight: 300;
	line-height: 1.4;
	margin: 0;
	max-width: none;
}

.pbc-testimonial .pbc-testimonial__quote cite {
	color: var(--wp--preset--color--warm-gray);
	display: block;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.85rem;
	font-style: normal;
	font-weight: 500;
	letter-spacing: 0.1em;
	margin-top: 4rem;
	text-transform: uppercase;
}

/* ----------------------------------------------------------- Booking CTA */
.pbc-booking-cta {
	background: linear-gradient(180deg, var(--wp--preset--color--warm-white) 0%, var(--wp--preset--color--cream-dark) 100%);
}

.pbc-booking-cta::before {
	background: linear-gradient(to right, transparent, var(--wp--preset--color--tiffany-light), transparent);
	content: "";
	height: 1px;
	left: 0;
	opacity: 0.2;
	position: absolute;
	right: 0;
	top: 0;
}

.pbc-booking-cta .pbc-booking-cta__inner {
	text-align: center;
}

.pbc-booking-cta .pbc-booking-cta__inner .pbc-divider {
	margin-bottom: 4rem;
}

.pbc-booking-cta .pbc-booking-cta__title {
	font-size: clamp(2rem, 5vw, 4rem);
	font-weight: 300;
	letter-spacing: -0.02em;
	line-height: 1.15;
	margin: 0 0 2rem;
}

.pbc-booking-cta .pbc-booking-cta__title em {
	color: var(--wp--preset--color--tiffany);
	font-style: italic;
}

.pbc-booking-cta .pbc-booking-cta__text {
	color: var(--wp--preset--color--warm-gray);
	font-size: clamp(0.95rem, 1.2vw, 1.05rem);
	line-height: 1.8;
	margin: 0 auto 4rem;
}

/* ------------------------------------------------------------ Responsive */
@media (max-width: 1024px) {
	.pbc-gallery.is-layout-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.pbc-gallery .is-style-pbc-gallery-tall,
	.pbc-gallery .pbc-gallery__item--tall {
		min-height: 480px;
	}
}

@media (max-width: 768px) {
	.pbc-gallery.is-layout-grid {
		gap: 0.5rem;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pbc-gallery .pbc-gallery__item {
		min-height: 200px;
	}

	.pbc-gallery .is-style-pbc-gallery-wide,
	.pbc-gallery .pbc-gallery__item--wide {
		aspect-ratio: 16 / 9;
		grid-column: span 2;
	}

	.pbc-gallery .is-style-pbc-gallery-tall,
	.pbc-gallery .pbc-gallery__item--tall {
		min-height: 420px;
	}

	.pbc-hero .pbc-hero__actions {
		flex-direction: column;
	}

	.pbc-hero .pbc-hero__actions .wp-block-button {
		max-width: 280px;
		width: 100%;
	}

	.pbc-hero .pbc-hero__actions .wp-block-button__link {
		justify-content: center;
		width: 100%;
	}

	.pbc-experience .wp-block-column.pbc-service {
		padding: 2rem;
	}

	.pbc-stats .wp-block-column.pbc-stat {
		padding: 2rem 1rem;
	}

	.pbc-stats .wp-block-column.pbc-stat:not(:last-child)::after {
		bottom: 0;
		height: 1px;
		left: 20%;
		right: 20%;
		top: auto;
		width: auto;
	}

	.pbc-testimonial .pbc-testimonial__inner {
		padding: 4rem 0;
	}

	.pbc-testimonial .pbc-testimonial__inner::before,
	.pbc-testimonial .pbc-testimonial__inner::after {
		font-size: 6rem;
	}
}

@media (max-width: 480px) {
	.pbc-gallery.is-layout-grid {
		grid-template-columns: 1fr;
	}

	.pbc-gallery .is-style-pbc-gallery-wide,
	.pbc-gallery .pbc-gallery__item--wide {
		aspect-ratio: 16 / 10;
		grid-column: span 1;
	}

	.pbc-gallery .is-style-pbc-gallery-tall,
	.pbc-gallery .pbc-gallery__item--tall {
		aspect-ratio: 3 / 4;
		grid-row: span 1;
		min-height: 300px;
	}

	.pbc-gallery .pbc-gallery__item {
		aspect-ratio: 4 / 3;
	}

	.pbc-hero::after {
		display: none;
	}

	.pbc-stat .pbc-stat__value {
		font-size: 3rem;
	}

	.pbc-testimonial .pbc-testimonial__inner::before,
	.pbc-testimonial .pbc-testimonial__inner::after {
		font-size: 5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pbc-hero::before,
	.pbc-hero::after,
	.pbc-hero .pbc-hero__title em {
		animation: none;
	}

	.pbc-hero::after {
		opacity: 0.6;
	}

	.pbc-gallery .pbc-gallery__item img,
	.pbc-experience .wp-block-column.pbc-service {
		transition: none;
	}
}
