/* ==========================================================================
   Raptor Performance + Wellness — components & motion
   Colors/fonts come from theme.json presets, so everything here follows
   whatever the client picks in Appearance → Editor → Styles.
   ========================================================================== */

:root {
	--rp-ease: var(--wp--custom--motion--ease, cubic-bezier(0.16, 1, 0.3, 1));
	--rp-dur: var(--wp--custom--motion--duration, 0.9s);
	--rp-dist: var(--wp--custom--motion--distance, 48px);
	--rp-header-h: var(--wp--custom--header--height, 84px);
	--rp-red: var(--wp--preset--color--red);
	--rp-maroon: var(--wp--preset--color--maroon);
	--rp-ink: var(--wp--preset--color--ink);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
::selection { background: var(--rp-red); color: #fff; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
img { height: auto; }

/* ---------- Skip link / focus ---------- */
:where(a, button, input, textarea, summary):focus-visible {
	outline: 2px solid var(--rp-red);
	outline-offset: 3px;
}

/* ---------- Scroll progress ---------- */
.rp-progress {
	position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1000;
	background: linear-gradient(90deg, var(--rp-maroon), var(--rp-red));
	transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
}
.admin-bar .rp-progress { top: var(--wp-admin--admin-bar--height, 32px); }

/* ---------- Top bar ---------- */
.rp-topbar { font-size: 0.8125rem; letter-spacing: 0.06em; }
.rp-topbar p { margin: 0; }
.rp-topbar a { text-decoration: none; }
.rp-topbar a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 781px) { .rp-topbar .rp-hide-mobile { display: none; } }

/* ---------- Header ---------- */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}
.rp-header {
	min-height: var(--rp-header-h);
	transition: background-color 0.4s var(--rp-ease), box-shadow 0.4s var(--rp-ease), padding 0.4s var(--rp-ease), backdrop-filter 0.4s;
	background-color: rgba(11, 12, 14, 0.92);
	-webkit-backdrop-filter: saturate(140%) blur(14px);
	backdrop-filter: saturate(140%) blur(14px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
html.rp-has-hero:not(.rp-scrolled) .rp-header {
	background-color: transparent;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	border-bottom-color: transparent;
}
html.rp-scrolled .rp-header { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35); }
html.rp-scrolled .rp-header .wp-block-site-logo img { transform: scale(0.88); }
.rp-header .wp-block-site-logo img { transition: transform 0.4s var(--rp-ease); transform-origin: left center; }
.rp-has-hero .rp-under-header { margin-top: calc(-1 * var(--rp-header-total, var(--rp-header-h))) !important; }

/* Nav link underline sweep */
.rp-header .wp-block-navigation-item__content { position: relative; padding-block: 0.4em; }
.rp-header .wp-block-navigation .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
	background: var(--rp-red); transform: scaleX(0); transform-origin: right center;
	transition: transform 0.45s var(--rp-ease);
}
.rp-header .wp-block-navigation .wp-block-navigation-item:hover > .wp-block-navigation-item__content::after,
.rp-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content::after {
	transform: scaleX(1); transform-origin: left center;
}
.rp-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content { color: var(--rp-red); }
.rp-header .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--charcoal) !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	border-top: 2px solid var(--rp-red) !important;
	border-radius: 0 0 var(--wp--custom--radius--small) var(--wp--custom--radius--small);
	padding: 0.5rem 0;
	min-width: 240px !important;
	box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}
.rp-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 0.55rem 1.25rem !important; font-size: 0.95rem; }
.rp-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after { display: none; }
.rp-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { color: var(--rp-red); background: rgba(255, 255, 255, 0.03); }
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--rp-ink) !important;
	padding: 2rem clamp(1rem, 5vw, 3rem) !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.6rem; }
.rp-header .rp-phone .wp-block-button__link::before {
	content: ""; display: inline-block; width: 0.9em; height: 0.9em; margin-right: 0.55em; vertical-align: -0.08em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 600px) { .rp-header .rp-phone .wp-block-button__link { padding: 0.8em 1em; font-size: 0.85rem; } }

