/* ===================================================================
   ResearchPilotPro — theme styles
   Palette is derived from the logo: navy #06275A, graphite #3A3A3A.
   The action colour is that navy brightened, not a borrowed accent.
   Live values are injected as CSS variables from the Customizer.
   -------------------------------------------------------------------
   1.  Tokens
   2.  Base
   3.  Layout
   4.  Buttons
   5.  Header + navigation
   6.  Hero
   7.  Lead form
   8.  Stats
   9.  Sections, cards, process, about, FAQ, CTA
   10. Blog, comments, search
   11. Footer
   12. Responsive
=================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
	--rpp-primary: #06275A;
	--rpp-action: #1E63C8;
	--rpp-action-hover: #164FA3;
	--rpp-action-tint: #E4EDFB;
	--rpp-deep: #04142E;
	--rpp-graphite: #3A3A3A;
	--rpp-paper: #F4F7FC;

	--rpp-white: #FFFFFF;
	--rpp-ink: #131C2B;
	--rpp-ink-soft: #55627A;
	--rpp-rule: #DCE4F0;
	--rpp-sky: #7FB0F0;
	--rpp-on-dark: #C8D6EC;

	--rpp-display: "Fraunces", Georgia, "Times New Roman", serif;
	--rpp-body: "Source Serif 4", Georgia, "Times New Roman", serif;
	--rpp-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	--rpp-radius: 10px;
	--rpp-radius-sm: 4px;
	--rpp-shadow: 0 1px 0 rgba(6, 39, 90, 0.05), 0 16px 34px -20px rgba(6, 39, 90, 0.35);
	--rpp-shadow-lift: 0 36px 70px -28px rgba(4, 20, 46, 0.65);
	--rpp-header-h: 74px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--rpp-header-h) + 16px);
}

body {
	margin: 0;
	background: var(--rpp-paper);
	color: var(--rpp-ink);
	font-family: var(--rpp-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-family: var(--rpp-display);
	font-weight: 500;
	line-height: 1.15;
	margin: 0 0 0.6em;
	letter-spacing: -0.012em;
}

p { margin: 0 0 1.1em; }

a { color: var(--rpp-action); }
a:hover { color: var(--rpp-action-hover); }

img { max-width: 100%; height: auto; }

:focus-visible {
	outline: 2px solid var(--rpp-action);
	outline-offset: 3px;
	border-radius: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 999;
	width: auto;
	height: auto;
	clip: auto;
	margin: 0;
	padding: 10px 16px;
	background: var(--rpp-white);
	color: var(--rpp-ink);
	border-radius: var(--rpp-radius-sm);
	box-shadow: var(--rpp-shadow);
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}

/* ---------- 3. Layout ---------- */
.rpp-container {
	width: min(1200px, 100% - 48px);
	margin-inline: auto;
}

.rpp-container--narrow { width: min(760px, 100% - 48px); }

.rpp-section { padding: 88px 0; }
.rpp-section--alt {
	background: var(--rpp-white);
	border-block: 1px solid var(--rpp-rule);
}

.rpp-section__title { font-size: clamp(1.85rem, 3.4vw, 2.5rem); }
.rpp-section__intro {
	max-width: 62ch;
	color: var(--rpp-ink-soft);
	margin-bottom: 2.5rem;
}

.rpp-eyebrow {
	font-family: var(--rpp-mono);
	font-size: 11.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--rpp-action);
	margin: 0 0 8px;
}

.rpp-eyebrow--light { color: var(--rpp-sky); }

.rpp-meta {
	font-family: var(--rpp-mono);
	font-size: 12px;
	color: var(--rpp-ink-soft);
}

.rpp-note {
	font-family: var(--rpp-mono);
	font-size: 12px;
	color: var(--rpp-ink-soft);
	border-left: 2px solid var(--rpp-sky);
	padding-left: 14px;
	margin-top: 1.75rem;
}

.rpp-lede { font-size: 1.22rem; }

