/* ==========================================================================
   Palm Valley — Verdant Valley Bloom (Direction 3) extras
   These styles cover what theme.json cannot express: animations,
   the framed hero card, palm-frond ornaments, hover lifts, and the
   utility/footer bars.
   Color values reference --wp--preset--color--* so they stay in sync
   with theme.json.
   ========================================================================== */

:root {
	--pv-shadow-warm: 0 12px 32px -12px rgba(138, 74, 48, 0.28),
		0 4px 12px -4px rgba(138, 74, 48, 0.18);
	--pv-shadow-card: 0 30px 60px -30px rgba(79, 102, 80, 0.35),
		0 8px 24px -8px rgba(79, 102, 80, 0.18);
}

/* --- Body parchment grain ---------------------------------------------- */

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 1;
	opacity: 0.5;
	mix-blend-mode: multiply;
	background-image:
		radial-gradient(circle at 20% 30%, rgba(138, 74, 48, 0.04) 0, transparent 40%),
		radial-gradient(circle at 80% 70%, rgba(79, 102, 80, 0.04) 0, transparent 40%);
}

body::after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 2;
	opacity: 0.35;
	background-image:
		repeating-radial-gradient(circle at 10% 20%, rgba(46, 42, 34, 0.025) 0, rgba(46, 42, 34, 0.025) 1px, transparent 1px, transparent 3px),
		repeating-radial-gradient(circle at 70% 80%, rgba(46, 42, 34, 0.02) 0, rgba(46, 42, 34, 0.02) 1px, transparent 1px, transparent 4px);
}

/* Keep app content above the parchment grain layers */
.wp-site-blocks { position: relative; z-index: 3; }

/* --- Header utility bar ------------------------------------------------ */

.pv-utility-bar {
	background: var(--wp--preset--color--deep-sage);
	color: var(--wp--preset--color--parchment);
	font-family: var(--wp--preset--font-family--secondary);
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	border-bottom: 1px solid rgba(244, 236, 223, 0.08);
	min-height: 38px;
}

.pv-utility-bar a,
.pv-utility-bar p,
.pv-utility-bar span {
	color: var(--wp--preset--color--parchment);
}

.pv-utility-bar a {
	opacity: 0.92;
	text-decoration: none;
	transition: opacity 0.25s ease, color 0.25s ease;
}

.pv-utility-bar a:hover {
	opacity: 1;
	color: #fff;
	text-decoration: none;
}

.pv-utility-phone {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.pv-utility-phone svg {
	width: 12px;
	height: 12px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: 0 0 auto;
}

.pv-search-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 4px 12px;
	border: 1px solid rgba(244, 236, 223, 0.25);
	border-radius: 999px;
	cursor: pointer;
	transition: border-color 0.25s ease;
}

.pv-search-pill:hover { border-color: rgba(244, 236, 223, 0.55); }

.pv-search-pill svg {
	width: 12px;
	height: 12px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* --- Main header ------------------------------------------------------- */

.pv-main-header {
	background: var(--wp--preset--color--parchment);
	border-bottom: 1px solid rgba(107, 128, 104, 0.18);
	position: relative;
}

.pv-main-header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 1px;
	pointer-events: none;
	background: linear-gradient(90deg,
		transparent,
		rgba(107, 128, 104, 0.35) 20%,
		rgba(196, 122, 90, 0.45) 50%,
		rgba(107, 128, 104, 0.35) 80%,
		transparent);
}

.pv-brand-link {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	text-decoration: none;
}

.pv-brand-logo {
	display: block;
	height: 76px;
	width: auto;
	max-width: 280px;
}

/* --- Navigation block (header) ---------------------------------------- */

.pv-main-header .wp-block-navigation {
	justify-content: center;
}

.pv-main-header .wp-block-navigation .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--secondary);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink);
	padding: 6px 2px;
	position: relative;
	transition: color 0.25s ease;
}

.pv-main-header .wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--forest-sage);
}

.pv-main-header .wp-block-navigation .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 0;
	height: 1px;
	background: var(--wp--preset--color--forest-sage);
	transition: width 0.35s ease, left 0.35s ease;
}

.pv-main-header .wp-block-navigation .wp-block-navigation-item__content:hover::after {
	width: 100%;
	left: 0;
}

/* Navigation submenu (dropdown) */
.wp-block-navigation .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--warm-white);
	border: 1px solid rgba(107, 128, 104, 0.22);
	box-shadow: var(--pv-shadow-warm);
	padding: 0.5rem 0;
}

.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--secondary);
	font-size: 0.74rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 0.6rem 1.1rem;
}

/* --- Mobile overlay menu ---------------------------------------------- */

.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--parchment);
	color: var(--wp--preset--color--ink);
	padding: 4rem 1.5rem 2rem;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--primary);
	font-size: 1.4rem;
	letter-spacing: 0.06em;
	text-transform: none;
	color: var(--wp--preset--color--darker-clay);
	padding: 0.85rem 0;
}

.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--ink);
}

.wp-block-navigation__responsive-container-open svg,
.wp-block-navigation__responsive-container-close svg {
	fill: currentColor;
}

/* --- Header CTA button ------------------------------------------------ */

.pv-header-cta .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.78rem 1.5rem;
	font-size: 0.74rem;
	letter-spacing: 0.18em;
	box-shadow: 0 6px 14px -6px rgba(138, 74, 48, 0.45);
	transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.pv-header-cta .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px -10px rgba(138, 74, 48, 0.6);
}