/* ---------- Buttons ---------- */
.wp-element-button, .wp-block-button__link {
	transition: background-color 0.35s var(--rp-ease), color 0.35s var(--rp-ease), border-color 0.35s, transform 0.35s var(--rp-ease), box-shadow 0.35s;
}
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(179, 38, 44, 0.28); }
.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 2px solid currentColor; background: transparent; color: var(--wp--preset--color--white);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--white); color: var(--rp-ink); border-color: var(--wp--preset--color--white); }

/* Arrow text links */
.rp-arrow a, a.rp-arrow {
	text-decoration: none; font-family: var(--wp--preset--font-family--condensed); font-weight: 700;
	letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 0.6em;
}
.rp-arrow a::after, a.rp-arrow::after { content: "→"; transition: transform 0.4s var(--rp-ease); }
.rp-arrow a:hover::after, a.rp-arrow:hover::after { transform: translateX(6px); }

/* ---------- Eyebrow ---------- */
.is-style-rp-eyebrow {
	display: flex; align-items: center; gap: 0.9rem;
	font-family: var(--wp--preset--font-family--condensed);
	font-weight: 700; font-size: 0.95rem !important; letter-spacing: 0.28em; text-transform: uppercase;
	color: var(--wp--preset--color--white);
}
.is-style-rp-eyebrow::before { content: ""; width: 44px; height: 2px; background: var(--rp-red); flex: none; }
.has-text-align-center.is-style-rp-eyebrow { justify-content: center; }
.has-text-align-center.is-style-rp-eyebrow::after { content: ""; width: 44px; height: 2px; background: var(--rp-red); flex: none; }

/* ---------- Outline heading ---------- */
.is-style-rp-outline { color: transparent !important; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.35); }
.is-style-rp-outline mark { -webkit-text-stroke: 0; }
mark.has-inline-color { background: none; }

/* ---------- Hero ---------- */
.rp-hero { overflow: hidden; isolation: isolate; }
.rp-hero .wp-block-cover__video-background,
.rp-hero .wp-block-cover__image-background { filter: grayscale(1) contrast(1.1); }
.rp-hero .wp-block-cover__inner-container { position: relative; z-index: 2; }
.rp-hero h1 { text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45); }
.rp-hero::after {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: radial-gradient(ellipse at 50% 40%, transparent 30%, rgba(11, 12, 14, 0.55) 100%);
}
.rp-scroll-cue {
	position: absolute; left: 50%; bottom: 2rem; z-index: 3; width: 26px; height: 42px;
	border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 20px; transform: translateX(-50%);
}
.rp-scroll-cue::after {
	content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
	border-radius: 2px; background: #fff; animation: rp-cue 1.8s var(--rp-ease) infinite;
}
@keyframes rp-cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Claw slashes (decorative, original) */
.rp-claw { position: absolute; z-index: 1; pointer-events: none; opacity: 0.9; }
.rp-claw path { fill: none; stroke: var(--rp-red); stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: 0; }
.rp-motion .rp-claw path { stroke-dashoffset: 1000; animation: rp-draw 1.4s var(--rp-ease) forwards; }
.rp-motion .rp-claw path:nth-child(2) { animation-delay: 0.15s; }
.rp-motion .rp-claw path:nth-child(3) { animation-delay: 0.3s; }
@keyframes rp-draw { to { stroke-dashoffset: 0; } }
.rp-claw--hero { right: -2vw; top: 12%; width: min(38vw, 520px); opacity: 0.22; }
@media (max-width: 781px) { .rp-claw--hero { width: 70vw; opacity: 0.14; } }