.rpp-grid { display: grid; gap: 22px; }
.rpp-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- 4. Buttons ---------- */
.rpp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--rpp-mono);
	font-size: 0.85rem;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	padding: 15px 26px;
	border: 1px solid transparent;
	border-radius: var(--rpp-radius-sm);
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.rpp-btn--sm { padding: 11px 18px; font-size: 0.78rem; }
.rpp-btn--block { width: 100%; }

.rpp-btn--primary { background: var(--rpp-action); color: var(--rpp-white); }
.rpp-btn--primary:hover { background: var(--rpp-action-hover); color: var(--rpp-white); }

.rpp-btn--ghost {
	background: transparent;
	color: var(--rpp-white);
	border-color: rgba(255, 255, 255, 0.45);
}
.rpp-btn--ghost:hover { background: rgba(255, 255, 255, 0.1); color: var(--rpp-white); }

.rpp-btn--ghost-light {
	background: transparent;
	color: var(--rpp-on-dark);
	border-color: rgba(255, 255, 255, 0.35);
}
.rpp-btn--ghost-light:hover { background: rgba(255, 255, 255, 0.1); color: var(--rpp-white); }

.rpp-btn--light { background: var(--rpp-white); color: var(--rpp-primary); }
.rpp-btn--light:hover { background: var(--rpp-action-tint); color: var(--rpp-primary); }

/* ---------- 5. Header + navigation ---------- */
.rpp-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(255, 255, 255, 0.94);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--rpp-rule);
}

.rpp-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--rpp-header-h);
}

.rpp-header__brand img,
.rpp-header__brand .custom-logo {
	display: block;
	max-height: 40px;
	width: auto;
}

.rpp-brand-text {
	font-family: var(--rpp-display);
	font-weight: 600;
	font-size: 1.3rem;
	color: var(--rpp-primary);
	text-decoration: none;
}

.rpp-nav {
	display: flex;
	align-items: center;
	gap: 28px;
	margin-left: auto;
}

.rpp-menu {
	display: flex;
	align-items: center;
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.rpp-menu a {
	font-family: var(--rpp-mono);
	font-size: 12.5px;
	color: var(--rpp-ink);
	text-decoration: none;
	white-space: nowrap;
}

.rpp-menu a:hover,
.rpp-menu .current-menu-item > a { color: var(--rpp-action); }

.rpp-menu .sub-menu {
	position: absolute;
	display: none;
	min-width: 190px;
	margin-top: 10px;
	padding: 10px 0;
	list-style: none;
	background: var(--rpp-white);
	border: 1px solid var(--rpp-rule);
	border-radius: var(--rpp-radius-sm);
	box-shadow: var(--rpp-shadow);
}

.rpp-menu li { position: relative; }
.rpp-menu li:hover > .sub-menu,
.rpp-menu li:focus-within > .sub-menu { display: block; }
.rpp-menu .sub-menu a { display: block; padding: 8px 16px; }

.rpp-nav-toggle {
	display: none;
	width: 42px;
	height: 42px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--rpp-rule);
	border-radius: var(--rpp-radius-sm);
	cursor: pointer;
}

.rpp-nav-toggle__bars,
.rpp-nav-toggle__bars::before,
.rpp-nav-toggle__bars::after {
	display: block;
	width: 18px;
	height: 2px;
	margin-inline: auto;
	background: var(--rpp-ink);
	content: "";
}

.rpp-nav-toggle__bars::before { transform: translateY(-6px); }
.rpp-nav-toggle__bars::after { transform: translateY(4px); }

/* ---------- 6. Hero ---------- */
.rpp-hero {
	position: relative;
	overflow: hidden;
	padding: 92px 0 96px;
	background:
		radial-gradient(900px 620px at 78% 12%, rgba(30, 99, 200, 0.4), transparent 62%),
		linear-gradient(150deg, var(--rpp-primary) 0%, var(--rpp-deep) 78%);
	color: var(--rpp-white);
}

