/*
Theme Name: Aurora Glass
Theme URI: https://pepperinsalt.com/
Author: Kacy Culpepper / Pepper in Salt
Description: Glassmorphic Pepper in Salt theme — aurora backdrop, frosted glass, light/dark mode, playful loaders, page fades, micro-delights, Customizer brand colors, contact form, patterns, baseline WooCommerce.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
License: GPL v2 or later
Text Domain: auroraglass
*/

/* ============================================================
   AURORA BACKGROUND
   A handful of large, blurred, radial gradient blobs, fixed to
   the viewport, drifting slowly. Pure CSS, no JS, no images.
   Sits behind everything at z-index:-1; glass panels above it
   let it show through via backdrop-filter.
============================================================ */
.aurora-bg {
	position: fixed;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	background: #100e14;
}

.aurora-bg::before,
.aurora-bg::after,
.aurora-bg span {
	content: "";
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.55;
	will-change: transform;
}

.aurora-bg::before {
	width: 60vw;
	height: 60vw;
	top: -15vw;
	left: -10vw;
	background: radial-gradient(circle, #FF3CAC 0%, transparent 70%);
	animation: drift-a 38s ease-in-out infinite alternate;
}

.aurora-bg::after {
	width: 55vw;
	height: 55vw;
	bottom: -20vw;
	right: -12vw;
	background: radial-gradient(circle, #22D3EE 0%, transparent 70%);
	animation: drift-b 44s ease-in-out infinite alternate;
}

.aurora-bg span {
	width: 45vw;
	height: 45vw;
	top: 30vh;
	left: 35vw;
	background: radial-gradient(circle, #FFB020 0%, transparent 70%);
	animation: drift-c 32s ease-in-out infinite alternate;
}

@keyframes drift-a {
	from { transform: translate(0, 0) scale(1); }
	to   { transform: translate(6vw, 8vh) scale(1.08); }
}
@keyframes drift-b {
	from { transform: translate(0, 0) scale(1); }
	to   { transform: translate(-7vw, -6vh) scale(1.05); }
}
@keyframes drift-c {
	from { transform: translate(-4vw, 3vh) scale(1); }
	to   { transform: translate(5vw, -5vh) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
	.aurora-bg::before, .aurora-bg::after, .aurora-bg span {
		animation: none !important;
	}
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ============================================================
   TYPE RENDERING — tuned for 45+ readability & trust
   Display: Fraunces (warm premium serif)
   Body: Source Sans 3 (large, open, easy on the eyes)
============================================================ */
html {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
body {
	font-optical-sizing: auto;
	font-size: 1.1875rem;
	line-height: 1.7;
	letter-spacing: 0.01em;
}
h1, h2, h3, h4, .has-display-font-family {
	text-wrap: balance;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.18;
}
h1.has-xx-large-font-size,
.wp-block-heading.has-xx-large-font-size {
	font-weight: 500;
	max-width: 22ch; /* short hero lines for presence; wraps cleanly */
}
main > .wp-block-group p,
main .wp-block-column p,
main li {
	max-width: 62ch;
}
p { text-wrap: pretty; }

/* Professional eyebrows — less "dev console", more editorial */
.pis-eyebrow,
.has-mono-font-family.has-small-font-size.has-cyan-color {
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: 0.8125rem !important;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.95;
}

/* ============================================================
   GLASS PANELS — hierarchy: full glass vs quiet surface
============================================================ */
.glass {
	background: var(--wp--preset--color--glass-dark, rgba(15,15,30,0.45));
	border: 1px solid var(--wp--preset--color--glass-border, rgba(255,255,255,0.18));
	border-radius: 22px;
	backdrop-filter: blur(22px) saturate(160%);
	-webkit-backdrop-filter: blur(22px) saturate(160%);
	box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

/* Secondary cards: less blur so hero/nav stay special */
main .wp-block-column.glass,
main .wp-block-group.glass.pis-surface-quiet,
.glass.pis-surface-quiet {
	backdrop-filter: blur(12px) saturate(140%);
	-webkit-backdrop-filter: blur(12px) saturate(140%);
	box-shadow: 0 4px 18px rgba(0,0,0,0.22);
	background: rgba(15,15,30,0.38);
}
html[data-theme="light"] main .wp-block-column.glass,
html[data-theme="light"] .glass.pis-surface-quiet {
	background: rgba(255,255,255,0.48);
	box-shadow: 0 4px 18px rgba(20,18,31,0.08);
}

.glass-nav {
	background: rgba(15,15,30,0.55);
	border-bottom: 1px solid rgba(255,255,255,0.12);
	backdrop-filter: blur(18px) saturate(160%);
	-webkit-backdrop-filter: blur(18px) saturate(160%);
}

/* Fallback for browsers without backdrop-filter support (older Firefox/Android WebView):
   drop the blur, keep enough opacity that text stays readable. */
@supports not (backdrop-filter: blur(1px)) {
	.glass, .glass-nav { background: rgba(12,12,26,0.92); }
}

:focus-visible {
	outline: 2px solid var(--wp--preset--color--cyan);
	outline-offset: 2px;
}

html { scroll-behavior: smooth; }

img { border-radius: 18px; }

.wp-block-template-part { display: contents; }

/* ============================================================
   LIGHT / DARK MODE
   Overrides the same --wp--preset--color--* custom properties
   WordPress already generates from theme.json, scoped to
   html[data-theme="light"]. !important guarantees this wins
   regardless of where core prints its own inline global-styles
   block relative to this stylesheet in <head>.
============================================================ */
html[data-theme="light"] {
	--wp--preset--color--void: #F5F4FB !important;
	--wp--preset--color--glass-dark: rgba(255,255,255,0.55) !important;
	--wp--preset--color--glass-border: rgba(10,10,30,0.12) !important;
	--wp--preset--color--cloud: #14121F !important;
	--wp--preset--color--cloud-dim: #4B4863 !important;
	--wp--preset--color--magenta: #D6198C !important;
	--wp--preset--color--cyan: #0891B2 !important;
	--wp--preset--color--amber: #B45309 !important;
	--wp--preset--color--violet: #6D28D9 !important;
}

html,
body {
	transition: background-color 0.4s ease, color 0.4s ease;
}

.glass, .glass-nav, .aurora-bg {
	transition: background-color 0.4s ease, border-color 0.4s ease;
}

html[data-theme="light"] .aurora-bg {
	background: #F5F4FB;
}

html[data-theme="light"] .aurora-bg::before,
html[data-theme="light"] .aurora-bg::after,
html[data-theme="light"] .aurora-bg span {
	opacity: 0.28;
}

html[data-theme="light"] .glass,
html[data-theme="light"] .glass-nav {
	box-shadow: 0 8px 32px rgba(20,18,31,0.10);
}

@supports not (backdrop-filter: blur(1px)) {
	html[data-theme="light"] .glass,
	html[data-theme="light"] .glass-nav {
		background: rgba(245,244,251,0.96);
	}
}

/* ============================================================
   THEME + MENU TOGGLE BUTTONS
============================================================ */
.site-header-actions {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--wp--preset--color--glass-border, rgba(255,255,255,0.18));
	border-radius: 999px;
	color: var(--wp--preset--color--cloud);
	cursor: pointer;
	transition: transform 0.25s ease, color 0.25s ease;
}
.theme-toggle:hover { transform: rotate(-12deg) scale(1.05); color: var(--wp--preset--color--cyan); }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: none; }

.menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.55rem 1rem 0.55rem 0.85rem;
	border: 1px solid var(--wp--preset--color--glass-border, rgba(255,255,255,0.18));
	border-radius: 999px;
	color: var(--wp--preset--color--cloud);
	cursor: pointer;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.875rem;
	font-weight: 600;
}
.menu-toggle-lines { display: flex; flex-direction: column; gap: 4px; width: 16px; }
.menu-toggle-lines span { display: block; height: 2px; width: 100%; background: currentColor; border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ============================================================
   FULL-SCREEN SITE MENU
============================================================ */
.site-menu { position: fixed; inset: 0; z-index: 100; }
.site-menu[hidden] { display: none; }

.site-menu-backdrop {
	position: absolute; inset: 0;
	background: rgba(5,5,15,0.55);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	opacity: 0;
	transition: opacity 0.35s ease;
}
html[data-theme="light"] .site-menu-backdrop { background: rgba(20,18,31,0.35); }
.site-menu.is-open .site-menu-backdrop { opacity: 1; }

.site-menu-panel {
	position: absolute;
	inset: 2rem;
	margin: auto;
	max-width: 1140px;
	max-height: calc(100vh - 4rem);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 28px;
	opacity: 0;
	transform: translateY(24px) scale(0.98);
	transition: transform 0.45s cubic-bezier(.16,.8,.24,1), opacity 0.35s ease;
}
.site-menu.is-open .site-menu-panel { opacity: 1; transform: none; }

.site-menu-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.5rem 2rem;
	border-bottom: 1px solid var(--wp--preset--color--glass-border);
	flex-shrink: 0;
}
.site-menu-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.875rem;
	color: var(--wp--preset--color--cyan);
}
.site-menu-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	border: 1px solid var(--wp--preset--color--glass-border);
	color: var(--wp--preset--color--cloud);
	cursor: pointer;
	transition: transform 0.25s ease, color 0.25s ease;
}
.site-menu-close:hover { transform: rotate(90deg); color: var(--wp--preset--color--magenta); }

.site-menu-body {
	display: flex;
	gap: 2.5rem;
	padding: 2rem;
	overflow-y: auto;
	flex: 1;
}
.site-menu-links {
	display: flex;
	flex-wrap: wrap;
	gap: 2.5rem;
	flex: 1;
}
.site-menu-group { min-width: 200px; }
.site-menu-group-label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--cloud-dim);
	margin: 0 0 0.75rem;
}
.site-menu-link {
	display: flex;
	align-items: baseline;
	gap: 0.85rem;
	padding: 0.5rem 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
	font-weight: 700;
	color: var(--wp--preset--color--cloud);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	opacity: 0;
	transform: translateX(-14px);
	transition: color 0.25s ease, transform 0.25s ease, opacity 0.4s ease, border-color 0.25s ease, padding 0.25s ease;
}
.site-menu.is-open .site-menu-link { opacity: 1; transform: none; }
.site-menu-link:hover, .site-menu-link:focus-visible {
	color: var(--wp--preset--color--magenta);
	padding-left: 0.4rem;
	border-color: var(--wp--preset--color--glass-border);
}
.site-menu-index {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8rem;
	color: var(--wp--preset--color--cyan);
	font-weight: 400;
}