/* --- Hero --------------------------------------------------------------- */

.pv-hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4rem 1.25rem 5rem;
	overflow: hidden;
	z-index: 3;
}

/* Ambient drifting palm fronds (page-level, behind card) */
.pv-ambient-frond {
	position: absolute;
	pointer-events: none;
	opacity: 0.18;
	z-index: 0;
	will-change: transform;
}

.pv-ambient-frond.f1 {
	top: -60px;
	left: -80px;
	width: 420px;
	transform-origin: 30% 30%;
	animation: pv-drift-a 28s ease-in-out infinite;
}

.pv-ambient-frond.f2 {
	bottom: -90px;
	right: -100px;
	width: 480px;
	transform-origin: 70% 70%;
	animation: pv-drift-b 32s ease-in-out infinite;
	opacity: 0.16;
}

.pv-ambient-frond.f3 {
	top: 20%;
	right: 8%;
	width: 240px;
	opacity: 0.12;
	animation: pv-drift-c 24s ease-in-out infinite;
}

.pv-ambient-frond.f4 {
	bottom: 12%;
	left: 6%;
	width: 200px;
	opacity: 0.13;
	animation: pv-drift-c 26s ease-in-out infinite reverse;
}

@keyframes pv-drift-a {
	0%, 100% { transform: rotate(-4deg) translate(0, 0); }
	50%      { transform: rotate(2deg) translate(14px, 18px); }
}
@keyframes pv-drift-b {
	0%, 100% { transform: rotate(3deg) translate(0, 0); }
	50%      { transform: rotate(-3deg) translate(-18px, -14px); }
}
@keyframes pv-drift-c {
	0%, 100% { transform: rotate(0deg) translate(0, 0); }
	50%      { transform: rotate(6deg) translate(8px, -10px); }
}

/* The framed hero card */
.pv-hero-card {
	position: relative;
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	background: var(--wp--preset--color--warm-white);
	border: 1px solid rgba(107, 128, 104, 0.22);
	box-shadow: var(--pv-shadow-card);
	padding: 5rem clamp(1.5rem, 5vw, 5rem) 4.5rem;
	z-index: 2;
	opacity: 0;
	transform: scale(0.985) translateY(14px);
	animation: pv-card-in 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s forwards;
}

.pv-hero-card::before {
	content: "";
	position: absolute;
	inset: 14px;
	border: 1px solid rgba(107, 128, 104, 0.28);
	pointer-events: none;
	z-index: 1;
}

.pv-hero-card::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background:
		radial-gradient(ellipse at 20% 0%, rgba(196, 122, 90, 0.07) 0, transparent 55%),
		radial-gradient(ellipse at 100% 100%, rgba(107, 128, 104, 0.08) 0, transparent 55%);
}

@keyframes pv-card-in {
	to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Make sure inner blocks rise above the card pseudo-elements */
.pv-hero-card > * { position: relative; z-index: 2; }
.pv-hero-card .pv-corner-orn,
.pv-hero-card .pv-behind-frond { z-index: 1; }
.pv-hero-card .pv-hero-content { z-index: 4; }

/* Corner ornaments */
.pv-corner-orn {
	position: absolute;
	width: 150px;
	height: 150px;
	pointer-events: none;
}
.pv-corner-orn.tl { top: -10px; left: -10px; }
.pv-corner-orn.tr { top: -10px; right: -10px; transform: scaleX(-1); }
.pv-corner-orn.bl { bottom: -10px; left: -10px; transform: scaleY(-1); }
.pv-corner-orn.br { bottom: -10px; right: -10px; transform: scale(-1, -1); }

.pv-corner-orn path,
.pv-corner-orn line,
.pv-corner-orn circle {
	stroke: var(--wp--preset--color--deep-sage);
	stroke-width: 1.1;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 600;
	stroke-dashoffset: 600;
	animation: pv-draw-orn 2.4s ease-out 0.7s forwards;
}

.pv-corner-orn .accent {
	stroke: var(--wp--preset--color--terracotta);
	stroke-width: 1.2;
}

.pv-corner-orn .dot {
	fill: var(--wp--preset--color--terracotta);
	stroke: none;
	opacity: 0;
	stroke-dasharray: none;
	animation: pv-dot-in 0.6s ease 2.6s forwards;
}

@keyframes pv-draw-orn {
	to { stroke-dashoffset: 0; }
}
@keyframes pv-dot-in {
	to { opacity: 1; }
}

/* Behind-text large palm silhouettes (inside card) */
.pv-behind-frond {
	position: absolute;
	pointer-events: none;
	opacity: 0.14;
}
.pv-behind-frond.bf-left {
	top: 8%;
	left: -4%;
	width: 56%;
	transform-origin: 40% 50%;
	animation: pv-drift-a 30s ease-in-out infinite;
}
.pv-behind-frond.bf-right {
	bottom: 4%;
	right: -6%;
	width: 50%;
	transform-origin: 60% 50%;
	animation: pv-drift-b 26s ease-in-out infinite;
}

/* Hero content */
.pv-hero-content {
	text-align: center;
	max-width: 760px;
	margin: 0 auto;
}

.pv-hero-content > * { position: relative; }

.pv-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.85rem;
	font-family: var(--wp--preset--font-family--secondary);
	font-size: 0.68rem;
	letter-spacing: 0.42em;
	text-transform: uppercase;
	color: var(--wp--preset--color--forest-sage);
	margin: 0 auto 1.6rem;
	opacity: 0;
	animation: pv-fade-up 0.9s ease 0.9s forwards;
}