.rpp-hero__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(70% 70% at 30% 40%, #000 20%, transparent 80%);
	-webkit-mask-image: radial-gradient(70% 70% at 30% 40%, #000 20%, transparent 80%);
}

.rpp-hero__watermark {
	position: absolute;
	left: -70px;
	bottom: -110px;
	width: 420px;
	opacity: 0.06;
	filter: brightness(0) invert(1);
}

.rpp-hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	align-items: center;
	gap: 56px;
}

.rpp-hero__title {
	font-size: clamp(2.3rem, 4.6vw, 3.4rem);
	line-height: 1.06;
	margin-bottom: 0.5em;
}

.rpp-hero__title em {
	font-style: italic;
	color: var(--rpp-sky);
	font-weight: 400;
}

.rpp-hero__text {
	font-size: 1.15rem;
	color: var(--rpp-on-dark);
	max-width: 54ch;
}

.rpp-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 26px;
}

.rpp-hero__assurances {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: var(--rpp-mono);
	font-size: 11.5px;
	color: var(--rpp-on-dark);
}

.rpp-hero__assurances li { position: relative; padding-left: 16px; }

.rpp-hero__assurances li::before {
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--rpp-sky);
	content: "";
}

/* ---------- 7. Lead form ---------- */
.rpp-leadform {
	background: var(--rpp-white);
	border-radius: var(--rpp-radius);
	padding: 30px 28px;
	color: var(--rpp-ink);
}

.rpp-leadform--hero {
	box-shadow: var(--rpp-shadow-lift);
	border: 1px solid rgba(255, 255, 255, 0.14);
}

.rpp-leadform--plain {
	border: 1px solid var(--rpp-rule);
	box-shadow: var(--rpp-shadow);
}

.rpp-leadform__title {
	font-size: 1.4rem;
	text-align: center;
	margin-bottom: 1.1rem;
}

.rpp-leadform__form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 14px;
}

.rpp-field { margin: 0; display: flex; flex-direction: column; gap: 5px; }
.rpp-field--wide, .rpp-leadform__form > button, .rpp-leadform__note, .rpp-notice { grid-column: 1 / -1; }

.rpp-field label {
	font-family: var(--rpp-mono);
	font-size: 11px;
	letter-spacing: 0.04em;
	color: var(--rpp-ink-soft);
}

.rpp-field input,
.rpp-field select,
.rpp-field textarea {
	width: 100%;
	font-family: var(--rpp-body);
	font-size: 0.95rem;
	color: var(--rpp-ink);
	background: var(--rpp-white);
	border: 1px solid var(--rpp-rule);
	border-radius: var(--rpp-radius-sm);
	padding: 11px 12px;
}

.rpp-field input:focus,
.rpp-field select:focus,
.rpp-field textarea:focus {
	border-color: var(--rpp-action);
	outline: none;
	box-shadow: 0 0 0 3px var(--rpp-action-tint);
}

.rpp-leadform__note {
	font-family: var(--rpp-mono);
	font-size: 10.5px;
	line-height: 1.7;
	color: var(--rpp-ink-soft);
	text-align: center;
	margin: 10px 0 0;
}

.rpp-hp { position: absolute; left: -9999px; }

.rpp-notice {
	margin: 0 0 12px;
	padding: 11px 14px;
	border-radius: var(--rpp-radius-sm);
	font-size: 0.95rem;
}