/* ---------- Word rise (headings) ---------- */
.rp-word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.rp-word > span { display: inline-block; }
.rp-motion .is-style-rp-rise .rp-word > span,
.rp-motion .rp-hero h1 .rp-word > span { transform: translateY(105%); transition: transform 1.1s var(--rp-ease); transition-delay: calc(var(--i, 0) * 70ms + 0.1s); }
.rp-motion .is-style-rp-rise.is-in .rp-word > span,
.rp-motion .rp-hero h1.is-in .rp-word > span { transform: none; }

/* ---------- Reveal ---------- */
.rp-motion .is-style-rp-reveal,
.rp-motion .rp-reveal {
	opacity: 0; transform: translateY(var(--rp-dist));
	transition: opacity var(--rp-dur) var(--rp-ease), transform var(--rp-dur) var(--rp-ease);
	transition-delay: var(--rp-delay, 0s);
}
.rp-motion .rp-reveal--left { transform: translateX(calc(-1 * var(--rp-dist))); }
.rp-motion .rp-reveal--right { transform: translateX(var(--rp-dist)); }
.rp-motion .rp-reveal--scale { transform: scale(0.94); }
.rp-motion .is-style-rp-reveal.is-in,
.rp-motion .rp-reveal.is-in { opacity: 1; transform: none; }

.rp-motion .is-style-rp-stagger > *,
.rp-motion .rp-stagger > * {
	opacity: 0; transform: translateY(var(--rp-dist));
	transition: opacity var(--rp-dur) var(--rp-ease), transform var(--rp-dur) var(--rp-ease);
	transition-delay: calc(var(--i, 0) * 110ms);
}
.rp-motion .is-style-rp-stagger.is-in > *,
.rp-motion .rp-stagger.is-in > * { opacity: 1; transform: none; }

/* ---------- Image styles ---------- */
.is-style-rp-zoom { overflow: hidden; }
.is-style-rp-zoom img { transition: transform 1.2s var(--rp-ease), filter 0.6s; }
.is-style-rp-zoom:hover img { transform: scale(1.06); }
.is-style-rp-offset { position: relative; }
.is-style-rp-offset::before {
	content: ""; position: absolute; inset: 8% -6% -6% 8%; background: var(--rp-maroon); z-index: -1;
	border-radius: var(--wp--custom--radius--medium);
	transition: transform 1.2s var(--rp-ease);
}
.rp-motion .is-style-rp-offset::before { transform: translate(-6%, -6%); }
.rp-motion .is-style-rp-offset.is-in::before { transform: none; }
.is-style-rp-offset { isolation: isolate; }
.is-style-rp-parallax { overflow: hidden; border-radius: var(--wp--custom--radius--medium); }
.is-style-rp-parallax img { transform: translateY(var(--rp-py, 0)) scale(1.15); will-change: transform; border-radius: 0 !important; }

/* Ken Burns cover */
.is-style-rp-kenburns { overflow: hidden; }
.rp-motion .is-style-rp-kenburns .wp-block-cover__image-background,
.rp-motion .is-style-rp-kenburns .wp-block-cover__video-background { animation: rp-kb 22s ease-in-out infinite alternate; }
@keyframes rp-kb { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.5%, -1%); } }

/* ---------- Marquee ---------- */
.rp-marquee { overflow: hidden; white-space: nowrap; position: relative; }
.rp-marquee__track { display: inline-flex; gap: 0; animation: rp-marquee var(--rp-marquee-speed, 38s) linear infinite; will-change: transform; }
.rp-marquee:hover .rp-marquee__track { animation-play-state: paused; }
.rp-marquee p {
	margin: 0 !important; display: inline-flex; align-items: center; white-space: nowrap;
	font-family: var(--wp--preset--font-family--display); text-transform: uppercase; font-weight: 600; letter-spacing: 0.02em;
}
.rp-marquee p::after {
	content: ""; width: 0.55em; height: 0.55em; margin: 0 0.9em; flex: none;
	background: currentColor; opacity: 0.6; transform: rotate(45deg);
}
@keyframes rp-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .rp-marquee__track { animation: none; } .rp-marquee { white-space: normal; } }