.pv-eyebrow::before,
.pv-eyebrow::after {
	content: "";
	width: 28px;
	height: 1px;
	background: currentColor;
	opacity: 0.6;
}

/* Medallion */
.pv-medallion-wrap {
	display: flex;
	justify-content: center;
	margin: 0 auto 1.4rem;
	opacity: 0;
	transform: scale(0.6);
	animation: pv-bloom 1s cubic-bezier(0.2, 1.3, 0.4, 1) 1.2s forwards;
}

.pv-medallion {
	width: 78px;
	height: 78px;
	transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
	animation: pv-medallion-pulse 6s ease-in-out infinite 2.5s;
}

.pv-medallion:hover { transform: rotate(18deg); }

@keyframes pv-bloom {
	to { opacity: 1; transform: scale(1); }
}
@keyframes pv-medallion-pulse {
	0%, 100% { filter: drop-shadow(0 4px 8px rgba(138, 74, 48, 0.18)); }
	50%      { filter: drop-shadow(0 6px 14px rgba(138, 74, 48, 0.32)); }
}

/* Hero headline (override h1 for the hero pattern) */
.pv-hero-content h1 {
	font-family: var(--wp--preset--font-family--primary);
	font-weight: 500;
	font-size: clamp(2.4rem, 6vw, 4.6rem);
	line-height: 1.05;
	letter-spacing: 0.045em;
	color: var(--wp--preset--color--ink);
	margin: 0 0 0.4rem;
	text-align: center;
}

.pv-accent-word {
	color: var(--wp--preset--color--deep-clay);
	font-style: italic;
	font-weight: 600;
}

/* Decorative leaf divider */
.pv-divider-leaf {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.85rem;
	margin: 1.4rem auto 1.6rem;
	opacity: 0;
	animation: pv-fade-up 0.8s ease 2.2s forwards;
}

.pv-divider-leaf .pv-line {
	width: 50px;
	height: 1px;
	background: rgba(107, 128, 104, 0.5);
	display: inline-block;
}

.pv-divider-leaf svg {
	width: 22px;
	height: 22px;
}

/* Hero subhead */
.pv-hero-content .pv-subhead {
	font-family: var(--wp--preset--font-family--secondary);
	font-size: 1.04rem;
	font-weight: 300;
	line-height: 1.7;
	color: rgba(46, 42, 34, 0.78);
	max-width: 560px;
	margin: 0 auto 2.5rem;
	opacity: 0;
	animation: pv-fade-up 0.9s ease 2.35s forwards;
}

/* CTA row */
.pv-hero-content .pv-cta-row {
	opacity: 0;
	animation: pv-fade-up 0.9s ease 2.5s forwards;
	justify-content: center !important;
}

/* Meta row */
.pv-meta-row {
	margin-top: 2.6rem !important;
	display: flex !important;
	justify-content: center;
	gap: 2.4rem;
	flex-wrap: wrap;
	font-family: var(--wp--preset--font-family--secondary);
	font-size: 0.7rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(79, 102, 80, 0.85);
	opacity: 0;
	animation: pv-fade-up 0.9s ease 2.7s forwards;
}

.pv-meta-row > * {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0 !important;
}

.pv-meta-row > *::before {
	content: "";
	width: 5px;
	height: 5px;
	background: var(--wp--preset--color--terracotta);
	border-radius: 50%;
	flex: 0 0 auto;
}

@keyframes pv-fade-up {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* --- Section helpers --------------------------------------------------- */

.pv-section-eyebrow {
	display: block;
	font-family: var(--wp--preset--font-family--secondary);
	font-size: 0.7rem;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--wp--preset--color--forest-sage);
	text-align: center;
	margin-bottom: 0.75rem;
}

.pv-section-h2 {
	text-align: center;
	margin-top: 0;
	margin-bottom: 2rem;
}

/* --- Why Choose pillars ----------------------------------------------- */

.pv-pillar {
	text-align: center;
	padding: 1.5rem;
}

.pv-pillar svg {
	width: 56px;
	height: 56px;
	margin: 0 auto 1rem;
	display: block;
	stroke: var(--wp--preset--color--deep-sage);
	fill: none;
	stroke-width: 1.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pv-pillar h3 {
	margin: 0.5rem 0 0.6rem;
}

.pv-pillar p {
	color: rgba(46, 42, 34, 0.78);
	font-size: 0.95rem;
	line-height: 1.65;
	max-width: 32ch;
	margin: 0 auto;
}

/* --- Service cards ----------------------------------------------------- */

.pv-service-card {
	background: var(--wp--preset--color--warm-white);
	border: 1px solid rgba(107, 128, 104, 0.18);
	padding: 2rem;
	position: relative;
	transition: transform 0.4s ease, box-shadow 0.4s ease;
	height: 100%;
}

.pv-service-card::before {
	content: "";
	position: absolute;
	inset: 8px;
	border: 1px solid rgba(196, 122, 90, 0.18);
	pointer-events: none;
}

.pv-service-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--pv-shadow-warm);
}

.pv-service-card h3 {
	margin: 0 0 0.75rem;
	color: var(--wp--preset--color--darker-clay);
}