.rpp-notice--ok { background: #E7F3EC; color: #1B5E3A; }
.rpp-notice--bad { background: #FBE9E7; color: #A32C1A; }

/* ---------- 8. Stats ---------- */
.rpp-stats { background: var(--rpp-primary); color: var(--rpp-white); }

.rpp-stats__inner {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	padding: 30px 0;
}

.rpp-stat {
	text-align: center;
	border-right: 1px solid rgba(255, 255, 255, 0.14);
	padding: 4px 12px;
}

.rpp-stat:last-child { border-right: none; }

.rpp-stat__figure {
	display: block;
	font-family: var(--rpp-display);
	font-size: 1.85rem;
	line-height: 1.2;
	color: var(--rpp-sky);
}

.rpp-stat__label {
	font-family: var(--rpp-mono);
	font-size: 11px;
	color: var(--rpp-on-dark);
}

/* ---------- 9. Cards, process, about, FAQ, CTA ---------- */
.rpp-card {
	background: var(--rpp-white);
	border: 1px solid var(--rpp-rule);
	border-radius: var(--rpp-radius);
	box-shadow: var(--rpp-shadow);
	padding: 28px 26px;
}

.rpp-section--alt .rpp-card { background: var(--rpp-paper); }

.rpp-card p:last-child { margin-bottom: 0; }
.rpp-card__title { font-size: 1.22rem; }

.rpp-card__index {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-bottom: 14px;
	border-radius: 9px;
	background: var(--rpp-action-tint);
	color: var(--rpp-primary);
	font-family: var(--rpp-mono);
	font-size: 13px;
}

.rpp-card--sample { border-top: 3px solid var(--rpp-action); }

.rpp-card__kicker {
	font-family: var(--rpp-mono);
	font-size: 11px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--rpp-action);
	margin-bottom: 6px;
}

.rpp-process {
	background: linear-gradient(135deg, var(--rpp-primary) 0%, var(--rpp-deep) 100%);
	border-radius: var(--rpp-radius);
	color: var(--rpp-white);
	padding: 58px 48px;
}

.rpp-process .rpp-section__intro { color: var(--rpp-on-dark); }

.rpp-steps {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: step;
}

.rpp-step p { color: var(--rpp-on-dark); font-size: 0.95rem; }
.rpp-step__title { font-size: 1.05rem; }

.rpp-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: rgba(127, 176, 240, 0.2);
	color: var(--rpp-sky);
	font-family: var(--rpp-mono);
	font-size: 13px;
}

.rpp-quote {
	margin: 0;
	background: var(--rpp-white);
	border-radius: var(--rpp-radius);
	box-shadow: var(--rpp-shadow);
	padding: 28px 26px;
}

.rpp-quote blockquote {
	margin: 0 0 14px;
	font-style: italic;
	border-left: 2px solid var(--rpp-sky);
	padding-left: 16px;
}

.rpp-about {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	gap: 44px;
	align-items: start;
}

.rpp-about__card {
	background: var(--rpp-primary);
	color: var(--rpp-white);
	border-radius: var(--rpp-radius);
	padding: 32px;
}

.rpp-about__name { color: var(--rpp-white); margin-bottom: 4px; }

.rpp-about__seal {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	margin: 0 0 16px;
	border-radius: 50%;
	background: var(--rpp-action);
	font-family: var(--rpp-display);
	font-size: 1.35rem;
}

.rpp-about__facts {
	margin: 18px 0 0;
	padding: 0 0 0 18px;
	font-family: var(--rpp-mono);
	font-size: 11.5px;
	line-height: 2;
	color: var(--rpp-on-dark);
}

.rpp-faq {
	border-bottom: 1px solid var(--rpp-rule);
	padding: 18px 2px;
}

.rpp-faq summary {
	font-family: var(--rpp-display);
	font-size: 1.14rem;
	cursor: pointer;
}

.rpp-faq summary:hover { color: var(--rpp-action); }
.rpp-faq p { color: var(--rpp-ink-soft); margin: 12px 0 0; }

.rpp-cta {
	background: linear-gradient(135deg, var(--rpp-action) 0%, var(--rpp-primary) 100%);
	border-radius: var(--rpp-radius);
	color: var(--rpp-white);
	padding: 54px 48px;
	text-align: center;
}

.rpp-cta .rpp-section__title { color: var(--rpp-white); }
.rpp-cta__text { color: var(--rpp-on-dark); max-width: 56ch; margin-inline: auto; }

.rpp-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

/* ---------- 10. Blog, comments, search ---------- */
.rpp-post-card {
	padding-bottom: 28px;
	margin-bottom: 28px;
	border-bottom: 1px solid var(--rpp-rule);
}

.rpp-post-card__title { font-size: 1.5rem; margin-bottom: 4px; }
.rpp-post-card__title a { color: var(--rpp-ink); text-decoration: none; }
.rpp-post-card__title a:hover { color: var(--rpp-action); }