/* ---------- Pillar cards ---------- */
.rp-pillars { gap: 0 !important; }
.rp-pillars > .wp-block-column { margin: 0 !important; }
.rp-pillar { height: 100%; transition: transform 0.6s var(--rp-ease); }
.rp-pillar .wp-block-cover__image-background { transform: scale(1.08); transition: transform 1.4s var(--rp-ease), opacity 0.6s; opacity: 0; filter: grayscale(1); }
.rp-pillar .wp-block-cover__background { transition: opacity 0.6s var(--rp-ease); }
.rp-pillar:hover .wp-block-cover__image-background { opacity: 1; transform: scale(1); }
.rp-pillar:hover .wp-block-cover__background { opacity: 0.82 !important; }
.rp-pillar .rp-num { font-family: var(--wp--preset--font-family--display); font-size: 4.5rem; line-height: 1; opacity: 0.18; margin: 0; font-weight: 700; }
.rp-pillar .rp-arrow a::after { transition: transform 0.4s var(--rp-ease); }
.rp-pillar:hover .rp-arrow a::after { transform: translateX(8px); }

/* ---------- Generic cards ---------- */
.is-style-rp-card, .rp-card {
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: var(--wp--custom--radius--medium);
	transition: transform 0.6s var(--rp-ease), border-color 0.4s, box-shadow 0.6s var(--rp-ease), background-color 0.4s;
	position: relative; overflow: hidden;
}
.is-style-rp-card::after, .rp-card::after {
	content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
	background: linear-gradient(90deg, var(--rp-red), var(--rp-maroon));
	transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--rp-ease);
}
.is-style-rp-card:hover, .rp-card:hover {
	transform: translateY(-8px); border-color: rgba(179, 38, 44, 0.45);
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}
.is-style-rp-card:hover::after, .rp-card:hover::after { transform: scaleX(1); }
.rp-card .wp-block-image { margin: 0; overflow: hidden; }
.rp-card .wp-block-image img { transition: transform 1.2s var(--rp-ease); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; filter: grayscale(0.35); }
.rp-card:hover .wp-block-image img { transform: scale(1.07); filter: grayscale(0); }
.rp-card .rp-card__body { padding: clamp(1.25rem, 2.5vw, 2rem); }
.rp-card h3 { transition: color 0.3s; }
.rp-card:hover h3 { color: var(--rp-red); }

/* Stretched link: make whole card clickable when it contains .rp-arrow */
.rp-card .rp-arrow a::before { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ---------- Stats ---------- */
.rp-stat { border-left: 2px solid var(--rp-red); padding-left: 1.25rem; }
.rp-stat .rp-count { font-family: var(--wp--preset--font-family--display); font-weight: 700; line-height: 1; margin: 0; font-variant-numeric: tabular-nums; }
.rp-stat p:last-child { margin-top: 0.5rem; }

/* ---------- Steps ---------- */
.rp-step { position: relative; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.rp-step::before {
	content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--rp-red);
	transition: width 1.2s var(--rp-ease) 0.2s;
}
.rp-step.is-in::before, .is-in > .rp-step::before { width: 100%; }
html:not(.rp-motion) .rp-step::before { width: 100%; }
.rp-step .rp-num { font-family: var(--wp--preset--font-family--display); font-weight: 700; color: var(--rp-red); margin: 0; letter-spacing: 0.1em; }

/* ---------- Testimonials ---------- */
.rp-quote { position: relative; height: 100%; }
.rp-quote::before {
	content: "\201C"; position: absolute; top: -0.15em; right: 0.3em;
	font-family: Georgia, serif; font-size: 8rem; line-height: 1; color: var(--rp-red); opacity: 0.25;
}
.rp-stars { color: var(--rp-red); letter-spacing: 0.2em; margin: 0; }

/* ---------- Gallery mosaic ---------- */
.rp-mosaic { display: grid !important; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(140px, 18vw, 260px); gap: 0.75rem !important; }
.rp-mosaic > * { margin: 0 !important; overflow: hidden; border-radius: var(--wp--custom--radius--small); }
.rp-mosaic > *:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.rp-mosaic img { width: 100%; height: 100% !important; object-fit: cover; border-radius: 0 !important; transition: transform 1.2s var(--rp-ease), filter 0.6s; filter: grayscale(0.4); }
.rp-mosaic > *:hover img { transform: scale(1.06); filter: grayscale(0); }
@media (max-width: 781px) {
	.rp-mosaic { grid-template-columns: repeat(2, 1fr); }
	.rp-mosaic > *:nth-child(1) { grid-column: span 2; grid-row: span 1; }
}

/* ---------- Team ---------- */
.rp-team-card .wp-block-image img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; filter: grayscale(1); transition: filter 0.6s, transform 1.2s var(--rp-ease); }
.rp-team-card:hover .wp-block-image img { filter: grayscale(0); transform: scale(1.04); }
.rp-team-card .rp-role { color: var(--rp-red); font-family: var(--wp--preset--font-family--condensed); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.85rem; margin: 0; }
.rp-team-card details { border-top: 1px solid rgba(255,255,255,.1); padding-top: .75rem; font-size: 0.95rem; }
.rp-team-card summary { cursor: pointer; font-family: var(--wp--preset--font-family--condensed); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; }