.pv-service-card .pv-service-desc {
	color: rgba(46, 42, 34, 0.78);
	font-size: 0.95rem;
	line-height: 1.65;
}

.pv-service-card .pv-service-link {
	font-family: var(--wp--preset--font-family--secondary);
	font-size: 0.74rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--terracotta);
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 0.75rem;
}

.pv-service-card .pv-service-link:hover {
	color: var(--wp--preset--color--deep-clay);
	text-decoration: none;
}

.pv-service-quote {
	border-top: 1px solid rgba(107, 128, 104, 0.2);
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	font-family: var(--wp--preset--font-family--primary);
	font-style: italic;
	font-size: 1rem;
	color: rgba(46, 42, 34, 0.85);
}

.pv-service-attrib {
	display: block;
	margin-top: 0.5rem;
	font-family: var(--wp--preset--font-family--secondary);
	font-style: normal;
	font-size: 0.7rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--forest-sage);
}

/* --- Programs grid ----------------------------------------------------- */

.pv-program-card {
	background: var(--wp--preset--color--warm-white);
	border: 1px solid rgba(197, 210, 184, 0.7);
	padding: 1.85rem;
	transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
	height: 100%;
}

.pv-program-card:hover {
	transform: translateY(-4px);
	border-color: rgba(196, 122, 90, 0.45);
	box-shadow: var(--pv-shadow-warm);
}

.pv-program-label {
	display: block;
	font-family: var(--wp--preset--font-family--secondary);
	font-size: 0.65rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--wp--preset--color--forest-sage);
	margin-bottom: 0.65rem;
}

.pv-program-card h3 {
	margin: 0 0 0.65rem;
	font-size: 1.4rem;
}

.pv-program-card p {
	color: rgba(46, 42, 34, 0.78);
	font-size: 0.94rem;
	line-height: 1.6;
}

.pv-program-link {
	font-family: var(--wp--preset--font-family--secondary);
	font-size: 0.7rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--terracotta);
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 0.5rem;
}
.pv-program-link:hover { color: var(--wp--preset--color--deep-clay); text-decoration: none; }

/* --- Insurance strip --------------------------------------------------- */

.pv-insurance-strip {
	background: var(--wp--preset--color--warm-white);
	border-top: 1px solid rgba(107, 128, 104, 0.18);
	border-bottom: 1px solid rgba(107, 128, 104, 0.18);
	padding: 2.5rem 1.25rem;
}

.pv-insurance-row {
	display: flex !important;
	flex-wrap: wrap;
	justify-content: center !important;
	align-items: center;
	gap: 2rem 2.4rem;
	font-family: var(--wp--preset--font-family--secondary);
	font-size: 0.78rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(79, 102, 80, 0.9);
}

.pv-insurance-row > * { margin: 0 !important; }

/* --- Resource cards ---------------------------------------------------- */

.pv-resource-card {
	background: var(--wp--preset--color--warm-white);
	border: 1px solid rgba(107, 128, 104, 0.2);
	border-top: 3px solid var(--wp--preset--color--terracotta);
	padding: 2rem;
	transition: transform 0.4s ease, box-shadow 0.4s ease;
	height: 100%;
	text-align: center;
}

.pv-resource-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--pv-shadow-warm);
}

.pv-resource-card h3 {
	margin: 0 0 0.75rem;
}

.pv-resource-card p {
	color: rgba(46, 42, 34, 0.78);
	font-size: 0.95rem;
	line-height: 1.6;
}

.pv-resource-phone {
	font-family: var(--wp--preset--font-family--primary);
	font-size: 1.6rem;
	color: var(--wp--preset--color--deep-clay);
	display: block;
	margin: 0.5rem 0 1rem;
	letter-spacing: 0.04em;
}

.pv-resource-phone a { color: inherit; text-decoration: none; }

/* --- Testimonial cards ------------------------------------------------- */

.pv-testimonial-card {
	background: var(--wp--preset--color--warm-white);
	border: 1px solid rgba(107, 128, 104, 0.2);
	padding: 2rem;
	position: relative;
	height: 100%;
}

.pv-testimonial-quote {
	font-family: var(--wp--preset--font-family--primary);
	font-style: italic;
	font-size: 1.1rem;
	line-height: 1.55;
	color: rgba(46, 42, 34, 0.88);
	margin: 0 0 1rem;
}

.pv-testimonial-quote::before {
	content: "\201C";
	display: block;
	font-size: 3rem;
	line-height: 0.6;
	color: var(--wp--preset--color--terracotta);
	margin-bottom: 0.5rem;
}

.pv-testimonial-attrib {
	font-family: var(--wp--preset--font-family--secondary);
	font-size: 0.7rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--forest-sage);
}

/* --- Final CTA banner -------------------------------------------------- */

