/*
Theme Name: RemoteWPDev Child
Theme URI: https://remotewpdevs.com
Description: Custom child theme for RemoteWPDev.com — built on Twenty Twenty-Five. Contains all site-specific markup, styling and SEO/GEO logic.
Author: RemoteWPDev
Template: twentytwentyfive
Version: 1.8.0
Text Domain: remotewpdev-child
*/

/* -----------------------------------------------------------
   Design tokens (mirrors theme.json accent colors)
----------------------------------------------------------- */
:root {
	--rwpd-ink: #111111;
	--rwpd-paper: #ffffff;
	--rwpd-muted: #686868;
	--rwpd-surface: #fbfaf3;
	--rwpd-accent: #00759b;
	--rwpd-accent-contrast: #ffffff;
	--rwpd-highlight: #ffee58;
	--rwpd-border: #e7e4da;
	--rwpd-radius: 14px;
	--rwpd-max: 1180px;
}

/* -----------------------------------------------------------
   Layout helpers
----------------------------------------------------------- */
.rwpd-section {
	padding: clamp(48px, 8vw, 96px) 24px;
}

.rwpd-inner {
	max-width: var(--rwpd-max);
	margin-inline: auto;
}

.rwpd-section--alt {
	background: var(--rwpd-surface);
}

.rwpd-section--dark {
	background: var(--rwpd-ink);
	color: var(--rwpd-paper);
}

.rwpd-eyebrow {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rwpd-accent);
	margin-bottom: 12px;
}

.rwpd-section--dark .rwpd-eyebrow {
	color: var(--rwpd-highlight);
}

.rwpd-h2 {
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	line-height: 1.2;
	margin: 0 0 16px;
	max-width: 42ch;
}

.rwpd-lede {
	font-size: 1.1rem;
	color: var(--rwpd-muted);
	max-width: 65ch;
	line-height: 1.6;
}

.rwpd-section--dark .rwpd-lede {
	color: #d8d8d8;
}

/* -----------------------------------------------------------
   Skip link
----------------------------------------------------------- */
.rwpd-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--rwpd-ink);
	color: #fff;
	padding: 12px 20px;
	z-index: 999;
}
.rwpd-skip-link:focus {
	left: 12px;
	top: 12px;
}

/* -----------------------------------------------------------
   Header
----------------------------------------------------------- */
.rwpd-header {
	border-bottom: 1px solid var(--rwpd-border);
	background: var(--rwpd-paper);
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: 0 1px 0 rgba(17, 17, 17, 0.03);
}

.rwpd-header__inner {
	max-width: var(--rwpd-max);
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 16px 24px;
}

/*
 * Mrs Eaves Small Caps Roman is a licensed commercial typeface (Emigre).
 * Drop your licensed woff2/woff files into assets/fonts/ using these exact
 * filenames and the @font-face below will pick them up automatically.
 * Until then, the logo falls back to a serif + small-caps approximation.
 */