.site-menu-preview {
	width: 300px;
	flex-shrink: 0;
	align-self: flex-start;
	position: sticky;
	top: 0;
}
.site-menu-preview-card {
	padding: 1.75rem 1.5rem;
	min-height: 220px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 0.35rem;
}
.site-menu-preview-kicker {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.75rem;
	color: var(--wp--preset--color--cyan);
	margin: 0 0 0.75rem;
}
.site-menu-preview-line {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: 1.35rem;
	line-height: 1.2;
	letter-spacing: -0.03em;
	margin: 0;
	color: var(--wp--preset--color--cloud);
}
.site-menu-preview-line--accent {
	color: var(--wp--preset--color--magenta);
}
@media (max-width: 900px) {
	.site-menu-preview { display: none; }
}
@media (max-width: 640px) {
	.site-menu-panel { inset: 0; border-radius: 0; max-height: 100vh; }
	.site-menu-links { gap: 1.75rem; }
}

.site-menu-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem 2rem;
	border-top: 1px solid var(--wp--preset--color--glass-border);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8rem;
	color: var(--wp--preset--color--cloud-dim);
	flex-shrink: 0;
}
.site-menu-bottom a { color: var(--wp--preset--color--cloud-dim); }

body.site-menu-open { overflow: hidden; }