/* ---------- Details / FAQ ---------- */
.wp-block-details summary {
	cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
	font-family: var(--wp--preset--font-family--display); text-transform: uppercase; font-size: 1.2rem; font-weight: 500;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; color: var(--rp-red); font-size: 1.5rem; line-height: 1; transition: transform 0.4s var(--rp-ease); }
.wp-block-details[open] summary::after { transform: rotate(45deg); }

/* ---------- Lists ---------- */
.rp-checks { list-style: none; padding-left: 0 !important; }
.rp-checks li { position: relative; padding-left: 2rem; margin-bottom: 0.75rem; }
.rp-checks li::before {
	content: ""; position: absolute; left: 0; top: 0.55em; width: 1.1rem; height: 2px; background: var(--rp-red);
}

/* ---------- Big CTA type ---------- */
.rp-mega { line-height: 0.9 !important; letter-spacing: -0.01em !important; }

/* ---------- Section number watermark ---------- */
.rp-watermark { position: relative; overflow: hidden; }
.rp-watermark > .rp-watermark__text {
	position: absolute; right: -0.05em; bottom: -0.2em; margin: 0 !important; pointer-events: none;
	font-family: var(--wp--preset--font-family--display); font-weight: 700; text-transform: uppercase;
	font-size: clamp(6rem, 20vw, 22rem); line-height: 0.8; color: transparent;
	-webkit-text-stroke: 1px rgba(255, 255, 255, 0.06); white-space: nowrap; z-index: 0;
}
.rp-watermark > *:not(.rp-watermark__text) { position: relative; z-index: 1; }

/* ---------- Press ---------- */
.rp-press-logo img { filter: grayscale(1) brightness(1.8); opacity: 0.85; transition: filter 0.4s, opacity 0.4s; }
.rp-press-logo:hover img { filter: none; opacity: 1; }