.pv-final-cta {
	background: var(--wp--preset--color--deep-sage);
	color: var(--wp--preset--color--parchment);
	padding: 4.5rem 1.5rem;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.pv-final-cta::before,
.pv-final-cta::after {
	content: "";
	position: absolute;
	width: 320px;
	height: 320px;
	pointer-events: none;
	opacity: 0.08;
	background:
		radial-gradient(circle, var(--wp--preset--color--sage) 0, transparent 60%);
}

.pv-final-cta::before { top: -100px; left: -80px; }
.pv-final-cta::after  { bottom: -120px; right: -80px; }

.pv-final-cta h2,
.pv-final-cta .has-darker-clay-color {
	color: var(--wp--preset--color--parchment) !important;
	margin-top: 0;
}

.pv-final-cta p {
	color: rgba(244, 236, 223, 0.85);
	max-width: 600px;
	margin: 1rem auto 2rem;
	font-size: 1.05rem;
}

.pv-final-cta .wp-block-buttons { justify-content: center; }

.pv-final-cta .is-style-outline .wp-block-button__link {
	background: transparent !important;
	color: var(--wp--preset--color--parchment) !important;
	border-color: var(--wp--preset--color--parchment) !important;
}

.pv-final-cta .is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--parchment) !important;
	color: var(--wp--preset--color--deep-sage) !important;
}

/* --- Footer ------------------------------------------------------------ */

.pv-footer {
	background: var(--wp--preset--color--deep-sage);
	color: var(--wp--preset--color--parchment);
	padding: 4rem 1.25rem 2rem;
}

.pv-footer h4 {
	color: var(--wp--preset--color--parchment) !important;
	font-family: var(--wp--preset--font-family--primary);
	font-size: 1.1rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 0 0 1rem;
}

.pv-footer p,
.pv-footer li,
.pv-footer a {
	color: rgba(244, 236, 223, 0.85);
}

.pv-footer a {
	text-decoration: none;
	transition: color 0.25s ease;
}

.pv-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.pv-footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.pv-footer ul li {
	padding: 0.3rem 0;
	font-size: 0.92rem;
}

.pv-footer-phone {
	font-family: var(--wp--preset--font-family--primary);
	font-size: 1.8rem;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--parchment) !important;
	display: inline-block;
}

.pv-footer-phone:hover { color: #fff !important; text-decoration: none; }

.pv-footer-social {
	display: flex;
	gap: 1rem;
	margin: 1rem 0;
}

.pv-footer-social a {
	width: 36px;
	height: 36px;
	border: 1px solid rgba(244, 236, 223, 0.3);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.25s ease, background 0.25s ease;
}

.pv-footer-social a:hover {
	border-color: rgba(244, 236, 223, 0.7);
	background: rgba(244, 236, 223, 0.08);
}

.pv-footer-social svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.pv-footer-bottom {
	border-top: 1px solid rgba(244, 236, 223, 0.15);
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	font-size: 0.78rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* --- Blog post / archive ---------------------------------------------- */

.pv-archive-card {
	background: var(--wp--preset--color--warm-white);
	border: 1px solid rgba(107, 128, 104, 0.18);
	padding: 1.75rem;
	transition: transform 0.4s ease, box-shadow 0.4s ease;
	height: 100%;
}

.pv-archive-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--pv-shadow-warm);
}

/* --- Page wrappers ----------------------------------------------------- */

.pv-page-content {
	background: var(--wp--preset--color--parchment);
	padding: 4rem 1.25rem 5rem;
}

.pv-single-content {
	background: var(--wp--preset--color--parchment);
	padding: 3rem 1.25rem 5rem;
}

.pv-single-content .wp-block-post-content > * {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}

.pv-single-content .wp-block-post-featured-image {
	max-width: 1080px;
	margin: 0 auto 2.5rem;
}

/* --- 404 page --------------------------------------------------------- */

.pv-404 {
	min-height: 60vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 4rem 1.25rem;
}

/* --- Responsive -------------------------------------------------------- */

@media (max-width: 960px) {
	.pv-hero-card { padding: 4rem 1.5rem 3rem; }
	.pv-corner-orn { width: 100px; height: 100px; }
	.pv-brand-logo { height: 64px; }
	.pv-meta-row { gap: 1.4rem; }
}

@media (max-width: 600px) {
	.pv-utility-bar { font-size: 0.62rem; }
	.pv-brand-logo { height: 56px; }
	.pv-corner-orn { width: 80px; height: 80px; }
	.pv-meta-row { gap: 1.2rem; }
	.pv-hero { padding: 2.5rem 1rem 3rem; min-height: auto; }
	.pv-hero-card { padding: 3rem 1.1rem 2.5rem; }
	.pv-resource-phone { font-size: 1.3rem; }
	.pv-footer-phone { font-size: 1.4rem; }
}

/* --- Reduced motion ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	.pv-hero-card { opacity: 1; transform: none; }
	.pv-corner-orn path,
	.pv-corner-orn line,
	.pv-corner-orn circle { stroke-dashoffset: 0; }
	.pv-corner-orn .dot { opacity: 1; }
	.pv-eyebrow,
	.pv-hero-content .pv-subhead,
	.pv-hero-content .pv-cta-row,
	.pv-meta-row,
	.pv-divider-leaf,
	.pv-medallion-wrap { opacity: 1; transform: none; }
	.pv-ambient-frond,
	.pv-behind-frond,
	.pv-medallion { animation: none; }
	.pv-overview-image-frame:hover { transform: none; }
	.pv-step-card:hover { transform: none; }
	.pv-accordion-item summary::after { transition: none; }
}

/* =============================================================
 * SUB-PAGE PATTERNS (added 2026-04-28)
 * Service Detail Page composition: sub-page hero, two-column,
 * how-it-works steps, accordion, FAQ, motivational closer.
 * ============================================================= */

/* --- Sub-page hero ----------------------------------------------------- */

.pv-subpage-hero {
	position: relative;
	min-height: 60vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 5rem 1.5rem;
	overflow: hidden;
	z-index: 3;
}