/* ============================================================
   SCROLL REVEAL
============================================================ */
.reveal-init {
	opacity: 0;
	transform: translateY(24px);
}
.reveal-init.is-visible {
	opacity: 1;
	transform: none;
	transition: opacity 0.7s cubic-bezier(.16,.8,.24,1), transform 0.7s cubic-bezier(.16,.8,.24,1);
}

/* ============================================================
   STICKY HEADER SHRINK
============================================================ */
.site-header { transition: padding 0.3s ease, box-shadow 0.3s ease; }
.site-header.is-scrolled {
	padding-top: 0.6rem !important;
	padding-bottom: 0.6rem !important;
	box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

/* ============================================================
   BACK TO TOP
============================================================ */
.back-to-top {
	position: fixed;
	right: 1.5rem;
	bottom: 1.5rem;
	width: 48px;
	height: 48px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--cloud);
	z-index: 60;
	opacity: 0;
	pointer-events: none;
	transform: translateY(12px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { color: var(--wp--preset--color--cyan); }

/* ============================================================
   READING PROGRESS (single post)
============================================================ */
.reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 0%;
	background: linear-gradient(90deg, #FF3CAC, #7C3AED, #22D3EE, #FFB020);
	z-index: 80;
	transition: width 0.1s linear;
}

/* ============================================================
   FAQ ACCORDION
============================================================ */
.wp-block-details summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	padding-bottom: 1rem;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "";
	flex-shrink: 0;
	width: 9px;
	height: 9px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.3s ease;
}
.wp-block-details[open] summary::after { transform: rotate(-135deg); }
.wp-block-details[open] summary { margin-bottom: 0.25rem; }

/* ============================================================
   PRICING TOGGLE
============================================================ */
.pricing-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.85rem;
	margin-top: 1.5rem;
}
.pricing-toggle-label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.875rem;
	color: var(--wp--preset--color--cloud-dim);
	transition: color 0.2s ease;
}
.pricing-toggle-label.is-active { color: var(--wp--preset--color--cloud); }
.pricing-toggle-switch {
	position: relative;
	width: 52px;
	height: 28px;
	border-radius: 999px;
	background: var(--wp--preset--color--glass-border);
	border: none;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
}
.pricing-toggle-switch::after {
	content: "";
	position: absolute;
	top: 3px; left: 3px;
	width: 22px; height: 22px;
	border-radius: 50%;
	background: var(--wp--preset--color--cyan);
	transition: transform 0.3s ease, background 0.3s ease;
}
.pricing-toggle-switch[aria-checked="true"]::after {
	transform: translateX(24px);
	background: var(--wp--preset--color--magenta);
}
.pricing-save-badge {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.75rem;
	color: var(--wp--preset--color--amber);
	border: 1px solid var(--wp--preset--color--amber);
	border-radius: 999px;
	padding: 0.2rem 0.65rem;
	opacity: 0;
	transition: opacity 0.25s ease;
}
.pricing-save-badge.is-visible { opacity: 1; }
[data-price-annual] { display: none; }
.pricing-annual [data-price-annual] { display: inline; }
.pricing-annual [data-price-monthly] { display: none; }