.rpp-prose > * { max-width: 100%; }
.rpp-post-thumb { margin: 1.75rem 0; }
.rpp-post-thumb img { border-radius: var(--rpp-radius); }

.rpp-post-nav {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	padding-top: 24px;
	border-top: 1px solid var(--rpp-rule);
}

.rpp-searchform { display: flex; gap: 10px; margin-bottom: 2rem; }

.rpp-searchform input[type="search"] {
	flex: 1;
	font-family: var(--rpp-body);
	font-size: 1rem;
	padding: 11px 14px;
	background: var(--rpp-white);
	border: 1px solid var(--rpp-rule);
	border-radius: var(--rpp-radius-sm);
}

.rpp-comments { margin-top: 3rem; }
.rpp-comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.rpp-comment-list ol { list-style: none; padding-left: 22px; }
.rpp-comment-list .comment-body { padding: 18px 0; border-bottom: 1px solid var(--rpp-rule); }

.pagination, .nav-links {
	display: flex;
	gap: 12px;
	font-family: var(--rpp-mono);
	font-size: 12.5px;
	margin-top: 2rem;
}

/* ---------- 11. Footer ---------- */
.rpp-footer {
	background: var(--rpp-primary);
	color: var(--rpp-on-dark);
	padding: 54px 0 28px;
}

.rpp-footer__inner {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 40px;
	align-items: start;
}

.rpp-footer a { color: var(--rpp-on-dark); text-decoration: none; }
.rpp-footer a:hover { color: var(--rpp-white); text-decoration: underline; }
.rpp-footer .rpp-btn--light:hover { text-decoration: none; }

.rpp-footer__logo { display: inline-block; margin-bottom: 14px; }
.rpp-footer__logo img { display: block; width: 210px; height: auto; }

.rpp-footer-description { max-width: 46ch; font-size: 0.98rem; }

.rpp-footer-heading {
	font-family: var(--rpp-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rpp-sky);
	margin-bottom: 10px;
}

.rpp-footer__col p { margin-bottom: 0.6em; }

.rpp-footer__legal {
	margin: 30px 0 0;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	font-family: var(--rpp-mono);
	font-size: 11px;
	line-height: 1.9;
	color: rgba(200, 214, 236, 0.75);
}

/* ---------- 12. Responsive ---------- */
@media (max-width: 1100px) {
	.rpp-hero__inner { grid-template-columns: 1fr; gap: 40px; }
	.rpp-hero__form { max-width: 560px; }
	.rpp-steps { grid-template-columns: repeat(2, 1fr); }
	.rpp-grid--3 { grid-template-columns: repeat(2, 1fr); }
	.rpp-about { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
	.rpp-container, .rpp-container--narrow { width: min(100% - 32px, 760px); }

	.rpp-nav-toggle { display: block; }

	.rpp-nav {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 16px 24px 24px;
		background: var(--rpp-white);
		border-bottom: 1px solid var(--rpp-rule);
		box-shadow: var(--rpp-shadow);
	}

	.rpp-header { position: sticky; }
	.rpp-header__inner { position: relative; }
	.rpp-nav.is-open { display: flex; }

	.rpp-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.rpp-menu a { display: block; padding: 12px 0; font-size: 14px; border-bottom: 1px solid var(--rpp-rule); }
	.rpp-menu .sub-menu { position: static; display: block; border: none; box-shadow: none; padding: 0 0 0 14px; }

	.rpp-nav__cta { margin-top: 16px; }
	.rpp-nav__cta .rpp-btn { width: 100%; }

	.rpp-section { padding: 60px 0; }
	.rpp-hero { padding: 64px 0 72px; }
	.rpp-process { padding: 40px 26px; }
	.rpp-cta { padding: 38px 26px; }

	.rpp-grid--3, .rpp-steps { grid-template-columns: 1fr; }

	.rpp-stats__inner { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
	.rpp-stat:nth-child(2n) { border-right: none; }

	.rpp-leadform__form { grid-template-columns: 1fr; }
	.rpp-footer__inner { grid-template-columns: 1fr; gap: 28px; }
}