.pv-subpage-hero .pv-ambient-frond.f3 {
	top: 8%;
	right: 4%;
	width: 200px;
	opacity: 0.1;
}

.pv-subpage-hero .pv-ambient-frond.f4 {
	bottom: 6%;
	left: 4%;
	width: 180px;
	opacity: 0.1;
}

.pv-subpage-hero-inner {
	position: relative;
	z-index: 2;
	max-width: 820px;
	margin: 0 auto;
	width: 100%;
	text-align: center;
}

.pv-subpage-eyebrow {
	font-family: var(--wp--preset--font-family--secondary);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--wp--preset--color--forest-sage);
	margin: 0 auto 1.4rem;
}

.pv-subpage-headline {
	font-family: var(--wp--preset--font-family--primary);
	font-weight: 500;
	font-size: clamp(2rem, 4.6vw, 3.4rem);
	line-height: 1.1;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--darker-clay);
	margin: 0 0 1.4rem;
}

.pv-subpage-subhead {
	font-family: var(--wp--preset--font-family--secondary);
	font-size: 1.05rem;
	font-weight: 300;
	line-height: 1.7;
	color: var(--wp--preset--color--ink);
	max-width: 620px;
	margin: 0 auto 2.2rem;
}

.pv-subpage-call {
	font-family: var(--wp--preset--font-family--secondary);
	font-size: 0.84rem;
	letter-spacing: 0.12em;
	color: rgba(46, 42, 34, 0.7);
	margin: 1.25rem 0 0;
}

.pv-subpage-call a {
	color: var(--wp--preset--color--deep-clay);
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid rgba(138, 74, 48, 0.3);
	padding-bottom: 1px;
	transition: border-color 0.25s ease, color 0.25s ease;
}

.pv-subpage-call a:hover {
	color: var(--wp--preset--color--darker-clay);
	border-bottom-color: var(--wp--preset--color--deep-clay);
	text-decoration: none;
}

/* --- Two-column overview ----------------------------------------------- */

.pv-two-col-overview {
	padding: 5rem 1.25rem;
	position: relative;
	z-index: 3;
}

.pv-two-col-overview .pv-section-eyebrow {
	text-align: left;
	margin-bottom: 0.75rem;
}

.pv-two-col-overview h2 {
	text-align: left;
	margin-top: 0;
	margin-bottom: 1.5rem;
}

.pv-two-col-overview p {
	color: rgba(46, 42, 34, 0.82);
	font-size: 1rem;
	line-height: 1.75;
}

.pv-overview-image-frame {
	position: relative;
	border: 1px solid rgba(107, 128, 104, 0.3);
	padding: 10px;
	background: var(--wp--preset--color--warm-white);
	box-shadow: var(--pv-shadow-warm);
	transform: rotate(0deg);
	transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.pv-overview-image-frame::before {
	content: "";
	position: absolute;
	inset: -8px;
	border: 1px solid rgba(196, 122, 90, 0.2);
	pointer-events: none;
	z-index: 0;
}

.pv-overview-image-frame:hover {
	transform: rotate(-0.6deg) translateY(-2px);
	box-shadow: var(--pv-shadow-card);
}

.pv-overview-image-frame .wp-block-image {
	margin: 0;
	position: relative;
	z-index: 1;
}

.pv-overview-image-frame .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	min-height: 320px;
	object-fit: cover;
	background: rgba(107, 128, 104, 0.08);
}

@media (max-width: 960px) {
	.pv-two-col-overview .wp-block-columns {
		flex-direction: column;
	}
	.pv-two-col-overview .wp-block-column {
		flex-basis: 100% !important;
		width: 100% !important;
	}
	.pv-two-col-overview h2,
	.pv-two-col-overview .pv-section-eyebrow {
		text-align: center;
	}
	.pv-two-col-overview .wp-block-buttons {
		justify-content: center;
	}
}

/* --- How It Works step cards ------------------------------------------ */

.pv-how-it-works {
	position: relative;
	z-index: 3;
}

.pv-step-card {
	background: var(--wp--preset--color--parchment);
	border: 1px solid rgba(107, 128, 104, 0.2);
	padding: 2.25rem 1.85rem;
	height: 100%;
	position: relative;
	transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.pv-step-card::before {
	content: "";
	position: absolute;
	inset: 8px;
	border: 1px solid rgba(196, 122, 90, 0.14);
	pointer-events: none;
}

.pv-step-card:hover {
	transform: translateY(-4px);
	border-color: rgba(196, 122, 90, 0.4);
	box-shadow: 0 18px 36px -18px rgba(79, 102, 80, 0.32),
		0 6px 16px -8px rgba(79, 102, 80, 0.18);
}

.pv-step-number {
	display: block;
	font-family: var(--wp--preset--font-family--primary);
	font-size: 3rem;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--terracotta);
	margin: 0 0 0.85rem;
}

.pv-step-card h3 {
	margin: 0 0 0.65rem;
	font-size: 1.35rem;
	color: var(--wp--preset--color--darker-clay);
}

.pv-step-card p {
	color: rgba(46, 42, 34, 0.78);
	font-size: 0.95rem;
	line-height: 1.65;
	margin: 0;
}

/* --- Accordion (modalities & FAQ) -------------------------------------- */

.pv-modalities-accordion,
.pv-faq-accordion {
	position: relative;
	z-index: 3;
}