/* ---------- Contact form ---------- */
.rp-form { display: grid; gap: 0.25rem; }
.rp-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .rp-form__row { grid-template-columns: 1fr; } }
.rp-field { margin: 0 0 0.75rem; display: grid; gap: 0.4rem; }
.rp-field label {
	font-family: var(--wp--preset--font-family--condensed); font-weight: 700; letter-spacing: 0.12em;
	text-transform: uppercase; font-size: 0.8rem; color: var(--wp--preset--color--muted);
}
.rp-field input[type="text"], .rp-field input[type="email"], .rp-field input[type="tel"], .rp-field textarea {
	width: 100%; box-sizing: border-box; font: inherit; color: var(--wp--preset--color--white);
	background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--wp--custom--radius--small); padding: 0.9rem 1rem;
	transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.rp-field input:focus, .rp-field textarea:focus {
	outline: none; border-color: var(--rp-red); background: rgba(255, 255, 255, 0.07);
	box-shadow: 0 0 0 4px rgba(179, 38, 44, 0.2);
}
.rp-field.is-invalid input, .rp-field.is-invalid textarea { border-color: #ff6b6b; }
.rp-field--check { grid-template-columns: auto 1fr; align-items: start; gap: 0.75rem; }
.rp-field--check input { margin-top: 0.3em; width: 1.1rem; height: 1.1rem; accent-color: var(--rp-red); }
.rp-field--check label { text-transform: none; letter-spacing: 0; font-family: inherit; font-weight: 400; font-size: 0.85rem; line-height: 1.5; }
.rp-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rp-form__submit { margin: 0.5rem 0 0; }
.rp-form__submit button { border: 0; cursor: pointer; width: 100%; }
.rp-form.is-loading button { opacity: 0.6; pointer-events: none; }
.rp-form__msg { padding: 1rem 1.25rem; border-radius: var(--wp--custom--radius--small); margin: 0 0 1rem; font-weight: 500; }
.rp-form__msg.is-success { background: rgba(70, 180, 110, 0.14); border: 1px solid rgba(70, 180, 110, 0.5); }
.rp-form__msg.is-error { background: rgba(255, 90, 90, 0.12); border: 1px solid rgba(255, 90, 90, 0.5); }

/* ---------- Footer ---------- */
.rp-footer a { text-decoration: none; }
.rp-footer a:hover { color: var(--rp-red); }
.rp-footer .wp-block-navigation-item__content { padding: 0.15rem 0; }
.rp-footer .wp-block-social-links .wp-social-link { background: rgba(255, 255, 255, 0.06) !important; transition: background-color 0.3s, transform 0.3s var(--rp-ease); }
.rp-footer .wp-block-social-links .wp-social-link:hover { background: var(--rp-red) !important; transform: translateY(-3px); }

/* ---------- Blog ---------- */
.rp-post-card .wp-block-post-featured-image { overflow: hidden; border-radius: var(--wp--custom--radius--medium); }
.rp-post-card .wp-block-post-featured-image img { transition: transform 1.2s var(--rp-ease); }
.rp-post-card:hover .wp-block-post-featured-image img { transform: scale(1.05); }
.wp-block-query-pagination a { text-decoration: none; }

/* ---------- Editor: never hide anything ---------- */
.editor-styles-wrapper .is-style-rp-reveal,
.editor-styles-wrapper .rp-reveal,
.editor-styles-wrapper .rp-stagger > *,
.editor-styles-wrapper .is-style-rp-stagger > * { opacity: 1 !important; transform: none !important; }
.editor-styles-wrapper .rp-pillar .wp-block-cover__image-background { opacity: 0.35; }
.editor-styles-wrapper .rp-marquee { white-space: normal; }
.editor-styles-wrapper .rp-marquee p { display: inline-flex; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
	.is-style-rp-parallax img { transform: none !important; }
}

/* ---------- Logo on dark ---------- */
.rp-logo-white img { filter: brightness(0) invert(1); }

/* ---------- Map ---------- */
.rp-map iframe { display: block; width: 100%; border: 0; filter: grayscale(1) invert(0.92) contrast(0.9); }

/* ---------- Layout fixes ---------- */
/* Full-width sections stack flush (no gap strips between them) */
.wp-block-post-content > .alignfull,
main > .alignfull,
.wp-block-post-content > .wp-block-pattern > .alignfull { margin-block-start: 0 !important; margin-block-end: 0 !important; }
/* Hero content sits on the same grid as the header */
.rp-hero > .wp-block-cover__inner-container {
	width: 100%;
	max-width: var(--wp--style--global--wide-size, 1320px);
	margin-inline: auto;
	padding-inline: var(--wp--style--root--padding-left, 1.5rem) var(--wp--style--root--padding-right, 1.5rem);
	box-sizing: border-box;
}
.rp-hero > .wp-block-cover__inner-container > * { max-width: 920px; margin-left: 0 !important; margin-right: auto !important; }
.rp-hero > .wp-block-cover__inner-container > h1 { max-width: none; }
.rp-header .rp-phone .wp-block-button__link { white-space: nowrap; }
.rp-header .wp-block-navigation__container { row-gap: 0.25rem; }
/* Cards manage their own padding (core adds padding to any group with a background) */
.rp-card.has-background { padding: 0; }
.rp-stat, .rp-step { padding-right: 0; }
.rp-footer ul { list-style: none; }
.has-display-font-family a, .rp-quote a { text-decoration: none; }
@media (max-width: 781px) {
	.rp-topbar { display: none; }
	.rp-pillar { min-height: 0 !important; }
	.rp-pillar .wp-block-spacer { height: 1.5rem !important; }
	.rp-hero .is-style-rp-eyebrow { letter-spacing: 0.18em; }
}

/* ---------- Footer watermark: hardened against plugin/host CSS overrides ---------- */
.rp-watermark { isolation: isolate; }
.rp-watermark > p.rp-watermark__text,
.rp-footer .rp-watermark .rp-watermark__text {
	color: transparent !important;
	-webkit-text-fill-color: transparent !important;
	-webkit-text-stroke: 1px rgba(255, 255, 255, 0.07) !important;
	background: none !important;
	text-shadow: none !important;
	z-index: -1 !important;
	opacity: 1 !important;
	user-select: none;
}
@supports not (-webkit-text-stroke: 1px black) {
	.rp-watermark > p.rp-watermark__text { color: rgba(255, 255, 255, 0.04) !important; -webkit-text-fill-color: rgba(255, 255, 255, 0.04) !important; }
}
.rp-watermark > *:not(.rp-watermark__text) { position: relative; z-index: 1; }
@media (max-width: 781px) { .rp-watermark > .rp-watermark__text { display: none; } }

/* ---------- Converted (classic / ex-Divi) content ----------
   Classic content has no block classes, so give it its own sane scale. */
.wp-block-post-content :where(h1, h2, h3, h4):not(.wp-block-heading):not(.wp-block-post-title) {
	margin-top: 1.6em; margin-bottom: 0.5em; line-height: 1.05;
}
.wp-block-post-content h1:not(.wp-block-heading) { font-size: var(--wp--preset--font-size--xx-large); }
.wp-block-post-content h2:not(.wp-block-heading) { font-size: var(--wp--preset--font-size--x-large); }
.wp-block-post-content h3:not(.wp-block-heading) { font-size: var(--wp--preset--font-size--large); }
.wp-block-post-content h4:not(.wp-block-heading) { font-size: var(--wp--preset--font-size--medium); letter-spacing: 0.08em; }
/* Buttons: consecutive ones are grouped into .rp-btn-row by motion.js */
.wp-block-post-content > p:has(> a.wp-element-button:only-child) { margin-top: 0.75rem; margin-bottom: 0.75rem; }
.rp-btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.rp-btn-row > p { margin: 0 !important; }
.wp-block-post-content a.wp-element-button { display: inline-block; text-decoration: none; padding: 1.05em 2.1em; border-radius: var(--wp--custom--radius--pill); background: var(--rp-red); color: #fff; font-family: var(--wp--preset--font-family--condensed); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1; }
.wp-block-post-content a.wp-element-button:hover { background: #fff; color: var(--rp-ink); }
/* Second button in a pair reads as secondary */
.rp-btn-row > p + p a.wp-element-button {
	background: transparent; box-shadow: inset 0 0 0 2px currentColor; color: #fff;
}
.wp-block-post-content > figure.wp-block-image:not([class*="size-"]) img { border-radius: var(--wp--custom--radius--medium); max-width: 100%; }