/* ============================================================
   TESTIMONIALS CAROUSEL
============================================================ */
.testimonial-carousel { position: relative; }
.testimonial-viewport { overflow: hidden; border-radius: 22px; }
.testimonial-track {
	display: flex;
	transition: transform 0.6s cubic-bezier(.16,.8,.24,1);
}
.testimonial-slide { flex: 0 0 100%; }
.carousel-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	margin-top: 1.5rem;
}
.carousel-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 999px;
	border: 1px solid var(--wp--preset--color--glass-border);
	color: var(--wp--preset--color--cloud);
	cursor: pointer;
	transition: color 0.2s ease, transform 0.2s ease;
}
.carousel-arrow:hover { color: var(--wp--preset--color--cyan); transform: scale(1.08); }
.carousel-dots { display: flex; gap: 0.5rem; }
.carousel-dot {
	width: 8px; height: 8px;
	border-radius: 999px;
	background: var(--wp--preset--color--glass-border);
	border: none;
	cursor: pointer;
	padding: 0;
	transition: width 0.3s ease, background 0.3s ease;
}
.carousel-dot.is-active { background: var(--wp--preset--color--cyan); width: 22px; }

/* ============================================================
   GALLERY — FILTER + MASONRY + LIGHTBOX
============================================================ */
.gallery-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 1.5rem 0 2rem;
}
.filter-pill {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8rem;
	padding: 0.5rem 1.1rem;
	border-radius: 999px;
	border: 1px solid var(--wp--preset--color--glass-border);
	color: var(--wp--preset--color--cloud-dim);
	background: transparent;
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.filter-pill:hover { color: var(--wp--preset--color--cloud); }
.filter-pill[aria-pressed="true"] {
	color: #0a0a17;
	background: var(--wp--preset--color--cyan);
	border-color: var(--wp--preset--color--cyan);
}
html[data-theme="light"] .filter-pill[aria-pressed="true"] { color: #F5F4FB; }

.gallery-grid {
	columns: 3 260px;
	column-gap: 1.25rem;
}
@media (max-width: 640px) { .gallery-grid { columns: 1 260px; } }

.gallery-item {
	display: block;
	width: 100%;
	break-inside: avoid;
	margin-bottom: 1.25rem;
	border-radius: 20px;
	overflow: hidden;
	position: relative;
	border: none;
	padding: 0;
	cursor: zoom-in;
	background: none;
}
.gallery-item.is-hidden { display: none; }
.gallery-item img {
	width: 100%;
	display: block;
	border-radius: 20px;
	transition: transform 0.5s ease;
}
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.06); }
.gallery-item-caption {
	position: absolute;
	inset: auto 0 0 0;
	padding: 1.25rem 1rem 0.9rem;
	background: linear-gradient(to top, rgba(5,5,15,0.85), transparent);
	color: #F8F7FF;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.85rem;
	text-align: left;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-item:hover .gallery-item-caption,
.gallery-item:focus-visible .gallery-item-caption { opacity: 1; transform: none; }

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
	position: absolute; inset: 0;
	background: rgba(5,5,15,0.88);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	opacity: 0;
	transition: opacity 0.3s ease;
}
.lightbox.is-open .lightbox-backdrop { opacity: 1; }
.lightbox-figure {
	position: relative;
	z-index: 1;
	max-width: min(88vw, 1100px);
	max-height: 82vh;
	text-align: center;
	opacity: 0;
	transform: scale(0.96);
	transition: opacity 0.3s ease, transform 0.35s cubic-bezier(.16,.8,.24,1);
}
.lightbox.is-open .lightbox-figure { opacity: 1; transform: none; }
.lightbox-figure img {
	max-width: 100%;
	max-height: 82vh;
	border-radius: 18px;
	display: block;
	margin: 0 auto;
	box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-caption {
	margin-top: 0.85rem;
	color: #F8F7FF;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.85rem;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
	position: fixed;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px; height: 48px;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,0.25);
	background: rgba(15,15,30,0.45);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	color: #F8F7FF;
	cursor: pointer;
	transition: transform 0.2s ease, color 0.2s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { color: #22D3EE; }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-counter {
	position: fixed;
	bottom: 1.5rem;
	left: 50%;
	transform: translateX(-50%);
	color: #C7C5DE;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8rem;
	z-index: 2;
}
@media (max-width: 640px) {
	.lightbox-prev, .lightbox-next { width: 40px; height: 40px; }
	.lightbox-prev { left: 0.5rem; }
	.lightbox-next { right: 0.5rem; }
}

/* ============================================================
   ACCESSIBILITY: SKIP LINK
============================================================ */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link.screen-reader-text:focus {
	position: fixed !important;
	top: 1rem; left: 1rem;
	width: auto; height: auto;
	clip: auto;
	z-index: 999;
	padding: 0.75rem 1.25rem;
	border-radius: 999px;
	background: var(--wp--preset--color--void, #0a0a17);
	color: var(--wp--preset--color--cloud, #F8F7FF);
	border: 1px solid var(--wp--preset--color--glass-border);
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	text-decoration: none;
}

/* ============================================================
   ANNOUNCEMENT BAR
============================================================ */
.announcement-bar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	padding: 0.65rem 3rem;
	border-radius: 0;
	border-left: none;
	border-right: none;
	border-top: none;
	text-align: center;
	font-size: 0.875rem;
}
.announcement-bar-text a {
	color: var(--wp--preset--color--cyan);
	font-weight: 600;
	margin-left: 0.4rem;
}
.announcement-bar-close {
	position: absolute;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px; height: 28px;
	border-radius: 999px;
	border: none;
	background: transparent;
	color: var(--wp--preset--color--cloud-dim);
	cursor: pointer;
}
.announcement-bar-close:hover { color: var(--wp--preset--color--cloud); }

/* ============================================================
   CONTACT FORM
============================================================ */
.contact-form-notice {
	padding: 1rem 1.25rem;
	border-radius: 16px;
	margin-bottom: 1.25rem;
	font-size: 0.9375rem;
}
.contact-form-notice-success { border-color: var(--wp--preset--color--cyan); }
.contact-form-notice-error { border-color: var(--wp--preset--color--magenta); }
.contact-form-field { margin-bottom: 1.1rem; }
.contact-form-field label {
	display: block;
	margin-bottom: 0.4rem;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8rem;
	color: var(--wp--preset--color--cloud-dim);
}
.contact-form-field input[type="text"],
.contact-form-field input[type="email"],
.contact-form-field textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border-radius: 12px;
	border: 1px solid var(--wp--preset--color--glass-border);
	background: rgba(255,255,255,0.04);
	color: var(--wp--preset--color--cloud);
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
}
html[data-theme="light"] .contact-form-field input[type="text"],
html[data-theme="light"] .contact-form-field input[type="email"],
html[data-theme="light"] .contact-form-field textarea {
	background: rgba(10,10,30,0.03);
}
.contact-form-field input:focus,
.contact-form-field textarea:focus {
	outline: 2px solid var(--wp--preset--color--cyan);
	outline-offset: 1px;
}
.contact-form-field textarea { resize: vertical; }
.contact-form-honeypot {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.contact-form button[type="submit"] {
	border: none;
	cursor: pointer;
}

/* ============================================================
   FOOTER WIDGETS
============================================================ */
.footer-widgets-row {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	justify-content: center;
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--wp--preset--color--glass-border);
	text-align: left;
}
.footer-widget { flex: 1 1 200px; }
.footer-widget-title {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--cloud-dim);
	margin-bottom: 0.5rem;
}