@font-face {
	font-family: 'Mrs Eaves Small Caps Roman';
	src: url('assets/fonts/MrsEavesSmallCapsRoman.woff2') format('woff2'),
		url('assets/fonts/MrsEavesSmallCapsRoman.woff') format('woff');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

.rwpd-logo {
	font-family: 'Mrs Eaves Small Caps Roman', 'Mrs Eaves', Georgia, 'Times New Roman', serif;
	font-variant-caps: small-caps;
	letter-spacing: 0.03em;
	font-weight: 700;
	font-size: 1.25rem;
	text-decoration: none;
	color: var(--rwpd-ink);
	white-space: nowrap;
}

.rwpd-logo span {
	color: var(--rwpd-accent);
}

.rwpd-nav {
	display: flex;
	align-items: center;
	gap: 28px;
	flex-wrap: wrap;
}

.rwpd-nav a {
	text-decoration: none;
	color: var(--rwpd-ink);
	font-size: 0.95rem;
	font-weight: 500;
}

.rwpd-nav a:hover {
	color: var(--rwpd-accent);
}

/* Buttons keep their own color even nested inside .rwpd-nav a rules above. */
.rwpd-nav a.rwpd-btn,
.rwpd-nav a.rwpd-btn:hover {
	color: var(--rwpd-accent-contrast);
}

.rwpd-nav-toggle-input {
	display: none;
}

.rwpd-nav-toggle-label {
	display: none;
	flex-direction: column;
	gap: 5px;
	cursor: pointer;
	padding: 6px;
}

.rwpd-nav-toggle-label span {
	width: 24px;
	height: 2px;
	background: var(--rwpd-ink);
	display: block;
}

.rwpd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	line-height: 1.2;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.rwpd-btn:active {
	transform: scale(0.97);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
	outline: 2px solid var(--rwpd-accent);
	outline-offset: 3px;
}

.rwpd-btn--primary {
	background: var(--rwpd-ink);
	color: #fff;
}
.rwpd-btn--primary:hover {
	background: var(--rwpd-accent);
}

.rwpd-btn--secondary {
	background: transparent;
	color: var(--rwpd-ink);
	border-color: var(--rwpd-ink);
}
.rwpd-btn--secondary:hover {
	background: var(--rwpd-ink);
	color: #fff;
}

.rwpd-section--dark .rwpd-btn--secondary {
	color: #fff;
	border-color: #fff;
}
.rwpd-section--dark .rwpd-btn--secondary:hover {
	background: #fff;
	color: var(--rwpd-ink);
}

/* -----------------------------------------------------------
   Hero
----------------------------------------------------------- */
.rwpd-hero {
	padding: clamp(56px, 10vw, 120px) 24px;
	background: linear-gradient(180deg, var(--rwpd-surface) 0%, var(--rwpd-paper) 100%);
}

.rwpd-hero__inner {
	max-width: var(--rwpd-max);
	margin-inline: auto;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.rwpd-hero h1 {
	font-size: clamp(2.1rem, 5vw, 3.6rem);
	line-height: 1.1;
	max-width: 20ch;
	margin: 0 0 20px;
}

.rwpd-hero p {
	font-size: clamp(1.05rem, 2vw, 1.25rem);
	color: var(--rwpd-muted);
	max-width: 62ch;
	margin: 0 0 32px;
	line-height: 1.6;
}

.rwpd-hero__ctas {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	justify-content: center;
	margin-bottom: 20px;
}

.rwpd-trust {
	font-size: 0.9rem;
	color: var(--rwpd-muted);
}

/* -----------------------------------------------------------
   Grids
----------------------------------------------------------- */
.rwpd-grid {
	display: grid;
	gap: 24px;
	margin-top: 40px;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.rwpd-card {
	background: var(--rwpd-paper);
	border: 1px solid var(--rwpd-border);
	border-radius: var(--rwpd-radius);
	padding: 28px;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.rwpd-card:hover {
	box-shadow: 0 12px 24px -12px rgba(17, 17, 17, 0.18);
	transform: translateY(-2px);
}

.rwpd-section--alt .rwpd-card,
.rwpd-section--dark .rwpd-card {
	background: var(--rwpd-paper);
	color: var(--rwpd-ink);
}

.rwpd-card__icon {
	width: 40px;
	height: 40px;
	margin-bottom: 16px;
	color: var(--rwpd-accent);
}

.rwpd-card h3 {
	font-size: 1.15rem;
	margin: 0 0 10px;
}

.rwpd-card p {
	color: var(--rwpd-muted);
	line-height: 1.6;
	margin: 0;
}

/* -----------------------------------------------------------
   Problem section
----------------------------------------------------------- */
.rwpd-problem__body {
	display: grid;
	gap: 32px;
	grid-template-columns: 1.1fr 1fr;
	align-items: stretch;
	margin-top: 32px;
}

.rwpd-problem__body .rwpd-callout {
	display: flex;
	align-items: center;
}

@media (max-width: 780px) {
	.rwpd-problem__body {
		grid-template-columns: 1fr;
	}
}

.rwpd-problem__body p {
	line-height: 1.7;
	color: var(--rwpd-muted);
	margin: 0 0 16px;
}

.rwpd-callout {
	background: var(--rwpd-ink);
	color: #fff;
	border-radius: var(--rwpd-radius);
	padding: 28px;
	font-size: 1.05rem;
	line-height: 1.6;
}

.rwpd-callout p {
	margin: 0;
}

.rwpd-callout strong {
	color: var(--rwpd-highlight);
}

/* -----------------------------------------------------------
   Pricing table
----------------------------------------------------------- */
.rwpd-pricing-wrap {
	overflow-x: auto;
	margin-top: 40px;
	border-radius: var(--rwpd-radius);
	border: 1px solid var(--rwpd-border);
}

.rwpd-pricing {
	width: 100%;
	border-collapse: collapse;
	background: var(--rwpd-paper);
	min-width: 640px;
}

.rwpd-pricing caption {
	text-align: left;
	padding: 16px 20px 0;
	color: var(--rwpd-muted);
	font-size: 0.9rem;
}

.rwpd-pricing th,
.rwpd-pricing td {
	padding: 18px 20px;
	text-align: left;
	border-bottom: 1px solid var(--rwpd-border);
	vertical-align: top;
}

.rwpd-pricing thead th {
	background: var(--rwpd-surface);
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.rwpd-pricing tbody tr:last-child td {
	border-bottom: none;
}

.rwpd-pricing tbody tr.is-featured {
	background: var(--rwpd-surface);
}

.rwpd-pricing .rwpd-price {
	font-weight: 700;
	font-size: 1.1rem;
	white-space: nowrap;
}

.rwpd-pricing-note {
	font-size: 0.9rem;
	color: var(--rwpd-muted);
	margin-top: 16px;
}

/* -----------------------------------------------------------
   Process steps
----------------------------------------------------------- */
.rwpd-steps {
	display: grid;
	gap: 28px;
	margin-top: 40px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	counter-reset: rwpd-step;
}

.rwpd-step {
	position: relative;
	padding-top: 8px;
}

.rwpd-step::before {
	counter-increment: rwpd-step;
	content: counter(rwpd-step);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--rwpd-ink);
	color: #fff;
	font-weight: 700;
	margin-bottom: 16px;
}

.rwpd-step h3 {
	margin: 0 0 8px;
	font-size: 1.1rem;
}

.rwpd-step p {
	margin: 0;
	color: var(--rwpd-muted);
	line-height: 1.6;
}

/* -----------------------------------------------------------
   Case studies
----------------------------------------------------------- */
.rwpd-case {
	background: var(--rwpd-paper);
	border-left: 4px solid var(--rwpd-accent);
	border-radius: 0 var(--rwpd-radius) var(--rwpd-radius) 0;
	padding: 24px 28px;
	margin-top: 24px;
}

.rwpd-case p {
	margin: 0;
	line-height: 1.7;
}

.rwpd-case .rwpd-case__tag {
	display: block;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--rwpd-muted);
	margin-bottom: 8px;
}

/* -----------------------------------------------------------
   About
----------------------------------------------------------- */
.rwpd-about {
	display: flex;
	gap: 32px;
	align-items: flex-start;
	margin-top: 32px;
	flex-wrap: wrap;
}

.rwpd-about__avatar {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	box-shadow: 0 0 0 3px var(--rwpd-paper), 0 0 0 4px var(--rwpd-border);
}

.rwpd-about p {
	line-height: 1.7;
	color: var(--rwpd-muted);
	max-width: 68ch;
	margin: 0 0 12px;
}

/* -----------------------------------------------------------
   FAQ
----------------------------------------------------------- */
.rwpd-faq {
	margin-top: 32px;
	max-width: 820px;
}

.rwpd-faq details {
	border-bottom: 1px solid var(--rwpd-border);
	padding: 20px 0;
}

.rwpd-faq summary {
	font-weight: 600;
	font-size: 1.05rem;
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.rwpd-faq summary::-webkit-details-marker {
	display: none;
}

.rwpd-faq summary::after {
	content: "+";
	font-size: 1.4rem;
	color: var(--rwpd-accent);
	flex-shrink: 0;
}

.rwpd-faq details[open] summary::after {
	content: "\2212";
}

.rwpd-faq p {
	margin: 12px 0 0;
	color: var(--rwpd-muted);
	line-height: 1.6;
}

/* -----------------------------------------------------------
   Contact
----------------------------------------------------------- */
.rwpd-contact__grid {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 56px;
	align-items: start;
	text-align: left;
}

.rwpd-contact__intro .rwpd-h2,
.rwpd-contact__intro .rwpd-lede {
	max-width: none;
}

.rwpd-contact__facts {
	list-style: none;
	margin: 28px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.rwpd-contact__facts li {
	padding-left: 24px;
	position: relative;
	color: #d8d8d8;
}

.rwpd-contact__facts li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	color: var(--rwpd-highlight);
	font-weight: 700;
}

.rwpd-contact__facts a {
	color: #fff;
	text-decoration: underline;
}

.rwpd-form {
	background: var(--rwpd-paper);
	color: var(--rwpd-ink);
	border-radius: var(--rwpd-radius);
	padding: clamp(24px, 3vw, 36px);
}

.rwpd-form__row {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 18px;
}

.rwpd-form__row label {
	font-size: 0.9rem;
	font-weight: 600;
}

.rwpd-form__row input,
.rwpd-form__row select,
.rwpd-form__row textarea {
	font: inherit;
	font-size: 1rem;
	padding: 12px 14px;
	border: 1px solid var(--rwpd-border);
	border-radius: 8px;
	background: var(--rwpd-paper);
	color: var(--rwpd-ink);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rwpd-form__row input:focus,
.rwpd-form__row select:focus,
.rwpd-form__row textarea:focus {
	outline: none;
	border-color: var(--rwpd-accent);
	box-shadow: 0 0 0 3px rgba(0, 117, 155, 0.15);
}

.rwpd-form__row textarea {
	resize: vertical;
}

.rwpd-form__hp {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

.rwpd-form__submit {
	width: 100%;
	margin-top: 4px;
}

.rwpd-form__submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.rwpd-form__note {
	margin: 14px 0 0;
	font-size: 0.85rem;
	color: var(--rwpd-muted);
	text-align: center;
}

.rwpd-form__status {
	margin: 12px 0 0;
	font-size: 0.95rem;
	text-align: center;
	min-height: 1.2em;
}

.rwpd-form__status.is-success {
	color: #1a7f37;
}

.rwpd-form__status.is-error {
	color: #b3261e;
}

@media (max-width: 780px) {
	.rwpd-contact__grid {
		grid-template-columns: 1fr;
	}
}

/* -----------------------------------------------------------
   Footer
----------------------------------------------------------- */
.rwpd-footer {
	background: var(--rwpd-ink);
	color: #d8d8d8;
	padding: 56px 24px 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rwpd-footer__inner {
	max-width: var(--rwpd-max);
	margin-inline: auto;
	display: flex;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
}

.rwpd-footer h2 {
	color: #fff;
	font-size: 1.1rem;
	margin: 0 0 10px;
}

.rwpd-footer p {
	max-width: 42ch;
	line-height: 1.6;
	margin: 0;
}

.rwpd-footer nav {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.rwpd-footer nav a {
	color: #d8d8d8;
	text-decoration: none;
	font-size: 0.95rem;
}

.rwpd-footer nav a:hover {
	color: #fff;
}

.rwpd-footer__bottom {
	max-width: var(--rwpd-max);
	margin: 32px auto 0;
	padding-top: 20px;
	border-top: 1px solid #333;
	font-size: 0.85rem;
	color: #999;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}

/* -----------------------------------------------------------
   Responsive nav
----------------------------------------------------------- */
@media (max-width: 880px) {
	.rwpd-nav-toggle-label {
		display: flex;
	}

	.rwpd-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--rwpd-paper);
		border-bottom: 1px solid var(--rwpd-border);
		flex-direction: column;
		align-items: flex-start;
		padding: 20px 24px;
		gap: 16px;
	}

	.rwpd-header {
		position: relative;
	}

	.rwpd-nav-toggle-input:checked ~ .rwpd-nav {
		display: flex;
	}
}

/* -----------------------------------------------------------
   Kill WordPress's automatic root block-gap margin between
   header/main/footer — it shows as a stray white strip since
   our sections handle their own spacing via padding.
----------------------------------------------------------- */
.wp-site-blocks > main,
.wp-site-blocks > footer {
	margin-block-start: 0;
}
