/* overrides.css — WordPress-specific layout rules that replace the inline
 * `style={{...}}` blocks that lived in the React components. Loaded after
 * tokens.css / site.css / page.css so it can win where needed.
 */

/* ------------------------------------------------------------------ */
/* RESET: Hello theme + WordPress page chrome.                        */
/* ------------------------------------------------------------------ */

/* Hide Hello's default site header/footer when our templates render their
 * own. We use the `body.rpr-template` class added by the template files. */
body.rpr-template .site-header,
body.rpr-template .site-footer,
body.rpr-template > header.site-header,
body.rpr-template > footer.site-footer {
	display: none !important;
}

/* Strip Hello's default page wrappers / paddings on our templates. */
body.rpr-template .site,
body.rpr-template .site-content,
body.rpr-template main.site-main,
body.rpr-template .entry-content {
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
	width: 100% !important;
	background: var(--paper);
}

body.rpr-template article,
body.rpr-template .entry-header {
	margin: 0;
	padding: 0;
}

/* Hide the page title that Hello injects above the content. */
body.rpr-template .entry-title,
body.rpr-template .page-title {
	display: none !important;
}

/* WordPress admin bar — make sure our sticky header sits under it. */
body.admin-bar .rpr-header {
	top: 32px;
}
@media (max-width: 782px) {
	body.admin-bar .rpr-header {
		top: 46px;
	}
}

/* ------------------------------------------------------------------ */
/* HEADER                                                              */
/* ------------------------------------------------------------------ */

.rpr-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(251, 250, 247, 0.96);
	backdrop-filter: saturate(140%) blur(6px);
	-webkit-backdrop-filter: saturate(140%) blur(6px);
	border-bottom: 1px solid var(--line-soft);
	transition: background 220ms ease, border-color 220ms ease;
}

.rpr-header.is-scrolled {
	background: var(--brand);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	border-bottom-color: transparent;
}

.rpr-header-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 84px;
	gap: 24px;
	transition: height 220ms ease;
}

.rpr-header.is-scrolled .rpr-header-bar {
	height: 60px;
}

.rpr-header-logo-link {
	display: flex;
	align-items: center;
	height: 100%;
	border: 0;
	flex-shrink: 0;
}

.rpr-header-logo {
	height: 48px;
	width: auto;
	transition: all 220ms ease;
}

.rpr-header.is-scrolled .rpr-header-logo {
	height: 30px;
	filter: brightness(0) invert(1);
}

.rpr-nav-desktop {
	display: flex;
	align-items: center;
	gap: 28px;
}

.rpr-nav-link {
	text-decoration: none;
	border: 0;
	color: var(--ink);
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: 11.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	border-bottom: 2px solid transparent;
	padding-bottom: 4px;
	transition: color 140ms ease;
	white-space: nowrap;
}

.rpr-header.is-scrolled .rpr-nav-link {
	color: rgba(251, 250, 247, 0.85);
}

.rpr-nav-link.is-active {
	border-bottom-color: var(--brand);
}

.rpr-header.is-scrolled .rpr-nav-link.is-active {
	border-bottom-color: var(--accent);
}

.rpr-nav-cta {
	background: var(--brand);
	color: var(--paper);
	border-radius: 999px;
	padding: 10px 22px;
	font-size: 11.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-family: var(--font-sans);
	font-weight: 600;
	text-decoration: none;
	border: 0;
	transition: background 140ms ease, color 140ms ease;
	white-space: nowrap;
}

.rpr-header.is-scrolled .rpr-nav-cta {
	background: var(--accent);
	color: var(--brand);
}

.rpr-nav-toggle {
	display: none;
	background: transparent;
	border: 0;
	cursor: pointer;
	color: var(--ink);
	padding: 8px;
}

.rpr-header.is-scrolled .rpr-nav-toggle {
	color: var(--paper);
}

.rpr-nav-drawer {
	display: none;
	background: var(--paper);
	border-top: 1px solid var(--line);
	padding: 12px 0 20px;
}

.rpr-nav-drawer[data-open="true"] {
	display: block;
}

.rpr-nav-drawer .container {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.rpr-nav-drawer-link {
	text-decoration: none;
	border: 0;
	color: var(--ink);
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 14px 0;
	border-bottom: 1px solid var(--line-soft);
}

@media (max-width: 980px) {
	.rpr-nav-desktop { display: none !important; }
	.rpr-nav-toggle  { display: inline-flex; align-items: center; justify-content: center; }
}

/* ------------------------------------------------------------------ */
/* GENERIC: keep the page background warm-off-white                   */
/* ------------------------------------------------------------------ */

body.rpr-template {
	background: var(--paper);
}

/* ------------------------------------------------------------------ */
/* LEGAL PAGE BODY (Privacy, Cookies, etc.) — branded prose styling.  */
/* ------------------------------------------------------------------ */
.rpr-legal-body h2 {
	font-family: var(--font-serif);
	font-weight: 600;
	font-size: clamp(22px, 2.6vw, 28px);
	line-height: 1.22;
	color: var(--brand);
	margin: 40px 0 12px;
}
.rpr-legal-body h3 {
	font-family: var(--font-serif);
	font-weight: 600;
	font-size: 20px;
	line-height: 1.25;
	color: var(--brand);
	margin: 28px 0 10px;
}
.rpr-legal-body p,
.rpr-legal-body li {
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink-soft);
	margin: 0 0 14px;
}
.rpr-legal-body ul,
.rpr-legal-body ol {
	padding-left: 22px;
	margin: 0 0 18px;
}
.rpr-legal-body li {
	margin: 0 0 6px;
}
.rpr-legal-body strong { color: var(--ink); }
.rpr-legal-body a {
	color: var(--brand);
	border-bottom: 1px solid currentColor;
}
.rpr-legal-body a:hover { color: var(--brand-deep); }
.rpr-legal-body hr {
	border: 0; border-top: 1px solid var(--line);
	margin: 32px 0;
}

/* Restore WP-managed paragraph margins inside our static-HTML page bodies.
 * Hello / WordPress themes can apply broad `p { margin: 0 0 1.5em }` rules
 * that fight our inline styles; we already set p { margin: 0 0 16px } in
 * tokens.css. Allow inline styles to win. */
body.rpr-template p[style] { /* let inline styles win */ }