.pv-accordion-item {
	background: var(--wp--preset--color--parchment);
	border: 1px solid rgba(107, 128, 104, 0.22);
	margin: 0 0 0.85rem;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pv-faq-accordion .pv-accordion-item {
	background: var(--wp--preset--color--warm-white);
}

.pv-accordion-item[open] {
	border-color: rgba(196, 122, 90, 0.4);
	box-shadow: 0 4px 14px -8px rgba(79, 102, 80, 0.25);
}

.pv-accordion-item summary {
	list-style: none;
	cursor: pointer;
	padding: 1.2rem 3rem 1.2rem 1.5rem;
	font-family: var(--wp--preset--font-family--primary);
	font-size: 1.18rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--ink);
	position: relative;
	transition: color 0.25s ease, background 0.25s ease;
}

.pv-accordion-item summary::-webkit-details-marker {
	display: none;
}

.pv-accordion-item summary::after {
	content: "";
	position: absolute;
	right: 1.5rem;
	top: 50%;
	width: 12px;
	height: 12px;
	border-right: 1.5px solid var(--wp--preset--color--forest-sage);
	border-bottom: 1.5px solid var(--wp--preset--color--forest-sage);
	transform: translateY(-70%) rotate(45deg);
	transform-origin: center;
	transition: transform 0.35s ease, border-color 0.25s ease;
}

.pv-accordion-item summary:hover {
	color: var(--wp--preset--color--deep-clay);
	background: rgba(196, 122, 90, 0.04);
}

.pv-accordion-item summary:hover::after {
	border-color: var(--wp--preset--color--deep-clay);
}

.pv-accordion-item[open] summary {
	color: var(--wp--preset--color--darker-clay);
	border-bottom: 1px solid rgba(107, 128, 104, 0.18);
}

.pv-accordion-item[open] summary::after {
	transform: translateY(-30%) rotate(225deg);
	border-color: var(--wp--preset--color--terracotta);
}

.pv-accordion-item > p {
	color: rgba(46, 42, 34, 0.82);
	font-size: 0.97rem;
	line-height: 1.72;
	margin: 0;
	padding: 1.2rem 1.5rem 1.4rem;
}

.pv-accordion-item > p a {
	color: var(--wp--preset--color--terracotta);
	font-weight: 500;
}

.pv-accordion-item > p a:hover {
	color: var(--wp--preset--color--deep-clay);
}

.pv-accordion-item[open] {
	animation: pv-accordion-open 0.35s ease;
}

@keyframes pv-accordion-open {
	from { opacity: 0.6; }
	to   { opacity: 1; }
}

/* --- FAQ-specific narrowing & followup --------------------------------- */

.pv-faq-accordion {
	max-width: 100%;
}

.pv-faq-followup {
	font-family: var(--wp--preset--font-family--secondary);
	font-size: 0.92rem;
	color: rgba(46, 42, 34, 0.7);
}

.pv-faq-followup a {
	color: var(--wp--preset--color--terracotta);
	font-weight: 500;
}

/* --- Motivational closer ----------------------------------------------- */

.pv-motivational-closer {
	position: relative;
	overflow: hidden;
	padding: 6rem 1.5rem;
	z-index: 3;
}

.pv-motivational-closer .pv-ambient-frond.f3 {
	top: 12%;
	right: -40px;
	width: 220px;
	opacity: 0.1;
	animation: pv-drift-c 26s ease-in-out infinite;
}

.pv-motivational-closer .pv-ambient-frond.f4 {
	bottom: 8%;
	left: -40px;
	width: 200px;
	opacity: 0.1;
	animation: pv-drift-a 30s ease-in-out infinite;
}

.pv-motivational-inner {
	position: relative;
	z-index: 2;
	max-width: 720px;
	margin: 0 auto;
}

.pv-closer-divider {
	width: 80px;
	margin: 2.5rem auto 1.25rem;
	height: 1px;
	border: 0;
	background: var(--wp--preset--color--soft-sage);
}

.pv-closer-tagline {
	font-family: var(--wp--preset--font-family--primary);
	font-size: 0.95rem;
	font-style: italic;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--forest-sage);
	margin: 0;
}

/* --- Sub-page responsive ----------------------------------------------- */

@media (max-width: 960px) {
	.pv-subpage-hero { min-height: auto; padding: 4rem 1.25rem; }
	.pv-how-it-works { padding: 4rem 1.25rem; }
	.pv-modalities-accordion,
	.pv-faq-accordion { padding: 4rem 1.25rem; }
	.pv-motivational-closer { padding: 4.5rem 1.25rem; }
	.pv-step-number { font-size: 2.4rem; }
}

@media (max-width: 600px) {
	.pv-subpage-hero { padding: 3rem 1rem; }
	.pv-subpage-headline { font-size: 1.85rem; }
	.pv-accordion-item summary { font-size: 1.05rem; padding: 1rem 2.5rem 1rem 1.15rem; }
	.pv-accordion-item summary::after { right: 1.15rem; }
	.pv-accordion-item p { padding: 1rem 1.15rem 1.2rem; }
	.pv-overview-image-frame .wp-block-image img { min-height: 240px; }
}


/* Footer Joint Commission seal */
.pv-footer-seal{display:flex;flex-direction:column;align-items:center;gap:0.6rem;text-align:center;}
.pv-footer-seal svg{width:96px;height:96px;}
.pv-footer-seal p{margin:0;font-family:var(--wp--preset--font-family--secondary);font-size:0.72rem;letter-spacing:0.14em;text-transform:uppercase;color:rgba(244,236,223,0.75);}