/* ============================================================
   PLAYFUL LOADER
============================================================ */
html.pis-loading body > *:not(.pis-loader) {
	/* keep interactive shell; content under veil */
}
.pis-loader {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(10, 8, 16, 0.55);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	opacity: 1;
	transition: opacity 0.4s cubic-bezier(.16,.8,.24,1), visibility 0.4s;
}
.pis-loader.is-done {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}
.pis-loader__glass {
	position: relative;
	min-width: min(88vw, 280px);
	padding: 2rem 2.25rem;
	border-radius: 24px;
	background: rgba(15,15,30,0.55);
	border: 1px solid rgba(255,255,255,0.16);
	box-shadow: 0 16px 48px rgba(0,0,0,0.4);
	text-align: center;
	overflow: hidden;
}
.pis-loader__mark {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 64px;
	margin-bottom: 0.75rem;
	color: var(--wp--preset--color--cyan, #22D3EE);
}
.pis-loader__orb {
	display: block;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, #FF3CAC, #7C3AED 45%, #22D3EE 80%);
	filter: blur(0.2px);
	animation: pis-orb-pulse 1.1s ease-in-out infinite alternate;
}
.pis-loader--pulse .pis-loader__orb { animation-duration: 0.9s; }
.pis-loader__shaker {
	animation: pis-shaker-tilt 0.7s ease-in-out infinite alternate;
	transform-origin: 50% 20%;
}
.pis-loader__quip {
	margin: 0 0 1rem;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8rem;
	color: var(--wp--preset--color--cloud-dim, #C7C5DE);
	letter-spacing: 0.02em;
}
.pis-loader__bar {
	height: 3px;
	border-radius: 999px;
	background: rgba(255,255,255,0.1);
	overflow: hidden;
}
.pis-loader__bar span {
	display: block;
	height: 100%;
	width: 40%;
	border-radius: inherit;
	background: linear-gradient(90deg, #FF3CAC, #22D3EE, #FFB020);
	animation: pis-bar-slide 0.9s ease-in-out infinite;
}
.pis-loader__particles {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}
.pis-loader__flake {
	position: absolute;
	bottom: -8px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #FF3CAC;
	opacity: 0.85;
	animation: pis-flake-rise linear forwards;
}
.pis-loader__flake:nth-child(odd) { background: #22D3EE; width: 3px; height: 3px; }
.pis-loader__flake:nth-child(3n) { background: #FFB020; }

@keyframes pis-orb-pulse {
	from { transform: scale(0.92); opacity: 0.85; }
	to { transform: scale(1.08); opacity: 1; filter: blur(1px); }
}
@keyframes pis-shaker-tilt {
	from { transform: rotate(-8deg); }
	to { transform: rotate(10deg); }
}
@keyframes pis-bar-slide {
	0% { transform: translateX(-100%); }
	100% { transform: translateX(280%); }
}
@keyframes pis-flake-rise {
	0% { transform: translateY(0) scale(1); opacity: 0; }
	15% { opacity: 1; }
	100% { transform: translateY(-120px) scale(0.6); opacity: 0; }
}

/* ============================================================
   DELIGHT MICRO-MOMENTS
============================================================ */
.pis-delight-card {
	transform: perspective(800px) rotateX(var(--pis-tilt-x, 0deg)) rotateY(var(--pis-tilt-y, 0deg));
	transition: transform 0.2s ease-out, border-color 0.25s ease, box-shadow 0.25s ease;
	will-change: transform;
}
.pis-delight-card:hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--cyan) 55%, transparent);
	box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}
.pis-delight-cta {
	transition: transform 0.15s ease-out, background-color 0.2s ease;
	will-change: transform;
}
.aurora-bg.pis-aurora-breathe::before {
	opacity: 0.85;
	filter: blur(70px);
	transition: opacity 0.6s ease, filter 0.6s ease;
}
.pis-salt-grain {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 90;
	overflow: hidden;
}
.pis-salt-grain span {
	position: absolute;
	top: 0;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: rgba(248,247,255,0.75);
	animation: pis-grain-fall 1.2s ease-in forwards;
}
.pis-salt-grain span:nth-child(odd) { background: #FF3CAC; width: 2px; height: 2px; }
@keyframes pis-grain-fall {
	0% { transform: translateY(-10px) rotate(0deg); opacity: 0; }
	12% { opacity: 1; }
	100% { transform: translateY(220px) rotate(120deg); opacity: 0; }
}
.pis-footer-wink {
	text-decoration: underline !important;
	text-underline-offset: 4px;
	color: var(--wp--preset--color--magenta) !important;
	transition: color 0.3s ease;
}
html.pis-theme-flash .aurora-bg {
	filter: hue-rotate(25deg) saturate(1.2);
	transition: filter 0.35s ease;
}

@media (max-width: 640px) {
	.aurora-bg::before, .aurora-bg::after, .aurora-bg span {
		opacity: 0.4;
		filter: blur(70px);
	}
	.pis-delight-card { transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
	.pis-loader, .pis-loader__orb, .pis-loader__shaker, .pis-loader__bar span, .pis-loader__flake,
	.pis-salt-grain span, .pis-delight-card, .pis-delight-cta {
		animation: none !important;
		transition: none !important;
	}
	.pis-delight-card { transform: none !important; }
}
body.pis-force-reduce-motion .pis-loader,
body.pis-force-reduce-motion .pis-delight-card {
	animation: none !important;
	transform: none !important;
}
