/**
 * Prilia Beauty — gaya global tambahan.
 * Dipakai bersama theme.json oleh pola beranda.
 */

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

/* Fokus keyboard yang terlihat. */
a:focus-visible,
.wp-block-button__link:focus-visible {
	outline: 2px solid var(--wp--preset--color--gold-deep);
	outline-offset: 3px;
}

/* Header: pil tombol WhatsApp. */
.pb-wa-pill {
	margin: 0;
}

.pb-wa-pill a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0.55rem 1.4rem;
	border-radius: 999px;
	background-image: var(--wp--preset--gradient--gold-shine);
	color: var(--wp--preset--color--white);
	font-size: 0.9rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: filter 0.2s ease;
}

.pb-wa-pill a:hover {
	filter: brightness(0.93);
}

/* Hover link navigasi. */
.wp-block-navigation .menu-link {
	transition: color 0.2s ease;
}

.wp-block-navigation .menu-link:hover {
	color: var(--wp--preset--color--gold);
}

/* Hero: sudut floral, bingkai lengkung, tiket promo. */
.pb-hero {
	position: relative;
	overflow: hidden;
}

.pb-hero::before {
	content: "";
	position: absolute;
	top: -28px;
	right: -28px;
	width: 250px;
	height: 250px;
	background: url('/wp-content/themes/prilia-beauty/assets/floral-blush.svg') no-repeat right top / 100% 100%;
	opacity: 0.55;
	pointer-events: none;
}

.pb-model-img {
	margin: 0 auto;
}

.pb-model-img img {
	width: 100%;
	max-width: 380px;
	height: auto;
	border-radius: 999px 999px 28px 28px;
	border: 1px solid rgba(194, 154, 75, 0.45);
	box-shadow: 0 30px 60px -30px rgba(140, 109, 47, 0.45);
}

.pb-hero-frame {
	position: relative;
	padding-bottom: 1.5rem;
}

.pb-ticket {
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%) rotate(-2deg);
	width: max-content;
	max-width: 90%;
	background: var(--wp--preset--color--navy);
	border-radius: 14px;
	padding: 0.85rem 1.5rem;
	text-align: center;
	box-shadow: 0 20px 36px -18px rgba(16, 26, 48, 0.55);
	margin: 0;
	z-index: 1;
}

.pb-ticket p {
	white-space: nowrap;
}

/* Tile grid layanan. */
.pb-services .pb-svc-img {
	margin: 0 0 1rem;
	border-radius: 14px;
	overflow: hidden;
}

.pb-services .pb-svc-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.pb-services .pb-svc-img:hover img {
	transform: scale(1.05);
}

/* Tile Pakaian Adat mengikuti tinggi baris. */
.pb-adat-tile {
	min-height: 100%;
}

/* Tentang: pilar & foto bingkai. */
.pb-pillar {
	border-left: 3px solid rgba(194, 154, 75, 0.5);
	padding-left: 1.1rem;
}

.pb-tentang-frame img {
	width: 100%;
	height: auto;
	border-radius: 20px;
	border: 1px solid rgba(194, 154, 75, 0.4);
	box-shadow: 0 26px 52px -28px rgba(140, 109, 47, 0.4);
}

/* Promo: sudut floral emas di atas navy. */
.pb-promo {
	position: relative;
	overflow: hidden;
}

.pb-promo::before {
	content: "";
	position: absolute;
	top: -28px;
	left: -28px;
	width: 250px;
	height: 250px;
	background: url('/wp-content/themes/prilia-beauty/assets/floral-gold.svg') no-repeat left top / 100% 100%;
	opacity: 0.5;
	pointer-events: none;
}

@media (max-width: 782px) {
	.pb-hero::before,
	.pb-promo::before {
		display: none;
	}
}

@media (max-width: 600px) {
	.pb-ticket {
		position: static;
		transform: rotate(-2deg);
		margin: 0.75rem auto 0;
		max-width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pb-services .pb-svc-img img {
		transition: none;
	}

	.pb-services .pb-svc-img:hover img {
		transform: none;
	}

	.pb-ticket {
		transform: none;
	}
}