/* Button group horizontal spacing fix */
.wp-block-buttons.is-layout-flex{gap:0.85rem;}
.pv-hero-content .pv-cta-row{gap:1rem;}

/* Hero medallion shown as Palm Valley logo */
.pv-medallion-logo{width:500px;height:500px;max-width:100%;object-fit:contain;}
.pv-medallion-logo:hover{transform:none;}


/* Outline buttons match solid button size; comfortable section CTA spacing */
.wp-block-button.is-style-outline>.wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link{padding:1rem 1.85rem;}


/* Tour the Facility page */
.pv-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1rem;max-width:1280px;margin:0 auto;}
.pv-photo-tile{aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;border:1px dashed rgba(79,102,80,0.45);border-radius:4px;background:rgba(107,128,104,0.07);color:rgba(79,102,80,0.6);font-family:var(--wp--preset--font-family--secondary);font-size:0.7rem;letter-spacing:0.18em;text-transform:uppercase;}
.pv-video-frame{position:relative;aspect-ratio:16/9;max-width:960px;margin:0 auto;display:flex;align-items:center;justify-content:center;text-align:center;padding:1rem;border:1px dashed rgba(79,102,80,0.45);border-radius:6px;background:rgba(107,128,104,0.07);color:rgba(79,102,80,0.65);font-family:var(--wp--preset--font-family--secondary);font-size:0.78rem;letter-spacing:0.14em;text-transform:uppercase;}
.pv-amenity-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.75rem;max-width:1280px;margin:0 auto;}


/* Locations page map */
.pv-map-embed{width:100%;aspect-ratio:4/3;border:0;border-radius:6px;display:block;}
.pv-location-address a,.pv-location-phone a{color:var(--wp--preset--color--terracotta);text-decoration:none;}
.pv-location-address{font-size:1.05rem;line-height:1.7;}


/* Tour gallery images */
.pv-photo-grid a{display:block;overflow:hidden;border-radius:4px;}
.pv-photo-grid img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;transition:transform .45s ease;}
.pv-photo-grid a:hover img{transform:scale(1.04);}


/* Photographic hero (Tour page) */
.pv-hero-photo{background-size:cover;background-position:center;}
.pv-hero-photo::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(18,26,18,0.42),rgba(18,26,18,0.58));z-index:1;}
.pv-hero-photo .pv-subpage-headline{color:#fff;}
.pv-hero-photo .pv-subpage-subhead{color:rgba(255,255,255,0.92);}
.pv-hero-photo .pv-subpage-eyebrow{color:#f4ecdf;}
.pv-hero-photo .pv-subpage-call,.pv-hero-photo .pv-subpage-call a{color:#f4ecdf;}


/* Tour hero background video + player */
.pv-hero-bg-video{position:absolute;inset:0;width:100%;height:100%;max-width:none;margin:0;object-fit:cover;z-index:0;}
.pv-video-player{width:100%;max-width:960px;margin:0 auto;display:block;aspect-ratio:16/9;border-radius:6px;background:#000;}


/* Tour hero text readability over video */
.pv-hero-photo .pv-subpage-headline,.pv-hero-photo .pv-subpage-subhead,.pv-hero-photo .pv-subpage-eyebrow,.pv-hero-photo .pv-subpage-call,.pv-hero-photo .pv-subpage-call a{text-shadow:0 2px 16px rgba(0,0,0,0.55);}


/* Condensed homepage hero */
.pv-hero{min-height:auto;padding-top:1.25rem;padding-bottom:3rem;}
.pv-hero-card{padding-top:2.4rem;padding-bottom:3rem;}
.pv-eyebrow{margin-bottom:0.7rem;}
.pv-medallion-wrap{margin-bottom:0.7rem;}
.pv-medallion-logo{width:200px;height:200px;}


/* Compact subpage hero */
.pv-hero-compact{min-height:auto !important;padding-top:2.6rem !important;padding-bottom:2.8rem !important;}
.pv-hero-compact .pv-subpage-subhead{margin-bottom:1.1rem;}


/* ===== Mobile friendliness ===== */
@media (max-width: 782px){
	.pv-brand-logo{height:92px !important;}
	.pv-main-header .wp-block-group{padding-top:0.7rem;padding-bottom:0.7rem;}
	.pv-amenity-grid{gap:1.1rem;}
	.pv-amenity-grid .pv-amenity{flex:1 1 100% !important;width:auto !important;max-width:430px !important;margin-left:auto;margin-right:auto;}
	.pv-contact-form .pv-form-row,.pv-iv-form .pv-form-row{gap:0;}
	.pv-form-card{padding:1.4rem;}
}
@media (max-width: 600px){
	.pv-brand-logo{height:68px !important;}
	.pv-medallion-logo{width:124px;height:124px;}
	.pv-meta-row{gap:0.65rem !important;font-size:0.6rem;letter-spacing:0.14em;}
	.pv-photo-grid{grid-template-columns:repeat(2,1fr);gap:0.55rem;}
	.pv-lightbox{padding:1rem;}
	.pv-utility-bar{font-size:0.66rem;}
	.pv-footer .wp-block-columns{gap:1.5rem;}
	.pv-contact-info{margin-top:1.4rem;}
}